124 lines
4.9 KiB
PHP
Executable File
124 lines
4.9 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER SANTE - T M négocié pour une police et une garantie chez un prestataire";
|
|
|
|
?>
|
|
|
|
|
|
<legend > <?= _("Ticket Modérateur négocié pour une police et une garantie chez un prestataire") ?> </legend>
|
|
|
|
<?php
|
|
$adminSin = $_SESSION['adminSin'];
|
|
?>
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="nomForm" NAME="nomForm" value="tMpolicegarantieprestataire">
|
|
|
|
<table class="table table-responsive" style='font-size:9pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="5%" class="required"> <?= _("Police") ?> </td>
|
|
<td colspan="4">
|
|
<SELECT onChange="" id="idPolice" NAME="idPolice" style="font-size:10pt; height:30px;" class="form-control selectpicker" data-live-search="true" required AUTOCOMPLETE="OFF" autofocus>
|
|
<?php liste_options($polices, $idPolice); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="8%" class="required"> <?= _("Garantie") ?> </td>
|
|
<td colspan="4">
|
|
<SELECT onchange="" class="form-control selectpicker" data-live-search="true" id="codeGarantie" NAME="codeGarantie" autofocus style="font-size:10pt;">
|
|
<?php liste_options($garanties, ""); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="8%" class="required"> <?= _("Prestataire") ?> </td>
|
|
<td colspan="4">
|
|
<input id="searchInputPrestataire" name="searchInputPrestataire" style="font-size:12pt; height:30px;" class="form-control" type="text" required AUTOCOMPLETE="OFF"
|
|
onkeyup="javascript:affichelisteprestataires(this.value);">
|
|
<INPUT class="sr-only" TYPE="text" id="codePrestataire" NAME="codePrestataire" value="">
|
|
<div id="div_selection_prestataire" style="width:92%">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="8%" class="required"> <?= _("Date Effet") ?> </td>
|
|
<td width="20%">
|
|
<INPUT style='text-align:center; font-size:12pt;' class="form-control datepicker" TYPE="text" id="dateEffet"
|
|
NAME="dateEffet" value="" onChange="javascript:controleDateEffetTmNegocie();" required AUTOCOMPLETE="OFF">
|
|
</td>
|
|
<td width="10%" align="center" class="required"> <?= _("Ticket Modérateur") ?> </td>
|
|
<td width="8%">
|
|
<input id="tm" name="tm" style="font-size:12pt; height:30px; text-align:center;" class="form-control" type="number" min="0" max="100" value="" required AUTOCOMPLETE="OFF">
|
|
</td>
|
|
|
|
<td >
|
|
<input style='font-size:12pt;' id="btn_inserer" name="btn_inserer"
|
|
class = "form-control btn btn-primary" type="button" value="<?= _("Insérer") ?>"
|
|
onclick="javascript:inserer_tmpolicegarantieprestataire()">
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_effet_max">
|
|
</div>
|
|
|
|
<div id="div_liste_tm" >
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
|
<thead >
|
|
<tr >
|
|
<th style='text-align:center; border: 2px solid #ddd;' colspan="2"> <?= _("Police") ?> </th>
|
|
<th style='text-align:center; border: 2px solid #ddd;' colspan="3"> <?= _("Prestataire") ?> </th>
|
|
<th style='text-align:center; border: 2px solid #ddd;' > <?= _("Garantie") ?> </th>
|
|
<th style='text-align:center; border: 2px solid #ddd;' > <?= _("Effet") ?> </th>
|
|
<th style='text-align:center; border: 2px solid #ddd;' width="10%"> <?= _("T M") ?> </th>
|
|
<th style='text-align:center; border: 2px solid #fff;' width="10%"> <?= _("Suppr") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
<?php foreach ($tmPolice as $v):
|
|
$idTm = $v['idTm'];
|
|
$supprime = $v['supprime'];
|
|
|
|
$garantie = $v['garantie'];
|
|
if (est_anglophone()){
|
|
$garantie = $v['garantieEng'];
|
|
}
|
|
|
|
?>
|
|
<?php if($supprime=='1'): ?>
|
|
<tr valign="top" style="text-decoration: line-through red;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<td style='border: 2px solid #ddd;' align="center"><?= $this->nettoyer($v['idPolice']); ?></td>
|
|
<td style='border: 2px solid #ddd;'><?= $this->nettoyer($v['police']); ?></td>
|
|
|
|
<td style='border: 2px solid #ddd;' align="center"><?= $this->nettoyer($v['codeTypePrestataire']); ?></td>
|
|
<td style='border: 2px solid #ddd;'><?= $this->nettoyer($v['prestataire']); ?></td>
|
|
<td style='border: 2px solid #ddd;'><?= $this->nettoyer($v['localite']); ?></td>
|
|
<td style='border: 2px solid #ddd;'><?= $garantie; ?></td>
|
|
<td style='text-align:center; border: 2px solid #ddd;'><?= datefr($this->nettoyer($v['dateEffet'])); ?></td>
|
|
<td style='text-align:center; border: 2px solid #ddd;'><?= $this->nettoyer($v['ticketModerateur']);?></td>
|
|
<?php if($supprime=='0'): ?>
|
|
<td>
|
|
<button type="button" class="form-control btn btn-danger" onClick="javascript:supprimer_tmpolicegarantieprestataire(<?=$idTm?>,'<?=$adminSin ?>');">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td> </td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
|
|
|