AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.144.15.34


Current Path : /var/www/lhjmq-records.qc.ca/public_html/administration/op_resultats/lib/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/administration/op_resultats/lib/menuBox.php

<?php
//Check in what page we are, the current menu will display the detail box instead of redirecting
$page = substr(getenv("SCRIPT_NAME"), strrpos(getenv("SCRIPT_NAME"), "/") + 1);
//Set the default
$col01_color = "868A96";
$col02_color = "868A96";
$col03_color = "868A96";
$col04_color = "868A96";
$col05_color = "868A96";
$col06_color = "868A96";
$col07_color = "868A96";
$col08_color = "868A96";
$col09_color = "868A96";
$col10_color = "868A96";
$col11_color = "868A96";
$col12_color = "868A96";
$col13_color = "868A96";
$col02_link = true;
$col04_link = true;
$col06_link = true;
$col08_link = true;
$col10_link = true;
$col12_link = true;
$col03_corner = "onglet_topcentre.gif";
$col05_corner = "onglet_topcentre.gif";
$col07_corner = "onglet_topcentre.gif";
$col09_corner = "onglet_topcentre.gif";
$col11_corner = "onglet_topcentre.gif";
$col13_corner = "onglet_topfin.gif";

//Set the changes
if($page == "entry_matchevents.php"){
	//Set the colors
	$col01_color = "546085";
	$col02_color = "546085";
	$col03_color = "546085";
	//Set the corner images
	$col03_corner = "onglet_top.gif";
	//Set the links
	$col02_link = false;
}elseif($page == "entry_selectparts_off.php" or $page == "entry_selectparts_dom.php" or $page == "entry_selectparts_vis.php" or $page == "entry_editparts_off.php" or $page == "entry_createparts_off.php" or $page == "entry_editparts_pers.php" or $page == "entry_createparts_pers.php" or $page == "entry_editparts_gb.php" or $page == "entry_createparts_gb.php" or $page == "entry_editparts_player.php" or $page == "entry_createparts_player.php"){
	//Set the colors
	$col03_color = "546085";
	$col04_color = "546085";
	$col05_color = "546085";
	//Set the corner images
	$col03_corner = "onglet_modulefin.gif";
	$col05_corner = "onglet_top.gif";
	//Set the links
	$col04_link = false;
}elseif($page == "entry_statevents.php"){
	//Set the colors
	$col05_color = "546085";
	$col06_color = "546085";
	$col07_color = "546085";
	//Set the corner images
	$col05_corner = "onglet_modulefin.gif";
	$col07_corner = "onglet_top.gif";
	//Set the links
	$col06_link = false;
}elseif($page == "entry_detevents.php" or $page == "entry_blockevents.php"){
	//Set the colors
	$col07_color = "546085";
	$col08_color = "546085";
	$col09_color = "546085";
	//Set the corner images
	$col07_corner = "onglet_modulefin.gif";
	$col09_corner = "onglet_top.gif";
	//Set the links
	$col08_link = false;
}elseif($page == "entry_listevents.php"){
	//Set the colors
	$col09_color = "546085";
	$col10_color = "546085";
	$col11_color = "546085";
	//Set the corner images
	$col09_corner = "onglet_modulefin.gif";
	$col11_corner = "onglet_top.gif";
	//Set the links
	$col10_link = false;
}elseif($page == "entry_options.php"){
	//Set the colors
	$col11_color = "546085";
	$col12_color = "546085";
	$col13_color = "546085";
	//Set the corner images
	$col11_corner = "onglet_modulefin.gif";
	$col13_corner = "onglet_topfin2.gif";
	//Set the links
	$col12_link = false;
}
?>
<script language="JavaScript" type="text/javascript">
function SwitchDivItem(DivItemName, DivItemStyle){
	DivItem = document.getElementById(DivItemName);
	if(DivItemStyle == ""){
		DivItem.style.display = "none";
	}else if(DivItemStyle == "switch"){
		if(DivItem.style.display == "none"){
			DivItem.style.display = "block";
		}else{
			DivItem.style.display = "none";
		}
	}else{
		DivItem.style.display = "block";
	}
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr valign="top">
		<td valign="bottom" height="20">
			<table border="0" cellpadding="0" cellspacing="0">
				<tr>
					<!--Col01--><td nowrap bgcolor="#<?php echo $col01_color; ?>"><img src="images/spacer.gif" width="8" height="1"></td>
					<!--Col02--><td nowrap bgcolor="#<?php echo $col02_color; ?>"><span class="whiteText9px"><strong><a href="<?php if($col02_link == false){echo "javascript:SwitchDivItem('details', 'switch')";}else{echo 'entry_matchevents.php?id_partie='.$_REQUEST['id_partie'];} ?>">Saisie de match</a></strong></span></td>
					<!--Col03--><td nowrap bgcolor="#<?php echo $col03_color; ?>"><img src="images/<?php echo $col03_corner; ?>" width="19" height="15"></td>
					<!--Col04--><td nowrap bgcolor="#<?php echo $col04_color; ?>"><span class="whiteText9px"><strong><a href="<?php if($col04_link == false){echo "javascript:SwitchDivItem('details', 'switch')";}else{echo 'entry_selectparts_off.php?id_partie='.$_REQUEST['id_partie'];} ?>">Participants</a></strong></span></td>
					<!--Col05--><td nowrap bgcolor="#<?php echo $col05_color; ?>"><img src="images/<?php echo $col05_corner; ?>" width="19" height="15"></td>
					<!--Col06--><td nowrap bgcolor="#<?php echo $col06_color; ?>"><span class="whiteText9px"><strong><a href="<?php if($col06_link == false){echo "javascript:SwitchDivItem('details', 'switch')";}else{echo 'entry_statevents.php?id_partie='.$_REQUEST['id_partie'];} ?>">Rapport de stats.</a></strong></span></td>
					<!--Col07--><td nowrap bgcolor="#<?php echo $col07_color; ?>"><img src="images/<?php echo $col07_corner; ?>" width="19" height="15"></td>
					<!--Col08--><td nowrap bgcolor="#<?php echo $col08_color; ?>"><span class="whiteText9px"><strong><a href="<?php if($col08_link == false){echo "javascript:SwitchDivItem('details', 'switch')";}else{echo 'entry_detevents.php?id_partie='.$_REQUEST['id_partie'];} ?>">D&eacute;tails des &eacute;v&eacute;nements</a></strong></span></td>
					<!--Col09--><td nowrap bgcolor="#<?php echo $col09_color; ?>"><img src="images/<?php echo $col09_corner; ?>" width="19" height="15"></td>
					<!--Col10--><td nowrap bgcolor="#<?php echo $col10_color; ?>"><span class="whiteText9px"><strong><a href="<?php if($col10_link == false){echo "javascript:SwitchDivItem('details', 'switch')";}else{echo 'entry_listevents.php?id_partie='.$_REQUEST['id_partie'];} ?>">Liste des &eacute;v&eacute;nements</a></strong></span></td>
					<!--Col11--><td nowrap bgcolor="#<?php echo $col11_color; ?>"><img src="images/<?php echo $col11_corner; ?>" width="19" height="15"></td>
					<!--Col12--><td nowrap bgcolor="#<?php echo $col12_color; ?>"><span class="whiteText9px"><strong><a href="<?php if($col12_link == false){echo "javascript:SwitchDivItem('details', 'switch')";}else{echo 'entry_options.php?id_partie='.$_REQUEST['id_partie'];} ?>">Options</a></strong></span></td>
					<!--Col13--><td nowrap bgcolor="#<?php echo $col13_color; ?>"><img src="images/<?php echo $col13_corner; ?>" width="19" height="15"></td>
					<!--Col14--><td nowrap><img src="../images/spacer.gif" width="15" height="8"></td>
					<!--Col15--><td nowrap><a href="validate.php?id_partie=<?php echo $_REQUEST['id_partie']; ?>"><img src="images/but_validationstats.gif" border="0"></a></td>
					<!--Col16--><td nowrap><img src="../images/spacer.gif" width="15" height="8"></td>
					<!--Col17--><td nowrap><A href="../../lang_fr/index.php?page=342374&id_partie=<?php echo $_REQUEST['id_partie']; ?>" target="_blank"><img src="images/but_sommaire.gif" border="0"></A></td>
				</tr>
			</table>
		</td>
	</tr>
</table>