production/Vue/Ajaxpaysterritoire/index.php
2025-12-01 16:12:12 +00:00

75 lines
2.4 KiB
PHP
Executable File

<div id="div_garant">
<div class="row">
<div id="div_sans_territoire" class="col-5" >
<legend> <?= _("Pays hors du territoire") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive datatabplus compact" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Pays") ?> </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_tous_pays_territoire();" > <?= _("Ajouter tous"). " ==>" ?> </button> </th>
</tr>
</thead>
<tbody>
<?php foreach ($pays_sans_territoire as $v):
$codePays = $v['codePays'];
$pays = $v['pays'];
if (est_anglophone()){
$pays = $v['paysEng'];
}
?>
<tr valign="top">
<td align='center'><?= $pays ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_pays_territoire('<?=$codePays?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_avec_seuil" class="col-7" >
<legend> <?= _("Pays du territoire") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive datatabplus compact" style="font-size:10pt;">
<thead>
<tr>
<th width="10%" style='text-align:center'> <= </th>
<th style='text-align:center'> <?= _("Pays") ?> </th>
</tr>
<tr>
<td colspan="2"> <button type="button" style="font-size:10pt;" class="form-control btn btn-danger" onclick="javascript:retirer_tous_pays_territoire();" > <?= "<== " . _("Retirer tous") ?> </button> </td>
</tr>
</thead>
<tbody>
<?php foreach ($pays_avec_territoire as $v):
$id = $v['id'];
$pays = $v['pays'];
if (est_anglophone()){
$pays = $v['paysEng'];
}
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_pays_territoire('<?=$id?>');" ></td>
<td align='center'><?= $pays ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>