forked from science-ation/science-ation
i18n the registration list page
This commit is contained in:
parent
2caf3a6678
commit
de95ff761f
@ -3,8 +3,8 @@
|
||||
send_header("Administration - Participant Registration");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Administration")."</a><br />";
|
||||
echo "<br />";
|
||||
echo "<a href=\"registration_receivedforms.php\">View/Input Received Forms</a> <br />";
|
||||
echo "<a href=\"registration_list.php\">Registration List</a> <br />";
|
||||
echo "<a href=\"registration_receivedforms.php\">".i18n("Input Received Forms")."</a> <br />";
|
||||
echo "<a href=\"registration_list.php\">".i18n("Registration List")."</a> <br />";
|
||||
|
||||
|
||||
|
||||
|
@ -12,15 +12,15 @@
|
||||
echo "<form name=\"statuschangerform\" method=\"get\" action=\"registration_list.php\">";
|
||||
echo "<select name=\"showstatus\" onchange=\"document.forms.statuschangerform.submit()\">";
|
||||
if($_GET['showstatus']=="") $sel="selected=\"selected\""; else $sel="";
|
||||
echo "<option $sel value=\"\">Any Status</option>\n";
|
||||
echo "<option $sel value=\"\">".i18n("Any Status")."</option>\n";
|
||||
if($_GET['showstatus']=="new") $sel="selected=\"selected\""; else $sel="";
|
||||
echo "<option $sel value=\"new\">New</option>\n";
|
||||
echo "<option $sel value=\"new\">".i18n("New")."</option>\n";
|
||||
if($_GET['showstatus']=="open") $sel="selected=\"selected\""; else $sel="";
|
||||
echo "<option $sel value=\"open\">Open</option>\n";
|
||||
echo "<option $sel value=\"open\">".i18n("Open")."</option>\n";
|
||||
if($_GET['showstatus']=="paymentpending") $sel="selected=\"selected\""; else $sel="";
|
||||
echo "<option $sel value=\"paymentpending\">Payment Pending</option>\n";
|
||||
echo "<option $sel value=\"paymentpending\">".i18n("Payment Pending")."</option>\n";
|
||||
if($_GET['showstatus']=="complete") $sel="selected=\"selected\""; else $sel="";
|
||||
echo "<option $sel value=\"complete\">Complete</option>\n";
|
||||
echo "<option $sel value=\"complete\">".i18n("Complete")."</option>\n";
|
||||
echo "</select>";
|
||||
echo "</form>";
|
||||
|
||||
@ -48,13 +48,13 @@ else $wherestatus="";
|
||||
echo mysql_error();
|
||||
echo "<table class=\"summarytable\">";
|
||||
echo "<tr>";
|
||||
echo "<th>Status</th>";
|
||||
echo "<th>Reg Num</th>";
|
||||
echo "<th>Project Title</th>";
|
||||
echo "<th>Age Category</th>";
|
||||
echo "<th>Division</th>";
|
||||
echo "<th>School(s)</th>";
|
||||
echo "<th>Student(s)</th>";
|
||||
echo "<th>".i18n("Status")."</th>";
|
||||
echo "<th>".i18n("Reg Num")."</th>";
|
||||
echo "<th>".i18n("Project Title")."</th>";
|
||||
echo "<th>".i18n("Age Category")."</th>";
|
||||
echo "<th>".i18n("Division")."</th>";
|
||||
echo "<th>".i18n("School(s)")."</th>";
|
||||
echo "<th>".i18n("Student(s)")."</th>";
|
||||
echo "</tr>";
|
||||
|
||||
while($r=mysql_fetch_object($q))
|
||||
@ -66,13 +66,14 @@ else $wherestatus="";
|
||||
case "paymentpending": $status_text="Payment Pending"; break;
|
||||
case "complete": $status_text="Complete"; break;
|
||||
}
|
||||
$status_text=i18n($status_text);
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td>$status_text</td>";
|
||||
echo "<td>$r->reg_num</td>";
|
||||
echo "<td>$r->title</td>";
|
||||
echo "<td>$r->category</td>";
|
||||
echo "<td>$r->division</td>";
|
||||
echo "<td>".i18n("$r->category")."</td>";
|
||||
echo "<td>".i18n("$r->division")."</td>";
|
||||
|
||||
$sq=mysql_query("SELECT students.firstname,
|
||||
students.lastname,
|
||||
|
Loading…
Reference in New Issue
Block a user