Removed the link to the Online Shop since it's neither finished nor
[infodrom.org/infocon.infodrom.org] / Styles / infocon.style
1 # ========== Abstand berechnen ==========
2 # in ePerl: $root_prefix
3 # in WML: <get-var root_prefix>
4 <:
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);
9 :>
10 <if <not <get-var root_prefix>>
11   <define-tag root_prefix><: print "$root_prefix"; :></define-tag>
12   "<: $root_prefix = \"<get-var root_prefix>\"; :>"
13 >
14
15
16 # ========== Page footer ==========
17 #
18 # Sollte eigentlich in <address></address> eingefaßt sein, kursiv sieht's aber nicht aus.
19 #
20 <define-tag page-footer>
21 # &copy; = &#169;
22 <font face="Helvetica,Arial" size="-1">&copy; <a href="<root_prefix>impressum.html">InfoCon</a>, <:
23 @months =
24 #    ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
25     ("Dummy", "Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
26
27 #($date_sec,$date_min,$date_hour,$date_mday,$date_mon,$date_year,$date_wday,$date_isdst)
28 #    = localtime(); $date_year += 1900;
29 #printf "%d %s %d", $date_mday, $months[$date_mon], $date_year;
30
31 "<get-var WML_SRC_ISOTIME>" =~ /^(\d+)-(\d+)-(\d+)\s/;
32
33 printf "Letzte Änderung: %d. %s %d", $3, $months[$2], $1;
34 :></font>
35 </define-tag>
36
37
38 # ========== Page ==========
39 #
40 <define-tag page-horiz-space>10</define-tag>
41 <define-tag page endtag=required>
42 <set-var %attributes>
43
44 <if <not <get-var title>>
45     <set-var title="InfoCon - Information & Consulting">>
46
47 # Titel im linken Submenü
48 <if <not <get-var menu>>
49     <set-var menu="<div align=center>&nbsp;</div><br>">
50     <set-var menu="<div align=center><b>Infos</b></div><br>">
51 >
52
53 <html>
54 <head>
55 <title><get-var title></title>
56 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
57 </head>
58
59 <body bgcolor=#ffffff>
60
61 <table cellspacing=0 cellpadding=0 border=0 width=100%>
62
63 <tr>
64   <td width=90><img src="<root_prefix>Pics/infocon-90.png" align=center alt="[InfoCon]" width=90 height=122></td>
65   <td width=<page-horiz-space>></td>
66   <td width=100%>
67         <h1 align=center><font face=Helvetica>Information &amp; Consulting</font></h1>
68
69 # Anfang der Menü-Tabelle
70 <table bgcolor=#5dbbf9 cellspacing=0 cellpadding=0 border=0 width=100%>
71 <tr>
72 <td><img src="<root_prefix>Pics/corner-upperleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="16" height="16"></td>
73 <td rowspan=2 align=center>
74
75 <:
76     # @menu = ('Infos','Dienstleistungen','Shop');
77     @menu = ('Infos','Dienstleistungen');
78     %menu_dir = ('Infos'            => 'infos',
79                  'Dienstleistungen' => 'service',
80                  'Shop'             => 'shop',
81                  );
82     %menu_width = ('Infos'            => 50,
83                    'Dienstleistungen' => 120,
84                    'Shop'             => 50,
85                    );
86     $menu_default = 'hspace="4" vspace="7" height="18" align="middle" border="0"';
87
88     foreach $rubrik (@menu) {
89         $dir = $menu_dir{$rubrik};
90         if ("<get-var WML_SRC_DIRNAME>" =~ /src\/$dir/) {
91             if ("<get-var WML_SRC_BASENAME>" eq "index") {
92                 # No link
93                 printf '<img src="%sPics/menu-%s.press.png" width="%d" alt="[%s]" %s>',
94                     $root_prefix, $dir, $menu_width{$rubrik}, $rubrik, $menu_default;
95             } else {
96                 # We're in but link required
97                 printf '<a href="%s%s/"><img src="%sPics/menu-%s.press.png" width="%d" alt="[%s]" %s></a>',
98                     $root_prefix, $dir, $root_prefix, $dir, $menu_width{$rubrik}, $rubrik, $menu_default;
99             }
100         } else {
101             # Link required
102             printf '<a href="%s%s/"><img src="%sPics/menu-%s.png" width="%d" alt="[%s]" %s></a>',
103                 $root_prefix, $dir, $root_prefix, $dir, $menu_width{$rubrik}, $rubrik, $menu_default;
104         }
105     }
106 :>
107
108 </td>
109 <td><img src="<root_prefix>Pics/corner-upperright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16"></td>
110 </tr>
111
112 # Untere Zeile, nur die Ecken
113 <tr>
114 <td><img src="<root_prefix>Pics/corner-lowerleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="16" height="16"></td>
115 <td><img src="<root_prefix>Pics/corner-lowerright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16"></td>
116 </tr>
117 </table>
118 # Ende der Menü-Tabelle
119   </td>
120 </tr>
121
122 <tr>
123   <td width=90 valign=top bgcolor=#5dbbf9>
124     <img src="<root_prefix>Pics/corner-upperleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
125     <img src="<root_prefix>Pics/corner-upperright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
126   <font face="Helvetica"><get-var menu>
127
128 #include "submenu.inc"
129
130   </font>
131
132 </td>
133   <td width=<page-horiz-space>></td>
134   <td width=100% valign=top>
135   <table width=100% border=0 cellspacing=2 cellpadding=0><tr><td width=100% align=left valign=top>
136   <font face=Helvetica>
137
138 #  <td width=100% valign=top><font face=Helvetica>
139
140   %body
141
142   </font>
143   </td></tr></table>
144   </td>
145 </tr>
146 <tr>
147   <td width=90 valign=bottom bgcolor=#5dbbf9>
148     <img src="<root_prefix>Pics/corner-lowerleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="17" height="16">
149     <img src="<root_prefix>Pics/corner-lowerright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
150   </td>
151   <td width=<page-horiz-space>></td>
152   <td width=100% valign=bottom align=right><page-footer></td>
153 </tr>
154 </table>
155 </body>
156 </html>
157
158 </define-tag>