110 lines
3.0 KiB
PHP
Executable File
110 lines
3.0 KiB
PHP
Executable File
<?php
|
|
$nbreTotal = count($tabacte);
|
|
|
|
if($nbreTotal < 10){
|
|
$nbreTotal = '0'.$nbreTotal;
|
|
}else{
|
|
$nbreTotal = format_N($nbreTotal);
|
|
}
|
|
|
|
?>
|
|
|
|
<?php $superUser = $_SESSION['superUser']; ?>
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="nomForm" NAME="nomForm" value="frmacteconsultation" readonly>
|
|
|
|
<legend> <?= _("Actes médicaux de consultation") ?> </legend>
|
|
|
|
<div id="div_entete_table">
|
|
|
|
</div>
|
|
|
|
<div id="div_maj_table">
|
|
|
|
</div>
|
|
|
|
<div id="div_lister_table">
|
|
|
|
<table style="margin: auto" class="table-responsive">
|
|
<tbody>
|
|
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
|
|
</tbody>
|
|
</table>
|
|
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center"><?= _("Type Consultation") ?></th>
|
|
<th class="text-center"><?= _("Acte") ?></th>
|
|
|
|
<th class="text-center"><?= _("Spécialité") ?></th>
|
|
<th class="text-center" width="15%"><?= _("Visible en Consultation?") ?></th>
|
|
<th class="text-center" width="15%"><?= _("Acte de nuit/Férié?") ?></th>
|
|
<th class="text-center"><?= _("Modifier") ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($tabacte as $v):
|
|
$idData = $this->nettoyer($v['id']);
|
|
|
|
$acte = $this->nettoyer($v['acte']);
|
|
$typeConsulation = $this->nettoyer($v['typeConsulation']);
|
|
$specialite = $this->nettoyer($v['specialite']);
|
|
|
|
$visibleEnConsultation = $this->nettoyer($v['visibleEnConsultation']);
|
|
$nuitFerie = $this->nettoyer($v['nuitFerie']);
|
|
|
|
if($visibleEnConsultation == "1"){
|
|
$visible = "Oui";
|
|
}else{
|
|
$visible = "Non";
|
|
}
|
|
|
|
|
|
if($nuitFerie == "1"){
|
|
$nuit = "Oui";
|
|
}else{
|
|
$nuit = "Non";
|
|
}
|
|
|
|
if (est_anglophone())
|
|
{
|
|
$acte = $this->nettoyer($v['acteEng']);
|
|
$typeConsulation = $this->nettoyer($v['typeConsulationEng']);
|
|
$specialite = $this->nettoyer($v['specialiteEng']);
|
|
|
|
if($visibleEnConsultation == "1"){
|
|
$visible = "Yes";
|
|
}else{
|
|
$visible = "No";
|
|
}
|
|
|
|
|
|
if($nuitFerie == "1"){
|
|
$nuit = "Yes";
|
|
}else{
|
|
$nuit = "No";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
<tr valign="top">
|
|
<td class="text-center majuscule" ><?= $typeConsulation ?></td>
|
|
<td class="text-center majuscule" ><?= $acte ?></td>
|
|
<td class="text-center majuscule" ><?= $specialite ?></td>
|
|
<td class="text-center" ><?= $visible ?></td>
|
|
<td class="text-center" ><?= $nuit ?></td>
|
|
<td class="text-center" width="10%">
|
|
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
|
|
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
|