PV.Pat File Manager

Kernel Version: Linux webm010.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64

Domains: CANT READ named.confSites Server IP: 10.127.20.10 [Bing Search] [Zone-H]

Path : /home/s/p/t/sptporgazz/www/
File Upload :
Current File : /home/s/p/t/sptporgazz/www/calendrier.php

<?php
session_start();
include("_inc/connect.php");


$annee_precedente = date("Y")-1;
$annee_actuelle = date("Y");



if(isset($_GET['year'])&&($_GET['year']!="")) {

	$the_year = $_GET['year'];
	
} else {

	$the_year = $annee_actuelle;
	
}




if(isset($_GET['ref'])&&($_GET['ref']!="")) {

	$ref_page = $_GET['ref'];
	
} else {

	$ref_page = '31';
	
}



if(isset($_GET['tri'])&&($_GET['tri']!="")) {

	$the_tri = $_GET['tri'];
	
} else {

	$the_tri = 'date_asc';
	
}






$sql_ban = "SELECT * FROM image_page WHERE ref_page=$ref_page";
$res_ban = mysql_query($sql_ban) or die(mysql_error());

while($row_ban = mysql_fetch_array($res_ban)) {
	$banniere = $row_ban['image'];
}








if($the_tri=='date_desc') {

$vign_date = "<a href='calendrier.php?year=".$the_year."&ref=".$ref_page."&tri=date_asc'><img src='_images/calendrier/fleche_haut.jpg' alt='Tri par dates ascendantes' title='Tri par dates ascendantes' /></a>";
$vign_genre = "<a href='calendrier.php?year=".$the_year."&ref=".$ref_page."&tri=genre_asc'><img src='_images/calendrier/fleche_haut.jpg' alt='Tri par genres ascendants' title='Tri par genres ascendants' /></a>";

		$sql_m = "SELECT DISTINCT(date) AS une_date,date_lettres FROM reunions WHERE date>='".$the_year."-01-01' AND date<='".$the_year."-12-31' ORDER BY date DESC";
		$res_m = mysql_query($sql_m) or die(mysql_error());
		
}



if($the_tri=='date_asc') {

$vign_date = "<a href='calendrier.php?year=".$the_year."&ref=".$ref_page."&tri=date_desc'><img src='_images/calendrier/fleche_bas.jpg' alt='Tri par dates descendantes' title='Tri par dates descendantes' /></a>";
$vign_genre = "<a href='calendrier.php?year=".$the_year."&ref=".$ref_page."&tri=genre_asc'><img src='_images/calendrier/fleche_haut.jpg' alt='Tri par genres ascendants' title='Tri par genres ascendants' /></a>";

		$sql_m = "SELECT DISTINCT(date) AS une_date,date_lettres FROM reunions WHERE date>='".$the_year."-01-01' AND date<='".$the_year."-12-31' ORDER BY date ASC";
		$res_m = mysql_query($sql_m) or die(mysql_error());
		
}


if($the_tri=='genre_desc') {

$vign_date = "<a href='calendrier.php?year=".$the_year."&ref=".$ref_page."&tri=date_asc'><img src='_images/calendrier/fleche_haut.jpg' alt='Tri par dates ascendantes' title='Tri par dates ascendantes' /></a>";
$vign_genre = "<a href='calendrier.php?year=".$the_year."&ref=".$ref_page."&tri=genre_asc'><img src='_images/calendrier/fleche_haut.jpg' alt='Tri par genres ascendants' title='Tri par genres ascendants' /></a>";

		$sql_m = "SELECT DISTINCT(date) AS une_date,date_lettres FROM reunions WHERE date>='".$the_year."-01-01' AND date<='".$the_year."-12-31' ORDER BY genre DESC";
		$res_m = mysql_query($sql_m) or die(mysql_error());
		
}



if($the_tri=='genre_asc') {

$vign_date = "<a href='calendrier.php?year=".$the_year."&ref=".$ref_page."&tri=date_asc'><img src='_images/calendrier/fleche_haut.jpg' alt='Tri par dates ascendantes' title='Tri par dates ascendantes' /></a>";
$vign_genre = "<a href='calendrier.php?year=".$the_year."&ref=".$ref_page."&tri=genre_desc'><img src='_images/calendrier/fleche_bas.jpg' alt='Tri par genres descendants' title='Tri par genres descendants' /></a>";

		$sql_m = "SELECT DISTINCT(date) AS une_date,date_lettres FROM reunions WHERE date>='".$the_year."-01-01' AND date<='".$the_year."-12-31' ORDER BY genre ASC";
		$res_m = mysql_query($sql_m) or die(mysql_error());
		
}



