34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Prestationactes.php';
|
|
|
|
class ControleurAjaxrequeteprestationactes extends Controleur {
|
|
|
|
private $prestationactes;
|
|
|
|
public function __construct() {
|
|
$this->prestationactes = new Prestationactes();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
$datePrestation1 = $this->requete->getParametreDate("datePrestation1");
|
|
$datePrestation2 = $this->requete->getParametreDate("datePrestation2");
|
|
|
|
$_SESSION['p_debutRequeteFr_C'] = $this->requete->getParametreFormulaire("datePrestation1");
|
|
$_SESSION['p_finRequeteFr_C'] = $this->requete->getParametreFormulaire("datePrestation2");
|
|
$chrono = "1";
|
|
|
|
$prestationactes = $this->prestationactes->requetesprestationactesnew($codePrestataire, $datePrestation1, $datePrestation2);
|
|
|
|
$prestationactes_total = null;
|
|
|
|
if(count($prestationactes)>"0")
|
|
{
|
|
$prestationactes_total = $prestationactes['0'];
|
|
}
|
|
|
|
$this->genererVueAjax(array('prestationactes' => $prestationactes, 'prestationactes_total' => $prestationactes_total));
|
|
}
|
|
} |