forked from science-ation/science-ation
Fix text on one configuration variable
Fix judge manager to keep the 'show_what' persistent when performing other actions on the table (editing, sorting, etc).
This commit is contained in:
parent
40e305b83a
commit
2d6257715e
@ -53,23 +53,27 @@ function openjudgeinfo(id)
|
||||
$icon_exitension = $config['icon_extension'];
|
||||
|
||||
print("<br /><br />");
|
||||
if(isset($_POST['show_what'])) {
|
||||
$show_what = $_POST['show_what'];
|
||||
if(isset($_GET['show_what'])) {
|
||||
$_SESSION['judgesmanager_show_what']=$_GET['show_what'];
|
||||
}
|
||||
if($_SESSION['judgesmanager_show_what']) {
|
||||
$show_what = $_SESSION['judgesmanager_show_what'];
|
||||
} else {
|
||||
$show_what = "cy_complete";
|
||||
}
|
||||
print("<form name=\"ShowJudges\" method=\"post\" action=\"{$_SERVER['PHP_SELF']}\">");
|
||||
print("<form name=\"ShowJudges\" method=\"get\" action=\"{$_SERVER['PHP_SELF']}\">");
|
||||
print("<select id=\"show_what\" name=\"show_what\">");
|
||||
$s = ($show_what == 'all') ? " selected=selected " : "";
|
||||
$s = ($show_what == 'all') ? " selected=\"selected\" " : "";
|
||||
print("<option value=\"all\" $s>All Judges</option>");
|
||||
$s = ($show_what == 'cy_active') ? " selected=selected " : "";
|
||||
$s = ($show_what == 'cy_active') ? " selected=\"selected\" " : "";
|
||||
print("<option value=\"cy_active\" $s>All {$config['FAIRYEAR']} Judges (complete and incomplete)</option>");
|
||||
$s = ($show_what == 'cy_complete') ? " selected=selected " : "";
|
||||
$s = ($show_what == 'cy_complete') ? " selected=\"selected\" " : "";
|
||||
print("<option value=\"cy_complete\" $s>All {$config['FAIRYEAR']} Judges (only complete)</option>");
|
||||
print("</select>");
|
||||
print("<input type=submit value=\"".i18n("Show")."\">");
|
||||
print("</form>");
|
||||
|
||||
echo i18n("Note: Deleting a judge from this screen only unlinks them from the current fairyear");
|
||||
|
||||
$editor = new TableEditor('judge');
|
||||
|
||||
|
@ -1 +1 @@
|
||||
42
|
||||
43
|
||||
|
1
db/db.update.43.sql
Normal file
1
db/db.update.43.sql
Normal file
@ -0,0 +1 @@
|
||||
UPDATE `config` SET `description` = 'The status a project must have to be considered eligible for judge scheduling. ' WHERE `var` = 'project_status' ;
|
Loading…
x
Reference in New Issue
Block a user