Code

watermartk feature for rrdgraph by Ronan Mullally
[rrdtool-all.git] / website / inc / template.inc
1 # this seems to confuse just too many things out there ... 
2 # guess following the standard is not there yet
3 # <?xml version="1.0" encoding="iso-8859-15"?>
4 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5 # this must be the very first line to make doc-type switching work on IE
6 #use wml::std::logo
7 #use wml::std::tags
8 #use wml::des::space
9 #use wml::des::imgdot
10 #use wml::std::grid
11 #use wml::fmt::url
12 #include <inc/langset.inc>
13 #include <inc/html.inc>
14 #include <inc/customtags.inc>
15 #use wml::des::navbar
16 #include <inc/navbar-def.inc>
17 #include <$(ROOT)/navbar.inc>
18 <html lang="<lang:star: * />" xmlns="http://www.w3.org/1999/xhtml">
19 <head>
20 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15" />
21 <link* REL="icon" HREF="$(ROOT)/inc/favicon.ico" TYPE="image/ico" />
22 ..Title!>>RRDtool - Page without a Title<<..
23 <title*>RRDtool - {#Title#}</title*>
24 <!-- Andrew Clover is THE MAN. He made internet explorer more or less
25      more css2 compliant!  http://www.doxdesk.com/software/ -->
26 <script type="text/javascript" src="$(ROOT)/inc/position.js"></script> <!-- left and right -->
27 <script type="text/javascript" src="$(ROOT)/inc/fixed.js"></script>    <!-- fixed positioning -->
28 <style type="text/css">
29 <!--/* <![CDATA[ */
30 /* ie5 for mac thinks this comment does not end here because of the backslash \*/
31 @import url('$(ROOT)/inc/design.css');
32 ## @import url('$(ROOT)/inc/design_$(TYPE).css');
33 /* ]]> */-->
34 </style>
35 </head>
36 <body>
37 <table id="frame">
38 <tr>
39 <td valign="top" id="menucell">
40 <!-- ############################# -->
41 <!-- # MENU -->
42 <!-- ############################# -->
43 <div id="menu">
44 <h2 class="legacy">Menu</h2>
45 <navbar:render name=main menumode=inner nohints txtonly select=$(PAGE)/>
46 <br/>
47 <br/>
48 <br/>
49 <a href="http://people.ee.ethz.ch/oetiker/wish"><img border="0" src="$(ROOT)/inc/button.png"/></a><br/>
50 #<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
51 #<input type="hidden" name="cmd" value="_xclick"/>
52 #<input type="hidden" name="business" value="tobias@oetiker.ch"/>
53 #<input type="hidden" name="item_name" value="Tobi's OpenSource Projects MRTG / RRDtool / SmokePing"/>
54 #<input type="hidden" name="item_number" value="appreciators"/>
55 #<input type="hidden" name="no_note" value="1"/>
56 #<input type="hidden" name="currency_code" value="USD"/>
57 #<input type="hidden" name="tax" value="0"/>
58 #<input type="image" src="https://www.paypal.com/images/x-click-but04.gif" name="submit" alt="Sponsor RRDtool with PayPal"/>
59 #</form>
60 </div>
61 </td>
62 <!-- ############################# -->
63 <!-- # Logo and Body -->
64 <!-- ############################# -->
65 <td id="bodycell">
66 # all mirrors seem dead currently
67 <div id="mirrors">
68 <A HREF="http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/<where/>">Swiss Original</A>.&nbsp;Mirrors: 
69 <A HREF="http://rrdtool.mirror.graemef.net/<where/>">UK</a><!--Graeme Fowler <graeme@graemef.net>-->
71 #<A HREF="http://rrdtool.planetmirror.com/<where/>">AU</A><!--jason andrade <jason@dstc.edu.au>-->
72 <A HREF="http://rrdtool.cs.pu.edu.tw/<where/>">TW</A><!--Hsun-Chang Chang <hsunchang@gmail.com>-->
73 #<A HREF="http://ftp.heanet.ie/mirrors/people.ee.ethz.ch/%257Eoetiker/webtools/rrdtool/<where/>">IE</A><!--Colm MacCárthaigh <colm.maccarthaigh@heanet.ie>-->
74 #<A HREF="http://rrdtool.cyclone.se/<where/>">SE</A><!--Hans Engren <hans@cyclone.se>-->
75 <A HREF="http://rrdtool.trexle.net/<where/>">US</A><!--Hossam Hossny <hossam@trexle.com>-->
76 <A HREF="http://rrdtool.paracoda.com/<where/>">CA</A><!--Hossam Hossny <admin@paracoda.com>-->
77 </div>
78 <div id="logo">
79 <div class="legacy">
80 RRDtool
81 <hr/>
82 </div>
83 </div>
84 <!-- ############################# -->
85 <!-- # BODY -->
86 <!-- ############################# -->
87 <div id="body">
88 {#Body#}
89 </div>
90 </td>
91 </tr>
92 <tr>
93 <td id="leftcornercell"></td>
94 <td id="footcell">
95 <!-- ############################# -->
96 <!-- # FOOTER -->
97 <!-- ############################# -->
98 <div id="address">
99 <small>
100 <perl>
101 <protect pass=2>
102 use POSIX qw(strftime LC_TIME setlocale); 
103 foreach my $l (qw($(LANGS))){
104         my $lang = lc($l) eq 'de' ? 'de_CH' : $l;
105         $lang =~ s/^en.*/sv/i;  
106         setlocale(LC_TIME,$lang);
107         my $year = strftime "%Y", localtime;
108         my $date = strftime "%x", localtime("$(WML_SRC_TIME)"); 
109         q{$(AUTHOR)} =~ m{(.+\S+)\s*(<.+>|http://.+)} || die q{No Match for $(AUTHOR)}."\n"; 
110         my $text=$1; my $url=$2; $url =~ s/<(\S+)(?:\@|_at_)(\S+)>/mailto:$1\@removethis.$2/;
111         my $LANG = uc("LANG_$l");
112         print <<LINE
113 [$LANG:$date | <A HREF="$url">$text</A>:$LANG]
114 LINE
116 </protect>
117 </perl>
118 </small>
119 </div>
120 </td></tr>
121 </table>
122 <hr class="legacy"/>
123 <p class="legacy" style="border-width: 1px; border-color: red; padding: 5px;">
124 <en><b>NOTE:</b> The content of this website is accessible with any browser. The graphical
125 design though relies completely on CSS2 styles. If you see this text, this means
126 that your browser does not support CSS2. Consider upgrading to a standard conformant
127 browser like Mozilla <a href="http://www.getfirefox.com">Firefox</a> or
128 <a href="http://www.opera.com">Opera</a> but also Apple's <a href="http://www.apple.com/safari/">Safari</a>
129 or KDE's <a href="http://www.konqueror.org">Konqueror</a> for example.</en>
130 #<de><b>HINWEIS:</b> Diese Website funktioniert mit jedem Browser. Die graphische Präsentation jedoch
131 #basiert komplett auf CSS2. Beispiele für CSS2 konforme Browser sind zum Beispiel  <a href="http://www.getfirefox.com">Firefox</a>
132 #<a href="http://www.opera.com">Opera</a> oder auch <a href="http://www.apple.com/safari/">Safari</a> von Apple und
133 #<a href="http://www.konqueror.org">Konqueror</a> aus dem KDE Projekt.
134 #</de>
135 </p> 
136 </body>
137 </html>
139 # All the rest goes into Body
140 ..Body>>