Use icons in the fair main, need to re-integrate the status checks

somehow
This commit is contained in:
dave 2010-01-27 20:24:09 +00:00
parent e7afdccaaf
commit 908e4d51ba
2 changed files with 16 additions and 41 deletions

View File

@ -69,7 +69,7 @@ if($auth_type == 'committee') {
'Participant Registration' => 'admin/registration.php') 'Participant Registration' => 'admin/registration.php')
); );
} else { } else {
send_header("Registration Management", send_header("Student/Project Management",
array('Fair Main' => 'fair_main.php') ); array('Fair Main' => 'fair_main.php') );
} }

View File

@ -41,52 +41,27 @@
*/ */
send_header("Science Fair Main", array()); send_header("Science Fair Main", array());
function tempstatus()
{
return 'complete';
}
//only display the named greeting if we have their name //only display the named greeting if we have their name
echo i18n("Hello <b>%1</b>",array($_SESSION['name'])); echo i18n("Hello <b>%1</b>",array($_SESSION['name']));
echo "<br />"; echo "<br />";
echo "<br />"; echo "<br />";
echo i18n("Please use the checklist below to complete your data. Click on an item in the table to edit that information. When you have entered all information, the <b>Status</b> field will change to <b>Complete</b>");
echo "<br />";
echo "<br />";
user_page_summary_begin(); echo "<table class=\"adminconfigtable\">";
user_page_summary_item("Fair Information and Statistics", echo " <tr>";
"fair_stats.php", "tempstatus", array($u)); echo " <td><a href=\"fair_stats.php\">".theme_icon("fair_stats")."<br />".i18n("Fair Information and Statistics")."</a></td>";
user_page_summary_item("Award Winner Entry", echo " <td><a href=\"admin/registration_list.php\">".theme_icon("participant_registration")."<br />".i18n("Student/Project Management")."</a></td>";
"", "tempstatus", array($u)); echo " <td><a href=\"admin/winners.php\">".theme_icon("enter_winning_projects")."<br />".i18n("Enter Winning Projects")."</a></td>";
$overallstatus = user_page_summary_end(true); echo " </tr>\n";
echo "</table>\n";
/* Update fair_status */ echo "<hr/>";
fair_status_update($u); echo "<table class=\"adminconfigtable\">";
echo " <tr>\n";
echo "<br />"; echo " <td><a href=\"user_personal.php\">".theme_icon("edit_profile")."<br />".i18n("Edit My Profile")."</a></td>";
echo "<br />"; echo " <td><a href=\"user_password.php\">".theme_icon("change_password")."<br />".i18n("Change My Password")."</a></td>";
echo " <td><a href=\"user_activate.php\">".theme_icon("manage_roles")."<br />".i18n("Manage My Roles")."</a></td>";
/* echo " </tr>\n";
if($overallstatus!='complete') echo "</table>\n";
{
echo error(i18n("You will not be marked as an active fair until your \"Overall Status\" is \"Complete\""));
}
else
{
echo happy(i18n("Thank you for completing the fair registration process. We look forward to seeing you at the fair"));
}
*/
echo "<br />";
echo i18n('Other Options and Things To Do').':<br />';
echo '<ul>';
echo '<li><a href="user_password.php">'.i18n('Change Password').'</a> - '.i18n('Change your password').'</li>';
echo '<li><a href="user_activate.php">'.i18n('Activate/Deactivate Roles').'</a> - '.
i18n('Activate/Deactiate/Remove/Delete roles or your entire account').
'</li>';
echo '<li>'.i18n('To logout, use the [Logout] link in the upper-right of the page').'</li>';
echo '</ul>';
send_footer(); send_footer();
?> ?>