1 # ========== Abstand berechnen ==========
2 # in ePerl: $root_prefix
3 # in WML: <get-var root_prefix>
5 $root_prefix = "<get-var WML_SRC_DIRNAME>";
6 $root_prefix =~ s/^.*src\/?(.*)$/$1/;
7 @foo = split (/\//, $root_prefix);
8 $root_prefix = "../"x($#foo+1);
10 <if <not <get-var root_prefix>>
11 <define-tag root_prefix><: print "$root_prefix"; :></define-tag>
12 "<: $root_prefix = \"<get-var root_prefix>\"; :>"
16 # ========== Page footer ==========
18 # Sollte eigentlich in <address></address> eingefaßt sein, kursiv sieht's aber nicht aus.
20 <define-tag page-footer>
21 <font face="Helvetica,Arial" size="-1">© <a href="<root_prefix>impressum.html">InfoCon</a>
25 <define-tag old-page-footer>
27 <font face="Helvetica,Arial" size="-1">© <a href="<root_prefix>impressum.html">InfoCon</a>, <:
29 # ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
30 ("Dummy", "Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
32 #($date_sec,$date_min,$date_hour,$date_mday,$date_mon,$date_year,$date_wday,$date_isdst)
33 # = localtime(); $date_year += 1900;
34 #printf "%d %s %d", $date_mday, $months[$date_mon], $date_year;
36 "<get-var WML_SRC_ISOTIME>" =~ /^(\d+)-(\d+)-(\d+)\s/;
38 printf "Letzte Änderung: %d. %s %d", $3, $months[$2], $1;
43 # ========== Page ==========
45 <define-tag page-horiz-space>10</define-tag>
46 <define-tag page endtag=required>
49 <if <not <get-var title>>
50 <set-var title="InfoCon - Information & Consulting">>
52 # Titel im linken Submenü
53 <if <not <get-var menu>>
54 <set-var menu="<div align=center> </div><br>">
55 <set-var menu="<div align=center><b>Infos</b></div><br>">
60 <title>InfoCon - <get-var title></title>
61 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
62 <link href="<root_prefix>infocon.css" rel="stylesheet" type="text/css">
63 <meta name="Language" content="de">
65 <meta name="Keywords" content="GNU/Linux, Linux, Freie Software, Free Software, Oldenburg, \
66 Dienstleistung, Support, Schulung, Service, Perl, Python, PHP, Web, JavaScript, \
67 Programmierung, Anpassung, Consulting, Customising, Norddeutschland, Weser-Ems, \
68 RRD, Datenbanken, SQL, kommerz, Kommerziell, Business, Joey, IT-Consulting, \
69 Entwicklung, Planung, Wartung, Administration, Niedersachsen, Firma, Company, \
70 commercial, Überwachung, Monitoring, Visualisierung, Statistik, Statistikauswertung, \
71 Datenauswertung, <get-var keywords>">
72 <meta name="Robots" content="index,follow">
78 <table cellspacing=0 cellpadding=0 border=0 width=100%>
81 <td width=90><a href="<root_prefix>"><img src="<root_prefix>Pics/infocon-90.png" align=center alt="[InfoCon]" border=0></a></td>
82 <td width=<page-horiz-space>></td>
84 <h1 align=center><font face=Helvetica>Information & Consulting</font></h1>
86 # Anfang der Menü-Tabelle
87 <table bgcolor=#5dbbf9 cellspacing=0 cellpadding=0 border=0 width=100%>
89 <td><img src="<root_prefix>Pics/corner-upperleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="16" height="16"></td>
90 <td rowspan=2 align=center>
93 # @menu = ('Infos','Dienstleistungen','Shop');
94 @menu = ('Infos','Dienstleistungen');
95 %menu_dir = ('Infos' => 'infos',
96 'Dienstleistungen' => 'service',
99 %menu_width = ('Infos' => 50,
100 'Dienstleistungen' => 120,
103 $menu_default = 'hspace="4" vspace="7" height="18" align="middle" border="0"';
105 foreach $rubrik (@menu) {
106 $dir = $menu_dir{$rubrik};
107 if ("<get-var WML_SRC_DIRNAME>" =~ /src\/$dir/) {
108 if ("<get-var WML_SRC_BASENAME>" eq "index") {
110 printf '<img src="%sPics/menu-%s.press.png" width="%d" alt="[%s]" %s>',
111 $root_prefix, $dir, $menu_width{$rubrik}, $rubrik, $menu_default;
113 # We're in but link required
114 printf '<a href="%s%s/"><img src="%sPics/menu-%s.press.png" width="%d" alt="[%s]" %s></a>',
115 $root_prefix, $dir, $root_prefix, $dir, $menu_width{$rubrik}, $rubrik, $menu_default;
119 printf '<a href="%s%s/"><img src="%sPics/menu-%s.png" width="%d" alt="[%s]" %s></a>',
120 $root_prefix, $dir, $root_prefix, $dir, $menu_width{$rubrik}, $rubrik, $menu_default;
126 <td><img src="<root_prefix>Pics/corner-upperright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16"></td>
129 # Untere Zeile, nur die Ecken
131 <td><img src="<root_prefix>Pics/corner-lowerleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="16" height="16"></td>
132 <td><img src="<root_prefix>Pics/corner-lowerright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16"></td>
135 # Ende der Menü-Tabelle
140 <td width=90 valign=top bgcolor=#5dbbf9>
141 <img src="<root_prefix>Pics/corner-upperleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
142 <img src="<root_prefix>Pics/corner-upperright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
143 <font size="-1" face="Helvetica"><get-var menu>
145 #include "submenu.inc"
150 <td width=<page-horiz-space>></td>
151 <td width=100% valign=top>
152 <table width=100% border=0 cellspacing=2 cellpadding=0><tr><td width=100% align=left valign=top>
153 <font face=Helvetica>
155 # <td width=100% valign=top><font face=Helvetica>
158 <script type="text/javascript">
159 var today = new Date;
160 var year = today.getYear();
161 var mon = ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'];
166 if (year > 2006 && year < 2100)
167 document.write(today.getDate()
168 +". " + mon[today.getMonth()]
175 <h3 id=pagetitle><get-var title></h3>
189 <td width=90 valign=bottom bgcolor=#5dbbf9>
190 <img src="<root_prefix>Pics/corner-lowerleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="17" height="16">
191 <img src="<root_prefix>Pics/corner-lowerright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
193 <td width=<page-horiz-space>></td>
194 <td width=100% valign=bottom align=right><page-footer></td>