Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home/h/a/p/happyrenas/old/huissier-express.fr/administration/panel/

Linux webd005.cluster105.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Upload File :
Current File : /home/h/a/p/happyrenas/old/huissier-express.fr/administration/panel/constat_ajout.php

<?
session_start();
$page="constat";
include("../../config.php");
$constat_id				=		$_REQUEST['constat_id'];
$simulation				=		$_REQUEST['simulation'];
?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="fr" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8"/>
<title>ADMINISTRATION</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta content="" name="description"/>
<meta content="" name="author"/>
<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<link href="../assets/global/plugins/jquery-notific8/jquery.notific8.min.css" rel="stylesheet" type="text/css" />
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN THEME GLOBAL STYLES -->
<link href="../assets/global/css/components.min.css" rel="stylesheet" id="style_components" type="text/css" />
<link href="../assets/global/css/plugins.min.css" rel="stylesheet" type="text/css" />
<!-- END THEME GLOBAL STYLES -->
<!-- BEGIN THEME LAYOUT STYLES -->
<link href="../assets/layouts/layout2/css/layout.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/layouts/layout2/css/themes/grey.css" rel="stylesheet" type="text/css" id="style_color" />
<link href="../assets/layouts/layout2/css/custom.min.css" rel="stylesheet" type="text/css" />
<!-- END THEME LAYOUT STYLES -->
<link rel="shortcut icon" href="../../images/favicon.ico">
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<!-- DOC: Apply "page-header-fixed-mobile" and "page-footer-fixed-mobile" class to body element to force fixed header or footer in mobile devices -->
<!-- DOC: Apply "page-sidebar-closed" class to the body and "page-sidebar-menu-closed" class to the sidebar menu element to hide the sidebar by default -->
<!-- DOC: Apply "page-sidebar-hide" class to the body to make the sidebar completely hidden on toggle -->
<!-- DOC: Apply "page-sidebar-closed-hide-logo" class to the body element to make the logo hidden on sidebar toggle -->
<!-- DOC: Apply "page-sidebar-hide" class to body element to completely hide the sidebar on sidebar toggle -->
<!-- DOC: Apply "page-sidebar-fixed" class to have fixed sidebar -->
<!-- DOC: Apply "page-footer-fixed" class to the body element to have fixed footer -->
<!-- DOC: Apply "page-sidebar-reversed" class to put the sidebar on the right side -->
<!-- DOC: Apply "page-full-width" class to the body element to have full width page without the sidebar menu -->
<body class="page-header-fixed page-sidebar-closed-hide-logo page-container-bg-solid">
<!-- BEGIN HEADER -->
<?include("header_top.php");?>
<!-- END HEADER -->
<div class="clearfix">
</div>
<!-- BEGIN CONTAINER -->

	<div class="page-container">
		<!-- BEGIN SIDEBAR -->
		<div class="page-sidebar-wrapper">
			<!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
			<!-- DOC: Change data-auto-speed="200" to adjust the sub menu slide up/down speed -->
			<div class="page-sidebar navbar-collapse collapse">
				<?include("header_left.php");?>
			</div>
		</div>
		<!-- END SIDEBAR -->
		<!-- BEGIN CONTENT -->
		<div class="page-content-wrapper">
			<div class="page-content">
				<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
				<div class="modal fade" id="portlet-config" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
					<!-- /.modal-dialog -->
				</div>
				<!-- /.modal -->
				<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->

				<!-- BEGIN PAGE HEADER-->
				<h3 class="page-title">
				constats <small>Édition des constats</small>
				</h3>
				<div class="page-bar">
					<ul class="page-breadcrumb">
						<li>
							<i class="fa fa-home"></i>
							<a href="index.php">Accueil</a>
							<i class="fa fa-angle-right"></i>
						</li>
						<li>
							Éditer un constat
						</li>
					</ul>
					<div class="page-toolbar">
						<div class="btn-group pull-right">
							<a href="constat_liste.php">
							<button type="button" class="btn blue">
							Retour
							</button>
							</a>
						</div>
						<div class="btn-group pull-right">
							<a target="" href="constat_ajout.php?simulation=1&constat_id=<?echo $constat_id;?>">
							<button type="button" class="btn green">
							Simuler envoi Avant
							</button>
							</a>
						</div>
					</div>
					<?// REQUETE SELECT
					if ($constat_id)
					{
					$myquery = "SELECT * from constat where id=".$constat_id;
					$constat = $db->get_row($myquery);
					
					$myquery="select  count(id) from facture where constat_id=".$constat_id;
					$num = $db->get_var($myquery);
									
					}
					?>
					<?if ($constat->attribution_id !="0" && $num==0) {?>
					<div class="page-toolbar">
						<div class="btn-group pull-right">
							<a onclick="return confirm('Vous confirmez la génération de la facture ?' )" target="_blank" href="facture_ajout.php?constat_id=<?echo $constat_id;?>&huissier_id=<?echo $constat->attribution_id;?>&prix_base=<?echo  $constat->tarif;?>">
							<button type="button" class="btn green">
							Générer la facture
							</button>
							</a>
						</div>
					</div>
					<?}?>
					<?if ($constat->attribution_id !="0" && $num!=0) {?>
					<?
					$myquery="select  * from facture where constat_id=".$constat_id;
					$facture = $db->get_row($myquery);
					?>
					<div class="page-toolbar">
						<div class="btn-group pull-right">
							<a target="_blank" href="../fpdfi/facture.php?facture_id=<?echo $facture->id;?>&constat_id=<?echo $constat_id;?>&huissier_id=<?echo $facture->huissier_id;?>&tva=&save=non">
							<button type="button" class="btn green">
							Voir la facture
							</button>
							</a>
						</div>
					</div>
					<?}?>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->							
				<!--PHILIPPE-->				
				<?					
				$departement 				= $db->escape($_POST['departement']);
				$date_creation				= date("Y-m-d");
				$date_creation 				= date("Y-m-d", strtotime($date_creation));
				if ($statut!=1) {$statut=2;}

				// MISE A JOUR 
				if ($_POST['constat']!='' && $constat_id) 
				{
					$type_message=1;
					$requete="UPDATE constat set 
					departement						= '$departement',
					site							= '$site',
					information1					= '$information1',
					information2					= '$information2',
					date_modification				= '$date_modification',
					statut							= '$statut'
					where id						=".$constat_id;
					echo $requete;
					
					
					//$db->query($requete);
					echo "<div class='note note-success note-bordered'> Mise à jour de l'constat : <code>succès</code><button type='button' class='close' data-dismiss='alert' aria-hidden='true'></button></div>";
				}

				
				// REQUETE SELECT
				if ($constat_id)
				{
					$myquery = "SELECT * from constat where id=".$constat_id;
					$constat = $db->get_row($myquery);
				}
				?>
				<?
				if ($simulation==1)
				{
				//SPECS CONSTAT
				$myquery = "SELECT * from constat where id=".$constat_id;
				$constat = $db->get_row($myquery);
				$type_constat		=	$tableau_constat_type[$constat->constat_type];
				
				if ($constat->constat_type==20)
				{
					$type_constat="Autre constat";
					$laprecision=" <br><small>".$constat->laprecision."</small>";
				}
				
				$date_creation 		=	date("d-m-Y", strtotime($constat->date_creation));
				
				
				if ($constat->choix==1)
					{
					$texte="<b>Plage jour : </b>".$tableau_plage_jour[$constat->plage_jour]."<br>";
					$texte.="<b>Plage heure : </b>".$tableau_plage_heure[$constat->plage_heure]."<br>";
					if ($constat->plage_urgence) {$texte.="<b>Plage urgence : </b>".$tableau_plage_urgence[$constat->plage_urgence]."<br>";}
					}
															
				if ($constat->choix==2)
					{
					$texte="";
					if ($constat->date_choix!="0000-00-00")	{$texte.="Date souhaitée : ".$constat->date_choix;}
					if ($constat->heure_choix!="0000-00-00")	{$texte.="Heure souhaitée : ".$constat->heure_choix;}
					}
													
				$constat_lieu = $constat->constat_cp." ".$constat->constat_ville;
				$constat_tarif = $constat->tarif;
				
				//FIN SPECS CONSTAT
				include("modele_constat_envoi_mail_huissiers.php");
				}
				?>
				
				<?if (!$type_message) {?>
				
				<?
				if ($constat->paiement_statut=="1" ||  $constat->mangopay_Status=="VALIDATED") {?>
				<div class='portlet-body'>
						<div class='note note-info'>
						<h4 class='block'>
						MangoPay User ID : <?echo $constat->mangopay_user_id;?><br>
						MangoPay Cart Id : <?echo $constat->mangopay_cart_id;?><br>
						MangoPay Card Id : <?echo $constat->mangopay_cardregister_id;?><br>
						MangoPay Code retour : <?echo $constat->mangopay_ResultCode;?><br>
						MangoPay Message : <?echo $constat->mangopay_ResultMessage;?><br>
						MangoPay Statut : <?echo $constat->mangopay_Status;?></h5>
						
						
						
						
						
						</div>
				</div>
				
				
				<?}?>
				<div class="row">
					<?if ($constat->attribution_id !="0") {?>
					
					<div class="col-md-12">
						<div class="portlet box blue-hoki">
							<div class="portlet-title">
								<div class="caption">
									<i class="fa fa-cogs"></i>CONSTAT
								</div>
								<div class="tools">
									<a href="javascript:;" class="collapse">
									</a>
									<a href="javascript:;" class="reload">
									</a>
									<a href="javascript:;" class="fullscreen">
									</a>
								</div>
							</div>
							<div class="portlet-body form">

								<!-- BEGIN FORM-->
								<form method="post" action="constat_ajout.php" class="form-horizontal form-row-seperated">
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Tarif : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  $constat->tarif;?>"  type="text" name="constat_type"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										
										<div class="form-group">
											<label class="control-label col-md-3">Constat : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input value="<?echo  $tableau_constat_type[$constat->constat_type];?>"  type="text" name="constat_type"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										
										<div class="form-group">
											<label class="control-label col-md-3">Constat : </label>
											<div class="col-md-7">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<select id="constat_type_valeur" name="constat_type_valeur" class="form-control selection" >
														<option selected value="">TYPE DE CONSTAT</option>
														<?for ($i=1;$i<sizeof($tableau_constat_type);$i++) {
														$option_select="";
														if (substr($tableau_constat_type[$i],0,3)=="==>") {$option_select="readonly disabled";}
														?>
														<option <?if ($i==$constat->constat_type) {echo " selected ";}?> <?echo $option_select;?> value='<?echo $i;?>'><?echo $tableau_constat_type[$i];?></option>
														<?if ($i==4) {?><option  value='21'><?echo $tableau_constat_type[21];?></option><?}?>
														<?}?>
													</select>
												</div>
											</div>
											<div class="col-md-2">
											<button type="button" id="A<?echo $constat_id;?>" class="constat_type_maj btn green">MAJ</button>
											</div>
										</div>
										<?
										if ($constat->constat_type=="20") {?>
										<div class="form-group">
											<label class="control-label col-md-3">Informations : </label>
											<div class="col-md-9">
												<textarea disabled readonly  rows=10 id="" name="" class="form-control" ><?echo $constat->laprecision;?></textarea>
											</div>
										</div>
										<?}?>
										
										
										<?if ($constat->choix==1)
										{
										?>
										<div class="form-group">
											<label class="control-label col-md-3">Plage jour : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  $tableau_plage_jour[$constat->plage_jour];?>"  type="text" name="plage_jour"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										<div class="form-group">
											<label class="control-label col-md-3">Plage heure : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  $tableau_plage_heure[$constat->plage_heure];?>"  type="text" name="plage_heure"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										<?if ($constat->plage_urgence) {?>
										<div class="form-group">
											<label class="control-label col-md-3">Plage urgence : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  $tableau_plage_urgence[$constat->plage_urgence];?>"  type="text" name="plage_urgence"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>

										<?}?>
										<?}?>
										<?if ($constat->choix==2)
										{
										?>
										<div class="form-group">
											<label class="control-label col-md-3">Sélection date : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  $constat->date_choix;?>"  type="text" name="date_choix"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										<div class="form-group">
											<label class="control-label col-md-3">Sélection heure : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  $constat->heure_choix;?>"  type="text" name="heure_choix"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										<?}?>
										
										<div class="form-group">
											<label class="control-label col-md-3">Lieu du constat : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  utf8_encode($constat->constat_adresse);?> <?echo  utf8_encode($constat->constat_cp);?> <?echo  utf8_encode($constat->constat_ville);?>"  type="text" name="plage_jour"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										
										
										
										
										<div class="form-group">
											<label class="control-label col-md-3">Département du constat : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  utf8_encode($constat->constat_departement);?>"  type="text" name="plage_jour"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										
										
										
										<div class="form-body">
											<div class="form-group">
												<label class="control-label col-md-3">Client présent : </label>
												<div class="col-md-9">
												<select disabled readonly name="is_present" class="form-control">
													<option  <?if ($constat->is_present==1) {echo "selected";}?> value='1'>Client présent sur les lieux</option>
													<option  <?if ($constat->is_present==2) {echo "selected";}?> value='2'>Client non présent sur les lieux</option>
													</select>
												</div>
											</div>
										</div>
										<div class="form-body">
											<div class="form-group">
												<label class="control-label col-md-3">Nom de la personne présente : </label>
												<div class="col-md-9">
												<input disabled readonly value="<?echo $constat->present_nom;?>" id="present_nom" name="present_nom"  class="form-control">
												</div>
											</div>
										</div>
										
										<div class="form-body">
											<div class="form-group">
												<label class="control-label col-md-3">Téléphone de la personne présente : </label>
												<div class="col-md-9">
												<input disabled readonly value="<?echo $constat->present_telephone;?>" id="present_telephone" name="present_telephone"  class="form-control">
												</div>
											</div>
										</div>
										
										
										
										
										<div class="form-group">
											<label class="control-label col-md-3">Informations : </label>
											<div class="col-md-9">
												<textarea disabled readonly  rows=10 id="information1" name="information" class="form-control" ><?echo $constat->information;?></textarea>
											</div>
										</div>
										
									</div>
									
									<div class="portlet box yellow-crusta">
										<div class="portlet-title">
											<div class="caption">
												<i class="fa fa-cogs"></i>CLIENT
											</div>
											<div class="tools">
												<a href="javascript:;"  onclick='location.reload(true); return false;' class="reload">
												</a>
											</div>
										</div>
									</div>
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Nom du client : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->prenom;?> <?echo $constat->nom;?> <?echo $constat->societe;?>"   class="form-control">
											</div>
										</div>
									</div>

									
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Adresse : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->adresse;?>"  class="form-control">
											</div>
										</div>
									</div>
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">CP : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->cp;?>"  class="form-control">
											</div>
										</div>
									</div>
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Ville : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->ville;?>"  class="form-control">
											</div>
										</div>
									</div>
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Pays : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->pays;?>"  class="form-control">
											</div>
										</div>
									</div>
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Tel : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->telephone;?>"  class="form-control">
											</div>
										</div>
									</div>
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Email : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->mail;?>"  class="form-control">
											</div>
										</div>
									</div>
									
									
									<div class="form-body">
										<div class="form-group">
												<div class="col-md-offset-3 col-md-9">
													<button type="button" class="btn green"><i class="fa fa-pencil"></i>  Attribué le  <?echo date("d-m-Y H:i", strtotime($constat->attribution_date));?></button>
												</div>
										</div>
									</div>
									
									
								</form>
								<!-- END FORM-->
							</div>
						</div>
						<!-- END EXTRAS PORTLET-->
					</div>
					<?} else {?>
					<div class="col-md-12">
						<div class="portlet box blue-hoki">
							<div class="portlet-title">
								<div class="caption">
									<i class="fa fa-cogs"></i>INFORMATIONS
								</div>
								<div class="tools">
									<a href="javascript:;" class="collapse">
									</a>
									<a href="javascript:;" class="reload">
									</a>
									<a href="javascript:;" class="fullscreen">
									</a>
								</div>
							</div>
							<div class="portlet-body form">

								<!-- BEGIN FORM-->
								<form method="post" action="constat_ajout.php" class="form-horizontal form-row-seperated">
									<div class="form-body">
										
										<div class="form-group">
											<label class="control-label col-md-3">Constat : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  $tableau_constat_type[$constat->constat_type];?>"  type="text" name="constat_type"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										<div class="form-group">
											<label class="control-label col-md-3">Constat : </label>
											<div class="col-md-7">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<select id="constat_type_valeur" name="constat_type_valeur" class="form-control selection" >
														<option selected value="">TYPE DE CONSTAT</option>
														<?for ($i=1;$i<sizeof($tableau_constat_type)+1;$i++) {
														$option_select="";
														if (substr($tableau_constat_type[$i],0,3)=="==>") {$option_select="readonly disabled";}
														?>
														<option <?if ($i==$constat->constat_type) {echo " selected ";}?> <?echo $option_select;?> value='<?echo $i;?>'><?echo $tableau_constat_type[$i];?></option>
														<?if ($i==4) {?><option  value='21'><?echo $tableau_constat_type[21];?></option><?}?>
														<?}?>
													</select>
												</div>
											</div>
											<div class="col-md-2">
											<button type="button" id="A<?echo $constat_id;?>" class="constat_type_maj btn green">MAJ</button>
											</div>
										</div>
										<?
										if ($constat->constat_type=="20") {?>
										<div class="form-group">
											<label class="control-label col-md-3">Informations : </label>
											<div class="col-md-9">
												<textarea disabled readonly  rows=4 id="" name="" class="form-control" ><?echo $constat->laprecision;?></textarea>
											</div>
										</div>
										<?}?>
										<?if ($constat->choix==1)
										{
										?>
										<div class="form-group">
											<label class="control-label col-md-3">Plage jour : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  $tableau_plage_jour[$constat->plage_jour];?>"  type="text" name="plage_jour"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										<div class="form-group">
											<label class="control-label col-md-3">Plage heure : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  $tableau_plage_heure[$constat->plage_heure];?>"  type="text" name="plage_heure"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										<?if ($constat->plage_urgence) {?>
										<div class="form-group">
											<label class="control-label col-md-3">Plage urgence : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  $tableau_plage_urgence[$constat->plage_urgence];?>"  type="text" name="plage_urgence"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>

										<?}?>
										<?}?>
										<?if ($constat->choix==2)
										{
										?>
										<div class="form-group">
											<label class="control-label col-md-3">Sélection date : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  $constat->date_choix;?>"  type="text" name="date_choix"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										<div class="form-group">
											<label class="control-label col-md-3">Sélection heure : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  $constat->heure_choix;?>"  type="text" name="heure_choix"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										<?}?>
										
										<div class="form-group">
											<label class="control-label col-md-3">Lieu du constat : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  utf8_encode($constat->constat_adresse);?> <?echo  utf8_encode($constat->constat_cp);?> <?echo  utf8_encode($constat->constat_ville);?>"  type="text" name="plage_jour"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										
										
										
										
										<div class="form-group">
											<label class="control-label col-md-3">Posté le  : <span class="required">*</span></label>
											<div class="col-md-9">
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-user"></i></span>
													<input disabled readonly value="<?echo  date("d-m-Y H:i", strtotime($constat->date_creation));?>"  type="text" name="plage_jour"  maxlength="255" class="form-control"/>
												</div>
											</div>
										</div>
										
										
										
										
									</div>
									
									<div class="form-body">
											<div class="form-group">
												<label class="control-label col-md-3">Client présent : </label>
												<div class="col-md-9">
												<select disabled readonly name="is_present" class="form-control">
													<option  <?if ($constat->is_present==1) {echo "selected";}?> value='1'>Client présent sur les lieux</option>
													<option  <?if ($constat->is_present==2) {echo "selected";}?> value='2'>Client non présent sur les lieux</option>
													</select>
												</div>
											</div>
									</div>
									<div class="form-group">
										<label class="control-label col-md-3">Prix : </label>
										<div class="col-md-7">
											<input disabled readonly value="<?echo $constat->tarif;?>" id="tarif" name="tarif"  class="form-control">
											
										</div>
										
									</div>
									
									<div class="form-group">
										<label class="control-label col-md-3">Prix : </label>
										<div class="col-md-7">
											<input value="<?echo $constat->tarif;?>" id="constat_tarif_valeur" name="constat_tarif_valeur"  class="form-control">
											
										</div>

										<div class="col-md-2">
											<button type="button" id="B<?echo $constat_id;?>" class="constat_tarif_maj btn green">MAJ</button>
											</div>
									</div>
									
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Heures estimées : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->estimation;?>" id="estimation" name="estimation"  class="form-control">
											</div>
										</div>
									</div>
									<div class="form-group">
											<label class="control-label col-md-3">Informations : </label>
											<div class="col-md-9">
												<textarea disabled readonly  rows=10 id="information1" name="information" class="form-control" ><?echo $constat->information;?></textarea>
											</div>
										</div>
										
									
									<div class="portlet box yellow-crusta">
										<div class="portlet-title">
											<div class="caption">
												<i class="fa fa-cogs"></i>CLIENT
											</div>
											<div class="tools">
												<a href="javascript:;"  onclick='location.reload(true); return false;' class="reload">
												</a>
											</div>
										</div>
									</div>
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Nom du client : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->prenom;?> <?echo $constat->nom;?> <?echo $constat->societe;?>"   class="form-control">
											</div>
										</div>
									</div>

									
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Adresse : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->adresse;?>"  class="form-control">
											</div>
										</div>
									</div>
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">CP : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->cp;?>"  class="form-control">
											</div>
										</div>
									</div>
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Ville : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->ville;?>"  class="form-control">
											</div>
										</div>
									</div>
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Pays : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->pays;?>"  class="form-control">
											</div>
										</div>
									</div>
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Tel : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->telephone;?>"  class="form-control">
											</div>
										</div>
									</div>
									<div class="form-body">
										<div class="form-group">
											<label class="control-label col-md-3">Email : </label>
											<div class="col-md-9">
											<input disabled readonly value="<?echo $constat->mail;?>"  class="form-control">
											</div>
										</div>
									</div>
									
									
									
									
									
								</form>
								<!-- END FORM-->
							</div>
						</div>
						<!-- END EXTRAS PORTLET-->
					</div>
					<?}?>
				</div>
				<div class="row">
					<div class="col-md-12">
						<div class="portlet box blue-hoki">
							<div class="portlet-body form">
								<div class="portlet box yellow">
										<div class="portlet-title">
											<div class="caption">
												<i class="fa fa-cogs"></i>HUISSIERS COMPETENTS PREMIUM
											</div>
											<div class="tools">
												<a href="javascript:;"  onclick='location.reload(true); return false;' class="reload">
												</a>
											</div>
										</div>
								</div>
								</form>
									<?
									if ($constat->statut==0) {exit;}
									$ordre="huissier";
									$myquery = "SELECT * from huissier where 1 AND abonnement_is=2  AND (departement = ".$constat->constat_departement." || zone1=".$constat->constat_departement." || zone2=".$constat->constat_departement." || zone3=".$constat->constat_departement." ||zone4=".$constat->constat_departement.") order by ".$ordre;
									echo $myquery;
									$myquery_calls = $db->get_results($myquery);
									
									
									?>
								
								<?
								if ($constat->envoi_mail_premium!=1) {?>
								
								<?if ($constat->mangopay_ResultCode=="000000" || $constat->paiement_statut=="1") {?>
								<form target="_blank" method="post" action="constat_choix_envoi_mail_huissiers_premium.php" class="form-horizontal form-row-seperated">
								<input type="hidden" name="constat_id" value="<?echo $constat_id;?>">
								<input type="hidden" name="dernier_huissier_id" value="">
								
									<div class="form-group">
												<div class="col-md-offset-3 col-md-9">
													<button type="submit" class="btn green"><i class="fa fa-pencil"></i>  ENVOYER LE MAIL DE NOTIFICATION AUX HUISSIERS PREMIUM COMPETENTS ACTIFS</button>
												</div>
									</div>
								</form>
								<?} else {?>
								<div class="form-group">
												<div class="col-md-offset-3 col-md-9">
													<button type="submit" class="btn blue"><i class="fa fa-pencil"></i> CONSTAT NON PAYE</button>
												</div>
									</div>
								<?}?>
								<?}
								else {
								?>
								<div class="form-group">
												<div class="col-md-offset-3 col-md-9">
													<button type="submit" class="btn blue"><i class="fa fa-pencil"></i> MAIL DE NOTIFICATION PREMIUM DEJA ENVOYE</button>
												</div>
									</div>
									<?if ($constat->mangopay_ResultCode=="000000" || $constat->paiement_statut=="1") {?>
										<form target="_blank" method="post" action="constat_choix_envoi_mail_huissiers_premium.php" class="form-horizontal form-row-seperated">
										<input type="hidden" name="constat_id" value="<?echo $constat_id;?>">
										<input type="hidden" name="dernier_huissier_id" value="">
										
											<div class="form-group">
														<div class="col-md-offset-3 col-md-9">
															<button type="submit" class="btn yellow"><i class="fa fa-pencil"></i>  ENVOYER A NOUVEAU LE  MAIL DE NOTIFICATION AUX HUISSIERS PREMIUM COMPETENTS ACTIFS</button>
														</div>
											</div>
										</form>
										<?}?>
								
								<?}?>
									<div class="row">
										<div class="col-md-12">
											<div class="portlet box blue-steel">
												<div class="portlet-body">
													<div class="table-scrollable">
														<table class="table table-bordered table-striped table-condensed flip-content">
														<thead>
														<tr>
															<th width="1px">&nbsp;</th>
															<th width="1px">&nbsp;</th>
															<th  width="80%">Huissier <a href="huissier_liste.php?ordre=huissier&departement_id=<?echo $departement_id;?>">&nbsp;<i class="fa fa-caret<?if ($ordre=="huissier") {echo "-square-o";}?>-down"></i></a></th>
															<th width="10%">Département <a href="huissier_liste.php?ordre=departement&departement_id=<?echo $departement_id;?>">&nbsp;<i class="fa fa-caret<?if ($ordre=="departement") {echo "-square-o";}?>-down"></i></a></th>
															<th width="10%">Statut <a href="huissier_liste.php?ordre=statut&departement_id=<?echo $departement_id;?>">&nbsp;<i class="fa fa-caret<?if ($ordre=="statut") {echo "-square-o";}?>-down"></i></a></th>
															<th width="1x">&nbsp;</th>
														</tr>
														</thead>
														<tbody>
														<?
														if (!empty($myquery_calls))
														{
														foreach ( $myquery_calls as $huissiers )
														{
														$compteur=$compteur+1;
														?>
														<tr>
															<td  class="text-center">
															<?
															if ($constat->attribution_id==$huissiers->id) {?><span class='label label-sm label-success'><?echo date("d-m-Y", strtotime($constat->attribution_date));?></span><?}?>
															</td>
															<td  class="text-center">
															
															</td>
															
															<td><a href="huissier_ajout.php?huissier_id=<?echo $huissiers->id;?>"><?echo utf8_encode ($huissiers->huissier);?></a></td>
															<td  class="text-center"><a href="huissier_ajout.php?huissier_id=<?echo $huissiers->id;?>"><?echo utf8_encode ($huissiers->departement);?></a></td>
															<td  class="text-center">
															<?
															
															if ($huissiers->statut==0) {echo "<span class='label label-sm label-warning'>INACTIF</span>";}
															if ($huissiers->statut==1) {echo "<span class='label label-sm label-success'>ACTIF</span>";}
															?>
															</td>
															<td></td>
														</tr>
														<?
														}
														}
														?>
														</tbody>
														</table>
													</div>
												</div>
											</div>
										</div>
									</div>
								
								<!-- END FORM-->
							</div>
						</div>
						<!-- END EXTRAS PORTLET-->
					</div>
				</div>
				
				
				
				
				
				
				<div class="row">
					<div class="col-md-12">
						<div class="portlet box blue-hoki">
							<div class="portlet-body form">
								<div class="portlet box yellow-crusta">
										<div class="portlet-title">
											<div class="caption">
												<i class="fa fa-cogs"></i>HUISSIERS COMPETENTS
											</div>
											<div class="tools">
												<a href="javascript:;"  onclick='location.reload(true); return false;' class="reload">
												</a>
											</div>
										</div>
								</div>
								</form>
									<?
									if ($constat->statut==0) {exit;}
									$ordre="huissier";
									$myquery = "SELECT * from huissier where (departement = ".$constat->constat_departement." || zone1=".$constat->constat_departement." || zone2=".$constat->constat_departement." || zone3=".$constat->constat_departement." ||zone4=".$constat->constat_departement.") order by ".$ordre;
									//echo $myquery;
									$myquery_calls = $db->get_results($myquery);
									
									
									?>
								
								<?
								if ($constat->envoi_mail!=1) {?>
								
								<?if ($constat->mangopay_ResultCode=="000000" || $constat->paiement_statut=="1") {?>
								<form target="_blank" method="post" action="constat_choix_envoi_mail_huissiers.php" class="form-horizontal form-row-seperated">
								<input type="hidden" name="constat_id" value="<?echo $constat_id;?>">
								<input type="hidden" name="dernier_huissier_id" value="">
								
									<div class="form-group">
												<div class="col-md-offset-3 col-md-9">
													<button type="submit" class="btn green"><i class="fa fa-pencil"></i>  ENVOYER LE MAIL DE NOTIFICATION AUX HUISSIERS COMPETENTS ACTIFS</button>
												</div>
									</div>
								</form>
								<?} else {?>
								<div class="form-group">
												<div class="col-md-offset-3 col-md-9">
													<button type="submit" class="btn blue"><i class="fa fa-pencil"></i> CONSTAT NON PAYE</button>
												</div>
									</div>
								<?}?>
								<?}
								else {
								?>
								<div class="form-group">
												<div class="col-md-offset-3 col-md-9">
													<button type="submit" class="btn blue"><i class="fa fa-pencil"></i> MAIL DE NOTIFICATION DEJA ENVOYE</button>
												</div>
									</div>
									<?if ($constat->mangopay_ResultCode=="000000" || $constat->paiement_statut=="1") {?>
								<form target="_blank" method="post" action="constat_choix_envoi_mail_huissiers.php" class="form-horizontal form-row-seperated">
								<input type="hidden" name="constat_id" value="<?echo $constat_id;?>">
								<input type="hidden" name="dernier_huissier_id" value="">
								
									<div class="form-group">
												<div class="col-md-offset-3 col-md-9">
													<button type="submit" class="btn yellow"><i class="fa fa-pencil"></i>  ENVOYER A NOUVEAU LE MAIL DE NOTIFICATION AUX HUISSIERS COMPETENTS ACTIFS</button>
												</div>
									</div>
								</form>
								<?}?>
								
								<?}?>
									<div class="row">
										<div class="col-md-12">
											<div class="portlet box blue-steel">
												<div class="portlet-body">
													<div class="table-scrollable">
														<table class="table table-bordered table-striped table-condensed flip-content">
														<thead>
														<tr>
															<th width="1px">&nbsp;</th>
															<th width="1px">&nbsp;</th>
															<th  width="80%">Huissier <a href="huissier_liste.php?ordre=huissier&departement_id=<?echo $departement_id;?>">&nbsp;<i class="fa fa-caret<?if ($ordre=="huissier") {echo "-square-o";}?>-down"></i></a></th>
															<th width="10%">Département <a href="huissier_liste.php?ordre=departement&departement_id=<?echo $departement_id;?>">&nbsp;<i class="fa fa-caret<?if ($ordre=="departement") {echo "-square-o";}?>-down"></i></a></th>
															<th width="10%">Statut <a href="huissier_liste.php?ordre=statut&departement_id=<?echo $departement_id;?>">&nbsp;<i class="fa fa-caret<?if ($ordre=="statut") {echo "-square-o";}?>-down"></i></a></th>
															<th width="1x">&nbsp;</th>
														</tr>
														</thead>
														<tbody>
														<?
														if (!empty($myquery_calls))
														{
														foreach ( $myquery_calls as $huissiers )
														{
														$compteur=$compteur+1;
														?>
														<tr>
															<td  class="text-center">
															<?
															if ($constat->attribution_id==$huissiers->id) {?><span class='label label-sm label-success'><?echo date("d-m-Y", strtotime($constat->attribution_date));?></span><?}?>
															</td>
															<td  class="text-center">
															
															</td>
															
															<td><a href="huissier_ajout.php?huissier_id=<?echo $huissiers->id;?>"><?echo utf8_encode ($huissiers->huissier);?></a></td>
															<td  class="text-center"><a href="huissier_ajout.php?huissier_id=<?echo $huissiers->id;?>"><?echo utf8_encode ($huissiers->departement);?></a></td>
															<td  class="text-center">
															<?
															
															if ($huissiers->statut==0) {echo "<span class='label label-sm label-warning'>INACTIF</span>";}
															if ($huissiers->statut==1) {echo "<span class='label label-sm label-success'>ACTIF</span>";}
															?>
															</td>
															<td></td>
														</tr>
														<?
														}
														}
														?>
														</tbody>
														</table>
													</div>
												</div>
											</div>
										</div>
									</div>
								
								<!-- END FORM-->
							</div>
						</div>
						<!-- END EXTRAS PORTLET-->
					</div>
				</div>
				<?}?>
	<!-- END PAGE CONTENT-->
			</div>
		</div>
		<!-- END CONTENT -->
		<!-- BEGIN QUICK SIDEBAR -->
		<!--Cooming Soon...-->
		<!-- END QUICK SIDEBAR -->
	</div>
	<!-- END CONTAINER -->
	<?
	include("footer.php");
	?>