?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

      <title>SPTP - Syndicat Parisien des Travaux Publics</title>
      
				      <meta name="description" content="Syndicat Parisien des Travaux Publics" />
              <link rel="image_src" href="_images/home/logo.jpg" />
				      <meta name="medium" content="multi" />
				      
							<meta property="og:title" content="SPTP"/>
							<meta property="og:description" content="Syndicat Parisien des Travaux Publics" />
							<meta property="og:image" content="http://www.sptp.org/_images/home/logo.jpg" />
							
							<link rel="shotcut icon" href="_images/home/logo.jpg" />      

							<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
							<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">


							<meta name="author" content="3xo" />
							<meta name="copyright" content="SPTP" />
							<meta name="expires" content="never" />
							<meta name="keywords" content="SPTP,syndicat,parisien,travaux,public,publics,syndicats,parisiens,syndicat parisien,travaux publics,Syndicat Parisien des Travaux Publics" />
							<meta name="rating" content="general" />
							<meta name="rev" content="ibrahima.sow@3xo.fr" />
							<meta name="revisit-after" content="2 days" />
							<meta name="robots" content="all" />
							<meta name="subject" content="Syndicat Parisien des Travaux Publics" />

							<meta http-equiv="robots" content="all" />
							
										
										

								<!--Les CSS -->							
							<link media="all" type="text/css" href="_css/style.css" rel="stylesheet">
							
							<link media="all" type="text/css" href="_css/style_calendrier.css" rel="stylesheet">
							
							
							<!-- Les JS -->
							<script type="text/javascript" src="_js/jquery.js"></script>
							
							
							<link href="_js/facebox/facebox.css" media="screen" rel="stylesheet" type="text/css"/>
							<script src="_js/facebox/facebox.js" type="text/javascript"></script>
							
							
							<script type="text/javascript" src="_js/fonctionsJS.js"></script>	
							
							
							
							<script type="text/javascript">
							
								jQuery(document).ready(function(){
									menu_actif=3;placer_menu_actif();
									start_facebox();
								});
							
							</script>
							

							


</head>



