Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 3.145.55.25
<?php
$data = mysql_query($sql = "SELECT * FROM csr_events ORDER BY dateevent_start, nom_en", $mysql_link);
?>
<TABLE width="100%=%" border="0" cellspacing="0" cellpadding="5">
<TR>
<TD> <!-- <TABLE width="622" border="0" cellpadding="0" cellspacing="0" class="outlinetab">
<TR class="blueRow">
<TD class="cellPadding5">
<P class="blackText11px"><b>Central Scouting Challenge:</b>
<P class="blackText11px"><A href="../old_lhjmq/operations/selection_2002/Challenge2002_horaire.html" target="_blank" class="lnkBase11px">2002</A> <BR>
<A href="index.php?page=875416498&id_saison_event=11" class="lnkBase11px">2003</A><BR>
<A href="?page=875416498&id_saison_event=30%20" target="_blank" class="lnkBase11px">2004</A>
<P class="blackText11px"><b>QMJHL annual entry draft:</b>
<P class="blackText11px"><A href="../old_lhjmq/operations/selection_2000/SEANCE_SELECTION_2000.html" target="_blank" class="lnkBase11px">2000</A> <BR>
<A href="../old_lhjmq/operations/Selection%202001/SEANCE_SELECTION_2001.html" target="_blank" class="lnkBase11px">2001</A> <BR>
<A href="../old_lhjmq/operations/selection_2002/pageofficielle_selection_2002.html" target="_blank" class="lnkBase11px">2002</A> <BR>
<A href="index.php?page=875416498&id_saison_event=12" class="lnkBase11px">2003</A> </TD>
</TR>
</TABLE>//--></TD>
</TR>
</TABLE>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<!--TITRE DE PAGE -->
<!--##### TAB result ##### -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="blackText14px">
<b>
<?php
$title = mysql_fetch_assoc(mysql_query("SELECT var_text FROM lhjmq_variables WHERE id_var = 'csr_event_title_en'", $mysql_link));
echo $title[var_text];
?></b>
</td>
</tr>
<tr>
<td><img src="../../images/tabbar/tabligneshadow.gif" width="621" height="3"></td>
</tr>
<tr>
<td><img src="../../images/spacer.gif" width="1" height="5"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="outlinetab">
<tr class="darkblueRow">
<td nowrap class="whiteText10px"><b>Dates</b></td>
<td width="10" nowrap class="whiteText10px"> </td>
<!-- <td width="100" class="whiteText10px"><b>Day</b></td> -->
<td width="100%" class="whiteText10px"><b>Events</b></td>
</tr>
<?php
if(mysql_num_rows($data) > 0){
while($item = mysql_fetch_assoc($data)){
if($rowClass == "blueRow"){$rowClass = "";}else{$rowClass = "blueRow";} ?>
<tr class="<?php echo $rowClass; ?>">
<td nowrap class="blackText9px"><?php echo $item[dateevent_start] . ($item[dateevent_end] != '0000-00-00' ? ' to ' . $item[dateevent_end] : ''); ?></td>
<td nowrap class="blackText9px"> </td>
<!-- <td class="blackText9px"><?php //echo getDay($item[dateevent]); ?></td> -->
<td class="blackText9px"><?php echo $item[nom_en]; ?></td>
</tr>
<?php
}
}else{ ?>
<tr>
<td colspan="3" class="blackText9px">No item to show</td>
</tr>
<?php } ?>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#546085">
<tr>
<td><img src="../../images/spacer.gif" width="621" height="1"></td>
</tr>
</table> </td>
</tr>
</table>
<?php
function getDay($datestr){
$splited = explode("-", $datestr);
$datestr = date("w", mktime(0, 0, 0, $splited[1], $splited[2], $splited[0]));
switch($datestr){
case 0: return "Sunday";
case 1: return "Monday";
case 2: return "Tuesday";
case 3: return "Wednesday";
case 4: return "Thursday";
case 5: return "Friday";
case 6: return "Saturday";
}
}
?>
|