</div>
            
 <!--[if lt IE 9]>
<script src="../assets/global/plugins/respond.min.js"></script>
<script src="../assets/global/plugins/excanvas.min.js"></script> 
<script src="../assets/global/plugins/ie8.fix.min.js"></script> 
<![endif]-->
<!-- BEGIN CORE PLUGINS -->
<script src="../assets/global/plugins/jquery.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/js.cookie.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script src="../assets/global/plugins/jquery-notific8/jquery.notific8.min.js" type="text/javascript"></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN THEME GLOBAL SCRIPTS -->
<script src="../assets/global/scripts/app.min.js" type="text/javascript"></script>
<!-- END THEME GLOBAL SCRIPTS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="../assets/pages/scripts/ui-notific8.min.js" type="text/javascript"></script>

<!-- END PAGE LEVEL SCRIPTS -->
<!-- BEGIN THEME LAYOUT SCRIPTS -->
<script src="../assets/layouts/layout2/scripts/layout.min.js" type="text/javascript"></script>
<script src="../assets/layouts/layout2/scripts/demo.min.js" type="text/javascript"></script>
<script src="../assets/layouts/global/scripts/quick-sidebar.min.js" type="text/javascript"></script>
<script src="../assets/layouts/global/scripts/quick-nav.min.js" type="text/javascript"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>

