Mini Shell

Direktori : /home/admin/web/mcpv.demarco.ddnsfree.com/public_html/external/prestataires2/models/
Upload File :
Current File : /home/admin/web/mcpv.demarco.ddnsfree.com/public_html/external/prestataires2/models/Avis.php

<?php

require_once '_framework/Model.php';

class Avis extends Model {

  public function getAllAvis() {

    $sql = 'select * from v_avis order by statut, date_avis';
    $avis = $this->runQuery($sql);
    return $avis->fetchAll();
  }

  public function getAvis($id) {
    $sql = 'select * from v_avis where id=?';
    $avis = $this->runQuery($sql, array($id));
    $rs = $avis->fetchAll();
    if ($rs && count($rs)) {
      return $rs; 
    }
    else
      throw new ErrorException("Aucun avis ne correspond à l'identifiant '$id'",0,E_USER_NOTICE);
  }
  
  public function getPrestataireAvis($id) {
    $sql = 'select * from v_avis where statut = 2 and prest_id = ?';
    return $this->runQuery($sql, array($id));
  }

  public function updateStatut($values) {
	$statut = $values[0];
	$avis_id = $values[1];
	$sql = 'update avis set	statut = ? where id=?';
	$this->runQuery($sql, $values);
	$sql = 'select prest_id from v_avis where id=?';
	$prestataire = $this->runQuery($sql, array($avis_id));
	$rs = $prestataire->fetch();
	$id = $rs['prest_id'];
	if($statut === 2) {
		$this->updateNotes($id);
	}
  }
  
  public function updateNotes($id){
	$sql = 'select
				(select round(avg(note1),2) from avis where prest_id = p.id and statut = 2 and not na1) as avg_c1,
				(select round(avg(note2),2) from avis where prest_id = p.id and statut = 2 and not na2) as avg_c2,
				(select round(avg(note3),2) from avis where prest_id = p.id and statut = 2 and not na3) as avg_c3,
				(select round(avg(note4),2) from avis where prest_id = p.id and statut = 2 and not na4) as avg_c4,
				(select round(avg(note5),2) from avis where prest_id = p.id and statut = 2 and not na5) as avg_c5,
				(select round(avg(note6),2) from avis where prest_id = p.id and statut = 2 and not na6) as avg_c6,
				(select round(avg(note7),2) from avis where prest_id = p.id and statut = 2 and not na7) as avg_c7,
				(select round(avg(note8),2) from avis where prest_id = p.id and statut = 2 and not na8) as avg_c8,
				(select round(avg(note9),2) from avis where prest_id = p.id and statut = 2 and not na9) as avg_c9,
				(select round(avg(note10),2) from avis where prest_id = p.id and statut = 2 and not na10) as avg_c10,
				round(round((select ifnull(sum(note1),0) from avis where prest_id = p.id and statut = 2 and not na1) +
					(select ifnull(sum(note2),0) from avis where prest_id = p.id and statut = 2 and not na2) +
					(select ifnull(sum(note3),0) from avis where prest_id = p.id and statut = 2 and not na3) +
					(select ifnull(sum(note4),0) from avis where prest_id = p.id and statut = 2 and not na4) + 
					(select ifnull(sum(note5),0) from avis where prest_id = p.id and statut = 2 and not na5) +
					(select ifnull(sum(note6),0) from avis where prest_id = p.id and statut = 2 and not na6) +
					(select ifnull(sum(note7),0) from avis where prest_id = p.id and statut = 2 and not na7) +
					(select ifnull(sum(note8),0) from avis where prest_id = p.id and statut = 2 and not na8) +
					(select ifnull(sum(note9),0) from avis where prest_id = p.id and statut = 2 and not na9) +
					(select ifnull(sum(note10),0) from avis where prest_id = p.id and statut = 2 and not na10),2) /
					(round((select count(note1) from avis where prest_id = p.id and statut = 2 and not na1) +
					(select count(note2) from avis where prest_id = p.id and statut = 2 and not na2) +
					(select count(note3) from avis where prest_id = p.id and statut = 2 and not na3) +
					(select count(note4) from avis where prest_id = p.id and statut = 2 and not na4) + 
					(select count(note5) from avis where prest_id = p.id and statut = 2 and not na5) +
					(select count(note6) from avis where prest_id = p.id and statut = 2 and not na6) +
					(select count(note7) from avis where prest_id = p.id and statut = 2 and not na7) +
					(select count(note8) from avis where prest_id = p.id and statut = 2 and not na8) +
					(select count(note9) from avis where prest_id = p.id and statut = 2 and not na9) +
					(select count(note10) from avis where prest_id = p.id and statut = 2 and not na10),2)),2) as avg_g
				from prestataires p
				where p.id = ?';
	$calc = $this->runQuery($sql, array($id));
	$rs = $calc->fetch();
	$avg_c1 = $rs['avg_c1'];
	$avg_c2 = $rs['avg_c2'];
	$avg_c3 = $rs['avg_c3'];
	$avg_c4 = $rs['avg_c4'];
	$avg_c5 = $rs['avg_c5'];
	$avg_c6 = $rs['avg_c6'];
	$avg_c7 = $rs['avg_c7'];
	$avg_c8 = $rs['avg_c8'];
	$avg_c9 = $rs['avg_c9'];
	$avg_c10 = $rs['avg_c10'];
	$avg_g = $rs['avg_g'];
	$values = array();
	array_push($values,$avg_c1);
	array_push($values,$avg_c2);
	array_push($values,$avg_c3);
	array_push($values,$avg_c4);
	array_push($values,$avg_c5);
	array_push($values,$avg_c6);
	array_push($values,$avg_c7);
	array_push($values,$avg_c8);
	array_push($values,$avg_c9);
	array_push($values,$avg_c10);
	array_push($values,$avg_g);
	array_push($values,$id);
	$sql = 'update prestataires set note1 = ?, note2 = ?, note3 = ?, note4 = ?, note5 = ?, note6 = ?, 
			note7 = ?, note8 = ?, note9 = ?, note10 = ?, note_g = ? 
			where id=?';
	$this->runQuery($sql, $values);
  }
    
