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>
May 15, 2021 – Base de données MCPV "Prestataires"

Day: May 15, 2021

Its rotating head offers focused G-spot therapeutic massage

28 Best Sex Toys On Amazon Of 2024 Offer You A Stronger, Better Orgasm With 2-day Shipping Read product descriptions male chastity belt, check out actual customer critiques, and if you’re nonetheless confused, simply ask us. Sonia from help staff has heard it all and he or she is not going to judge. During the…

Read More

6-inch laptop computer inside

Best Replica Handbags Outlet Usa, Pretend Designer Bags Shops These luggage are normally produced from low cost materials and poor craftsmanship. They often characteristic designs and logos that are recognizably flawed (‘Lewis Vuitton’ anyone?). Choose respected sellers, and examine buyer reviews/recommendations to search out high-quality replicas. We Professional Replicas Bags and Shoes Online Shop only…

Read More

Florida-based small business Uberrime is understood for their

38 Finest Intercourse Toys For Couples In 2025 Deliver Fresh Vibes We are 100 percent Proudly Australian Owned and we aim to deliver our high quality grownup merchandise that can make your toes curl. Go forward and indulge your wild secrets dildos, fantasies in our adult store. We have warehouses in Brisbane, Sydney sex toys,…

Read More

Testers found it connected properly with the Kiiroo Titan in

26 Greatest Sex Toys For Couples To Spice Up The Bedroom 2024 A present that will make anyone with a vulva very pleased Hawk Werwolf Realistic Silcone Large Dildo – E, this standalone G-spot vibrator is extremely interactive regardless of its streamlined design. Testers found it connected properly with the Kiiroo Titan in that each…

Read More

We are here to make your sex life higher and complete with

9 Best Sex Toys For Women Truly Tested The added magnetic clip (pictured above) further ensured it stayed attached to underwear all through every day actions. Overall, it was discreet and dependable, without the fear of slippage. In addition, the silicone-ABS plastic materials, plus the indented buttons, leave a seam that may make cleansing more…

Read More

“Its medium size makes it a fantastic choice for novice and

15 Finest Intercourse Toys Of 2024 When used together, you may have the ability to achieve a blended orgasm (clitoral and G-spot orgasms together). Thanks to the distinctive design, I can benefit from the toy without worrying about holding it in the proper position for minutes on finish, as you might with a standard bullet…

Read More

She started her publish graduate life at Hearst UK inside a

Buy Sex Toys On-line Next Day Delivery From Sex Toys Uk The buttons are additionally straightforward to entry on the entrance of the toy. On the other hand, if you are on the lookout for an intense sex toy that targets both the clitoris and G-spot, I highly advocate the Womanizer Duo 2. It makes…

Read More

Babeland also has a great sale section

15 Greatest Luxurious Intercourse Toys Of 2024, From Vibes To Sex Machines Beginners to vibrators can go for the easy-to-use, wallet-friendly Maude Vibe or Dame Fin (both faves of mine). “The hottest toy supplies for sex toys that are used vaginally or anally like vibrators, anal toys, dildos (and so on) are stainless steel, glass…

Read More

The next, you have to cease and readjust as a end result of

Intercourse Toys, Grownup Toys The Tunnel Penis Plug, Grownup Shop With a various staff working behind the scenes, we’ve built a trusted platform that delivers partaking Perforated Plastic Cock Cage, informative content material to hundreds of thousands of readers wanting to discover and enhance their intimate lives. An unsung hero within the bed room, the…

Read More

Open and sincere communication is the cornerstone of any

Lovense® Grownup Toy Store Specials: Unique Deals And Provides Await! Columbia University recommends cleaning sex toys before and after every use, then setting them aside for 24 hours before using them again , to ensure that any micro organism or viruses on them are lifeless. In our critiques group survey of 600 intercourse toy users,…

Read More