From 21636ce272de6b80c4ee33d7572235655e6a41cd Mon Sep 17 00:00:00 2001 From: idziak Date: Wed, 8 Apr 2015 21:13:02 +0000 Subject: [PATCH] These changes were done by Sebastian Ruan Allow the fair to choose calling the signature page either a signature page or a permission form. Add a comment box for each judge that can only be read by a committee member. Adding a comment will set a flag in the "manage judges" list. Add "Update User" button to the list of judges so that a committee member can update a judge to the current year without having to log in as the judge. --- admin/registration.php | 3 +- admin/registration_receivedforms.php | 5 +- admin/user_list.php | 162 +++++++++++++++++++++++++-- config/index.php | 3 +- config/signaturepage.php | 9 +- confirmed_participants.php | 7 +- db/db.code.version.txt | 2 +- judge_other.php | 33 ++++++ register_participants_main.php | 7 +- register_participants_signature.php | 3 +- user.inc.php | 3 +- user_activate.php | 4 + 12 files changed, 217 insertions(+), 24 deletions(-) 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: