r1135 + fix quoting for the quickstart text
[racktables] / index.php
CommitLineData
e673ee24
DO
1<?
2
3require 'inc/init.php';
4authorize();
5
6echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
7echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'."\n";
8echo '<head><title>' . getTitle ($pageno, $tabno) . "</title>\n";
9echo "<link rel=stylesheet type='text/css' href=pi.css />\n";
10echo "<link rel=icon href='" . getFaviconURL() . "' type='image/x-icon' />";
11echo "<style type='text/css'>\n";
12// Print style information
13foreach ($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<?
56if (isset ($page[$pageno]['handler']))
57 $page[$pageno]['handler'] ($tabno);
58else
59 showError ("Failed to find handler for page '${pageno}'");
60?>
61 </td>
62 </tr>
63 </table>
64</body>
65</html>