a
This commit is contained in:
parent
31409fda62
commit
b31a6fc2ae
31
Controleur/ControleurNonfacturepolice.php
Normal file
31
Controleur/ControleurNonfacturepolice.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Beneficiaire.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurNonfacturepolice extends Controleur {
|
||||
private $beneficiaire;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Nonfacturepolice");
|
||||
|
||||
$this->beneficiaire = new Beneficiaire();
|
||||
}
|
||||
public function index() {
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$nonfactures = $this->beneficiaire->getBeneficiairesNonFature($idPolice);
|
||||
|
||||
$ente_nonfacture = null;
|
||||
|
||||
if(count($nonfactures)>"0")
|
||||
{
|
||||
$ente_nonfacture = $nonfactures['0'];
|
||||
}
|
||||
|
||||
$this->genererVue(array('nonfactures' => $nonfactures, 'ente_nonfacture' => $ente_nonfacture));
|
||||
|
||||
}
|
||||
}
|
||||
31
Controleur/ControleurNonfacturepolicecons.php
Normal file
31
Controleur/ControleurNonfacturepolicecons.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Beneficiaire.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurNonfacturepolicecons extends Controleur {
|
||||
private $beneficiaire;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Nonfacturepolicecons");
|
||||
|
||||
$this->beneficiaire = new Beneficiaire();
|
||||
}
|
||||
public function index() {
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$nonfactures = $this->beneficiaire->getBeneficiairesNonFature($idPolice);
|
||||
|
||||
$ente_nonfacture = null;
|
||||
|
||||
if(count($nonfactures)>"0")
|
||||
{
|
||||
$ente_nonfacture = $nonfactures['0'];
|
||||
}
|
||||
|
||||
$this->genererVue(array('nonfactures' => $nonfactures, 'ente_nonfacture' => $ente_nonfacture));
|
||||
|
||||
}
|
||||
}
|
||||
58
Vue/Nonfacturepolice/index.php
Normal file
58
Vue/Nonfacturepolice/index.php
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
|
||||
<legend> <?= _("PRIMES NON FACTUREES 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>
|
||||
<td style='text-align:center'> Total </td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['nbLignesTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeHtTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['taxeTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['fraisCarteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeTtcTotal'])) ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style='text-align:center'> <?= _("Date Effet") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Nb Lignes") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Prime HT") ?> </th>
|
||||
<th style='text-align:center'> <?= (isset($_SESSION['composanteprime']['Taxes'])) ? _($_SESSION['composanteprime']['Taxes']) : _("Taxes") ?> </th>
|
||||
<th style='text-align:center'>
|
||||
<?php
|
||||
if(isset($_SESSION['composanteprime']['Cartes']))
|
||||
{
|
||||
echo _($_SESSION['composanteprime']['Cartes']);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo _("Cartes");
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
<th style='text-align:center'> <?= _("Prime TTC") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td style='text-align:center'> Total </td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['nbLignesTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeHtTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['taxeTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['fraisCarteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeTtcTotal'])) ?></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php foreach ($nonfactures as $nonfacture):?>
|
||||
<tr>
|
||||
<td> <?= dateLang($this->nettoyer($nonfacture['dateEffet'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['nbLignes'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['primeHt'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['taxe'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['fraisCarte'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['primeTtc'])) ?> </td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
59
Vue/Nonfacturepolicecons/index.php
Normal file
59
Vue/Nonfacturepolicecons/index.php
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
|
||||
<legend> <?= _("PRIMES NON FACTUREES 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>
|
||||
<td style='text-align:center'> Total </td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['nbLignesTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeHtTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['taxeTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['fraisCarteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeTtcTotal'])) ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style='text-align:center'> <?= _("Date Effet") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Nb Lignes") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Prime HT") ?> </th>
|
||||
<th style='text-align:center'> <?= (isset($_SESSION['composanteprime']['Taxes'])) ? _($_SESSION['composanteprime']['Taxes']) : _("Taxes") ?> </th>
|
||||
<th style='text-align:center'>
|
||||
<?php
|
||||
if(isset($_SESSION['composanteprime']['Cartes']))
|
||||
{
|
||||
echo _($_SESSION['composanteprime']['Cartes']);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo _("Cartes");
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
<th style='text-align:center'> <?= _("Prime TTC") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td style='text-align:center'> Total </td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['nbLignesTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeHtTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['taxeTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['fraisCarteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeTtcTotal'])) ?></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php foreach ($nonfactures as $nonfacture):?>
|
||||
<tr>
|
||||
<td> <?= dateLang($this->nettoyer($nonfacture['dateEffet'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['nbLignes'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['primeHt'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['taxe'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['fraisCarte'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['primeTtc'])) ?> </td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
Loading…
Reference in New Issue
Block a user