diff --git a/common.inc.php b/common.inc.php index b8c8649..2895f94 100644 --- a/common.inc.php +++ b/common.inc.php @@ -451,7 +451,8 @@ function send_header($title="", $nav=null, $icon=null, $titletranslated=false) ".i18n("Home").''; } + + //if the date is greater than the date/time that the confirmed participants gets posted, + //then we will show the registration confirmation page as a link in the menu, + $registrationconfirmationlink=""; + + //only display it if a date is set to begin with. + if($config['dates']['postparticipants'] && $config['dates']['postparticipants']!="0000-00-00 00:00:00") { + $q=mysql_query("SELECT (NOW()>'".$config['dates']['regclose']."') AS test"); + $r=mysql_fetch_object($q); + if($r->test==1) { + $registrationconfirmationlink="
  • ".i18n("Confirmed Participants")."
  • "; + } + } + echo "
  • ".i18n("Important Dates").'
  • '; echo $registrationconfirmationlink; /* @@ -611,6 +626,7 @@ if(is_array($nav)) { */ echo "
  • ".i18n("Committee").'
  • '; echo "
  • ".i18n("Winners").'
  • '; + ?> ".i18n("My Profile").''; - echo "
  • ".i18n("Judge Home").'
  • '; echo "
  • ".i18n("Logout").'
  • '; } else if($_SESSION['users_type']=="volunteer") { echo "
  • ".i18n("My Profile").'
  • '; @@ -649,21 +664,13 @@ else if($_SESSION['registration_number'] && $_SESSION['registration_id']) { ?> - '".$config['dates']['regclose']."') AS test"); - $r=mysql_fetch_object($q); - if($r->test==1) { - $registrationconfirmationlink="
  • ".i18n("Confirmed Participants")."
  • "; - } - } - +if(substr(getcwd(),-6)=="/admin" || substr(getcwd(),-7)=="/config" || substr(getcwd(),-6)=="/super") { + ?> +
    +
    + diff --git a/theme/default/sfiab.css b/theme/default/sfiab.css index 41f5aab..bc01a9b 100644 --- a/theme/default/sfiab.css +++ b/theme/default/sfiab.css @@ -85,6 +85,16 @@ table tr.odd { height: 24px; } +#secondarymenu { + text-align: center; + background: #E0E0FF; + padding: 2px; + border-bottom: 1px solid silver; + margin-top: 0px; + margin-bottom: 5px; + height: 22px; +} + #left { width: 165px; background: #EEEEFF;