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/backoffice/
File Upload :
Current File : /home/s/p/t/sptporgazz/www/backoffice/calendrier_reunions.php

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

$modif_m=0;





if(isset($_GET['id_an'])&&($_GET['id_an']!="")&&isset($_GET['action'])&&($_GET['action']=="supprimer")) {
	
			$id_the_an = $_GET['id_an'];
			
			
			$sql_the_m = "DELETE FROM annees_calendrier WHERE id_annee=$id_the_an";
			
				if(mysql_query($sql_the_m))
						{
             ?>
              <SCRIPT type ="text/javascript">
	              alert("Annee supprim\351e");
	              location.href="calendrier_reunions.php";
              </SCRIPT>
              <?

            }
						else
						{
               ?>
                <SCRIPT LANGUAGE='JavaScript'>
	               alert("Une erreur est survenue. merci de recommencer<?echo mysql_error();?>");
	               location.href='calendrier_reunions.php';
                </SCRIPT>
               <?

             }
	
}



if(isset($_GET['id'])&&($_GET['id']!="")&&isset($_GET['action'])&&($_GET['action']=="modifier")) {
	
			$id_the_reunion = $_GET['id'];
			$modif_m = 1;
			
			
			$sql_the_reunion = "SELECT * FROM reunions WHERE id_reunion=$id_the_reunion";
			$res_the_reunion = mysql_query($sql_the_reunion) or die(mysql_error());
			
			while($row_the_reunion=mysql_fetch_array($res_the_reunion)) {
				$genre_the_reunion = $row_the_reunion['genre'];
				
				
				
				$date_the_reunion = $row_the_reunion['date'];
				
					$part = explode('-',$date_the_reunion);
				
					$jour_the_reunion = $part[2];
					$mois_the_reunion = $part[1];
					$annee_the_reunion= $part[0];
					
					
				$date_lettres_the_reunion = $row_the_reunion['date_lettres'];
				
				
				
				
				
				$heure_debut_the_reunion = $row_the_reunion['heure_debut'];
				
					$part_hd = explode(':',$heure_debut_the_reunion);
				
					$hh_debut_the_reunion = $part_hd[0];
					$mm_debut_the_reunion = $part_hd[1];
					
				$heure_debut_lettres_the_reunion = $row_the_reunion['heure_debut_lettres'];
				
				
				
				$heure_fin_the_reunion = $row_the_reunion['heure_fin'];
				
					$part_hf = explode(':',$heure_fin_the_reunion);
				
					$hh_fin_the_reunion = $part_hf[0];
					$mm_fin_the_reunion = $part_hf[1];
					
				$heure_fin_lettres_the_reunion = $row_the_reunion['heure_fin_lettres'];			
				
			}
	
}






if(isset($_GET['id'])&&($_GET['id']!="")&&isset($_GET['action'])&&($_GET['action']=="supprimer")) {
	
			$id_the_reunion = $_GET['id'];
			
			
			$sql_the_m = "DELETE FROM reunions WHERE id_reunion=$id_the_reunion";
			
				if(mysql_query($sql_the_m))
						{
             ?>
              <SCRIPT type ="text/javascript">
	              alert("Reunion supprim\351e");
	              location.href="calendrier_reunions.php";
              </SCRIPT>
              <?

            }
						else
						{
               ?>
                <SCRIPT LANGUAGE='JavaScript'>
	               alert("Une erreur est survenue. merci de recommencer<?echo mysql_error();?>");
	               location.href='calendrier_reunions.php';
                </SCRIPT>
               <?

             }
	
}