<body>




		<div class="fond_principal">
		
				<div class="fond_principal_centre">
					
							<div class="menu">
									<?$menu_actif=3;$sous_menu_actif=$ref_page;include('_inc/menu.php');?>
							</div> <!-- fin menu -->
							
							
							
							
							
							<div class="centre_page">
										
										<div class="centre_page_haut">
										
																<div class="centre_page_haut_gauche">
																			<?include("_inc/bloc_gauche.php");?>
																</div>
																
																<div class="centre_page_haut_droite">
																
																								<img src='_images/bannieres/<?echo $banniere;?>' alt='' title='' width='681px' height='350px' />
																	
																</div>
												
										</div> <!-- fin centre_page_haut -->
										
										
										
										<div class="centre_page_ombre"></div>
										
										
										
										<div class="centre_page_bas">
																<div class="centre_page_bas_gauche">
																
																		<div class="titre_actus">Actualit&eacute;s</div>
																		
																		<?include("_inc/fil_actualites.php");?>
																		
																		<div class="lien_actus"><a href="actualites.php"><img src="_images/toute_l_actualite.jpg" style="margin-left:10px" onmouseover="this.src='_images/toute_l_actualite2.jpg';" onmouseout="this.src='_images/toute_l_actualite.jpg';" alt="Toute l'actualite" title="Toute l'actualite" /></a></div>
																
																</div>
																
																<div class="centre_page_bas_separation"></div>
																<div class="centre_page_bas_droite">
																
																						<div class="titre_calendrier"><?echo "Calendrier ".$the_year;?></div>
					
																						<div class="sous_titre_calendrier"></div>
																						
																						<div class="corps_calendrier">
																						
																						
																										<div class="entete_bloc_calendrier">
																										
																												<div class="tri_par_date"><?echo $vign_date;?></div>
																												<!--<div class="tri_par_genre"><?echo $vign_genre;?></div>-->
																												
																										</div>
																										
																										
																										<div class="corps_bloc_calendrier">
																										
																										
																												<?
																														while($row_m = mysql_fetch_array($res_m)) {
																														
																														  $genre1="";
																														  $genre2="";
																														  
																														  $date1="";
																														  $date2="";
																														  
																														  $date_lettres1="";
																														  $date_lettres1="";
																														  
																														  $heure_debut1="";
																														  $heure_debut2="";
																														  
																														  $heure_debut_lettres1="";
																														  $heure_debut_lettres2="";
																														  
																														  
																														  $heure_fin1="";
																														  $heure_fin2="";
																														  
																														  $heure_fin_lettres1="";
																														  $heure_fin_lettres2="";
																														  
																														  
																														  
																														  
																														  
																															$une_date = $row_m['une_date'];
																															$une_date_lettres = $row_m['date_lettres'];
																															
																																
																																									$sql_r_date = "SELECT * FROM reunions WHERE date='$une_date' ORDER BY heure_debut ASC LIMIT 2";
																																									$res_r_date = mysql_query($sql_r_date) or die('Erreur ' . $sql_r_date);
																																									
																																									$i=1;
																																									while($row_r_date = mysql_fetch_array($res_r_date)) {
																																									
																																											if($i==1) {
																																														$id_reunion1 = $row_r_date['id_reunion'];
																													
																																														$date1 = $row_r_date['date'];
																																														$date_lettres1 = $row_r_date['date_lettres'];
																																														
																																														$heure_debut1 = $row_r_date['heure_debut'];
																																														$heure_debut_lettres1 = $row_r_date['heure_debut_lettres'];
																																														
																																														$heure_fin1 = $row_r_date['heure_fin'];
																																														$heure_fin_lettres1 = $row_r_date['heure_fin_lettres'];
																																														
																																														$genre1 = $row_r_date['genre'];
																																												}
																																												
																																												
																																												if($i==2) {
																																														$id_reunion2 = $row_r_date['id_reunion'];
																													
																																														$date2 = $row_r_date['date'];
																																														$date_lettres2 = $row_r_date['date_lettres'];
																																														
																																														$heure_debut2 = $row_r_date['heure_debut'];
																																														$heure_debut_lettres2 = $row_r_date['heure_debut_lettres'];
																																														
																																														$heure_fin2 = $row_r_date['heure_fin'];
																																														$heure_fin_lettres2 = $row_r_date['heure_fin_lettres'];
																																														
																																														$genre2 = $row_r_date['genre'];
																																												}
																																												
																																												$i++;
																																									}
																																									
																																									
																																									
																																			?>
																																			
																																			
																																					<div class="une_case_calendrier">
																																							
																																							<div class="date_case_calendrier"><span><?echo $une_date_lettres;?></span></div>
																																							
																																							<div class="heures_case_calendrier">
																																							
																																										<div class="heures_case_calendrier_haut"><span><?echo $heure_debut_lettres1; if($heure_fin_lettres1!=""){ echo " - ".$heure_fin_lettres1;}?></span></div>
																																										<div class="heures_case_calendrier_bas"><span><?echo $heure_debut_lettres2;  if($heure_fin_lettres2!="") {echo " - ".$heure_fin_lettres2;}?></span></div>
																																										
																																							</div>
																																							
																																							<div class="genres_case_calendrier">
																																								
																																										<div class="genres_case_calendrier_haut"><span><?echo $genre1;?></span></div>
																																										<div class="genres_case_calendrier_bas"><span><?echo $genre2;?></span></div>
																																								
																																							</div>
																																							
																																					</div>
																																			
																																			
																																			<?
																															
																														}																													
																												?>
																										
																														
																												
																										</div>
																										
																										
																										<div class="bas_bloc_calendrier">
																										
																												
																										</div>
																										
																								
																						</div>
								
								
																</div>
																
																
																
										</div>  <!-- fin centre_page_bas -->
										
										
										
							</div>  <!-- fin centre_page -->
							
					
				</div> <!-- fin fond_principal_centre -->
		
		</div> <!-- fin fond_principal -->
		
		
		
		<div class="footer">
		
				<div class="footer_centre">
				
						<?include('_inc/footer.php');?>
		
				</div> <!-- fin footer -->
		
		</div> <!-- fin footer -->



</body>


</html>

WiTcH hUnT3r Plugin 2018