Saint-Eloy-Les-Mines > Accueil

Agenda - Actualités

$datej

"; $dj = date("j"); $mj = date("n"); $yj = date("Y"); $datejs = mktime(0,0,0,$mj,$dj,$yj); if ($dates < $datejs) { $archive = "Archive du ".$date; echo "

$archive

"; } //requete $sql = "SELECT * FROM calendar WHERE (day = '$day' AND month = '$month' AND year = '$year') ORDER BY id"; $result = mysql_query($sql); $tab = mysql_fetch_array($result); Do { $jour = $tab["day"]; $mois = $tab["month"]; $annee = $tab["year"]; $desc1 = stripslashes($tab["desc1"]); $desc1 = ereg_replace("’","'",$desc1); $desc1 = utf8_encode($desc1); $desc2 = stripslashes($tab["desc2"]); $desc2 = ereg_replace("’","'",$desc2); $desc2 = utf8_encode($desc2); if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jan") { $moisfr = "Janvier"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Feb") { $moisfr = "Fevrier"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Mar") { $moisfr = "Mars"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Apr") { $moisfr = "Avril"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "May") { $moisfr = "Mai"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jun") { $moisfr = "Juin"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jul") { $moisfr = "Juillet"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Aug") { $moisfr = "Aout"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Sep") { $moisfr = "Septembre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Oct") { $moisfr = "Octobre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Nov") { $moisfr = "Novembre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Dec") { $moisfr = "Decembre"; } if (!empty($jour)) { echo "
  • $jour $moisfr $annee - $desc1
    $desc2
"; } } While($tab = mysql_fetch_array($result)); mysql_close(); } else { if (isset($_GET["liste"])) { // récupération de tous les prochains événements >= a datejour $anneejour = date("Y"); $moisjour = date("n"); $jour = date("j"); echo "

Les prochains rendez-vous

"; $sql = "SELECT * FROM calendar WHERE (year = '$anneejour' and month = '$moisjour' and day >= '$jour') ORDER BY day"; $result = mysql_query($sql); $tab = mysql_fetch_array($result); Do { $jour = $tab["day"]; $mois = $tab["month"]; $annee = $tab["year"]; $desc1 = stripslashes($tab["desc1"]); $desc1 = ereg_replace("’","'",$desc1); $desc1 = utf8_encode($desc1); $desc2 = stripslashes($tab["desc2"]); $desc2 = ereg_replace("’","'",$desc2); $desc2 = utf8_encode($desc2); if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jan") { $moisfr = "Janvier"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Feb") { $moisfr = "Fevrier"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Mar") { $moisfr = "Mars"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Apr") { $moisfr = "Avril"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "May") { $moisfr = "Mai"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jun") { $moisfr = "Juin"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jul") { $moisfr = "Juillet"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Aug") { $moisfr = "Aout"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Sep") { $moisfr = "Septembre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Oct") { $moisfr = "Octobre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Nov") { $moisfr = "Novembre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Dec") { $moisfr = "Decembre"; } if (!empty($jour)) { echo "
  • $jour $moisfr $annee - $desc1
    $desc2
"; } } While($tab = mysql_fetch_array($result)); if ($moisjour < 12) { $sql = "SELECT * FROM calendar WHERE (year = '$anneejour' and month > '$moisjour') ORDER BY month, day"; } else { $sql = "SELECT * FROM calendar WHERE (year > '$anneejour') ORDER BY year, month, day"; } $result = mysql_query($sql); $tab = mysql_fetch_array($result); Do { $jour = $tab["day"]; $mois = $tab["month"]; $annee = $tab["year"]; $desc1 = stripslashes($tab["desc1"]); $desc1 = ereg_replace("’","'",$desc1); $desc1 = utf8_encode($desc1); $desc2 = stripslashes($tab["desc2"]); $desc2 = ereg_replace("’","'",$desc2); $desc2 = utf8_encode($desc2); if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jan") { $moisfr = "Janvier"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Feb") { $moisfr = "Fevrier"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Mar") { $moisfr = "Mars"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Apr") { $moisfr = "Avril"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "May") { $moisfr = "Mai"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jun") { $moisfr = "Juin"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jul") { $moisfr = "Juillet"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Aug") { $moisfr = "Aout"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Sep") { $moisfr = "Septembre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Oct") { $moisfr = "Octobre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Nov") { $moisfr = "Novembre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Dec") { $moisfr = "Decembre"; } if (!empty($jour)) { echo "
  • $jour $moisfr $annee - $desc1
    $desc2
"; } } While($tab = mysql_fetch_array($result)); mysql_close(); } else { // récupération des 5 prochains événements >= a datejour $anneejour = date("Y"); $moisjour = date("n"); $jour = date("j"); echo "

Les prochains rendez-vous

"; $nb = 5; $sql = "SELECT * FROM calendar WHERE (year = '$anneejour' and month = '$moisjour' and day >= '$jour') ORDER BY day LIMIT 0, $nb"; $result = mysql_query($sql); $tab = mysql_fetch_array($result); Do { $jour = $tab["day"]; $mois = $tab["month"]; $annee = $tab["year"]; $desc1 = stripslashes($tab["desc1"]); $desc1 = ereg_replace("’","'",$desc1); $desc1 = utf8_encode($desc1); $desc2 = stripslashes($tab["desc2"]); $desc2 = ereg_replace("’","'",$desc2); $desc2 = utf8_encode($desc2); if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jan") { $moisfr = "Janvier"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Feb") { $moisfr = "Fevrier"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Mar") { $moisfr = "Mars"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Apr") { $moisfr = "Avril"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "May") { $moisfr = "Mai"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jun") { $moisfr = "Juin"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jul") { $moisfr = "Juillet"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Aug") { $moisfr = "Aout"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Sep") { $moisfr = "Septembre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Oct") { $moisfr = "Octobre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Nov") { $moisfr = "Novembre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Dec") { $moisfr = "Decembre"; } if (!empty($jour)) { echo "
  • $jour $moisfr $annee - $desc1
    $desc2
"; } $nb = $nb-1; } While($tab = mysql_fetch_array($result)); if ($moisjour < 12) { $sql = "SELECT * FROM calendar WHERE (year = '$anneejour' and month > '$moisjour') ORDER BY month, day LIMIT 0, $nb"; } else { $sql = "SELECT * FROM calendar WHERE (year > '$anneejour') ORDER BY year, month, day LIMIT 0, $nb"; } $result = mysql_query($sql); $tab = mysql_fetch_array($result); Do { $jour = $tab["day"]; $mois = $tab["month"]; $annee = $tab["year"]; $desc1 = stripslashes($tab["desc1"]); $desc1 = ereg_replace("’","'",$desc1); $desc1 = utf8_encode($desc1); $desc2 = stripslashes($tab["desc2"]); $desc2 = ereg_replace("’","'",$desc2); $desc2 = utf8_encode($desc2); if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jan") { $moisfr = "Janvier"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Feb") { $moisfr = "Fevrier"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Mar") { $moisfr = "Mars"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Apr") { $moisfr = "Avril"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "May") { $moisfr = "Mai"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jun") { $moisfr = "Juin"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Jul") { $moisfr = "Juillet"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Aug") { $moisfr = "Aout"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Sep") { $moisfr = "Septembre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Oct") { $moisfr = "Octobre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Nov") { $moisfr = "Novembre"; } if (date('M', mktime(0,0,0,$mois,1,$annee)) == "Dec") { $moisfr = "Decembre"; } if (!empty($jour)) { echo "
  • $jour $moisfr $annee - $desc1
    $desc2
"; } $nb = $nb-1; } While($tab = mysql_fetch_array($result)); } } if (!isset($_GET["liste"])) { echo "

Voir les autres dates

"; } //mysql_close(); } else { mysql_close(); exit; } ?>

 

 

 
Agenda