prestation/Vue/Ajaxstatutacte/index.php
2025-12-01 18:54:33 +00:00

71 lines
3.0 KiB
PHP

<?php
$codeDerogation = $motif['codeMotifDepassement'];
$libelleDerogation = $this->echapper($motif['libelle']);
if (est_anglophone()){
$libelleDerogation = $motif['libelleEng'];
}
//
//var_dump($_SESSION["proforma"]);
?>
<INPUT class="sr-only" id="statut" name="statut" type="text" value="<?= $statut;?>">
<INPUT class="sr-only" id="libelleMotif" name="libelleMotif" type="text" value="<?= $motif['libelle'];?>">
<INPUT class="sr-only" id="libelleMotifEng" name="libelleMotifEng" type="text" value="<?= $motif['libelleEng'];?>">
<INPUT class="sr-only" id="libelleDerogation" name="libelleDerogation" type="text" value="<?= $libelleDerogation;?>">
<?php if($_SESSION["proforma"] != "1"): ?>
<?php if($codeGarantie == "CON" || $codeGarantie == "HOS"): ?>
<?php if($statut != "1" && $derogationAccorde == "0"): ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr height="40">
<td>
<a href="javascript:enregistrerdemandederogationbareme('<?=$codeDerogation;?>','<?=$libelleDerogation?>', '<?=$codeActe?>', '<?=$codeGarantie?>', '<?=$derogationAccorde?>');" id="link_derogation"> <?= _("Cliquez ici pour envoyer une demande de dérogation à ".$_SESSION['p_nomSociete'].".")?> </a>
</td>
<!--
<td></td>
<td align="right">
<a class="link_derogation" href="#" ><?= _("Historique Dérogations")?></a>
</td>
-->
</tr>
</tbody>
</table>
<?php elseif($statut != "1" && $derogationAccorde == "2"): ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr height="20">
<td>
<a class="link_derogation" href="javascript:enregistrerdemandederogationbareme('<?=$codeDerogation;?>','<?=$libelleDerogation?>', '<?=$codeActe?>', '<?=$codeGarantie?>', '<?=$derogationAccorde?>');" id="link_derogation"> <?= _("La demande de dérogation est en cours de traitement. Veuillez patienter! => Actualiser...")?> </a>
</td>
<!--
<td></td>
<td align="right">
<a class="link_derogation" href="#"><?= _("Historique Demandes Dérogation")?></a>
</td>
-->
</tr>
</tbody>
</table>
<?php elseif($statut != "1" && $derogationAccorde == "9"): ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr >
<td>
<a class="link_derogation" href="javascript:enregistrerdemandederogationbareme('<?=$codeDerogation;?>','<?=$libelleDerogation?>', '<?=$codeActe?>', '<?=$codeGarantie?>', '<?=$derogationAccorde?>');" id="link_derogation_refusee"> <?= _("La demande de dérogation a été refusée. Vous ne pouvez pas faire cet acte à partir du système...")?> </a>
</td>
<td></td>
<!--
<td align="right" >
<a class="link_derogation" href="#"><?= _("Historique Demandes Dérogation")?></a>
</td>
-->
</tr>
</tbody>
</table>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>