Mini Shell

Direktori : /home/admin/web/mcpv.demarco.ddnsfree.com/public_html/external/prestataires/
Upload File :
Current File : /home/admin/web/mcpv.demarco.ddnsfree.com/public_html/external/prestataires/avis_revue.php

<?php
require_once(__DIR__ . "/_include/init.php");
if(!current_user_can('administrator') ) {
	echo "Section réservée aux administrateurs du site uniquement. <a href='/mcpv/index.php'>Revenir au site</a>";
	exit();
}
$msg = "&nbsp;";
?>
<!doctype html>
<html lang="fr">
<head>

<?php require_once("_include/meta.php"); 
      require_once("_include/link.php"); 
      require_once("_include/script.php"); 
?>

<script type="text/javascript">

$(document).ready(function() {
	$('#btn_search').html('<i class="fa fa-search"></i> Rechercher');
		
	$('#btn_search').on('click',function() {
		$('#btn_search').html('<i class="fa fa-spinner fa-spin"></i> Rechercher');
		$('#search_form').submit();
	});
	
	$('.view-btn').on('click',function() {
		$tr = $(this).closest('tr');
		var data = $tr.children('td').map(function() {
			return $(this).text();
		}).get();
		$('#id_view').val(data[0]);
		$('#statut_view').text(data[1]);
		$('#date_view').text(data[2]);
		$('#membre_view').text(data[3]);
		$('#email_view').text(data[4]);
		$('#href_email_view').attr('href', 'mailto:' + data[4]);
		$('#anonyme_view').text(data[5]);
		$('#prestataire_view').text(data[6]);
		$('#lieu_view').text(data[7]);
		$('#fonction_view').text(data[8]);
		$('#note_c1_view').val(data[9]);
		$('#tx_note_c1_view').attr('class',fmt_note(data[9]));
		$('#tx_note_c1_view').text(data[9]);
		$('#note_c2_view').val(data[10]);
		$('#tx_note_c2_view').attr('class',fmt_note(data[10]));
		$('#tx_note_c2_view').text(data[10]);
		$('#note_c3_view').val(data[11]);
		$('#tx_note_c3_view').attr('class',fmt_note(data[11]));
		$('#tx_note_c3_view').text(data[11]);
		$('#note_c4_view').val(data[12]);
		$('#tx_note_c4_view').attr('class',fmt_note(data[12]));
		$('#tx_note_c4_view').text(data[12]);
		$('#note_c5_view').val(data[13]);
		$('#tx_note_c5_view').attr('class',fmt_note(data[13]));
		$('#tx_note_c5_view').text(data[13]);
		$('#note_c6_view').val(data[14]);
		$('#tx_note_c6_view').attr('class',fmt_note(data[14]));
		$('#tx_note_c6_view').text(data[14]);
		$('#remarque_view').text(data[15]);
		$('#prest_id_view').val(data[16]);
		$('#view-modal').modal('show');  	
	});
	
});

function fmt_note(note) {
	var textclass = 'badge badge-pill badge-'; 
	if (parseInt(note) < 4) {
		textclass += 'danger';
	} else if(note >= 4 && note <= 7) {
		textclass += 'warning';
	} else {
		textclass += 'success';
	}
	return textclass;
}
</script>

</head>

