81 lines
3.4 KiB
PHP
Executable File
81 lines
3.4 KiB
PHP
Executable File
<?php
|
|
|
|
$codePrestataire = $_SESSION['codePrestataire_C'] ;
|
|
$actif = $this->nettoyer($prestataire['actif']);
|
|
$idPrestataire = $this->nettoyer($prestataire['idPrestataire'])
|
|
?>
|
|
|
|
<div class="modal-dialog" style="max-width:70%" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-bs-dismiss="modal" onclick="javascript:afficher_prestataire_id(<?= $idPrestataire?>);">×</button>
|
|
<?php if($actif==1): ?>
|
|
<legend class="modal-title" id="user" style="text-align:center;"><?= _('Désactivation Prestataire') ?></legend>
|
|
<?php else: ?>
|
|
<legend class="modal-title" id="user" style="text-align:center;"><?= _('Activation Prestataire')?></legend>
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
<div class="modal-body">
|
|
<div id="div_motif" style="margin-top:30px; margin-bottom:30px;">
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td style='text-align:center' class="required" width="8%"> <?= _("Motif");?></td>
|
|
<td >
|
|
<textarea class="form-control-sm" placeholder="<?= _("Obligatoire");?>" name="motif" id="motif" rows="5" required AUTOCOMPLETE="OFF" style="width:100%;"></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
<td >
|
|
<?php if($actif==1): ?>
|
|
<input style="font-size:10pt;" class = "form-control btn btn-danger" type="button" value="<?= _("Désactiver Prestataire") ?>" onClick="javascript:desactiver_prestataire('<?= $codePrestataire ?>');">
|
|
<?php else: ?>
|
|
<input style="font-size:10pt;" class = "form-control btn btn-primary" type="button" value="<?= _("Activer Prestataire") ?>" onClick="javascript:activer_prestataire('<?= $codePrestataire ?>');">
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<legend> <?= _("Historique activation prestataire") ?> </legend>
|
|
<div id="div_historique" >
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center' width="15%"> Date </th>
|
|
<th style='text-align:center'> <?= _("Motif") ?> </th>
|
|
<th style='text-align:center' width="15%"> <?= _("Responsable") ?> </th>
|
|
<th style='text-align:center' width="8%"> <?= _("Ancien Etat") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($historiques as $v):
|
|
$ancEtat = $v['ancEtat'];
|
|
?>
|
|
<tr valign="top">
|
|
<td align='center'><?= dateheureLang($this->nettoyer($v['dateSysteme'])) ?></td>
|
|
<td ><textarea style='font-size:10pt;' rows="10" class="form-control" disabled><?= $this->nettoyer($v['motif']) ?></textarea></td>
|
|
<td align='center'><?= $this->nettoyer($v['codeUtilisateur']) ?></td>
|
|
<td align='center'>
|
|
<?php if ($ancEtat=="1"): ?>
|
|
<span class="badge bg-primary"><?= _("Activé") ?></span>
|
|
<?php else: ?>
|
|
<span class="badge bg-danger"><?= _("Désactivé") ?></span>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" id="" class="btn btn-default" data-bs-dismiss="modal" onclick="javascript:afficher_prestataire_id(<?= $idPrestataire?>);"><?= _("Fermer") ?></button>
|
|
</div>
|
|
</div>
|
|
</div>
|