diff --git a/config/variables.php b/config/variables.php index 7ffa5dbd..9eb26366 100644 --- a/config/variables.php +++ b/config/variables.php @@ -64,15 +64,14 @@ else $category="Global"; $q=mysql_query("SELECT DISTINCT(category) AS cat FROM config ORDER BY cat"); - echo "<br />"; - echo "\n<table align=\"left\" valign=\"top\" cellspacing=0 cellpadding=5px border=0>"; + echo "\n<table valign=\"top\" cellspacing=0 cellpadding=5 border=0>"; - echo "<tr><td width=\"10%\" style=\"padding-right=1em; border-right: 1px solid black;\">"; - echo "<table align=\"center\" cellspacing=0 cellpadding=5>"; + echo "<tr><td width=\"120\" style=\"border-right: 1px solid black;\">"; + echo "<table cellspacing=0 cellpadding=3 border=0>"; while($r=mysql_fetch_object($q)) { echo "<tr>"; - echo "<td align=\"center\">"; + echo "<td align=\"right\">"; if($r->cat==$category) echo "<b>$r->cat</b>"; else @@ -86,15 +85,14 @@ if($category) { - if($category=="Special") { + echo "<h3>".i18n("Special Configuration Settings")."</h3>"; echo "<form method=\"post\" action=\"variables.php\">"; echo "<input type=\"hidden\" name=\"action\" value=\"save\">\n"; echo "<input type=\"hidden\" name=\"category\" value=\"Special\">\n"; echo "<table cellpadding=\"3\">"; $q=mysql_query("SELECT * FROM config WHERE year=0 ORDER BY var"); - echo "<tr><td colspan=\"2\"><h3>".i18n("Special Configuration Settings")."</h3></td></tr>"; echo "<tr><td colspan=\"2\">"; echo i18n("Warning, modifying values on this configuration variables page could cause your SFIAB to stop working. Only change anything on this page if you really know what you are doing"); echo "</td></tr>"; @@ -115,7 +113,8 @@ } else { - echo "<h3>".i18n("Configuration settings for fair year %1",array($config['FAIRYEAR']),array("fair year"))."</h3><br /><h3>".i18n($category)."</h3>"; +// echo "<h3>".i18n("Configuration settings for fair year %1",array($config['FAIRYEAR']),array("fair year"))."</h3>"; + echo "<h3>".i18n($category)." ({$config['FAIRYEAR']})</h3>"; config_editor($category, $config['FAIRYEAR'], "var", $_SERVER['PHP_SELF']); }