forked from science-ation/science-ation
- Fix the header and top navbar on the awards management/editor page
This commit is contained in:
parent
30d944f968
commit
68f52562e5
@ -26,10 +26,18 @@
|
|||||||
require_once("../user.inc.php");
|
require_once("../user.inc.php");
|
||||||
user_auth_required('committee', 'admin');
|
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',
|
array('Committee Main' => 'committee_main.php',
|
||||||
'Administration' => 'admin/index.php',
|
'Administration' => 'admin/index.php',
|
||||||
'Awards Main' => 'admin/awards.php') );
|
'Awards Main' => 'admin/awards.php') );
|
||||||
|
}
|
||||||
|
|
||||||
if($_GET['award_sponsors_id'] && $_GET['award_sponsors_id']!="all")
|
if($_GET['award_sponsors_id'] && $_GET['award_sponsors_id']!="all")
|
||||||
$_SESSION['award_sponsors_id']=$_GET['award_sponsors_id'];
|
$_SESSION['award_sponsors_id']=$_GET['award_sponsors_id'];
|
||||||
@ -135,10 +143,8 @@
|
|||||||
$currentcategories=array();
|
$currentcategories=array();
|
||||||
$currentdivisions=array();
|
$currentdivisions=array();
|
||||||
|
|
||||||
echo "<a href=\"award_awards.php\"><< ".i18n("Back to Awards List")."</a>\n";
|
|
||||||
if($_GET['action']=="edit")
|
if($_GET['action']=="edit")
|
||||||
{
|
{
|
||||||
echo "<h3>".i18n("Edit Award")."</h3>\n";
|
|
||||||
$buttontext="Save Award";
|
$buttontext="Save Award";
|
||||||
|
|
||||||
$q=mysql_query("SELECT
|
$q=mysql_query("SELECT
|
||||||
@ -195,7 +201,6 @@ echo mysql_error();
|
|||||||
}
|
}
|
||||||
else if($_GET['action']=="add")
|
else if($_GET['action']=="add")
|
||||||
{
|
{
|
||||||
echo "<h3>".i18n("Add Award")."</h3>\n";
|
|
||||||
$buttontext="Add Award";
|
$buttontext="Add Award";
|
||||||
$firstsponsor="<option value=\"\">".i18n("Choose a sponsor")."</option>\n";
|
$firstsponsor="<option value=\"\">".i18n("Choose a sponsor")."</option>\n";
|
||||||
$firsttype="<option value=\"\">".i18n("Choose an award type")."</option>\n";
|
$firsttype="<option value=\"\">".i18n("Choose an award type")."</option>\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user