forked from science-ation/science-ation
Start implementing the secondary menu
Fix importantdates div to not load when the div isnt there
This commit is contained in:
parent
ac450aefdf
commit
6021d9f486
@ -451,6 +451,7 @@ function send_header($title="", $nav=null, $icon=null, $titletranslated=false)
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('.tableview').tablesorter();
|
||||
if($("#importantdatesbox").length)
|
||||
$("#importantdatesbox").load("important_dates.php?display=box");
|
||||
});
|
||||
</script>
|
||||
@ -600,6 +601,20 @@ if(is_array($nav)) {
|
||||
} else {
|
||||
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/index.php\">".i18n("Home").'</a></li>';
|
||||
}
|
||||
|
||||
//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="<li><a href=\"".$config['SFIABDIRECTORY']."/confirmed_participants.php\">".i18n("Confirmed Participants")."</a></li>";
|
||||
}
|
||||
}
|
||||
|
||||
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/important_dates.php\">".i18n("Important Dates").'</a></li>';
|
||||
echo $registrationconfirmationlink;
|
||||
/*
|
||||
@ -611,6 +626,7 @@ if(is_array($nav)) {
|
||||
*/
|
||||
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/committees.php\">".i18n("Committee").'</a></li>';
|
||||
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/winners.php\">".i18n("Winners").'</a></li>';
|
||||
|
||||
?>
|
||||
<?
|
||||
if($_SESSION['users_type'] == 'committee') {
|
||||
@ -627,7 +643,6 @@ if($_SESSION['users_type'] == 'committee') {
|
||||
}
|
||||
} else if($_SESSION['users_type']=="judge") {
|
||||
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/user_personal.php\">".i18n("My Profile").'</a></li>';
|
||||
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/judge_main.php\">".i18n("Judge Home").'</a></li>';
|
||||
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/user_login.php?action=logout\">".i18n("Logout").'</a></li>';
|
||||
} else if($_SESSION['users_type']=="volunteer") {
|
||||
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/user_personal.php\">".i18n("My Profile").'</a></li>';
|
||||
@ -649,21 +664,13 @@ else if($_SESSION['registration_number'] && $_SESSION['registration_id']) {
|
||||
?></ul>
|
||||
|
||||
</div>
|
||||
|
||||
<?
|
||||
//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="<li><a href=\"".$config['SFIABDIRECTORY']."/confirmed_participants.php\">".i18n("Confirmed Participants")."</a></li>";
|
||||
if(substr(getcwd(),-6)=="/admin" || substr(getcwd(),-7)=="/config" || substr(getcwd(),-6)=="/super") {
|
||||
?>
|
||||
<div id="secondarymenu">
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
<div id="left">
|
||||
</div>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user