This commit is contained in:
KANE LAZENI 2026-04-08 08:52:36 +00:00
parent a2168d01ce
commit d6f626a144
2 changed files with 11 additions and 13 deletions

View File

@ -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));
} }

View File

@ -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>