r1120 + changed title for portfwd to NATv4
[racktables] / index.php
1 <?
2
3 require 'inc/init.php';
4 authorize();
5
6 echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
7 echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'."\n";
8 echo '<head><title>' . getTitle ($pageno, $tabno) . "</title>\n";
9 echo "<link rel=stylesheet type='text/css' href=pi.css />\n";
10 echo "<link rel=icon href='" . getFaviconURL() . "' type='image/x-icon' />";
11 echo "<style type='text/css'>\n";
12 // Print style information
13 foreach ($color as $statecode => $colorcode)
14 {
15 echo "td.state_${statecode} {\n";
16 echo "text-align: center;\n";
17 echo "background-color: #${colorcode};\n";
18 echo "font: bold 10px Verdana, sans-serif;\n";
19 echo "}\n\n";
20 }
21 ?>
22 </style>
23 </head>
24 <body>
25 <table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%' class=maintable>
26 <tr class=mainheader>
27 <td>
28 <table width='100%' cellspacing=0 cellpadding=2 border=0>
29 <tr>
30 <td valign=top><? printImageHREF ('logo'); ?></td>
31 <td valign=top><div class=greeting><? printGreeting(); ?></div></td>
32 </tr>
33 </table>
34 </td>
35 </tr>
36
37 <tr>
38 <td class="menubar">
39 <table border="0" width="100%" cellpadding="3" cellspacing="0">
40 <tr>
41 <? showPathAndSearch ($pageno); ?>
42 </tr>
43 </table>
44 </td>
45 </tr>
46
47 <tr>
48 <?
49 showTabs ($pageno, $tabno);
50 ?>
51 </tr>
52
53 <tr>
54 <td>
55 <?
56 if (isset ($page[$pageno]['handler']))
57 $page[$pageno]['handler'] ($tabno);
58 else
59 showError ("Failed to find handler for page '${pageno}'");
60 ?>
61 </td>
62 </tr>
63 </table>
64 </body>
65 </html>