Add future framwork
[infodrom.org/service.infodrom.org] / Styles / service.style
index c64cc8d..5b33d99 100644 (file)
 <if <not <get-var title>>
     <set-var title="Infodrom Service">>
 
+<if <default-func>
+  <if <not <get-var func>>
+    <set-var func=<default-func>>
+  >
+>
+
 <if <not <get-var pagetitle>>
   <if <not <get-var func>>
     <set-var pagetitle=<get-var title>>
 <title><get-var pagetitle></title>
 <meta name="author" content="joey@infodrom.org (Martin Schulze)">
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link href="<root_prefix>infodrom.css" rel="stylesheet" type="text/css">
 </head>
-<body bgcolor="#<page-bgcolor>" text="#<page-textcolor>" vlink="#<page-vlink>" alink="#<page-alink>" link="#<page-link>">
+<body>
 
-<table width=100% border=0 cellpadding=0 cellspacing=0>
+<table class=font width=100% border=0 cellpadding=0 cellspacing=0>
 <tr>
-<td align=left valign=top width=10% bgcolor=#<submenu-bgcolor>><font face="Helvetica,Arial" size=-1 color="#<submenu-textcolor>">
+<td align=left valign=top width=10% bgcolor=#<submenu-bgcolor>><font size=-1 color="#<submenu-textcolor>">
 
-<table width=100% border=0 cellpadding=1 cellspacing=0 bgcolor=#<white>>
+<table class=font width=100% border=0 cellpadding=1 cellspacing=0 bgcolor=#<white>>
 <tr><td align=left valign=top>
 <img src=<root_prefix>pix/infocon-90.png alt=""><p>
 </td></tr></table><p>
 
 <td valign=top><img src=<root_prefix>pix/imgdot-1x1-transp.gif width=3 height=0 alt=""></td>
 
-<td valign=top align=left width=90%><font face="Helvetica,Arial">
+<td valign=top align=left width=90%>
 
-<table width=100% border=0 cellpadding=1 cellspacing=0 bgcolor=#<bar-bgcolor>>
+<table class=font width=100% border=0 cellpadding=1 cellspacing=0 bgcolor=#<bar-bgcolor>>
 <tr>
-<td align=left><font face="Helvetica,Arial" color=#<bar-textcolor>>
+<td align=left><font color=#<bar-textcolor>>
 &nbsp;<strong><get-var func></strong>
 </font></td>
-<td align=right><font face="Helvetica,Arial" color=#<bar-textcolor>>
-<strong>Infodrom Service</strong>&nbsp;
-</font></td>
+<td align=right>
+<a href="<root_prefix>index.html"><font color="#<bar-textcolor>"><strong>Infodrom Service</strong></font></a></a>&nbsp;
+</td>
 </tr>
 </table>
 
@@ -63,7 +70,7 @@
 
 %body
 
-</font></td>
+</td>
 </tr>
 </table>
 
 
 <restore title function pagetitle>
 </define-tag>
+
+<define-tag calendar_init>
+<script type="text/javascript" src="<root_prefix>calendar.js"></script>
+<script type="text/javascript">
+caldays = new Array('S','M','D','M','D','F','S');
+mn = new Array('Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez');
+var opts ={past: true, startat: 1, close: true, delim: '.', imgpath: '<root_prefix>pix/'};
+calendar(opts);
+</script>
+<style type="text/css">
+img.calendar {
+  margin-bottom: %0px;
+}
+</style>
+</define-tag>
+
+<define-tag calendar>
+<img class="calendar" src="<root_prefix>pix/calendar.gif" onclick="event.cancelBubble=true;popcalendar('%0');">
+</define-tag>
+
+<define-tag future>
+<script type="text/javascript" src="<root_prefix>/jquery-2.1.0.min.js"></script>
+<?php
+require_once('<root_prefix>/config.php');
+require_once('<root_prefix>/future.php');
+?>
+</define-tag>