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.118.126.51


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

<?php
if (!isset($generateEventColumn)) $generateEventColumn = 3;

$events_column_width = ($generateEventColumn == 2) ? 191 : 159;

$events_article_column_width = ($generateEventColumn == 2) ? 172 : 140;

$events_column_bgcolor = ($generateEventColumn == 2) ? '#BBBFCE' : '#8a92ab';
?>
<table width="<?php echo $events_column_width; ?>" border="0" cellspacing="0" cellpadding="0" class="normalTableBg" align="center">
  <tr>
    <td valign="top">
      <!--- TITLE BAR --->
      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color: <?php echo $events_column_bgcolor; ?>" class="lightTableBg">
        <tr>
          <td height="20" align="left" valign="top"><img src="../images/int_nouvelle/nouvelle_seperator_section<?php echo $generateEventColumn; ?>.gif" width="<?php echo $events_column_width; ?>" height="3"><br><img src="images/int_nouvelle/evenements_title<?php echo $generateEventColumn; ?>.gif"></td>
        </tr>
      </table>
      <?php 
			$res = mysql_query("SELECT * FROM lhjmq_variables AS lv LEFT JOIN site_events AS se ON se.id_event = lv.var_num WHERE lv.id_var = 'homepage_event' AND lv.var_num <> 0 ORDER BY id_index", $mysql_link);
			while($row = mysql_fetch_assoc($res)){
			?>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color: <?php echo $events_column_bgcolor; ?>" class="lightTableBg">
        <tr>
          <!--- ARTICLE --->
          <td align="left" valign="top" class="cellPadding2"> 
            <table width="100%" cellpadding="1" cellspacing="0">
							<tr>
								<td><img src="../images/int_nouvelle/event_bullet.gif" width="5" height="5"></td>
								<td class="blackText9px"><?php echo $row['date_event']; ?></td>
							</tr>
							<?php if($row['titre_fr'] != ''){ ?>
							<tr>
								<td><img src="../images/spacer.gif" width="5" height="5"></td>
								<td class="blackText9px"><b><a href="<?php if($row['targetPage'] != ""){echo $row['targetPage'];}else{?>index.php?page=875416498&id_event=<?php echo $row['id_event'];} ?>" class="lnkBase10px"><?php echo $row['titre_fr']; ?></a></b></td>
							</tr>
							<?php } ?>
              <tr>
								<td><img src="../images/spacer.gif" width="5" height="5"></td>
                <td width="<?php echo $events_article_column_width; ?>" class="cellPadding2" valign="top">
									<?php if($row['icon_1'] != '' || $row['icon_2'] != ''){ ?>
                  <table align="left" cellpadding="2" cellspacing="0" border="0">
										<?php if($row['icon_1'] != ''){?>
                    <tr><td><a href="<?php if($row['targetPage'] != ""){echo $row['targetPage'];}else{?>index.php?page=875416498&id_event=<?php echo $row['id_event'];} ?>" class="lnkBase10px"><img src="<?php echo $row['icon_1']; ?>" border="0"></a></td></tr>
										<?php } ?>
										<?php	if($row['icon_2'] && $row['icon_1'] != $row['icon_2']){ ?>
                    <tr><td><a href="<?php if($row['targetPage'] != ''){echo $row['targetPage'];}else{?>index.php?page=875416498&id_event=<?php echo $row['id_event'];} ?>" class="lnkBase10px"><img src="<?php echo $row['icon_2']; ?>" border="0"></a></td></tr>
										<?php } ?>
                  </table>
									<?php } ?>
									<span class="blackText9px"><?php echo $row['shortdesc_fr']; ?>
									</span>
								</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="lightTableBg">
        <tr>
          <td align="left" valign="top"> <img src="../images/int_nouvelle/nouvelle_seperator_articles<?php echo $generateEventColumn; ?>.gif" width="<?php echo $events_column_width; ?>" height="3"></td>
        </tr>
      </table>
      <?php } ?>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color: <?php echo $events_column_bgcolor; ?>" class="lightTableBg">
        <tr>
          <td align="right" class="cellPadding2"><img src="../images/int_nouvelle/event_bullet2<?php echo $generateEventColumn; ?>.gif" width="7" height="7"> <a href="index.php?page=631488452" class="lnkBase9px">Autres</a>&nbsp;&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
</table>