From 880d5b0a828787a9b845769149ebc3da25776884 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 8 Dec 2004 20:34:02 +0000 Subject: [PATCH] - display status on project and student pages to show if the section is complete or not - add a new function happy() for displaying 'good' things... also the CSS to go with it. now we have: error() - displaying bad things (in red) notice() - displaying neutral things (in grey/blue) happy() - displaying good things (in green) --- common.inc.php | 5 +++++ register_participants_project.php | 20 ++++++++++++++++++-- register_participants_students.php | 19 +++++++++++++++++-- sfiab.css | 7 +++++++ 4 files changed, 47 insertions(+), 4 deletions(-) diff --git a/common.inc.php b/common.inc.php index fbb88f3..1fbc2cd 100644 --- a/common.inc.php +++ b/common.inc.php @@ -129,6 +129,11 @@ function notice($str) return "
$str

"; } +function happy($str) +{ + return "
$str

"; +} + $HEADER_SENT=false; function send_header($title="") { diff --git a/register_participants_project.php b/register_participants_project.php index cf6bcb3..4edd988 100644 --- a/register_participants_project.php +++ b/register_participants_project.php @@ -34,6 +34,9 @@ echo mysql_error(); //send the header send_header("Participant Registration - Project Information"); + echo "<< ".i18n("Back to Participant Registration Summary")."
"; + echo "
"; + $studentstatus=studentStatus(); if($studentstatus!="complete") { @@ -105,8 +108,21 @@ echo mysql_error(); } - echo "<< ".i18n("Back to Participant Registration Summary")."
"; - echo "
"; + +//output the current status +$newstatus=projectStatus(); +if($newstatus!="complete") +{ + echo error(i18n("Project Information Incomplete")); +} +else if($newstatus=="complete") +{ + echo happy(i18n("Project Information Complete")); + +} + + + echo "
\n"; echo "\n"; echo "id\">\n"; diff --git a/register_participants_students.php b/register_participants_students.php index 21a525c..28628a8 100644 --- a/register_participants_students.php +++ b/register_participants_students.php @@ -1,5 +1,6 @@ "; echo "\n"; echo " ".i18n("School").""; - $q=mysql_query("SELECT id,school FROM schools WHERE year='".$config['FAIRYEAR']."' ORDER by school"); + $schoolq=mysql_query("SELECT id,school FROM schools WHERE year='".$config['FAIRYEAR']."' ORDER by school"); echo "