"; echo" Fondation-Institut kurde de Paris - Version Mobile/PDA "; echo "
\"Institut

Les dépêches

"; function dateaffichee($time, $mode = 'long' ) { setlocale( LC_TIME, "fr" ); // Recuperation du nom du mois $mi = strftime( "%m" , strtotime( $time ) ); switch ($mi){ case '1' : $mi = 'janvier'; break; case '2' : $mi = 'février'; break; case '3' : $mi = 'mars'; break; case '4' : $mi = 'avril'; break; case '5' : $mi = 'mai'; break; case '6' : $mi = 'juin'; break; case '7' : $mi = 'juillet'; break; case '8' : $mi = 'août'; break; case '9' : $mi = 'septembre'; break; case '10' : $mi = 'octobre'; break; case '11' : $mi = 'novembre'; break; case '12' : $mi = 'decembre'; break; } // Recuperation du nom du jour $w = strftime( "%u" , strtotime( $time ) ); switch ($w){ case '1' : $w = 'Lundi'; break; case '2' : $w = 'Mardi'; break; case '3' : $w = 'Mercredi'; break; case '4' : $w = 'Jeudi'; break; case '5' : $w = 'Vendredi'; break; case '6' : $w = 'Samedi'; break; case '7' : $w = 'Dimanche'; break; } // Recuperation du jour $mor1 = strftime( "%e " , strtotime( $time ) ); // Recupera de l'année $mor2 = strftime( "%Y" , strtotime( $time ) ); if ( $mode == 'long' ) { // Recupere de l'heure+minute+seconde $mor3 = strftime( "- %Hh%M" , strtotime( $time ) ); //$mor3 = strftime( "à %Hh %Mm %Ss" , strtotime( $time ) ); }else{ $mor3 = NULL; } return $mor1.' '. $mi. ' '.$mor3; //return $w.' '.$mor1.' '. $mi. ' '.$mor2. ' '.$mor3; } function afpnews(){ include($_SERVER['DOCUMENT_ROOT']."/test/databases/5/db_eyar.php"); include($_SERVER['DOCUMENT_ROOT']."/test/databases/5/db_vekirin.php"); $query=("SELECT id,newsurl,dateandtime,headline FROM news where status='1' ORDER BY dateandtime DESC LIMIT 10"); $result = mysql_query("$query") or die(mysql_error()); echo""; include($_SERVER['DOCUMENT_ROOT']."/test/databases/5/db_girtin.php"); } afpnews(); function activites(){ include($_SERVER['DOCUMENT_ROOT']."/test/databases/2/db_eyar.php"); include($_SERVER['DOCUMENT_ROOT']."/test/databases/2/db_vekirin.php"); $reqo=("SELECT id FROM evenements WHERE status='1' AND accueil='1' AND datefin>date_format(date_add(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR),'%Y-%m-%d %H:%i:%s')"); $requ=mysql_query($reqo); $num_rows = mysql_num_rows($requ); if($num_rows!=false){ echo "

Activités Culturelles

"; $sql =("SELECT * FROM evenements WHERE status='1' AND accueil='1' AND datefin > date_format(date_add(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR),'%Y-%m-%d %H:%i:%s') ORDER BY `datedeb` DESC LIMIT 5"); $result = mysql_query($sql); function datedebut($datedeb){ preg_match ('`^(\d{4})-(\d{2})-(\d{2})(.*)$`', $datedeb, $out); if($out[2]<10){$out[2]=substr($out[2],1,1);} $i=$out[2]; $mois = array('','janvier', 'fevrier', 'mars', 'avril', 'mai','juin','juillet', 'aout', 'septembre', 'octobre','novembre', 'decembre'); return $out[3].' '.$mois[$i].' '.$out[1].' '.$out[4]; } while ($ligne = mysql_fetch_array($result)) { extract($ligne); $id=$ligne[0]; $status=$ligne[1]; $titre=$ligne[2]; $soustitre=$ligne[3]; $categorie=$ligne[4]; $auteurs=$ligne[5]; $datedeb=$ligne[6]; $datefin=$ligne[7]; $lieu=$ligne[8]; $description=$ligne[9]; $presentation=$ligne[10]; $photo_type=$ligne[13]; $saat_tuneye=substr("$datedeb", 11, 5); if($saat_tuneye=="00:00"){ $datedeb=substr("$datedeb", 0, 10); }else{ $datedeb=substr("$datedeb", 0, 16); $datedeb=substr_replace ($datedeb, ' à ', 10, 1); } echo"
"; echo "".$titre."
"; echo"\"".$titre."\"/
"; echo datedebut($datedeb)."

"; echo "
"; } } } activites(); include($_SERVER['DOCUMENT_ROOT']."/numaf.php"); ?>