Code

netware und win32 fixes from guenter
[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 <protect>
25 <!--[if lt IE 7]><script src="$(ROOT)/inc/IE7/ie7-standard-p.js" type="text/javascript"></script><![endif]-->
26 </protect>
27 <style type="text/css">
28 <!--/* <![CDATA[ */
29 /* ie5 for mac thinks this comment does not end here because of the backslash \*/
30 @import url('$(ROOT)/inc/design.css');
31 ## @import url('$(ROOT)/inc/design_$(TYPE).css');
32 /* ]]> */-->
33 </style>
34 </head>
35 <body>
36 <table id="frame">
37 <tr>
38 <td valign="top" id="menucell">
39 <!-- ############################# -->
40 <!-- # MENU -->
41 <!-- ############################# -->
42 <div id="menu">
43 <h2 class="legacy">Menu</h2>
44 <navbar:render name=main menumode=inner nohints txtonly select=$(PAGE)/>
45 <br/>
46 <br/>
47 <br/>
48 <a href="http://people.ee.ethz.ch/oetiker/wish"><img border="0" src="$(ROOT)/inc/button.png"/></a><br/>
49 <br/>
50 <br/>
51 <div>
52 <iframe width="120" height="50" name="bandwidth" frameborder="0" src="$(ROOT)/hoster.html"></iframe>
53 </div>
54 <br/>
55 <br/>
56 </div>
57 </td>
58 <!-- ############################# -->
59 <!-- # Logo and Body -->
60 <!-- ############################# -->
61 <td id="bodycell">
62 # all mirrors seem dead currently
63 <div id="mirrors">
64 <A HREF="http://oss.oetiker.ch/rrdtool/<where/>">Swiss Original</A>.&nbsp;Mirrors: 
65 <A HREF="http://rrdtool.mirror.graemef.net/<where/>">UK</a><!--Graeme Fowler <graeme@graemef.net>-->
67 ##<A HREF="http://rrdtool.planetmirror.com/<where/>">AU</A><!--jason andrade <jason@dstc.edu.au>-->
68 <A HREF="http://rrdtool.cs.pu.edu.tw/<where/>">TW</A><!--Hsun-Chang Chang <hsunchang@gmail.com>-->
69 ##<A HREF="http://ftp.heanet.ie/mirrors/people.ee.ethz.ch/%257Eoetiker/webtools/rrdtool/<where/>">IE</A><!--Colm MacCárthaigh <colm.maccarthaigh@heanet.ie>-->
70 ##<A HREF="http://rrdtool.cyclone.se/<where/>">SE</A><!--Hans Engren <hans@cyclone.se>-->
71 <A HREF="http://rrdtool.trexle.net/<where/>">US</A><!--Hossam Hossny <hossam@trexle.com>-->
72 <A HREF="http://rrdtool.paracoda.com/<where/>">CA</A><!--Hossam Hossny <admin@paracoda.com>-->
73 <A HREF="http://rrdtool.PlaySystems.ro/<where/>">RO</a><!--dan.draghici@ulbsibiu.ro-->
74 </div>
75 <div id="logo">
76 <div class="legacy">
77 RRDtool
78 <hr/>
79 </div>
80 </div>
81 <!-- ############################# -->
82 <!-- # BODY -->
83 <!-- ############################# -->
84 <div id="body">
85 {#Body#}
86 </div>
87 </td>
88 </tr>
89 <tr>
90 <td id="leftcornercell"></td>
91 <td id="footcell">
92 <!-- ############################# -->
93 <!-- # FOOTER -->
94 <!-- ############################# -->
95 <div id="address">
96 <small>
97 <perl>
98 <protect pass=2>
99 use POSIX qw(strftime LC_TIME setlocale); 
100 foreach my $l (qw($(LANGS))){
101         my $lang = lc($l) eq 'de' ? 'de_CH' : $l;
102         $lang =~ s/^en.*/sv/i;  
103         setlocale(LC_TIME,$lang);
104         my $year = strftime "%Y", localtime;
105         my $date = strftime "%x", localtime("$(WML_SRC_TIME)"); 
106         q{$(AUTHOR)} =~ m{(.+\S+)\s*(<.+>|http://.+)} || die q{No Match for $(AUTHOR)}."\n"; 
107         my $text=$1; my $url=$2; $url =~ s/<(\S+)(?:\@|_at_)(\S+)>/mailto:$1\@removethis.$2/;
108         my $LANG = uc("LANG_$l");
109         print <<LINE
110 [$LANG:$date | <A HREF="$url">$text</A>:$LANG]
111 LINE
113 </protect>
114 </perl>
115 </small>
116 </div>
117 <perl>
118 if ( -s "$(WML_SRC_BASENAME).en.html" > 15000 ) {
119 print <<'GOOGLEAD';
120 <p>
121 <script type="text/javascript"><!--
122 google_ad_client = "pub-8135238818549668";
123 google_ad_width = 728;
124 google_ad_height = 90;
125 google_ad_format = "728x90_as";
126 google_ad_type = "text_image";
127 google_ad_channel ="6085696737";
128 google_color_border = "ffffff";
129 google_color_bg = "ffffff";     
130 google_color_link = "2c3fbf";      
131 google_color_url = "6851b0";      
132 google_color_text = "000000";
133 //--></script>
134 <script type="text/javascript"
135   src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
136 </script>
137 </p>
138 GOOGLEAD
140 </perl>
141 </td></tr>
142 </table>
143 <hr class="legacy"/>
144 <p class="legacy" style="border-width: 1px; border-color: red; padding: 5px;">
145 <en><b>NOTE:</b> The content of this website is accessible with any browser. The graphical
146 design though relies completely on CSS2 styles. If you see this text, this means
147 that your browser does not support CSS2. Consider upgrading to a standard conformant
148 browser like Mozilla <a href="http://www.getfirefox.com">Firefox</a> or
149 <a href="http://www.opera.com">Opera</a> but also Apple's <a href="http://www.apple.com/safari/">Safari</a>
150 or KDE's <a href="http://www.konqueror.org">Konqueror</a> for example.
151 It may also be that you are looking at a mirror page which did not copy <a href="$(ROOT)/inc/design.css">the CSS</a> for this page. Or if some pictu
152 res are missing, then the mirror may not have picked up the contents of the <a href="$(ROOT)/inc/">inc</a> directory.</en>
153 #<de><b>HINWEIS:</b> Diese Website funktioniert mit jedem Browser. Die graphische Präsentation jedoch
154 #basiert komplett auf CSS2. Beispiele für CSS2 konforme Browser sind zum Beispiel  <a href="http://www.getfirefox.com">Firefox</a>
155 #<a href="http://www.opera.com">Opera</a> oder auch <a href="http://www.apple.com/safari/">Safari</a> von Apple und
156 #<a href="http://www.konqueror.org">Konqueror</a> aus dem KDE Projekt.
157 #</de>
158 </p> 
159 <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
160 </script>
161 <script type="text/javascript">
162 _uacct = "UA-374525-1";
163 urchinTracker();
164 </script>
165 </body>
166 </html>
168 # All the rest goes into Body
169 ..Body>>