Update list on change event
[infodrom.org/service.infodrom.org] / Styles / service.style
1 #include <basic.style>
2 #include <tools.style>
3
4 # <page [title=] [func=] [pagetitle=]>
5 #       Define the actual page
6 #
7 #       title=          headline for the page, default: "Infodrom Service"
8 #       func=           Function of the page, left bar
9 #       pagetitle=      title for the page, default <func>: <title>
10
11 <define-tag page endtag=required>
12 <preserve title func pagetitle>
13 <set-var %attributes>
14
15 <if <not <get-var title>>
16     <set-var title="Infodrom Service">>
17
18 <if <default-func>
19   <if <not <get-var func>>
20     <set-var func=<default-func>>
21   >
22 >
23
24 <if <not <get-var pagetitle>>
25   <if <not <get-var func>>
26     <set-var pagetitle=<get-var title>>
27     <set-var pagetitle="<get-var func>: <get-var title>">
28   >
29 >
30
31 <html>
32 <head>
33 <title><get-var pagetitle></title>
34 <meta name="author" content="joey@infodrom.org (Martin Schulze)">
35 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
36 <link href="<root_prefix>infodrom.css" rel="stylesheet" type="text/css">
37 <script type="text/javascript" src="<root_prefix>/jquery-2.1.0.min.js"></script>
38 </head>
39 <body>
40
41 <table class=font width=100% border=0 cellpadding=0 cellspacing=0>
42 <tr>
43 <td align=left valign=top width=10% bgcolor=#<submenu-bgcolor>><font size=-1 color="#<submenu-textcolor>">
44
45 <table class=font width=100% border=0 cellpadding=1 cellspacing=0 bgcolor=#<white>>
46 <tr><td align=left valign=top>
47 <img src=<root_prefix>pix/infocon-90.png alt=""><p>
48 </td></tr></table><p>
49
50 #include "submenu.inc"
51
52 <p>
53 </font></td>
54
55 <td valign=top><img src=<root_prefix>pix/imgdot-1x1-transp.gif width=3 height=0 alt=""></td>
56
57 <td valign=top align=left width=90% id="content">
58
59 <table class=font width=100% border=0 cellpadding=1 cellspacing=0 bgcolor=#<bar-bgcolor>>
60 <tr>
61 <td align=left><font color=#<bar-textcolor>>
62 &nbsp;<strong><get-var func></strong>
63 </font></td>
64 <td align=right>
65 <a href="<root_prefix>index.html"><font color="#<bar-textcolor>"><strong>Infodrom Service</strong></font></a></a>&nbsp;
66 </td>
67 </tr>
68 </table>
69
70 <h3><get-var title></h3>
71
72 %body
73
74 </td>
75 </tr>
76 </table>
77
78 <page-footer>
79 </body>
80 </html>
81
82 <restore title function pagetitle>
83 </define-tag>
84
85 <define-tag calendar_init>
86 <script type="text/javascript" src="<root_prefix>calendar.js"></script>
87 <script type="text/javascript">
88 caldays = new Array('S','M','D','M','D','F','S');
89 mn = new Array('Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez');
90 var opts ={past: true, startat: 1, close: true, delim: '.', imgpath: '<root_prefix>pix/'};
91 calendar(opts);
92 </script>
93 <style type="text/css">
94 img.calendar {
95   margin-bottom: %0px;
96 }
97 </style>
98 </define-tag>
99
100 <define-tag calendar>
101 <img class="calendar" src="<root_prefix>pix/calendar.gif" onclick="event.cancelBubble=true;popcalendar('%0');">
102 </define-tag>
103
104 <define-tag future>
105 <?php
106 $dir = getcwd();
107 while (strlen($dir) > 1) {
108   if (file_exists($dir.'/config.php')) {
109     require_once($dir.'/config.php');
110     break;
111   }
112   $dir = dirname($dir);
113 }
114
115 require_once('<root_prefix>/future.php');
116 ?>
117 </define-tag>