forked from science-ation/science-ation
- Optimize away some code where I was trying something different. :)
This commit is contained in:
parent
10bf90f0db
commit
b1ed8e4b4a
@ -73,9 +73,8 @@ function openstudentinfo(id)
|
||||
$status_str['open'] = i18n("Open");
|
||||
$status_str['new'] = i18n("New");
|
||||
|
||||
$showstatus = ($_GET['showstatus'] == '') ? '' : $_GET['showstatus'] ;
|
||||
foreach($status_str as $s=>$str) {
|
||||
$sel = ($showstatus==$s) ? "selected=\"selected\"" : '';
|
||||
foreach($status_str as $s=>$str) {
|
||||
$sel = ($_GET['showstatus'] == $s) ? "selected=\"selected\"" : '';
|
||||
echo "<option $sel value=\"$s\">$str</option>\n";
|
||||
}
|
||||
echo "</select>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user