- Display a small warning that the signature page is only available after ALL

registration sections are complete.

- Display a warning in the special awards that selection is only available
  after the project and student information is complete.  Since some awards
  check this information, we can't let students in until it is completed.
This commit is contained in:
dave 2007-03-05 02:26:56 +00:00
parent 6f4d3177bf
commit 5b84c70f69

View File

@ -202,6 +202,9 @@ echo "<table><tr><td>";
echo i18n("Signature Page");
if($statusstudent=="complete" && $statusproject=="complete" && $statusmentor=="complete" && $statussafety=="complete" && $statusemergencycontact=="complete" && $statustour=="complete")
echo "</a>";
else
echo "<br /><font color=\"red\">(".i18n("Available when ALL above sections are \"Complete\"").")</font>";
echo "</td><td>";
echo i18n("Print");
//check to see if its complete
@ -227,6 +230,11 @@ echo "<table><tr><td>";
echo "<table class=\"summarytable\">";
echo "<tr><th>".i18n("Special Award Nominations")."</th></tr>";
$sp_proj_ok = true;
if($statusstudent =="incomplete" || $statusproject == "incomplete") {
$sp_proj_ok = false;
}
$special_awards_open = false;
if($config['specialawardnomination_aftersignatures']=="no") {
$special_awards_open = true;
@ -253,8 +261,12 @@ echo "<table><tr><td>";
}
else if($config['specialawardnomination']=="registration")
{
if($sp_proj_ok == false) {
echo "<tr><td><font color=\"red\">(".i18n("Available when your Student Information and Project Information is \"Complete\"").")</font></td></tr>";
} else {
echo "<tr><td><a href=\"register_participants_spawards.php\">".i18n("Self-nominate for special awards")."</a></td></tr>";
}
}
$q=mysql_query("SELECT * FROM projects WHERE registrations_id='".$_SESSION['registration_id']."'");
$project=mysql_fetch_object($q);
@ -348,6 +360,7 @@ echo "<table><tr><td>";
echo "<tr><td align=right colspan=3>".i18n("Total (including all taxes)")."</td><td><b>$".sprintf("%.02f", $regfee)."</b></td><td></td></tr>";
echo "</table><br />";
echo i18n($extra_after);
echo "<br />";
echo "<br />";
echo "<br />";