diff --git a/admin/committees.php b/admin/committees.php index f047efc..2e72694 100644 --- a/admin/committees.php +++ b/admin/committees.php @@ -41,17 +41,13 @@ if($_POST['users_id']) exit; } - if($_POST['action'] == 'edit') { - header("location: {$config['SFIABDIRECTORY']}/user_personal.php?edit=$uid"); - exit; - } - /* Now, start the output for this page */ send_header("Committee Management", array('Committee Main' => 'committee_main.php', 'Administration' => 'admin/index.php' ), "committee_management"); + $_SESSION['last_page'] = 'committee_management'; ?> @@ -59,6 +55,17 @@ if($_POST['users_id']) - - - - if($_GET['action']=="remove" && $_GET['remove']) - { - //we need to remove them from: - // judges_teams - // judges_years - mysql_query("DELETE FROM judges_teams_link WHERE judges_id='".$_GET['remove']."' AND year=".$config['FAIRYEAR']."'"); - mysql_query("DELETE FROM judges_years WHERE judges_id='".$_GET['remove']."' AND year='".$config['FAIRYEAR']."'"); - echo happy(i18n("Successfully removed judge from this year's fair")); - } - - echo "
".i18n("Judge Name")." | "; - echo "".i18n("Email Address")." | "; - echo "".i18n("Complete")." | "; - echo "".i18n("Actions")." | "; - echo "|
---|---|---|---|---|
"; - echo "id)\">$r->firstname $r->lastname"; - echo " | "; - echo "$r->email | "; - - if($r->complete=="yes" && $r->year) - { - echo "".i18n("yes")." | "; - $completeyes++; - } - else - { - echo "".i18n("no")." | "; - $cl="error"; - $completeno++; - } - echo ""; - echo "id\">"; - echo " | "; - echo "
".i18n("Name")." | "; + echo "".i18n("Type(s)")." | "; + echo "".i18n("Email Address")." | "; + echo "".i18n("Year")." | "; + echo "".i18n("Complete")." | "; + echo "".i18n("Actions")." | "; + echo "
---|---|---|---|---|---|
"; + echo "{$r['firstname']} {$r['lastname']}"; + echo " | ";
+ $types = split(',', $r['types']);
+ foreach($types as $t) {
+ echo $user_what[$t]." "; + } + echo " | ";
+
+ echo "{$r['email']} | "; + + echo "{$r['year']} | "; + + echo "";
+ foreach($types as $t) {
+
+ if($r["{$t}_complete"] == 'yes') {
+ echo " ".i18n("yes")." ";
+ $completeyes++;
+ } else {
+ echo "".i18n("no")." ";
+ $completeno++;
+ }
+ }
+ echo " | ";
+ echo ""; + echo "id\">"; + echo " | "; + echo "