diff --git a/admin/award_awardcreatedivisional.php b/admin/award_awardcreatedivisional.php index 57bc696..d70e176 100644 --- a/admin/award_awardcreatedivisional.php +++ b/admin/award_awardcreatedivisional.php @@ -23,9 +23,13 @@ ?> require("../common.inc.php"); - auth_required('admin'); + user_auth_required('committee', 'admin'); - send_header("Administration - Create All Divisional Awards"); + send_header('Create All Divisional Awards', + array('Committee Main' => 'committee_main.php', + 'Administration' => 'admin/index.php', + 'Awards Main' => 'admin/awards.php') + ); if($_GET['award_sponsors_id']) $award_sponsors_id=$_GET['award_sponsors_id']; else if($_POST['award_sponsors_id']) $award_sponsors_id=$_POST['award_sponsors_id']; @@ -33,10 +37,6 @@ if($_GET['award_types_id']) $award_types_id=$_GET['award_types_id']; else if($_POST['award_types_id']) $award_types_id=$_POST['award_types_id']; - - echo "<< ".i18n("Back to Administration")."\n"; - echo "<< ".i18n("Back to Awards Main")."\n"; - //first, we can only do this if we dont have any type=divisional awards created yet $q=mysql_query("SELECT COUNT(id) AS num FROM award_awards WHERE award_types_id='1' AND year='{$config['FAIRYEAR']}'"); $r=mysql_fetch_object($q); diff --git a/admin/award_awards.php b/admin/award_awards.php index 49c7a57..70e8d30 100644 --- a/admin/award_awards.php +++ b/admin/award_awards.php @@ -23,9 +23,12 @@ ?> require("../common.inc.php"); - auth_required('admin'); + user_auth_required('committee', 'admin'); - send_header("Administration - Awards Awards"); + 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']; @@ -41,9 +44,6 @@ $award_types_id=$_SESSION['award_types_id']; $award_sponsors_id=$_SESSION['award_sponsors_id']; - echo "<< ".i18n("Back to Administration")."\n"; - echo "<< ".i18n("Back to Awards Main")."\n"; - if($_POST['save']=="edit" || $_POST['save']=="add") { if(!$_POST['award_types_id']) { diff --git a/admin/award_contacts.php b/admin/award_contacts.php index 6959e12..4cbf982 100644 --- a/admin/award_contacts.php +++ b/admin/award_contacts.php @@ -23,9 +23,12 @@ ?> require("../common.inc.php"); - auth_required('admin'); + user_auth_required('committee', 'admin'); - send_header("Administration - Award Contacts"); + send_header("Award Contacts", + array('Committee Main' => 'committee_main.php', + 'Administration' => 'admin/index.php', + 'Awards Main' => 'admin/awards.php')); if($_GET['award_sponsors_id']) $award_sponsors_id=$_GET['award_sponsors_id']; @@ -34,9 +37,6 @@ ?> - echo "<< ".i18n("Back to Administration")."\n"; - echo "<< ".i18n("Back to Awards")."\n"; - $q=mysql_query("SELECT id,organization FROM award_sponsors ORDER BY organization"); echo "