if(isset($_POST['submit'])) {





						if($_POST['submit']=="OK") {
							$annee_visible = $_POST['annee_visible'];
							
							$sql_save_an = "INSERT INTO annees_calendrier(annee) VALUES('$annee_visible')";
							
										if(mysql_query($sql_save_an))
											{
											?>
												<SCRIPT type ="text/javascript">
													alert("Annee ajout\351e");
													location.href="calendrier_reunions.php";
												</SCRIPT>
												<?

											}
											else
											{
												?>
													<SCRIPT LANGUAGE='JavaScript'>
													alert("Une erreur est survenue. merci de recommencer");
													location.href="calendrier_reunions.php";
													</SCRIPT>
												<?

											}
							
            }
            
            

						
						if($_POST['submit']=="Modifier Reunion") {
						
								$id_the_reunion = $_POST['id_the_reunion'];
								$genre_the_reunion = $_POST['genre'];
								
								
								
								
								$jour = $_POST['jour'];
								$mois = $_POST['mois'];
								$annee = $_POST['annee'];
								
								$date_m = $annee . "-" . $mois . "-" . $jour;
								
								
								$date_lettres_the_reunion = $_POST['date_lettres'];
								
								
								
								
								
								$hh_debut_the_reunion = $_POST['hh_debut'];
								$mm_debut_the_reunion = $_POST['mm_debut'];
								
								$heure_debut_m = $hh_debut_the_reunion . ":" . $mm_debut_the_reunion;
								
								$heure_debut_lettres_the_reunion = $_POST['heure_debut_lettres'];
								
								
								
								
								
								$hh_fin_the_reunion = $_POST['hh_fin'];
								$mm_fin_the_reunion = $_POST['mm_fin'];
								
								$heure_fin_m = $hh_fin_the_reunion . ":" . $mm_fin_the_reunion;
								
								$heure_fin_lettres_the_reunion = $_POST['heure_fin_lettres'];
								
								
								
								
								
								$sql_upd = "UPDATE reunions SET genre='$genre_the_reunion',date='$date_m',date_lettres='$date_lettres_the_reunion',heure_debut='$heure_debut_m',heure_debut_lettres='$heure_debut_lettres_the_reunion',heure_fin='$heure_fin_m',heure_fin_lettres='$heure_fin_lettres_the_reunion' WHERE id_reunion=$id_the_reunion";
								
								if(mysql_query($sql_upd))
											{
											?>
												<SCRIPT type ="text/javascript">
													alert("Reunion modifi\351e");
													location.href="calendrier_reunions.php";
												</SCRIPT>
												<?

											}
											else
											{
												?>
													<SCRIPT LANGUAGE='JavaScript'>
													alert("Une erreur est survenue. merci de recommencer");
													location.href="calendrier_reunions.php?id=<?echo $id_the_reunion;?>&action=modifier";
													</SCRIPT>
												<?

											}
								
						}
	
	
	
	
						if($_POST['submit']=="Ajouter Reunion") {
						
								$id_the_reunion = $_POST['id_the_reunion'];
								$genre_the_reunion = $_POST['genre'];
								
								
								
								
								$jour = $_POST['jour'];
								$mois = $_POST['mois'];
								$annee = $_POST['annee'];
								
								$date_m = $annee . "-" . $mois . "-" . $jour;
								
								
								$date_lettres_the_reunion = $_POST['date_lettres'];
								
								
								
								
								
								$hh_debut_the_reunion = $_POST['hh_debut'];
								$mm_debut_the_reunion = $_POST['mm_debut'];
								
								$heure_debut_m = $hh_debut_the_reunion . ":" . $mm_debut_the_reunion;
								
								$heure_debut_lettres_the_reunion = $_POST['heure_debut_lettres'];
								
								
								
								
								
								$hh_fin_the_reunion = $_POST['hh_fin'];
								$mm_fin_the_reunion = $_POST['mm_fin'];
								
								$heure_fin_m = $hh_fin_the_reunion . ":" . $mm_fin_the_reunion;
								
								$heure_fin_lettres_the_reunion = $_POST['heure_fin_lettres'];
								
								
								
								$sql_upd = "INSERT INTO reunions(genre,date,date_lettres,heure_debut,heure_debut_lettres,heure_fin,heure_fin_lettres) VALUES('".addslashes($genre_the_reunion)."','$date_m','$date_lettres_the_reunion','$heure_debut_m','$heure_debut_lettres_the_reunion','$heure_fin_m','$heure_fin_lettres_the_reunion')";
								
								if(mysql_query($sql_upd))
											{
											?>
												<SCRIPT type ="text/javascript">
													alert("Reunion ajout\351e");
													location.href="calendrier_reunions.php";
												</SCRIPT>
												<?

											}
											else
											{
												?>
													<SCRIPT LANGUAGE='JavaScript'>
													alert("Une erreur est survenue. merci de recommencer");
													location.href="calendrier_reunions.php";
													</SCRIPT>
												<?

											}
								
						}
	
	
	
	
}