<body>
<?php
	$query = $db->prepare('select * from v_avis where publie < 2 order by publie, date_avis');
	$listeavis = $query->execute();
	$recs = 0;
	while($rows = $listeavis->fetchArray(SQLITE3_ASSOC)) {
		$recs++;
	}
	echo '<h5 class="text-center pt-3">Revue des avis</h5>';
	echo '<h6 class="text-center text-primary p-2"><span class="badge badge-primary badge-pill">' . $recs . '</span> avis en attente de publication trouvés</h6>';
	echo '<div class="container-xl">';
	echo '<table class="table table-striped table-sm small">';
	echo '<thead>';
	echo '<tr>';
	echo '<th>Statut</th>';
	echo '<th>Posté le</th>';
	echo '<th>Membre</th>';
	echo '<th>EMail</th>';
	echo '<th>Anonyme</th>';
	echo '<th>Prestataire évalué</th>';
	echo '<th>Lieu</th>';
	echo '<th>Fonction</th>';	
	echo '<th>Action</th>';
	echo '</tr>';
	echo '</thead>';
	echo '<div class="container">';
	echo '<tbody>';
	while($avis = $listeavis->fetchArray(SQLITE3_ASSOC))
	{
				switch($avis['publie']) {
					case 0  : $statut = "Soumis"; break;
					case 1  : $statut = "En attente"; break;
					case 2  : $statut = "Publié"; break;
					case 3  : $statut = "Rejeté"; break;
					default : $statut = "N/A"; break ;
				}
		
				echo '<tr>';
				echo '<td hidden>' . $avis['id'] .'</td>';												// data[0]
				echo '<td>' . $statut  .'</td>';														// data[1]
				echo '<td>' . $avis['date_avis'] .'</td>';												// data[2]
				echo '<td>' . $avis['memb_nom'] .'</td>';												// data[3]
				echo '<td><a href="mailto:' .$avis['memb_email']. '">'.$avis['memb_email'].'</td>';		// data[4]
				echo '<td>' . ($avis['anonyme'] == 0 ? 'NON' : 'OUI').'</td>';							// data[5]
				echo '<td>' . $avis['nom'] .' '. $avis['prenom'].'</td>';								// data[6]
				echo '<td>' . $avis['lieu'] .'</td>';													// data[7]
				echo '<td>' . $avis['fonction'] .'</td>';												// data[8]
				echo '<td hidden>' . $avis['note_c1'] . '</td>';										// data[9]
				echo '<td hidden>' . $avis['note_c2'] . '</td>';										// data[10]
				echo '<td hidden>' . $avis['note_c3'] . '</td>';										// data[11]
				echo '<td hidden>' . $avis['note_c4'] . '</td>';										// data[12]
				echo '<td hidden>' . $avis['note_c5'] . '</td>';										// data[13]
				echo '<td hidden>' . $avis['note_c6'] . '</td>';										// data[14]
				echo '<td hidden>' . $avis['remarque'] .'</td>';										// data[15]
				echo '<td hidden>' . $avis['prest_id'] .'</td>';										// data[16]
				echo '<td>';
				echo '<button type="button" class="view-btn btn btn-sm btn-success mr-2 text-light" role="button"><i class="fa fa-eye"></i> Voir détail</button>';
				echo '</td>';

				echo '</tr>';
	}
	echo '</tbody>';
	echo '</table>';
	echo '</div>';
	echo '</div>';
?>

<!-- Page modale - Afficher détail avis -->

<div class="modal fade" id="view-modal">
   <div id="view-modal-main" class="modal-dialog modal-dialog-centered">
        <div class="modal-content">  
            <div class="modal-header text-center">Détails avis</div>
			<form method="post" id="form-view" action="avis_publier.php">
				<div class="modal-body">
					<p id="err-view" class="font-weight-bold text-danger" hidden></p>
					<input type="text" id ="id_view" name="id_view" hidden>
					<input type="text" id ="prest_id_view" name="prest_id_view" hidden>
					<input type="text" id ="note_c1_view" name="note_c1_view" hidden>
					<input type="text" id ="note_c2_view" name="note_c2_view" hidden>
					<input type="text" id ="note_c3_view" name="note_c3_view" hidden>
					<input type="text" id ="note_c4_view" name="note_c4_view" hidden>
					<input type="text" id ="note_c5_view" name="note_c5_view" hidden>
					<input type="text" id ="note_c6_view" name="note_c6_view" hidden>
					<div id="detail-modal">
						<div class="small">
						<div class="row">
							<div class="col-4">
								<span>Statut</span>
							</div>
							<div class="col-8">
								<span class="text-primary" id="statut_view"></span>
							</div>
						</div>
						<div class="row">
							<div class="col-4">
								<span>Membre</span>
							</div>
							<div class="col-8">
								<span class="text-primary" id="membre_view"></span>
							</div>
						</div>
						<div class="row">						
							<div class="col-4">
								<span>EMail</span>
							</div>
							<div class="col-8">
								<a id="href_email_view"><span class="text-primary" id="email_view"></span></a>
							</div>
						</div>
						<div class="row">
							<div class="col-4">
								<span>Avis anonyme</span>
							</div>
							<div class="col-8">
								<span class="text-primary" id="anonyme_view"></span>
							</div>
						</div>
						<div class="row">
							<div class="col-4">
								<span>Prestataire évalué</span>
							</div>
							<div class="col-8">
								<span class="text-primary" id="prestataire_view"></span>
							</div>
						</div>
						<div class="row">
							<div class="col-4">
								<span>Lieu</span>
							</div>
							<div class="col-8">
								<span class="text-primary" id="lieu_view"></span>							
							</div>
						</div>
						<div class="row">
							<div class="col-4">
								<span>Fonction</span>
							</div>
							<div class="col-8">
								<span class="text-primary" id="fonction_view"></span>
							</div>
						</div>
						<div class="row">
							<div class="col-4">
								<span>Date avis</span>
							</div>
							<div class="col-8">
								<span class="text-primary" id="date_view"></span>
							</div>
						</div>
						<br/>
						<div class="row">
							<div class="col-4">
								<span><?php echo $criteres[0]; ?></span>
							</div>
							<div class="col-8">
							<span id="tx_note_c1_view"></span>	
							</div>
						</div>
						<div class="row">
							<div class="col-4">
								<span><?php echo $criteres[1]; ?></span>
							</div>
							<div class="col-8">
							<span id="tx_note_c2_view"></span>	
							</div>
						</div>
						<div class="row">
							<div class="col-4">
								<span><?php echo $criteres[2]; ?></span>
							</div>
							<div class="col-8">
							<span id="tx_note_c3_view"></span>
							</div>
						</div>
						<div class="row">
							<div class="col-4">
								<span><?php echo $criteres[3]; ?></span>
							</div>
							<div class="col-8">
							<span id="tx_note_c4_view"></span>	
							</div>
						</div>
						<div class="row">
							<div class="col-4">
								<span><?php echo $criteres[4]; ?></span>
							</div>
							<div class="col-8">
							<span id="tx_note_c5_view"></span>	
							</div>
						</div>
						<div class="row">
							<div class="col-4">
								<span><?php echo $criteres[5]; ?></span>
							</div>
							<div class="col-8">
							<span id="tx_note_c6_view"></span>	
							</div>
						</div>
						<br/>
						<div class="row">
							<div class="col-4">
								<span>Remarques</span>
							</div>
							<div class="col-8">
								<span class="text-primary" id="remarque_view"></span>
							</div>
						</div>
					</div>
					</div>
				</div>
				<div class="modal-footer text-center">
					<button id="btn-modal-fermer" title="Annuler" data-dismiss="modal" class="btn btn-sm btn-primary mr-2">
						<i class="fa fa-close"></i> Fermer</button>
					</button>
					<button type="submit" name="wait" id="btn-modal-attente" title="Attente" value="wait" class="btn btn-sm btn-warning mr-2">
						<i class="fa fa-hourglass-half"></i> Attente
					</button>
					<button type="submit" name="reject" id="btn-modal-rejeter" title="Rejeter" value="reject" class="btn btn-sm btn-danger mr-2">
						<i class="fa fa-thumbs-down"></i> Rejeter
					</input>				
					<button type="submit" name="publish" id="btn-modal-publier" title="Publier" value="publish" class="btn btn-sm btn-success mr-2">
						<i class="fa fa-thumbs-up"></i> Publier
					</button>
				</div>
			</form>
		</div>
	</div>
