Leser: 3
8 Einträge, 1 Seite |
1
2
3
4
5
6
# ---- eigene Module
unshift @INC, 'c:/apache/cgi-bin/cms';
require sitemanager1_31;
# ---- TEMPLATE
my $site = new sitemanager1_31();
print $site->vnav_sniplet("key", "titel");
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package sitemanager1_31;
use strict;
my $grafik = 'http://127.0.0.1/grafiken';
# --------------------------------------------------------
# NAVIGATION - Sniplets
# --------------------------------------------------------
sub vnav_sniplet {
my $self = shift;
my $key = shift;
my $titel = shift;
my $return = '
<tr>
<td class="nav"><img src="$grafik/greysmallbullet.gif" width="5" height="5" border="0" alt="*"/>
& <a href="&{full_url}?action=$key">$titel</a></td>
</tr>
';
return $return;
} #vnav_sniplet
# --------------------------------------------------------
# KONSTRUKTOR
# --------------------------------------------------------
sub new {
return "sitemanager";
} #new
return 1;
1
2
3
4
5
sub new {
my $class = shift;
my $self = {}; # oder was auch immer
bless ($self, $class);
}
8 Einträge, 1 Seite |