This commit is contained in:
KANE LAZENI 2026-07-15 12:46:30 +00:00
parent fa271f0bc4
commit b059f10b69
3 changed files with 131 additions and 1 deletions

View File

@ -9,4 +9,4 @@ Data Source Name
;En ligne
dsn='mysql:host=localhost;port=3306;dbname=bd_radiant;charset=utf8'
login=intersante
mdp=5358ue6PDcPxxP3P
mdp=t8rY76zNcW3Y2rC6

View File

@ -0,0 +1,29 @@
<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Prestataire.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurExclureservices extends Controleur {
private $prestataire;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Exclureservices");
$this->prestataire = new Prestataire();
$_SESSION['modeDevis'] = "0";
}
public function index()
{
$codePrestataire = $_SESSION['codePrestataire_C'];
$prestataire = $this->prestataire->getunprestatairebycode($codePrestataire);
$medecinsnonaccessibles = $this->prestataire->getmedecinsnonaccessibles($codePrestataire);
$medecinsaccessibles = $this->prestataire->getmedecinsprestataire($codePrestataire);
$this->genererVue(array('prestataire' => $prestataire, 'medecinsnonaccessibles' => $medecinsnonaccessibles, 'medecinsaccessibles' => $medecinsaccessibles));
}
}

View File

@ -0,0 +1,101 @@
<?php
$this->titre = "INTER-SANTE - "._("Exclure des services");
$codePrestataire = $this->nettoyer($prestataire['codePrestataire']);
$idPrestataire = $this->nettoyer($prestataire['id']);
$nomPrestataire = $this->nettoyer($prestataire['libelle']);
?>
<script type="text/javascript">
</script>
<input class="sr-only" type="text" id="codePrestataire" name="codePrestataire" value="<?= $codePrestataire ?>" >
<input class="sr-only" type="text" id="idPrestataire" name="idPrestataire" value="<?= $idPrestataire ?>" >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<tbody>
<tr valign="top">
<td align='center' width="60%" ><INPUT style="font-size:12pt;" class="form-control" TYPE="text" value="Services exclus du prestataire : <?= $nomPrestataire ?> " disabled ></td>
<td align='center'> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:afficher_medecins_prestataire();" > <?= _("Actualiser...") ?> </button> </td>
</tr>
</tbody>
</table>
<div id="div_medecins_prestataire">
<div class="row">
<div id="div_medecin_1" class="col-xs-7" >
<legend> <?= _("Services non exlus") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("No Méd") ?> </th>
<th style='text-align:center'> <?= _("Nom") ?> </th>
<th style='text-align:center'> <?= _("Prénoms") ?> </th>
<th style='text-align:center'> <?= _("Spécialité") ?> </th>
<th style='text-align:center'> => </th>
</tr>
<tr>
<th colspan="5"> <button type="button" style="font-size:8pt;" class="form-control btn btn-primary" onclick="javascript:ajouter_tous_medecins_prestataire();" > <?= _("Ajouter tous"). " ==>" ?> </button> </th>
</tr>
</thead>
<tbody>
<?php foreach ($medecinsnonaccessibles as $medecinsnonaccessible):
$idMedecin = $medecinsnonaccessible['idMedecin'];
$codeMedecin = $medecinsnonaccessible['codeMedecin'];
?>
<tr valign="top">
<td align='center'> <?= $this->nettoyer($medecinsnonaccessible['noOrdreMedecin']) ?> </td>
<td><?= $this->nettoyer($medecinsnonaccessible['nom']) ?></td>
<td><?= $this->nettoyer($medecinsnonaccessible['prenoms']) ?></td>
<?php if (est_anglophone()): ?>
<td><?= $this->nettoyer($medecinsnonaccessible['specialite']) ?></td>
<?php else: ?>
<td><?= $this->nettoyer($medecinsnonaccessible['specialiteEng']) ?></td>
<?php endif; ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_medecin_prestataire('<?=$codeMedecin?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_medecin_2" class="col-xs-5" >
<legend> <?= _("Services exlus") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <= </th>
<th style='text-align:center'> <?= _("No Méd") ?> </th>
<th style='text-align:center'> <?= _("Nom") ?> </th>
<th style='text-align:center'> <?= _("Prénoms") ?> </th>
</tr>
<tr>
<td colspan="4"> <button type="button" style="font-size:8pt;" class="form-control btn btn-danger" onclick="javascript:retirer_tous_medecins_prestataire();" > <?= "<== " . _("Retirer tous les réseaux") ?> </button> </td>
</tr>
</thead>
<tbody>
<?php foreach ($medecinsaccessibles as $medecinsaccessible):
$idMedecin = $medecinsaccessible['idMedecin'];
$codeMedecin = $medecinsaccessible['codeMedecin'];
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_medecin_prestataire('<?=$codeMedecin?>');" ></td>
<td align='center'> <?= $this->nettoyer($medecinsaccessible['noOrdreMedecin']) ?> </td>
<td><?= $this->nettoyer($medecinsaccessible['nom']) ?></td>
<td><?= $this->nettoyer($medecinsaccessible['prenoms']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>