- Fix the header and top navbar on the awards management/editor page

This commit is contained in:
dave 2007-11-23 20:23:46 +00:00
parent 30d944f968
commit 68f52562e5

View File

@ -26,10 +26,18 @@
require_once("../user.inc.php");
user_auth_required('committee', 'admin');
send_header("Awards Management",
if($_GET['action']=="edit" || $_GET['action']=="add") {
send_header(($_GET['action']=="edit") ? "Edit Award" : "Add Award",
array('Committee Main' => 'committee_main.php',
'Administration' => 'admin/index.php',
'Awards Main' => 'admin/awards.php',
'Awards Management' => 'admin/award_awards.php') );
} else {
send_header("Awards Management",
array('Committee Main' => 'committee_main.php',
'Administration' => 'admin/index.php',
'Awards Main' => 'admin/awards.php') );
}
if($_GET['award_sponsors_id'] && $_GET['award_sponsors_id']!="all")
$_SESSION['award_sponsors_id']=$_GET['award_sponsors_id'];
@ -135,10 +143,8 @@
$currentcategories=array();
$currentdivisions=array();
echo "<a href=\"award_awards.php\">&lt;&lt; ".i18n("Back to Awards List")."</a>\n";
if($_GET['action']=="edit")
{
echo "<h3>".i18n("Edit Award")."</h3>\n";
$buttontext="Save Award";
$q=mysql_query("SELECT
@ -195,7 +201,6 @@ echo mysql_error();
}
else if($_GET['action']=="add")
{
echo "<h3>".i18n("Add Award")."</h3>\n";
$buttontext="Add Award";
$firstsponsor="<option value=\"\">".i18n("Choose a sponsor")."</option>\n";
$firsttype="<option value=\"\">".i18n("Choose an award type")."</option>\n";