<?php
include("include/config.php");
$meta = 1;
$htmlMeta = '<title>ACSI - Comitato Provinciale di Padova | Circoli affiliati</title>';
?>
<?php include('head.php'); ?>
<body>
<!-- wrap starts here -->
<div id="wrap">
<?php include('header.php'); ?>
<div id="sidebar" >
<?php include('tabellasx.php'); ?>
</div>
<div id="main">
<a name="TemplateInfo"></a>
<h1>Prossimi eventi</h1>
<p>Qui troverai tutti i prossimi eventi e corsi e se vuoi puoi comunicare anche le tue manifestazioni <a href="/contatti.php" target="_blank">CONTATTACI</a>. <br />
Le manifestazioni contrassegnate con il simbolo ACSI sono quelle organizzate dal Comitato e dai suoi affiliati.</p>
<p>* Il Comitato si riserva di valutare le comunicazioni prima di pubblicarle.</p>
<?php
$today = date('Y-m-d');
$mese = '';
$query = "SELECT * FROM eventi WHERE data_inizio >= '$today' OR data_fine >= '$today' ORDER BY data_inizio ASC";
$result = mysql_query($query) or die (mysql_error());
while ($array = mysql_fetch_array($result, MYSQL_ASSOC)) {
$mese = strtoupper(strftime ("%B %Y", strtotime($array['data_inizio'])));
if ($mese != $mese2) {
echo '<h3>'.$mese.'</h3>';
}
echo '<div class="eventiFull"><b><font color="#6297BC">'.$array['club'].' - ';
echo ' '.$array['titolo'].'</b></font><br><b>Dove</b> '.$array['location'].'<br>';
echo '<b>Da</b> '; echo strtoupper(strftime ("%A %d %B %Y", strtotime($array['data_inizio'])));
if ($array['data_fine'] != '0000-00-00') {
echo '<br><b>Fino a</b> '; echo strtoupper(strftime ("%A %d %B %Y", strtotime($array['data_fine'])));
}
if ($array['allegato'] != '') {
echo '<br><a href="http://www.entinoprofit.org/raduni/'.$array['allegato'].'" target="_blank"><img src="images/download.png"> Scarica allegato</a>';
}
echo'</div>';
$mese2 = $mese;
}
?>
</div>
<?php include('tabelladx.php'); ?>
<!-- content-wrap ends here -->
</div>
<!-- footer starts here -->
<?php include('footer.php'); ?>
<!-- footer ends here -->
<!-- wrap ends here -->
</div>
</body>
</html>