Changed the font size and fixed a spelling error
[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_dir = ('Infos'            => 'infos',
78                  'Dienstleistungen' => 'service',
79                  'Shop'             => 'shop',
80                  );
81     %menu_width = ('Infos'            => 50,
82                    'Dienstleistungen' => 120,
83                    'Shop'             => 50,
84                    );
85     $menu_default = 'hspace="4" vspace="7" height="18" align="middle" border="0"';
86
87     foreach $rubrik (@menu) {
88         $dir = $menu_dir{$rubrik};
89         if ("<get-var WML_SRC_DIRNAME>" =~ /src\/$dir/) {
90             if ("<get-var WML_SRC_BASENAME>" eq "index") {
91                 # No link
92                 printf '<img src="%sPics/menu-%s.press.png" width="%d" alt="[%s]" %s>',
93                     $root_prefix, $dir, $menu_width{$rubrik}, $rubrik, $menu_default;
94             } else {
95                 # We're in but link required
96                 printf '<a href="%s%s/"><img src="%sPics/menu-%s.press.png" width="%d" alt="[%s]" %s></a>',
97                     $root_prefix, $dir, $root_prefix, $dir, $menu_width{$rubrik}, $rubrik, $menu_default;
98             }
99         } else {
100             # Link required
101             printf '<a href="%s%s/"><img src="%sPics/menu-%s.png" width="%d" alt="[%s]" %s></a>',
102                 $root_prefix, $dir, $root_prefix, $dir, $menu_width{$rubrik}, $rubrik, $menu_default;
103         }
104     }
105 :>
106
107 </td>
108 <td><img src="<root_prefix>Pics/corner-upperright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16"></td>
109 </tr>
110
111 # Untere Zeile, nur die Ecken
112 <tr>
113 <td><img src="<root_prefix>Pics/corner-lowerleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="16" height="16"></td>
114 <td><img src="<root_prefix>Pics/corner-lowerright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16"></td>
115 </tr>
116 </table>
117 # Ende der Menü-Tabelle
118   </td>
119 </tr>
120
121 <tr>
122   <td width=90 valign=top bgcolor=#5dbbf9>
123     <img src="<root_prefix>Pics/corner-upperleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
124     <img src="<root_prefix>Pics/corner-upperright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
125   <font face="Helvetica"><get-var menu>
126
127 #include "submenu.inc"
128
129   </font>
130
131 </td>
132   <td width=<page-horiz-space>></td>
133   <td width=100% valign=top>
134   <table width=100% border=0 cellspacing=2 cellpadding=0><tr><td width=100% align=left valign=top>
135   <font face=Helvetica>
136
137 #  <td width=100% valign=top><font face=Helvetica>
138
139   %body
140
141   </font>
142   </td></tr></table>
143   </td>
144 </tr>
145 <tr>
146   <td width=90 valign=bottom bgcolor=#5dbbf9>
147     <img src="<root_prefix>Pics/corner-lowerleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="17" height="16">
148     <img src="<root_prefix>Pics/corner-lowerright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
149   </td>
150   <td width=<page-horiz-space>></td>
151   <td width=100% valign=bottom align=right><page-footer></td>
152 </tr>
153 </table>
154 </body>
155 </html>
156
157 </define-tag>