forked from science-ation/science-ation
Change varaibles.php to use a vertical section menu; slightly rough initial version.
This commit is contained in:
parent
18aafbea9c
commit
b366d7bf4e
@ -65,20 +65,24 @@
|
||||
|
||||
$q=mysql_query("SELECT DISTINCT(category) AS cat FROM config ORDER BY cat");
|
||||
echo "<br />";
|
||||
echo "<table width=\"90%\" align=\"center\" cellspacing=0 cellpadding=0 border=1>";
|
||||
echo "<tr>";
|
||||
echo "\n<table align=\"left\" valign=\"top\" cellspacing=0 cellpadding=5px border=0>";
|
||||
|
||||
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))
|
||||
{
|
||||
echo "<td align=\"center\">";
|
||||
echo "<tr>";
|
||||
echo "<td align=\"center\">";
|
||||
if($r->cat==$category)
|
||||
echo "<b>$r->cat</b>";
|
||||
else
|
||||
echo "<a href=\"".$_SERVER['PHP_SELF']."?category=".urlencode($r->cat)."\">$r->cat</a>";
|
||||
echo "</td>";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "<hr />";
|
||||
|
||||
echo "</td><td>";
|
||||
|
||||
if($category)
|
||||
{
|
||||
@ -121,5 +125,7 @@ else
|
||||
echo i18n("Please choose a configuration category");
|
||||
}
|
||||
|
||||
echo "</td></tr></table>";
|
||||
|
||||
send_footer();
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user