|
include("includes/menu.php"); ?>
|
include("includes/navbar.php"); ?>
$d = new date_ ();?>
| echo $custom1 ?>
echo $custom4 ?> |
if ($custom2!="") { ?>
 |
} ?>
 |
if ($mess!="") {
echo $mess ." "; } ?>
$drn_infoSQL = "select * from infos_news, infos_types where infos_news.type_infos_news=infos_types.id_infos_types and infos_news.type_infos_news<>5 and actif_infos_news = 1 order by id_infos_news DESC LIMIT 0,".$custom5;
$drn_infoReq=mysql_query($drn_infoSQL);
while ($valdrn_info = mysql_fetch_array($drn_infoReq)) {
?>
| echo $valdrn_info["nom_infos_types"] ?>
: echo $valdrn_info["titre_infos_news"] ?>
|
$d->set_date_EN(SUBSTR($valdrn_info["date_msl_infos_news"],0,10));
echo $d->date_Fr();?>
|
 |
|
 |
}
loop;
?>
$typebp[1]="Concert";
$typebp[2]="Soirée";
if ($pays!="") {
$addville = " ( pays = '".$pays."' ) AND ";
if (strtoupper($pays)=="FRANCE") {
$addpromo = " (((id_categ = 5 or id_categ = 6) AND dates <= DATE_ADD(CURRENT_DATE,INTERVAL 7 DAY)) or (promo_bplan = 1 AND CURRENT_TIMESTAMP >= debut_promo_bplan)) AND ";
}
else {
$addpromo = "";
}
if ($ville!="") {
$ville=STR_REPLACE("%20", " ",$ville);
if ($ville=="idf") {
$addville = " ( pays = 'france' AND ((LEFT(bplan.cp,2)='75') OR (LEFT(bplan.cp,2)='91') OR (LEFT(bplan.cp,2)='92') OR (LEFT(bplan.cp,2)='93') OR (LEFT(bplan.cp,2)='94') OR (LEFT(bplan.cp,2)='95') OR (LEFT(bplan.cp,2)='77') OR (LEFT(bplan.cp,2)='78')) ) AND ";
$addpromo = " (((id_categ = 5 or id_categ = 6) AND dates <= DATE_ADD(CURRENT_DATE,INTERVAL 7 DAY)) or (promo_bplan = 1 AND CURRENT_TIMESTAMP >= debut_promo_bplan)) AND ";
}
else {
$addville = " ( pays = '".$pays."' AND ville = '" .$ville. "') AND ";
$addpromo = "";
}
}
$drn_bplan_zoukSQL = "select * from bplan where ".$addville." ".$addpromo." id_categ <> 10 AND dates >= DATE_SUB(CURRENT_TIMESTAMP,INTERVAL 6 HOUR) AND dates <= DATE_ADD(CURRENT_DATE,INTERVAL ".$intervalpromo." DAY) order by YEAR(dates), DAYOFYEAR(dates), id_categ desc, promo_bplan desc, stat_bplan desc LIMIT 0,200";
//echo $drn_bplan_zoukSQL;
}
else {
$drn_bplan_zoukSQL = "select * from bplan where (((id_categ = 5 or id_categ = 6) AND dates <= DATE_ADD(CURRENT_DATE,INTERVAL 7 DAY)) or (promo_bplan = 1 AND CURRENT_TIMESTAMP >= debut_promo_bplan)) and id_categ <> 10 AND dates >= DATE_SUB(CURRENT_TIMESTAMP,INTERVAL 6 HOUR) AND dates <= DATE_ADD(CURRENT_DATE,INTERVAL 7 DAY) order by YEAR(dates), DAYOFYEAR(dates), id_categ desc, promo_bplan desc, stat_bplan desc LIMIT 0,200";
}
$drn_bplan_zoukReq=mysql_query($drn_bplan_zoukSQL);
//'Requette dernier bon plan (prochain zouk)
while ($valdrn_zks_bplan = mysql_fetch_array($drn_bplan_zoukReq)) {
$eve=$eve+1;
$ndt1=SUBSTR($valdrn_zks_bplan["dates"],0,10);
if ($ndt1 != $ndt2) {?>
$d->set_date_EN($ndt1);
$d->afficher_date_lettre();
$ndt2=$ndt1;?>
} ?>
if ($ndt2 == "2007-12-31") { // spe rveillon
if ($dejapasse!=1) { // spe rveillon ?>
$dejapasse = 1;
}
}
else { // spe rveillon ?>
} // spe rveillon ?>
}
loop;?>
|
$d = new date_ ();
$drn_brevesSQL = "select id_breves_texte , breves_texte_dates , breves_texte_titre from breves_texte where breves_texte_online = 1 order by id_breves_texte desc LIMIT 0,7";
$drn_brevesReq=mysql_query($drn_brevesSQL);
while ($valdrn_breves = mysql_fetch_array($drn_brevesReq)) {
?>
echo SUBSTR($valdrn_breves["breves_texte_dates"],8,2); ?>/ echo SUBSTR($valdrn_breves["breves_texte_dates"],5,2); ?>
- " class="txt1"> echo ucfirst(strtolower(stripslashes($valdrn_breves["breves_texte_titre"]))) ?>
}
loop;
?>
|
|
// get all the info
if (!$HTTP_POST_VARS) {
$theDate = getdate();
$mon = $theDate["mon"]; // numeric month (1-12)
$month = $theDate["month"]; // display month january, feb..
$year = $theDate["year"]; // 4 digit year (y2k compliant)
}
if ($action = "findDate") {
$theDate = getdate(mktime(0,0,0,$mon,1,$year));
$month = $theDate["month"];
}
// get what weekday the first is on
$tempDate = getdate(mktime(0,0,0,$mon,0,$year));
$firstwday= $tempDate["wday"];
// get the last day of the month
$cont = true;
$tday = 27;
while (($tday <= 32) && ($cont)) {
$tdate = getdate(mktime(0,0,0,$mon,$tday,$year));
if ($tdate["mon"] != $mon) {
$lastday = $tday - 1;
$cont = false;
}
$tday++;
}
?>
|
$d->afficher_mois($mon); ?>
echo $year; ?> |
$d = 1;
$thisDay = date('d');
$thisMon = date('n');
$thisMonth = date('F');
$thisYear = date('Y');
$wday = $firstwday;
$firstweek = true;
$rslt_sortirQL2 = "select dates from bplan where dates >= CURRENT_DATE and month(dates) >= ". $mon ." AND year(dates) >= ". $year ." ORDER BY dates ASC";
//$rslt_sortirQL2 = "select distinct dates from bplan";
$rslt_bonplanReq2 = mysql_query( $rslt_sortirQL2 );
// loop through all the days of the month
while ( $d <= $lastday) {
///while (($valbonplanReq2 == mysql_fetch_array($rslt_bonplanReq2)) && $try1 != substr($valbonplanReq2["dates"],8,2) ) {
///try1=substr($valbonplanReq2["dates"],8,2);
///}
// set up blank days for first week
if ($firstweek) {
echo "";
for ($i=1; $i<=$firstwday; $i++) {
echo "| | ";
}
$firstweek = false;
}
if ($wday==0) {
// Sunday start week with
echo " ";
}
// print cell
//
echo "| $d | ";
if ($wday==6) {
// Saturday end week with
echo "\n";
}
$wday++;
$wday = $wday % 7;
$d++;
///loop;
}
?>
|
if ($_SESSION['s_ville']!="") {
include("includes/promo_evnt_horiz.php");
} ?>
|
if ($custom6==1) { ?>
include("includes/pubh.php"); ?>
} ?>
$id_infomodifSQL = "select * from news where aff_news=1 order by stats_news asc";
$id_infomodif = mysql_query( $id_infomodifSQL );
if ($id_infomodifReq = mysql_fetch_array($id_infomodif)) { ?>
| |
 |
echo $id_infomodifReq["titre_news"] ?>
echo nl2br(stripslashes($id_infomodifReq["article_news"])) ?> |
|
|
$stats_newsok=$id_infomodifReq["stats_news"]+1;
$id_newsupdateSQL = "UPDATE news set stats_news=".$stats_newsok." where id_news=".$id_infomodifReq["id_news"];
$id_newsupdateReq = mysql_query( $id_newsupdateSQL );
}
?>
ALBUM :
$drn_drn_zikSQL = "select * from album order by promo_album DESC LIMIT 0,5";
$drn_zikReq=mysql_query($drn_drn_zikSQL);
// Requette derniere musique
while ($valdrn_zikReq = mysql_fetch_array($drn_zikReq)) {
?>
|
|
}
loop ?>
|
|