diff --git a/admin/registration_list.php b/admin/registration_list.php index 0a296e9..de70cd0 100644 --- a/admin/registration_list.php +++ b/admin/registration_list.php @@ -73,8 +73,10 @@ function openstudentinfo(id) $status_str['open'] = i18n("Open"); $status_str['new'] = i18n("New"); + $showstatus = $_GET['showstatus']; + foreach($status_str as $s=>$str) { - $sel = ($_GET['showstatus'] == $s) ? "selected=\"selected\"" : ''; + $sel = ($showstatus == $s) ? "selected=\"selected\"" : ''; echo "\n"; } echo ""; @@ -88,7 +90,7 @@ $q=mysql_query("SELECT * FROM projectdivisions WHERE year='$year' ORDER BY id"); while($r=mysql_fetch_object($q)) $divs[$r->id]=$r->division; -if($_GET['showstatus']) $wherestatus="AND status='".$_GET['showstatus']."' "; +if($showstatus) $wherestatus="AND status='$showstatus' "; else $wherestatus=""; switch($_GET['sort']) { @@ -124,7 +126,7 @@ else $wherestatus=""; echo "
".i18n("Status")." | "; echo "".i18n("Email Address")." | "; echo "".i18n("Reg Num")." | ";
---|