$sql_m = "SELECT * FROM reunions ORDER BY date DESC";
$res_m = mysql_query($sql_m) or die(mysql_error());



$sql_an = "SELECT * FROM annees_calendrier ORDER BY annee ASC";
$res_an = mysql_query($sql_an) or die(mysql_error());

$res_an2 = mysql_query($sql_an) 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>
      
      
      <?include("modules/tiny.php");?>
      
				      <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://dev1.3xo.fr/sptp/_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">
							
							
							<!-- Les JS -->
							<script type="text/javascript" src="_js/jquery.js"></script>							
							
							<script type="text/javascript" src="_js/fonctionsJS.js"></script>					
							

							<script type="text/javascript">
							
								jQuery(document).ready(function(){
									menu_actif=1;placer_menu_actif();
									//start_facebox();
								});
							
							</script>


</head>



<body>




		<div class="fond_principal">
		
				<div class="fond_principal_centre">
					
							<div class="menu">
									<?$menu_actif=2;$sous_menu_actif=22;include('_inc/menu.php');?>
							</div> <!-- fin menu -->
							
							
							
							
							
							<div class="centre_page">
							
							
										<div class="entete_page">Gestion des Reunions</div>
										
										<div class="contenu_page">
										
														
														<div class="sous_bloc" style="margin-top:0px;width:900px;">
														
														
																										<div class="sous_bloc">Gestion des Annees Visibles</div>
																										
																										<div class="sous_bloc" style="margin-top:30px;margin-left:40px;width:360px;">
																										
																																		<form action="" method="post" enctype="multipart/form-data">
																																		<table cellpadding="4" cellspacing="4">
																																		
																																				<tr>
																																					<td>Annee : </td>
																																					<td><input type="text" name="annee_visible" size="5" value="" /></td>
																																					<td><input type="submit" name="submit" value="OK" /></td>
																																				</tr>
																																				
																																		</table>
																																		</form>
																										
																										</div>
																										
																										
																										
																										
																										<div class="sous_bloc" style="margin-top:30px;margin-left:40px;width:360px;">																										
																										
																										<?
																												while($row_an = mysql_fetch_array($res_an)) {
																												
																													$id_an = $row_an['id_annee'];
																													$annee = $row_an['annee'];
																												
																												
																												?>
																												
																														<div class="bloc_element" style="width:100px;clear:both;">
																														
																																<div class="bloc_element_gauche" style="min-width:50px;"><span style="position:relative;float:left;margin-top:3px;"><?echo $annee;?></span></div>
																																
																																<div class="bloc_element_droite" style="width:40px;">
																																		<span style="position:relative;float:right;margin-top:2px;">
																																		<a href="calendrier_reunions.php?id_an=<?php echo $id_an; ?>&action=supprimer">
																																			<img src="_icones/supprimer1.png" onmouseout="this.src='_icones/supprimer1.png';" onmouseover="this.src='_icones/supprimer1.png';" style="border:none;" alt="" title="Supprimer Annee"  onClick="return(confirm('Etes-vous sur de vouloir supprimer cette annee ?'))" />
																																		</a>
																																		</span>
																																</div>
																																
																														</div>
																												
																												<?
																												}
																												?>
																												
																										</div>
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																	<?
																	if(($_GET['action']=='add_reunion')||($_GET['action']=='modifier')) {
																	
																			if($_GET['action']=='add_reunion') {
																				
																				$annee_the_reunion = $_GET['year'];
																				
																			}
																	?>
																	
																										
																	<div class="sous_bloc" style="margin-top:140px;margin-left:40px;width:460px;">
																
																						<div style="position:relative;float:left;width:100%;font-size:15px;">Ajouter/Modifier des Reunions</div>
																		
																						<div style="position:relative;float:left;width:100%;">
																						
																								<form action="" method="post" enctype="multipart/form-data">
																								<table cellpadding="4" cellspacing="4">
																								
																										
																										<tr>
																											<td>Genre : <?if($modif_m==1) {?><input type="hidden" name="id_the_reunion" value="<?echo $id_the_reunion;?>" /><?}?></td>
																											<td><input type="text" name="genre" value="<?echo $genre_the_reunion;?>" /></td>
																										</tr>
																										
																										
																										<tr>
																											<td>Date (JJ MM AAAA) : </td>
																											<td><input type="text" name="jour" size="4" max-length="2" value="<?echo $jour_the_reunion;?>" />&nbsp;&nbsp;<input type="text" name="mois" size="4" max-length="2" value="<?echo $mois_the_reunion;?>" />&nbsp;&nbsp;<input type="text" name="annee" size="8" max-length="4" value="<?echo $annee_the_reunion;?>" /></td>
																										</tr>
																										
																										
																										<tr>
																											<td>Date en toutes lettres : </td>
																											<td><input type="text" name="date_lettres" value="<?echo $date_lettres_the_reunion;?>" /></td>
																										</tr>
																										
																										
																										
																										
																										<tr>
																											<td>Heure Debut (HH mm) : </td>
																											<td><input type="text" name="hh_debut" size="4" max-length="2" value="<?echo $hh_debut_the_reunion;?>" />&nbsp;&nbsp;<input type="text" name="mm_debut" size="4" max-length="2" value="<?echo $mm_debut_the_reunion;?>" /></td>
																										</tr>
																										
																										
																										<tr>
																											<td>Heure Debut en toutes lettres : </td>
																											<td><input type="text" name="heure_debut_lettres" value="<?echo $heure_debut_lettres_the_reunion;?>" /></td>
																										</tr>
																										
																										
																										
																										<tr>
																											<td>Heure Fin (HH mm) <i><font color="black">(Optionnel)</font></i> : </td>
																											<td><input type="text" name="hh_fin" size="4" max-length="2" value="<?echo $hh_fin_the_reunion;?>" />&nbsp;&nbsp;<input type="text" name="mm_fin" size="4" max-length="2" value="<?echo $mm_fin_the_reunion;?>" /></td>
																										</tr>
																										
																										
																										<tr>
																											<td>Heure Fin en toutes lettres <i><font color="black">(Optionnel)</font></i> : </td>
																											<td><input type="text" name="heure_fin_lettres" value="<?echo $heure_fin_lettres_the_reunion;?>" /></td>
																										</tr>
																										
																										
																										<tr>
																											<td></td>
																											<td><input type="submit" name="submit" value="<?if($modif_m==1) {echo 'Modifier Reunion';} else {echo 'Ajouter Reunion';}?>" /></td>
																										</tr>
																								
																								
																								</table>
																								</form>
																						
																						
																						</div>
																
																
																</div>
																
																<?
																}
																?>
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																										
																<div class="sous_bloc" style="margin-top:140px;margin-left:40px;width:600px;">
																
																						<div style="position:relative;float:left;width:100%;font-size:15px;">Reunions</div>
																		
																						<div style="position:relative;float:left;width:100%;">
																						
																										<?
																												while($row_an2 = mysql_fetch_array($res_an2)) {
																												
																													$id_an = $row_an2['id_annee'];
																													$annee = $row_an2['annee'];
																												
																												
																												?>
																												
																													<div class="une_annee_liste">
																														
																																	<div class="haut_une_annee_liste">
																																		
																																				<span style="position:relative;float:left;"><?echo $annee;?></span>
																																				
																																				<span style="position:relative;float:right;margin-top:2px;">
																																				<a href="calendrier_reunions.php?id_an=<?php echo $id_an; ?>&action=supprimer">
																																					<img src="_icones/supprimer1.png" onmouseout="this.src='_icones/supprimer1.png';" onmouseover="this.src='_icones/supprimer1.png';" style="border:none;" alt="" title="Supprimer Annee"  onClick="return(confirm('Etes-vous sur de vouloir supprimer cette annee ?'))" />
																																				</a>
																																				</span>
																																		
																																	</div>
																																	
																																	
																																	
																																	<div class="liens_une_annee_liste"><a href="calendrier_reunions.php?action=add_reunion&year=<?echo $annee;?>">Ajouter une reunion</a></div>
																																	
																																	
																																	<div class="bas_une_annee_liste">
																																	
																																	
																																	
																																												<div class="sous_bloc" style="margin-top:0px;margin-left:40px;width:460px;">
																								
																																																				<div class="bloc_element">
																																																					
																																																							<div class="bloc_element_gauche"><b>DATE / Heure</b></div>
																																																							
																																																							
																																																							<div class="bloc_element_milieu" style="margin-left:125px;"><b>Genre</b></div>
																																																							
																																																							<div class="bloc_element_droite"><b>Actions</b></div>
																																																							
																																																					</div>
																																																					
																																																					
																																																							<?
																																																							
																																																							$sql_m = "SELECT * FROM reunions WHERE date>='".$annee."-01-01' AND date<='".$annee."-12-31' ORDER BY date DESC";
																																																							$res_m = mysql_query($sql_m) or die(mysql_error());
																																																							
																																																							
																																																							while($row_m = mysql_fetch_array($res_m)) {
																																																							
																																																								$id_reunion = $row_m['id_reunion'];
																																																								
																																																								$date = $row_m['date'];
																																																								$date_lettres = $row_m['date_lettres'];
																																																								
																																																								$heure_debut = $row_m['heure_debut'];
																																																								$heure_debut_lettres = $row_m['heure_debut_lettres'];
																																																								
																																																								$heure_fin = $row_m['heure_fin'];
																																																								$heure_fin_lettres = $row_m['heure_fin_lettres'];
																																																								
																																																								$genre = $row_m['genre'];
																																																							
																																																							
																																																							?>
																																																							
																																																									<div class="bloc_element">
																																																									
																																																											<div class="bloc_element_gauche"><?echo $date_lettres . "  <span style='color:black;'>" . $heure_debut_lettres . "/" . $heure_fin_lettres . "</span>";?></div>
																																																											
																																																											
																																																											<div class="bloc_element_milieu" style="margin-left:50px;"><?echo $genre;?></div>
																																																											
																																																											<div class="bloc_element_droite">
																																																													<a href="calendrier_reunions.php?id=<?php echo $id_reunion; ?>&action=modifier">
																																																														<img src="_icones/modifier1.png" onmouseout="this.src='_icones/modifier1.png';" onmouseover="this.src='_icones/modifier1.png';" style="border:none;" alt="" title="Modifier les infos" />
																																																													</a>
																																																													&nbsp;&nbsp;&nbsp;
																																																													<a href="calendrier_reunions.php?id=<?php echo $id_reunion; ?>&action=supprimer">
																																																														<img src="_icones/supprimer1.png" onmouseout="this.src='_icones/supprimer1.png';" onmouseover="this.src='_icones/supprimer1.png';" style="border:none;" alt="" title="Supprimer l'utilisateur"  onClick="return(confirm('Etes-vous sur de vouloir supprimer cette reunion ?'))" />
																																																													</a>
																																																											</div>
																																																											
																																																									</div>
																																																							
																																																							<?
																																																							}
																																																							?>
																																																	
																																												</div>
																																	
																																	</div>
																														
																													</div>
																												
																												<?
																												}
																										?>
																										
																						</div>
																						
																</div>
																										
																
										
										
										
							</div>  <!-- fin centre_page -->
					
				</div> <!-- fin fond_principal_centre -->
		
		</div> <!-- fin fond_principal -->



</body>


</html>

WiTcH hUnT3r Plugin 2018