From 9caa5b0a175d343601030cf9264dad7e62a5b3b8 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 4 Mar 2011 20:07:10 +0000 Subject: [PATCH] Fix the local sfiab side of special awards Add "numstudents" to top of participant main page --- register_participants.inc.php | 6 ++++- register_participants_main.php | 38 ++++++++++++++++++++++++++++-- register_participants_spawards.php | 15 ++++-------- 3 files changed, 46 insertions(+), 13 deletions(-) diff --git a/register_participants.inc.php b/register_participants.inc.php index 7198f7d..65e7cff 100644 --- a/register_participants.inc.php +++ b/register_participants.inc.php @@ -599,9 +599,13 @@ function getProject($userId,$registrations_id=null){ $safetyquestions=getSafetyQuestions($regId); $returnval['safetyquestions']=$safetyquestions; +/* + $noawards=getNominatedForNoSpecialAwardsForProject($returnval['id']); + $returnval['specialawards_none']=$noawards; + */ + $specialawards=getAwardListing($returnval['id']); $returnval['specialawards']=$specialawards; - return $returnval; } diff --git a/register_participants_main.php b/register_participants_main.php index fff6660..6508ca5 100644 --- a/register_participants_main.php +++ b/register_participants_main.php @@ -32,12 +32,47 @@ send_header("Participant Registration - Summary"); + if(!$reg) { + echo "You don't have a valid registration yet, would you like to:
\n"; + echo "