Convert in-place edit of task to jquery.editable
[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 <script type="text/javascript" src="<root_prefix>/infodrom.js"></script>
39 </head>
40 <body>
41
42 <table class=font width=100% border=0 cellpadding=0 cellspacing=0>
43 <tr>
44 <td align=left valign=top width=10% bgcolor=#<submenu-bgcolor>><font size=-1 color="#<submenu-textcolor>">
45
46 <table class=font width=100% border=0 cellpadding=1 cellspacing=0 bgcolor=#<white>>
47 <tr><td align=left valign=top>
48 <img src=<root_prefix>pix/infocon-90.png alt=""><p>
49 </td></tr></table><p>
50
51 #include "submenu.inc"
52
53 <p>
54 </font></td>
55
56 <td valign=top><img src=<root_prefix>pix/imgdot-1x1-transp.gif width=3 height=0 alt=""></td>
57
58 <td valign=top align=left width=90% id="content">
59
60 <table class=font width=100% border=0 cellpadding=1 cellspacing=0 bgcolor=#<bar-bgcolor>>
61 <tr>
62 <td align=left><font color=#<bar-textcolor>>
63 &nbsp;<strong><get-var func></strong>
64 </font></td>
65 <td align=right>
66 <a href="<root_prefix>index.html"><font color="#<bar-textcolor>"><strong>Infodrom Service</strong></font></a></a>&nbsp;
67 </td>
68 </tr>
69 </table>
70
71 <h3><get-var title></h3>
72
73 %body
74
75 </td>
76 </tr>
77 </table>
78
79 <page-footer>
80 </body>
81 </html>
82
83 <restore title function pagetitle>
84 </define-tag>
85
86 <define-tag calendar_init>
87 <script type="text/javascript" src="<root_prefix>calendar.js"></script>
88 <script type="text/javascript">
89 caldays = new Array('S','M','D','M','D','F','S');
90 mn = new Array('Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez');
91 var opts ={past: true, startat: 1, close: true, delim: '.', imgpath: '<root_prefix>pix/'};
92 calendar(opts);
93 </script>
94 <style type="text/css">
95 img.calendar {
96   margin-bottom: %0px;
97 }
98 </style>
99 </define-tag>
100
101 <define-tag calendar>
102 <img class="calendar" src="<root_prefix>pix/calendar.gif" onclick="event.cancelBubble=true;popcalendar('%0');">
103 </define-tag>
104
105 <define-tag popups>
106 <script type="text/javascript" src="<root_prefix>jquery.udraggable.js"></script>
107 <script type="text/javascript" src="<root_prefix>jquery.event.ue.js"></script>
108 <script type="text/javascript">
109 $(function(){
110     $('div.popup').udraggable({
111         'handle': 'div.popup_title'
112     })
113 });
114 </script>
115 </define-tag>
116
117 <define-tag future>
118 <?php
119 $dir = getcwd();
120 while (strlen($dir) > 1) {
121   if (file_exists($dir.'/config.php')) {
122     require_once($dir.'/config.php');
123     break;
124   }
125   $dir = dirname($dir);
126 }
127
128 require_once('<root_prefix>/future.php');
129 ?>
130 </define-tag>