#include <basic.style>
#include <tools.style>
-# <page [title=] [func=]>
+# <page [title=] [func=] [pagetitle=]>
# Define the actual page
#
-# title= title for the page, default: "Infodrom Service"
-# func= Function of the page, left bar
+# title= headline for the page, default: "Infodrom Service"
+# func= Function of the page, left bar
+# pagetitle= title for the page, default <func>: <title>
<define-tag page endtag=required>
-<preserve title func>
+<preserve title func pagetitle>
<set-var %attributes>
<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>>
+ <set-var pagetitle="<get-var func>: <get-var title>">
+ >
+>
+
<html>
<head>
-<title><get-var title></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">
+<script type="text/javascript" src="<root_prefix>/jquery-2.1.0.min.js"></script>
</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% id="content">
-<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>>
<strong><get-var func></strong>
</font></td>
-<td align=right><font face="Helvetica,Arial" color=#<bar-textcolor>>
-<strong>Infodrom Service</strong>
-</font></td>
+<td align=right>
+<a href="<root_prefix>index.html"><font color="#<bar-textcolor>"><strong>Infodrom Service</strong></font></a></a>
+</td>
</tr>
</table>
+<h3><get-var title></h3>
+
%body
-</font></td>
+</td>
</tr>
</table>
</body>
</html>
-<restore title function>
+<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>
+<?php
+$dir = getcwd();
+while (strlen($dir) > 1) {
+ if (file_exists($dir.'/config.php')) {
+ require_once($dir.'/config.php');
+ break;
+ }
+ $dir = dirname($dir);
+}
+
+require_once('<root_prefix>/future.php');
+?>
</define-tag>