production/Vue/Ajaxspecialitemedecin/afficherspecialitemedecin.php
2025-12-01 16:12:12 +00:00

71 lines
2.4 KiB
PHP
Executable File

<div class="row">
<div id="div_sans_specialite" class="col-6" >
<legend> <?= _("Spécialités Disponibles") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Libellé") ?> </th>
<th width="20%" style='text-align:center'> => </th>
</tr>
<tr>
<th colspan="2"> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:ajouter_toutes_specialite();" > <?= _("Ajouter tous"). " ==>" ?> </button> </th>
</tr>
</thead>
<tbody>
<?php foreach ($specialitesDisponibles as $v):
$codeSpecialite = $v['codeSpecialite'];
$specialite = $v['specialite'];
if (est_anglophone()){
$specialite = $v['specialiteEng'];
}
?>
<tr valign="top">
<td align='center'><?= $specialite ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_specialite_medecin('<?=$codeSpecialite?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_avec_seuil" class="col-6" >
<legend> <?= _("Spécialités du Praticien") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:10pt;">
<thead>
<tr>
<th width="10%" style='text-align:center'> <= </th>
<th style='text-align:center'> <?= _("Libellé") ?> </th>
</tr>
<tr>
<td colspan="2"> <button type="button" style="font-size:10pt;" class="form-control btn btn-danger" onclick="javascript:retirer_toutes_specialites_medecin();" > <?= "<== " . _("Retirer tous") ?> </button> </td>
</tr>
</thead>
<tbody>
<?php foreach ($specialitesMedecin as $v):
$idSpecialite = $v['id'];
$specialite = $v['specialite'];
if (est_anglophone()){
$specialite = $v['specialiteEng'];
}
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_une_specialite_medecin('<?=$idSpecialite?>');" ></td>
<td align='center'><?= $specialite ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>