2058281e17513eb9d6b5e6003be2669138c6738b
3 require 'inc/init.php';
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 '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
10 echo "<link rel=stylesheet type='text/css' href=pi.css />\n";
11 echo "<link rel=icon href='" . getFaviconURL() . "' type='image/x-icon' />";
12 echo "<style type='text/css'>\n";
13 // Print style information
14 foreach (array ('F', 'A', 'U', 'T', 'Th', 'Tw', 'Thw') as $statecode)
16 echo "td.state_${statecode} {\n";
17 echo "\ttext-align: center;\n";
18 echo "\tbackground-color: #" . (getConfigVar ('color_' . $statecode)) . ";\n";
19 echo "\tfont: bold 10px Verdana, sans-serif;\n";
28 border
:1px solid green
;
31 <script language
='javascript' type
='text/javascript' src
='js/live_validation.js'></script
>
32 <script type
="text/javascript">
34 document
.add_new_range
.range
.setAttribute('match', "^\\d\\d?\\d?\\.\\d\\d?\\d?\\.\\d\\d?\\d?\\.\\d\\d?\\d?\\/\\d\\d?$");
42 <table border
=0 cellpadding
=0 cellspacing
=0 width
='100%' height
='100%' class=maintable
>
45 <table width
='100%' cellspacing
=0 cellpadding
=2 border
=0>
47 <td valign
=top
><a href
='http://racktables.org/'><?php
printImageHREF ('logo'); ?
></a
></td
>
48 <td valign
=top
><div
class=greeting
><?php
printGreeting(); ?
></div
></td
>
55 <td
class="menubar" colspan
=2>
56 <table border
="0" width
="100%" cellpadding
="3" cellspacing
="0">
58 <?php
showPathAndSearch ($pageno); ?
>
66 showTabs ($pageno, $tabno);
73 if (isset ($tabhandler[$pageno][$tabno]))
75 if (isset ($page[$pageno]['bypass']) && isset ($page[$pageno]['bypass_type']))
77 switch ($page[$pageno]['bypass_type'])
80 assertUIntArg ($page[$pageno]['bypass']);
83 assertUIntArg ($page[$pageno]['bypass'], TRUE);
86 showError ("Dispatching error for bypass parameter");
89 $tabhandler[$pageno][$tabno] ($_REQUEST[$page[$pageno]['bypass']]);
92 $tabhandler[$pageno][$tabno] ();
94 elseif (isset ($page[$pageno]['handler']))
95 $page[$pageno]['handler'] ($tabno);
97 showError ("Failed to find handler for page '${pageno}', tab '${tabno}'");