- Optimize away some code where I was trying something different. :)

This commit is contained in:
dave 2008-02-26 08:28:20 +00:00
parent 10bf90f0db
commit b1ed8e4b4a

View File

@ -73,9 +73,8 @@ function openstudentinfo(id)
$status_str['open'] = i18n("Open"); $status_str['open'] = i18n("Open");
$status_str['new'] = i18n("New"); $status_str['new'] = i18n("New");
$showstatus = ($_GET['showstatus'] == '') ? '' : $_GET['showstatus'] ; foreach($status_str as $s=>$str) {
foreach($status_str as $s=>$str) { $sel = ($_GET['showstatus'] == $s) ? "selected=\"selected\"" : '';
$sel = ($showstatus==$s) ? "selected=\"selected\"" : '';
echo "<option $sel value=\"$s\">$str</option>\n"; echo "<option $sel value=\"$s\">$str</option>\n";
} }
echo "</select>"; echo "</select>";