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



Your IP : 18.117.232.108


Current Path : /var/www/lhjmq-records.qc.ca/public_html/lang_en/league/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/lang_en/league/events.php

<?php
$data = mysql_query($sql = "SELECT * FROM laligue_events ORDER BY dateevent_start, nom_en", $mysql_link);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td> 
      <!--TITRE DE PAGE -->
      <!--##### TAB result ##### -->
      <span class="blackText12px"><b><?php echo $month[$moisde]; ?></b></span> 
      <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 = 'laligue_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" class="whiteText10px">&nbsp;&nbsp;&nbsp;</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 width="10" class="blackText9px">&nbsp;&nbsp;&nbsp;</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="4" 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";
	}
}
?>