diff --git a/admin/registration.php b/admin/registration.php index 0a632c1..131e2a9 100644 --- a/admin/registration.php +++ b/admin/registration.php @@ -23,6 +23,7 @@ ?> "; - echo "".i18n("Input Received Signature Forms")."
"; + echo "".i18n("Input Received $plural_participationform")."
"; echo "".i18n("Registration List and Student/Project Editor")."
"; echo "".i18n("Registration Statistics")."
"; echo "".i18n("Website Consent")."
"; diff --git a/admin/registration_receivedforms.php b/admin/registration_receivedforms.php index 393c764..b562f8c 100644 --- a/admin/registration_receivedforms.php +++ b/admin/registration_receivedforms.php @@ -23,11 +23,12 @@ ?> 'committee_main.php', 'Administration' => 'admin/index.php', 'Participant Registration' => 'admin/registration.php') @@ -294,7 +295,7 @@ echo mysql_Error(); { echo "
"; echo ""; - echo i18n("Enter the registration number from the signature form: ")."
"; + echo i18n("Enter the registration number from the $signatureformpermissionform : ")."
"; echo ""; echo ""; echo "
"; diff --git a/admin/user_list.php b/admin/user_list.php index 2339e93..18fc0dd 100644 --- a/admin/user_list.php +++ b/admin/user_list.php @@ -20,6 +20,11 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +// This file was modified March of 2015 by Sebastian Ruan +/* Flagging for judges has been added to monitor concerns. + Update User button also added; allows super users to update + a judge to the current fair year without logging in as them. */ ?> 'committee_main.php', 'Administration' => 'admin/index.php') @@ -62,6 +69,8 @@ function openeditor(id) } + + function toggleoptions() { if(document.getElementById('options').style.display == 'none') { @@ -95,10 +104,96 @@ function neweditor() return false; } + +/* update (id) grabs the current url and appends an action called update as well as the id it is going to renew. + If there is already an action called update and an id the function will change the id to the new + id as determined by the button clicked + + update (id) Int -> String + + Effects: update(id) reloads the page with the adjusted url + + Example: update (2526) => http://localhost/sfiab/testfair/admin/user_list.php?show_types[]=judge&action=update&id=2526 */ + +function update (id) +{ + var url = window.location.href; + + // if a previous update button was already clicked + if(url.indexOf('&action=')>-1){ + url = url.substring(0,url.indexOf('&action=update')); + url += '&action=update&id='+id; + } + // if there is no ? in the url already present + else if (url.indexOf ('?') == -1) { + url += '?action=update&id='+id; + } + //if '?action...' is present in url + else if(url.indexOf('?action=')>-1){ + url = url.substring(0,url.indexOf('?action=update')); + url += '?action=update&id='+id; + } + + else{ + url += '&action=update&id='+id; + } + + // reload using adjusted url + window.location.href=url; + + +} + + + "; echo "- ".i18n('Hide Display Options').""; @@ -207,9 +302,14 @@ function neweditor() echo mysql_error(); // echo $querystr; $num=mysql_num_rows($q); - echo i18n("Listing %1 people total. See the table at the bottom for the totals by status",array($num)); - echo mysql_error(); + echo i18n("Listing %1 people total. See the table at the bottom for the totals by status


",array($num)); + echo i18n(" Notes: