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.91.130
<?php
//Get the events 6 (Gardiens)
$events = mysql_query("SELECT * FROM parties_events WHERE id_partie = ".$_REQUEST['id_partie']." AND code_event = 6 ORDER BY periode ASC, minutes ASC", $mysql_link);
while($event = mysql_fetch_array($events)){
//Save the time/period
$details[gbs][$event[id_partie_event]][tmp] = $event[minutes];
$details[gbs][$event[id_partie_event]][per] = $event[periode];
//Get the subevents
$subevents = mysql_query($sql = "SELECT * FROM parties_subevents WHERE id_partie_event = $event[id_partie_event] ORDER BY code_subevent ASC", $mysql_link);
while($subevent = mysql_fetch_array($subevents)){
switch($subevent[code_subevent]){
case 9:
//Save the player
$player = mysql_fetch_array(mysql_query("SELECT * FROM parties_joueurs WHERE id_partie_joueur = $subevent[id_partie_joueur]", $mysql_link));
$details[gbs][$event[id_partie_event]][numin] = $player[numero];
//Get the team
if($subevent[id_equipe] == $idVis){
$details[gbs][$event[id_partie_event]][equ] = $abrevVis;
$details[gbs][$event[id_partie_event]][equid] = $idVis;
}else{
$details[gbs][$event[id_partie_event]][equ] = $abrevDom;
$details[gbs][$event[id_partie_event]][equid] = $idDom;
}
//Get the params
$details[gbs][$event[id_partie_event]][tmpin] = substr($subevent[param5], 3);
$details[gbs][$event[id_partie_event]][perin] = $event[periode];
break;
case 8:
//Save the player
$player = mysql_fetch_array(mysql_query("SELECT * FROM parties_joueurs WHERE id_partie_joueur = $subevent[id_partie_joueur]", $mysql_link));
$details[gbs][$event[id_partie_event]][numout] = $player[numero];
//Get the team
if($subevent[id_equipe] == $idVis){
$details[gbs][$event[id_partie_event]][equ] = $abrevVis;
$details[gbs][$event[id_partie_event]][equid] = $idVis;
}else{
$details[gbs][$event[id_partie_event]][equ] = $abrevDom;
$details[gbs][$event[id_partie_event]][equid] = $idDom;
}
//Get the params
$details[gbs][$event[id_partie_event]][tmpout] = substr($subevent[param5], 3);
$details[gbs][$event[id_partie_event]][perout] = $event[periode];
$details[gbs][$event[id_partie_event]][bc] = $subevent[param1];
$details[gbs][$event[id_partie_event]][fd] = $subevent[param2];
$details[gbs][$event[id_partie_event]][lan] = $subevent[param3];
$details[gbs][$event[id_partie_event]][dang] = $subevent[param4];
break;
}
}
}
?>
<div ID="2c" style="display:none">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="outlinetab">
<tr>
<td width="87%" bgcolor="#546085" class="orangeText10px">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#868A96" height="14"><img src="../images/spacer.gif" width="8" height="8"></td>
<td bgcolor="#868A96" height="14"><span class="orangeText9px"><strong><a href="javascript:SwitchDivItem('2a', 'block');javascript:SwitchDivItem('2b', '');javascript:SwitchDivItem('2c', '')">Buts & Plus-Moins</a></strong></span></td>
<td bgcolor="#546085" height="14"><img src="../images/onglet_topcentre.gif" width="19" height="15"></td>
<td bgcolor="#868A96"><span class="orangeText9px"><strong><a href="javascript:SwitchDivItem('2a', '');javascript:SwitchDivItem('2b', 'block');javascript:SwitchDivItem('2c', '')">Lancer de punition</a></strong></span></td>
<td height="14"><img src="../images/onglet_modulefin.gif" width="19" height="15"></td>
<td><span class="orangeText9px"><strong>Entrée sortie de gardiens de buts</strong></span></td>
<td height="14"><img src="../images/spacer.gif" width="8" height="8"></td>
</tr>
</table>
</td>
<td width="13%" align="right" bgcolor="#546085" class="orangeText10px"><a href="#" onClick="MM_callJS('submitToModule(5, 0)')"><img src="images/but_go.gif" name="goalieGo" width="42" height="14" border="0" id="goalieGo"></a></td>
</tr>
<tr>
<td colspan="2" align="right" height="4" bgcolor="#FFFFFF"><img src="../images/bottombutgo.gif" width="45" height="4"></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="blueText10px" width="24"> </td>
<td class="blueText10px"><strong>Équipe</strong></td>
<td colspan="3" align="left" class="blueText10px"><STRONG>Entrée de gardien</STRONG></td>
<td width="13" rowspan="3" align="left" background="../images/spacerverti.gif" class="blueText10px"><img src="../images/spacer.gif" width="13" height="8"></td>
<td colspan="7" align="left" class="blueText10px"><STRONG>Sortie de gardien</STRONG></td>
<td class="blueText10px" align="center"> </td>
</tr>
<tr>
<td width="24" valign="bottom" class="blackText9px"><input name="sec5nume" type="radio" value="<?php echo $idVis; ?>" checked></td>
<td width="100" valign="bottom" class="blackText9px"> VIS - <span class="blueText10px"><b><?php echo $abrevVis; ?></b></span></td>
<td width="50" align="center" class="blueText10px">GB</td>
<td width="100" align="center" class="blueText10px">Entrée</td>
<td width="50" align="center" class="blueText10px">Pér.</td>
<td width="50" align="center" class="blueText10px">GB</td>
<td width="100" align="center" class="blueText10px">Sortie</td>
<td width="50" align="center" class="blueText10px">Pér.</td>
<td width="50" align="center" class="blueText10px">BC</td>
<td width="50" align="center" class="blueText10px">FD</td>
<td width="50" align="center" class="blueText10px">Lan.</td>
<td width="50" align="center" class="blueText10px">Dang.</td>
<td class="blueText10px" align="center"> </td>
</tr>
<tr>
<td width="24" valign="top" class="blackText9px"><input type="radio" name="sec5nume" value="<?php echo $idDom; ?>">
<INPUT name="sec5selequ" type="hidden" id="sec5selequ" value="0"></td>
<td width="100" valign="top" class="blackText9px">LOC - <span class="blueText10px"><b><?php echo $abrevDom; ?></b></span></td>
<td width="50" align="center" class="blackText9px"><input name="sec5numin" type="text" id="sec5numin" onKeyPress="MM_callJS('keypress_submitToModule(1, 5)')" size="3"></td>
<td width="100" align="center" class="blackText9px"><input name="sec5tmpin" type="text" id="sec5tmpin" onKeyPress="MM_callJS('keypress_submitToModule(1, 5)')" value="<?php echo $timeLeftAbs; ?>" size="5" maxlength="5"></td>
<td width="50" align="center" class="blackText9px"> <strong><span class="blackText11px"><?php echo $perAbs; ?></span></strong></td>
<td width="50" align="center" class="blackText9px"> <input name="sec5numout" type="text" id="sec5numout" onKeyPress="MM_callJS('keypress_submitToModule(1, 5)')" size="3"></td>
<td width="100" align="center" class="blackText9px"> <input name="sec5tmpout" type="text" id="sec5tmpout" onKeyPress="MM_callJS('keypress_submitToModule(1, 5)')" value="<?php echo $timeLeftAbs; ?>" size="5" maxlength="5"></td>
<td width="50" align="center" class="blackText9px"> <strong><span class="blackText11px"><?php echo $perAbs; ?></span></strong></td>
<td width="50" align="center" class="blackText9px"> <input name="sec5bc" type="text" id="sec5bc" onKeyPress="MM_callJS('keypress_submitToModule(1, 5)')" size="3"></td>
<td width="50" align="center" class="blackText9px"> <input name="sec5fd" type="text" id="sec5fd" onKeyPress="MM_callJS('keypress_submitToModule(1, 5)')" size="3"></td>
<td width="50" align="center" class="blackText9px"> <input name="sec5lan" type="text" id="sec5lan" onKeyPress="MM_callJS('keypress_submitToModule(1, 5)')" size="3"></td>
<td width="50" align="center" class="blackText9px"> <input name="sec5dang" type="text" id="sec5dang" onKeyPress="MM_callJS('keypress_submitToModule(1, 5)')" size="3"></td>
<td class="blackText9px" align="center"> </td>
</tr>
<tr>
<td valign="top" class="blackText9px"> </td>
<td valign="top" class="blackText9px"> </td>
<td align="center" class="blackText9px"> </td>
<td align="center" class="blackText9px"> </td>
<td align="center" class="blackText9px"> </td>
<td align="left" class="blueText10px"> </td>
<td align="center" class="blackText9px"> </td>
<td align="center" class="blackText9px"> </td>
<td align="center" class="blackText9px"> </td>
<td align="center" class="blackText9px"> </td>
<td align="center" class="blackText9px"> </td>
<td align="center" class="blackText9px"> </td>
<td align="center" class="blackText9px"> </td>
<td class="blackText9px" align="center"> </td>
</tr>
<tr>
<td valign="top" class="blackText9px"> </td>
<td colspan="12" valign="top" class="blackText9px">
<table border="0" cellpadding="0" cellspacing="0" class="outlinetab">
<?php
$i=0;
if(is_array($details[gbs])){
?>
<tr align="center" class="blueText11px">
<td width="50" bgcolor="#E8E9F5">Équipe</td>
<td width="30" bgcolor="#E8E9F5">GB</td>
<td width="100" bgcolor="#E8E9F5">Entrée</td>
<td width="30" bgcolor="#E8E9F5" class="blueText10px">Pér.</td>
<td width="13" bgcolor="#E8E9F5"> </td>
<td width="30" bgcolor="#E8E9F5">GB</td>
<td width="100" bgcolor="#E8E9F5">Sortie</td>
<td width="40" bgcolor="#E8E9F5">Pér.</td>
<td width="40" bgcolor="#E8E9F5" class="blueText10px">BC</td>
<td width="40" bgcolor="#E8E9F5" class="blueText10px">FD</td>
<td width="40" bgcolor="#E8E9F5" class="blueText10px">Lan.</td>
<td width="40" bgcolor="#E8E9F5" class="blueText10px">Dang.</td>
</tr>
<tr align="center" bgcolor="#546085" class="blueText11px">
<td height="1" colspan="12"><IMG src="../../images/spacer.gif" width="1" height="1"></td>
</tr>
<?php
foreach($details[gbs] as $gbkey => $gb){
if($rowClass == "list1Reg"){
$rowClass = "list2Reg";
}else{
$rowClass = "list1Reg";
}
?>
<tr align="center" class="<?php echo $rowClass; ?>">
<td valign="bottom" class="blackText9px">
<span class="blueText10px"><b>
<?php if($gb[equid] == $idVis){echo $abrevVis;}else{echo $abrevDom;} ?>
</b></span>
</td>
<td class="blackText9px"><?php echo $gb[numin]; ?></td>
<td class="blackText9px"><?php echo $gb[tmpin]; ?></td>
<td class="blackText9px"><?php echo $gb[perin]; ?></td>
<td background="../images/spacerverti.gif" class="blueText10px"> </td>
<td class="blackText9px"><?php echo $gb[numout]; ?></td>
<td class="blackText9px"><?php echo $gb[tmpout]; ?></td>
<td class="blackText9px"><?php echo $gb[perout]; ?></td>
<td class="blackText9px"><?php echo $gb[bc]; ?></td>
<td class="blackText9px"><?php echo $gb[fd]; ?></td>
<td class="blackText9px"><?php echo $gb[lan]; ?></td>
<td class="blackText9px"><?php echo $gb[dang]; ?></td>
</tr>
<?php
}
}
?>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF"><img src="../images/spacer.gif" width="1" height="8"></td>
</tr>
</table>
</div>
|