  public function submitAvis($values) {
    $sql = 'insert into avis (prest_id,note1,note2,note3,note4,note5,note6,note7,note8,note9,note10, 
			na1,na2,na3,na4,na5,na6,na7,na8,na9,na10,remarque,anonyme,memb_nom,memb_email) 
			values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)';
    $this->runQuery($sql, $values);
  }
  
}
Experience within the pleasure – and pain – you crave with – Base de données MCPV "Prestataires"

Experience within the pleasure – and pain – you crave with

The Eleven Absolute Best Sex Toys how to make a girl sqirt, Based On Enthusiastic Reviews

On the other hand, the latter threw out different suction wave intensities at random adamand eve sex toys tenga onacup, making the masturbation expertise thrilling. In addition, experienced customers in search of intense sensations might have to go for the wand-like vibrators. The We-Vibe Sync Lite is most suited for novices and intermediate users. The subsequent upgrade should have a remote control or a dedicated cellular app. The button placement on the bottom complicates dealing with, and a remote control would considerably enhance the person expertise. Although not as precise as a number of the other evaluate samples, it supplied a method to goal particular zones of the clitoris for extra exact stimulation.

Bring your wildest fantasies to life with our intensive vary of fetish and bondage gear. Experience within the pleasure – and pain – you crave with restraints adam and eve strap, furniture how to squirt during orgasm, positioners, impression toys, and other kinky choices. Just hold it safe making a woman squirt, sane, and consensual, and playtime shall be a truly depraved time. Established in 1993, we have been the leaders in the USA sex toy and lingerie marketplace for over 20 years and have a burgeoning presence within the USA. These discreetly packaged eggs from Japanese firm TENGA have turn out to be a large success. Inside the outer shell, you’ll find a stretchy make a women squirt, textured masturbator that slides over your shaft for startling pleasure with none bulky equipment.

The Gigi 3 has a slightly curved shape that’s come to define G-spot vibrators. The most notable half about the Gigi three, nonetheless, is its button design which is way extra beginner-friendly and intuitive than earlier models. This 12 months, Womanizer debuted its first-ever vibrator, aptly named Vibe, and we couldn’t keep our arms off of it—or, more accurately, we couldn’t maintain it off of us. To the bare eye, Vibe may look equivalent to Womanizer’s world-renowned air pleasure toys, the Womanizer Premium ($179) and Womanizer Next ($219). But in contrast to those iconic, no-contact clitoral suction, the vibe is a lay-on vibrator. Designed to contour to and profession the unique curves of the vulva, very related to a palm vibrator, this silky silicone toy delivers rumbly vibrators all along your external erogenous zones.

“If you’re looking for a versatile vibe that can be utilized on virtually all physique components, the Tango X is the best possibility,” in accordance with O’Reilly. It has seven vibration modes adamand eve sex, eight intensity levels, and is super easy to use. “The angled tip can be tilted for pinpointed pleasure, or you presumably can roll the vibrator throughout erogenous zones like your nipples, perineum, or vulva for a extra easy and subtle sensation,” she says.

As the biggest and oldest onahole store outdoors Japan, ToyDemon has been bringing unique male masturbators and onaholes from Asia to the western world for well over a decade. The tiny, egg-shaped Blush Novelties Aria Flutter Tongue is adorable, however we discovered the Evolved Tongue Tied to be a greater overall alternative amongst tongue-style vibrators. The tiny but super-powerful We-Vibe Tango is an efficient worth for a rechargeable how do you make your girlfriend squirt, bullet-style toy that’s sufficiently small to slot in a pocket but able to delivering the rumbly depth of a much bigger vibrator. Although we advocate this model as a starter vibrator, for some of our testers the onerous plastic grew to become slippery and troublesome to hold when it came in touch with lubricant. This was not the case with the less expensive Purple Pleasure or Femme Funn Ultra Bullet.

Sync 2’s design was rated as above common, as the well-thought-out dimensions and seamless shape make the mannequin stand out. The Lovense Solace Pro’s strong motor was fairly quick, and the a quantity of pleasure modes allow you to customize the experience to match your sexual needs and mood. Everything from the up-and-down actions to the real-time synchronization felt good on the penis. The group additionally famous that the real-time synchronization was very accurate, with minimal lag.

The Eleven Absolute Best Sex Toys how to make a girl sqirt, Based On Enthusiastic Reviews On the other hand, the latter threw out different suction wave intensities at random adamand eve sex toys tenga onacup, making the masturbation expertise thrilling. In addition, experienced customers in search of intense sensations might have to go for…

Leave a Reply

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