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.104.118
<?php
//Get the scores and store them in an array for each team
for($i=1;$i<=$maxPer;$i++){
//Get the score for each teams for this period($i)
$genResult_scoreVis[$i] = mysql_num_rows(mysql_query($sql = "SELECT * FROM parties_subevents LEFT JOIN parties_events USING(id_partie_event) WHERE parties_events.id_partie = $id_partie AND periode = $i AND parties_subevents.id_equipe = $partie[id_equipe_vis] AND code_subevent = 1", $mysql_link));
$genResult_scoreDom[$i] = mysql_num_rows(mysql_query($sql = "SELECT * FROM parties_subevents LEFT JOIN parties_events USING(id_partie_event) WHERE parties_events.id_partie = $id_partie AND periode = $i AND parties_subevents.id_equipe = $partie[id_equipe_dom] AND code_subevent = 1", $mysql_link));
$genResult_scoreVis['final'] = $partie['but_vis'];
$genResult_scoreDom['final'] = $partie['but_dom'];
}
if($partie['fusilladestatus'] > 0){
if($partie['gamestatus'] >= 2){
//Get the scores for the FUS
$genResult_scoreVis['fus'] = mysql_num_rows(mysql_query($sql = "SELECT * FROM parties_subevents LEFT JOIN parties_events USING(id_partie_event) WHERE parties_events.id_partie = $id_partie AND parties_subevents.id_equipe = $partie[id_equipe_vis] AND code_subevent = 19 AND param2 = 1", $mysql_link));
$genResult_scoreDom['fus'] = mysql_num_rows(mysql_query($sql = "SELECT * FROM parties_subevents LEFT JOIN parties_events USING(id_partie_event) WHERE parties_events.id_partie = $id_partie AND parties_subevents.id_equipe = $partie[id_equipe_dom] AND code_subevent = 19 AND param2 = 1", $mysql_link));
}else{
$genResult_scoreVis['fus'] = 0;
$genResult_scoreDom['fus'] = 0;
}
}
//Get the teams stats
$teamVis = mysql_fetch_assoc(mysql_query($sql = "SELECT * FROM parties_equipes WHERE id_equipe = $partie[id_equipe_vis] AND id_partie = $id_partie", $mysql_link));
$teamDom = mysql_fetch_assoc(mysql_query($sql = "SELECT * FROM parties_equipes WHERE id_equipe = $partie[id_equipe_dom] AND id_partie = $id_partie", $mysql_link));
$sqlLancersPeriod = "
SELECT
p1_vis, p2_vis, p3_vis,
prol1_vis, prol2_vis, prol3_vis, prol4_vis, prol5_vis, prol6_vis,
p1_dom, p2_dom, p3_dom,
prol1_dom, prol2_dom, prol3_dom, prol4_dom, prol5_dom, prol6_dom,
show_total_on_summary
FROM parties
WHERE id_partie = ".$id_partie;
$aResultLancersPeriod = mysql_fetch_assoc(mysql_query($sqlLancersPeriod, $mysql_link));
if ($aResultLancersPeriod['show_total_on_summary'] == '1') {
$bResultLancersPeriod = true;
} else {
$bResultLancersPeriod = false;
}
$iVisTotal = $aResultLancersPeriod['p1_vis'] +
$aResultLancersPeriod['p2_vis'] +
$aResultLancersPeriod['p3_vis'] +
$aResultLancersPeriod['prol1_vis'] +
$aResultLancersPeriod['prol2_vis'] +
$aResultLancersPeriod['prol3_vis'] +
$aResultLancersPeriod['prol4_vis'] +
$aResultLancersPeriod['prol5_vis'] +
$aResultLancersPeriod['prol6_vis'];
$iDomTotal = $aResultLancersPeriod['p1_dom'] +
$aResultLancersPeriod['p2_dom'] +
$aResultLancersPeriod['p3_dom'] +
$aResultLancersPeriod['prol1_dom'] +
$aResultLancersPeriod['prol2_dom'] +
$aResultLancersPeriod['prol3_dom'] +
$aResultLancersPeriod['prol4_dom'] +
$aResultLancersPeriod['prol5_dom'] +
$aResultLancersPeriod['prol6_dom'];
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap><span class="blueText14px"><b>Game score</b></span></td>
<td width="15"> </td>
<td nowrap><span class="blueText14px"><b>Game summary</b></span></td>
</tr>
<tr>
<td align="left" valign="top" class="blueText11px">
<table border="0" cellpadding="0" cellspacing="0" class="outlinetab">
<tr class="darkblueRow">
<td height="18" nowrap> </td>
<td width="10" nowrap> </td>
<td nowrap> </td>
<td width="10" align="center" nowrap class="whiteText12px"> </td>
<?php for($i=1; $i<=$maxPer; $i++){ ?>
<td width="30" align="center" nowrap class="whiteText12px"><strong>
<?php if($i <= $partie['config_games_regper_num']){ echo $i; }elseif($i == ($partie['config_games_regper_num']+1)) { echo "OT."; } else { echo "OT." . (string)($i-$partie['config_games_regper_num']); } ?>
</strong></td>
<?php } ?>
<?php if($partie['fusilladestatus'] > 0){ ?>
<td width="50" align="center" nowrap class="whiteText12px"><strong>Sh.</strong></td>
<?php } ?>
<td width="50" align="center" nowrap class="whiteText12px"><b>Total</b></td>
</tr>
<tr>
<td height="65"><img src="<?php echo $equipe_vis[$idVis]['hist_pic56x62']; ?>"></td>
<td> </td>
<td><a href="index.php?page=8392&id_equipe=<?php echo $idVis; ?>" class="lnkBase12px" onFocus="if(this.blur)this.blur()"><b><?php echo $equipe_vis[$idVis]['hist_city']; ?></b></a></td>
<td align="center" class="blackText11px"> </td>
<?php for($i=1; $i<=$maxPer; $i++){ ?>
<td width="30" align="center" class="blackText11px"><?php echo $genResult_scoreVis[$i]; ?></td>
<?php } ?>
<?php if($partie['fusilladestatus'] > 0){ ?>
<td width="50" align="center" class="blackText11px"><?php echo ($genResult_scoreVis['fus'] > $genResult_scoreDom['fus'] ? 1 : 0); ?></td>
<?php } ?>
<td width="50" align="center" class="blackText16px"><b><?php echo $genResult_scoreVis[final]; ?></b></td>
</tr>
<tr>
<td height="65"><img src="<?php echo $equipe_dom[$idDom]['hist_pic56x62']; ?>"></td>
<td> </td>
<td><a href="index.php?page=8392&id_equipe=<?php echo $idDom; ?>" class="lnkBase12px" onFocus="if(this.blur)this.blur()"><b><?php echo $equipe_dom[$idDom]['hist_city']; ?></b></a></td>
<td align="center" class="blackText11px"> </td>
<?php for($i=1; $i<=$maxPer; $i++){ ?>
<td width="30" align="center" class="blackText11px"><?php echo $genResult_scoreDom[$i]; ?></td>
<?php } ?>
<?php if($partie['fusilladestatus'] > 0){ ?>
<td width="50" align="center" class="blackText11px"><?php echo ($genResult_scoreVis['fus'] < $genResult_scoreDom['fus'] ? 1 : 0); ?></td>
<?php } ?>
<td width="50" align="center" class="blackText16px"><b><?php echo $genResult_scoreDom[final]; ?></b></td>
</tr>
</table>
</td>
<td width="15" align="center" class="blueText11px"> </td>
<td align="left" valign="top" class="blueText11px">
<?php
if ($bResultLancersPeriod) {
$teamVis[lan] = $iVisTotal;
$teamDom[lan] = $iDomTotal;
$sHeaderW = '';
} else {
$sHeaderW = 'width="40"';
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="outlinetab">
<tr class="darkblueRow">
<td <?= $sHeaderW ?> height="18" align="center" class="whiteText12px"><strong>Shots</strong></td>
<?php if ( ! $bResultLancersPeriod) { ?> <td <?= $sHeaderW ?> align="center" class="whiteText12px"><b>Ds</b></td> <?php } ?>
<?php if ( ! $bResultLancersPeriod) { ?> <td <?= $sHeaderW ?> align="center" class="whiteText12px"><strong>Wfo</strong></td> <?php } ?>
<?php if ( ! $bResultLancersPeriod) { ?> <td <?= $sHeaderW ?> align="center" class="whiteText12px"><strong>Gh</strong></td> <?php } ?>
<td <?= $sHeaderW ?> align="center" class="whiteText12px"><strong>PP</strong></td>
</tr>
<tr>
<td height="65" align="center" class="blueText11px"><?= $teamVis[lan] ?></td>
<?php if ( ! $bResultLancersPeriod) { ?> <td align="center" class="blueText11px"><?= $teamVis[ld] ?></td> <?php } ?>
<?php if ( ! $bResultLancersPeriod) { ?> <td align="center" class="blueText11px"><?= $teamVis[mjg] ?></td> <?php } ?>
<?php if ( ! $bResultLancersPeriod) { ?> <td align="center" class="blueText11px"><?= $teamVis[mecd] ?></td> <?php } ?>
<td align="center" class="blueText11px"><?= $teamVis[an] . "/" . $teamVis[antry] ?></td>
</tr>
<tr>
<td height="65" align="center" class="blueText11px"><?= $teamDom[lan] ?></td>
<?php if ( ! $bResultLancersPeriod) { ?> <td align="center" class="blueText11px"><?= $teamDom[ld] ?></td> <?php } ?>
<?php if ( ! $bResultLancersPeriod) { ?> <td align="center" class="blueText11px"><?= $teamDom[mjg] ?></td> <?php } ?>
<?php if ( ! $bResultLancersPeriod) { ?> <td align="center" class="blueText11px"><?= $teamDom[mecd] ?></td> <?php } ?>
<td align="center" class="blueText11px"><?= $teamDom[an] . "/" . $teamDom[antry] ?></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
|