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 "
";
echo " "; - echo "".i18n("Logout").""; - + } send_footer(); ?> diff --git a/register_participants_spawards.php b/register_participants_spawards.php index 98e8e55..5268fd6 100644 --- a/register_participants_spawards.php +++ b/register_participants_spawards.php @@ -93,19 +93,15 @@ function checkboxclicked(b) } $num=count($splist); - if($num>$config['maxspecialawardsperproject']) - { + if($num>$config['maxspecialawardsperproject']) { echo error(i18n("You can only apply to %1 special awards. You have selected %2",array($config['maxspecialawardsperproject'],$num))); } - else - { + else { mysql_query("DELETE FROM project_specialawards_link WHERE projects_id='$project->id' AND conferences_id='".$conference['id']."'"); - foreach($splist AS $spaward) - { - $s = ($spaward == -1) ? "NULL" : "'$spaward'"; + foreach($splist AS $spaward) { mysql_query("INSERT INTO project_specialawards_link (award_awards_id,projects_id,conferences_id) VALUES (". - "$s, ". + "$spaward, ". "'$project->id', ". "'".$conference['id']."')"); echo mysql_error(); @@ -118,8 +114,7 @@ function checkboxclicked(b) } } } - else - { + else { echo error(i18n("Special award self-nomination is only available from %1 to %2",array($config['dates']['specawardregopen'],$config['dates']['specawardregclose']))); } |