forked from science-ation/science-ation

fully implement the age categories configuration add "back to configuration" links to each sub-config
44 lines
1.6 KiB
PHP
44 lines
1.6 KiB
PHP
<?
|
|
require("../common.inc.php");
|
|
send_header("Configuration - Categories and Divisions");
|
|
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
|
|
|
if($_POST['action']=="save")
|
|
{
|
|
}
|
|
|
|
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
|
|
echo "<h3>".i18n("Age Categories")."</h3>";
|
|
$q=mysql_query("SELECT * FROM projectcategories ORDER BY mingrade");
|
|
echo "<table class=\"summarytable\">";
|
|
echo "<tr>";
|
|
echo "<th>".i18n("Category ID")."</th>\n";
|
|
echo "<th>".i18n("Category Name")."</th>\n";
|
|
echo "<th>".i18n("Minimum Grade")."</th>\n";
|
|
echo "<th>".i18n("Maximum Grade")."</th>\n";
|
|
echo "<th>".i18n("Actions")."</th>\n";
|
|
echo "</tr>";
|
|
while($r=mysql_fetch_object($q))
|
|
{
|
|
echo "<tr>";
|
|
echo " <td>$r->id</td>";
|
|
echo " <td>$r->category</td>";
|
|
echo " <td>$r->mingrade</td>";
|
|
echo " <td>$r->maxgrade</td>";
|
|
echo " <td>";
|
|
echo "<a title=\"Edit\" href=\"".$_SERVER['PHP_SELF']."?action=editcat&editcat=$r->id\"><img src=\"".$config['SFIABDIRECTORY']."/images/16/edit.".$config['icon_extension']."\" border=0></a>";
|
|
echo " ";
|
|
echo "<a title=\"Remove\" onClick=\"return confirmClick('Are you sure you want to remove this age category?');\" href=\"".$_SERVER['PHP_SELF']."?module=$module&action=remove&remove=$r->id\"><img src=\"".$config['SFIABDIRECTORY']."/images/16/button_cancel.".$config['icon_extension']."\" border=0></a>";
|
|
echo " </td>";
|
|
echo "</tr>";
|
|
}
|
|
echo "</table>";
|
|
echo "</form>";
|
|
|
|
echo "<h3>".i18n("Divisions")."</h3>";
|
|
$q=mysql_query("SELECT * FROM projectdivisions ORDER BY division");
|
|
|
|
|
|
send_footer();
|
|
?>
|