a
This commit is contained in:
parent
8c0c077f45
commit
822eed621b
50
Controleur/ControleurAjaxsppolice.php
Normal file
50
Controleur/ControleurAjaxsppolice.php
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Police.php';
|
||||
|
||||
class ControleurAjaxsppolice extends Controleur
|
||||
{
|
||||
private $sppolice;
|
||||
|
||||
public function __construct() {
|
||||
$this->sppolice = new Police();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function police()
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$dj = date("Y-m-d");
|
||||
|
||||
$sppolice = $this->sppolice->getRapportSpPolicePol($idPolice, $dj);
|
||||
|
||||
$this->genererVueAjax(array('sppolice' => $sppolice));
|
||||
}
|
||||
|
||||
public function categorie()
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$dj = date("Y-m-d");
|
||||
|
||||
$sppolices = $this->sppolice->getRapportSpPoliceCat($idPolice, $dj);
|
||||
|
||||
$this->genererVueAjax(array('sppolices' => $sppolices));
|
||||
}
|
||||
|
||||
public function college()
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$dj = date("Y-m-d");
|
||||
|
||||
$sppolices = $this->sppolice->getRapportSpPoliceCol($idPolice, $dj);
|
||||
|
||||
$this->genererVueAjax(array('sppolices' => $sppolices));
|
||||
}
|
||||
}
|
||||
26
Controleur/ControleurSppolice.php
Normal file
26
Controleur/ControleurSppolice.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Police.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurSppolice extends Controleur {
|
||||
private $sppolice;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Sppolice");
|
||||
|
||||
$this->sppolice = new Police();
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$dj = date("Y-m-d");
|
||||
|
||||
$sppoliceentete = $this->sppolice->getRapportSpPoliceEntete($idPolice, $dj);
|
||||
|
||||
$this->genererVue(array('sppoliceentete' => $sppoliceentete));
|
||||
}
|
||||
}
|
||||
31
Vue/Ajaxsppolice/categorie.php
Normal file
31
Vue/Ajaxsppolice/categorie.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<div id="div_detail_sp">
|
||||
|
||||
<input style='text-align:center; font-size:11pt; background-color:blue;color:white;' class="form-control" type="text" value="<?= _("RAPPORT S / P POLICE PAR CATEGORIE") ?>" disabled >
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="10%" style='text-align:center'>Cat</th>
|
||||
<th width="18%" style='text-align:center'> <?= _("Primes Totales") ?> </th>
|
||||
<th width="18%" style='text-align:center'> <?= _("Primes Acquises") ?> </th>
|
||||
<th width="18%" style='text-align:center'> <?= _("Consommations") ?> </th>
|
||||
<th width="18%" style='text-align:center'> <?= _("Rapport S/P") ?> </th>
|
||||
<th width="18%" style='text-align:center'> <?= _("S/P Global") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($sppolices as $sppolice):
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td> <?= $this->nettoyer($sppolice['codeProduit']) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['primestat'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['prime_acquise'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['consommation'])) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['rapportsp']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['rapportspgeneral']) ?> </td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
32
Vue/Ajaxsppolice/college.php
Normal file
32
Vue/Ajaxsppolice/college.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<div id="div_detail_sp">
|
||||
|
||||
<input style='text-align:center; font-size:11pt; background-color:blue;color:white;' class="form-control" type="text" value="<?= _("RAPPORT S / P POLICE PAR COLEGGE") ?>" disabled >
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" width="20%" style='text-align:center'> <?= _("Collège") ?> </th>
|
||||
<th width="16%" style='text-align:center'> <?= _("Primes Totales") ?> </th>
|
||||
<th width="16%" style='text-align:center'> <?= _("Primes Acquises") ?> </th>
|
||||
<th width="16%" style='text-align:center'> <?= _("Consommations") ?> </th>
|
||||
<th width="16%" style='text-align:center'> <?= _("Rapport S/P") ?> </th>
|
||||
<th width="16%" style='text-align:center'> <?= _("S/P Global") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($sppolices as $sppolice):
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td> <?= $this->nettoyer($sppolice['codeProduit']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['libelleCollege']) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['primestat'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['prime_acquise'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['consommation'])) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['rapportsp']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['rapportspgeneral']) ?> </td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
1
Vue/Ajaxsppolice/index.php
Normal file
1
Vue/Ajaxsppolice/index.php
Normal file
|
|
@ -0,0 +1 @@
|
|||
SP POLICE
|
||||
26
Vue/Ajaxsppolice/police.php
Normal file
26
Vue/Ajaxsppolice/police.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<div id="div_detail_sp">
|
||||
|
||||
<input style='text-align:center; font-size:11pt; background-color:blue;color:white;' class="form-control" type="text" value="<?= _("RAPPORT S / P POLICE ENTIERE") ?>" disabled >
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%" style='text-align:center'> <?= _("Primes Totales") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Primes Acquises") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Consommations") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Rapport S/P") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("S/P Global") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['primestat'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['prime_acquise'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['consommation'])) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['rapportsp']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['rapportspgeneral']) ?> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
40
Vue/Sppolice/index.php
Normal file
40
Vue/Sppolice/index.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?php $this->titre = "INTER-SANTE - Rapport S/P police"; ?>
|
||||
|
||||
<legend> <?= _("Rapport S / P de la police") . " : " . $this->nettoyer($_SESSION['numeroPolice_C'])?> </legend>
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%" style='text-align:center'> <?= _("Date Effet") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Date Echéance") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Durée Acquise") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Ratio Acquise") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Durée Contrat") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td> <?= dateLang($this->nettoyer($sppoliceentete['dateEffet'])) ?> </td>
|
||||
<td> <?= dateLang($this->nettoyer($sppoliceentete['dateEcheance'])) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppoliceentete['duree_acquise']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppoliceentete['ratio_acquise']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppoliceentete['dureePolice']) ?> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:sinistres_a_prime_police();" > <?= _("Police entière...") ?> </button> </td>
|
||||
<td> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:sinistres_a_prime_categorie();" > <?= _("Par Catégorie...") ?> </button> </td>
|
||||
<td> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:sinistres_a_prime_college();" > <?= _("Par Collège...") ?> </button> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="div_detail_sp">
|
||||
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user