Change varaibles.php to use a vertical section menu; slightly rough initial version.

This commit is contained in:
justin 2007-12-17 19:31:09 +00:00
parent 18aafbea9c
commit b366d7bf4e

View File

@ -65,20 +65,24 @@
$q=mysql_query("SELECT DISTINCT(category) AS cat FROM config ORDER BY cat"); $q=mysql_query("SELECT DISTINCT(category) AS cat FROM config ORDER BY cat");
echo "<br />"; echo "<br />";
echo "<table width=\"90%\" align=\"center\" cellspacing=0 cellpadding=0 border=1>"; echo "\n<table align=\"left\" valign=\"top\" cellspacing=0 cellpadding=5px border=0>";
echo "<tr>";
echo "<tr><td width=\"10%\" style=\"padding-right=1em; border-right: 1px solid black;\">";
echo "<table align=\"center\" cellspacing=0 cellpadding=5>";
while($r=mysql_fetch_object($q)) while($r=mysql_fetch_object($q))
{ {
echo "<td align=\"center\">"; echo "<tr>";
echo "<td align=\"center\">";
if($r->cat==$category) if($r->cat==$category)
echo "<b>$r->cat</b>"; echo "<b>$r->cat</b>";
else else
echo "<a href=\"".$_SERVER['PHP_SELF']."?category=".urlencode($r->cat)."\">$r->cat</a>"; echo "<a href=\"".$_SERVER['PHP_SELF']."?category=".urlencode($r->cat)."\">$r->cat</a>";
echo "</td>"; echo "</td>";
echo "</tr>\n";
} }
echo "</tr>";
echo "</table>"; echo "</table>";
echo "<hr />";
echo "</td><td>";
if($category) if($category)
{ {
@ -121,5 +125,7 @@ else
echo i18n("Please choose a configuration category"); echo i18n("Please choose a configuration category");
} }
echo "</td></tr></table>";
send_footer(); send_footer();
?> ?>