<script>

$(".constat_type_maj").click(function(){
        constat_id = this.id;
		constat_id = constat_id.substring(1);
		var constat_type_valeur = $('#constat_type_valeur').val();
		$(this).css('background-color', 'green');
		
		$.ajax({
			   url : 'constat_type_maj.php',
			   type : 'POST',
	           data : 'constat_id=' + constat_id + '&constat_type_valeur=' + constat_type_valeur ,
			   dataType : 'html',
			   success : function(data){
			   location.reload();
			   },
			   error : function(request, error){
				 alert("Erreur : responseText: "+request.responseText);
			   },
			});
});

$(".constat_tarif_maj").click(function(){
        constat_id = this.id;
		constat_id = constat_id.substring(1);
		var constat_tarif_valeur = $('#constat_tarif_valeur').val();
		//alert (constat_tarif_valeur);
		//return false;
		$(this).css('background-color', 'green');
		
		$.ajax({
			   url : 'constat_tarif_maj.php',
			   type : 'POST',
	           data : 'constat_id=' + constat_id + '&constat_tarif_valeur=' + constat_tarif_valeur ,
			   dataType : 'html',
			   success : function(data){
			   location.reload();
			   },
			   error : function(request, error){
				 alert("Erreur : responseText: "+request.responseText);
			   },
			});
});
</script>
<!-- END THEME LAYOUT SCRIPTS -->
    </body>
</html>

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net