</div>

</body>
</html>
Unfortunately, it’s inconceivable to ensure the authenticity – Base de données MCPV "Prestataires"

Unfortunately, it’s inconceivable to ensure the authenticity

The Final Word Guide To Buying Reproduction Luggage

The sandals have a lightly padded footbed, which is a superb characteristic for comfort and regular wear. They can be found at Zappos, and Tuckernuck and are a best-selling sandal with over 440 reviews and a 4.5 star score (on Tuckernuck). You can find Hermes belts in Clemence Hermes Replica Bags, Box, Epsom and Swift leather-based sorts. Now, the second batch of Hermes belt dupes is sort of totally different. I would say that the above belts are more inspired variations than dupes.

However, if you do not want to promote your bag we advocate bringing it into a Hermes boutique and inquiring in regards to the authenticity of the Hermes bag. Unfortunately, it’s inconceivable to ensure the authenticity of a bag by looking a photos alone. We extremely advocate that you just only purchase Hermes bags from respected sellers who have a historical past of selling genuine and genuine purses. The shape of the bag and the handles are a wonderful indicator of whether the bag is genuine or faux. When standing, the bag ought to be neat and pronounced without any slouching or bulging in locations. The same applies to the handles which ought to stand straight up and down.

That’s one thing that would by no means occur to an unique bag as a outcome of its structure. In addition to the fact that the piping on Hermes baggage would not have such cords replica hermes, it clearly demonstrates poor leather quality. Bags of the French fashion house Hermes may be rightfully considered the most recognizable.

Step into the world of high style without burning a hole in your pocket. Hermes blanket dupes are different blankets that mimic the design intohermes, high quality, and style of the luxurious Hermes blankets but come at a more inexpensive worth point. Finding the best place to buy Hermes blanket dupes is important for guaranteeing quality and worth for your money.

Its key features are the square form, the discrete double handles, and its belt-shaped pull closure. This logo is written in a delicate, clean font that’s unaffected by the leather-based’s texture. It’s a red sign if the writing is excessively giant replica birkin bags, not foiled, or would not match the hardware. To accentuate the brand name, counterfeiters frequently make the stamp very massive and noticeable, so make sure the scale is acceptable. To authenticate the Hermes Constance bag begin by checking the general look method adopted by the material quality.

Every Birkin bag is hand-sewn by a talented artisan (sometimes even a gaggle of artisans), then buffed, painted, and polished, which takes as much as 48 hours to complete. Every detail is crafted to reflect the original Hermès pieces, supplying you with luxury at a fraction of the price. These footwear have the identical curves, sole finish, and higher detailing as original Hermès.

The Final Word Guide To Buying Reproduction Luggage The sandals have a lightly padded footbed, which is a superb characteristic for comfort and regular wear. They can be found at Zappos, and Tuckernuck and are a best-selling sandal with over 440 reviews and a 4.5 star score (on Tuckernuck). You can find Hermes belts in…

Leave a Reply

Your email address will not be published. Required fields are marked *