a
This commit is contained in:
parent
a2168d01ce
commit
d6f626a144
|
|
@ -14,13 +14,12 @@ class ControleurAjaxlisterclients extends Controleur
|
||||||
{
|
{
|
||||||
$typeClient = $this->requete->getParametreFormulaire("typeClient");
|
$typeClient = $this->requete->getParametreFormulaire("typeClient");
|
||||||
$nom = $this->requete->getParametreFormulaire("nom");
|
$nom = $this->requete->getParametreFormulaire("nom");
|
||||||
|
|
||||||
$numeroClient = $this->requete->getParametreFormulaire("numeroClient");
|
$numeroClient = $this->requete->getParametreFormulaire("numeroClient");
|
||||||
|
|
||||||
|
$_SESSION['souscripteurAcreer'] = $nom;
|
||||||
|
|
||||||
$clients = $this->client->getListerClients($typeClient, $nom, $numeroClient);
|
$clients = $this->client->getListerClients($typeClient, $nom, $numeroClient);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$this->genererVueAjax(array('clients' => $clients));
|
$this->genererVueAjax(array('clients' => $clients));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
$nbreCli = count($clients);
|
||||||
$nbreCli = count($clients);
|
$nbreTotal = count($clients);
|
||||||
|
|
||||||
|
|
||||||
$nbreTotal = count($clients);
|
|
||||||
|
|
||||||
if($nbreTotal < 10){
|
if($nbreTotal < 10){
|
||||||
$nbreTotal = '0'.$nbreTotal;
|
$nbreTotal = '0'.$nbreTotal;
|
||||||
|
|
@ -12,17 +9,19 @@
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if($nbreCli == "0"):?>
|
<?php if($nbreCli == "0"):
|
||||||
|
?>
|
||||||
<h4 >
|
<h4 >
|
||||||
<div class="col-12 alert alert-danger">
|
<div class="col-12 alert alert-danger">
|
||||||
<?= _("Le souscripteur rechercher n'existe pas, pour le créer, veuillez cliquer sur le bouton ci-dessous.") ?>
|
<?= _("Le souscripteur recherché n'existe pas, pour le créer, veuillez cliquer sur le bouton ci-dessous.") ?>
|
||||||
</div>
|
</div>
|
||||||
</h4>
|
</h4>
|
||||||
<div>
|
<div>
|
||||||
<input style="font-size:12pt; height:40px;" type="button" class="form-control btn btn-primary" value="<?= _("Ajouter un nouveau souscripteur")."..." ?>" onClick="javascript:creer_client();" title=<?= _("Ajouter un nouveau Souscripteur")?>> </td>
|
<input style="font-size:12pt; height:40px;" type="button" class="form-control btn btn-primary" value="<?= _("Ajouter un nouveau souscripteur")."..." ?>" onClick="javascript:creer_client();" title=<?= _("Ajouter un nouveau Souscripteur")?>> </td>
|
||||||
</div>
|
</div>
|
||||||
<?php else:?>
|
<?php else:
|
||||||
|
$_SESSION['souscripteurAcreer'] = "";
|
||||||
|
?>
|
||||||
|
|
||||||
<table style="margin: auto" class="table-responsive">
|
<table style="margin: auto" class="table-responsive">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user