90 lines
4.1 KiB
PHP
Executable File
90 lines
4.1 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// -----------------------------------------------------
|
|
// Post
|
|
// -----------------------------------------------------
|
|
include ("lpays.post.php");
|
|
|
|
// -----------------------------------------------------
|
|
// Requete count langues
|
|
// -----------------------------------------------------
|
|
if (empty($tableLangueCode) or $refresh=='Oui') { include ($includePath. "/req/03-init.langueActives.php");}
|
|
|
|
// -----------------------------------------------------
|
|
// Update
|
|
// -----------------------------------------------------
|
|
if ($codeOpe==='upLibPays') {include ("lpays.reqUpdateLib.php");}
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['Pas de update lib' => ''], '');}
|
|
|
|
if ($codeOpe==='upCoeffPays') {include ("lpays.reqUpdateCoeff.php");}
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['Pas de update coeff' => ''], '');}
|
|
|
|
if ($codeOpe==='upZonePays') {include ("lpays.reqUpdateZone.php");}
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['Pas de update zone' => ''], '');}
|
|
|
|
// -----------------------------------------------------
|
|
// Select
|
|
// -----------------------------------------------------
|
|
include ("lpays.reqSelect.php");
|
|
|
|
// -----------------------------------------------------
|
|
// Debug
|
|
// -----------------------------------------------------
|
|
if (isset($debug[1]) && $debug[1] == '1') {include ("lpays.debug.php");}
|
|
|
|
// -----------------------------------------------------
|
|
// Form
|
|
// -----------------------------------------------------
|
|
echo '<form name="MPays" id="MPays" method="POST" >';
|
|
|
|
// -----------------------------------------------------
|
|
// Champs cachés
|
|
// -----------------------------------------------------
|
|
echo '<input type="hidden" name="modifLg" id="modifLg" value="' .$modifLg. '" />';
|
|
echo '<input type="hidden" name="codeOpe" id="codeOpe" value="' .$codeOpe. '" />';
|
|
echo '<input type="hidden" name="lgCourante" id="lgCourante" value="' .$_SESSION['lgCouranteCode']. '" />';
|
|
echo '<input type="hidden" name="theIdPays" id="theIdPays" value="' .$theIdPays. '" />';
|
|
echo '<input type="hidden" name="theLibPays" id="theLibPays" value="' .$theLibPays. '" />';
|
|
echo '<input type="hidden" name="theCoeff" id="theCoeff" value="' .$theCoeff. '" />';
|
|
echo '<input type="hidden" name="theZonePays" id="theZonePays" value="' .$theZonePays. '" />';
|
|
|
|
// -----------------------------------------------------
|
|
// List box langues
|
|
// -----------------------------------------------------
|
|
echo '<div id="zoneRechercheWbm" >';
|
|
$lgLien="affAdmin=6&optAff=4";
|
|
// echo '<div style="display:inline" >';
|
|
if ($_SESSION['nbLg']>1) {
|
|
include ($includePathAdmin. "/drapeaux/drapeauxListBox.php");
|
|
}
|
|
// echo '</div>';
|
|
echo '</div>';
|
|
|
|
echo '<div class="fondColorListe" style="width:99%; text-align:left;display:grid;grid-template-columns:1fr 1fr 1fr 1fr; grid-gap:0px; padding:0px; margin:0px; " >';
|
|
|
|
// -----------------------------------------------------
|
|
// Entete de colonne
|
|
// -----------------------------------------------------
|
|
echo '<span class="libelleLV" style="grid-column: 1 / span 4;" >';
|
|
echo count($tabIdPays). ' pays trouvés';
|
|
echo '</span>';
|
|
|
|
|
|
for ($i=0;$i<count($tabIdPays);$i++) {
|
|
// -----------------------------------------------------
|
|
// Libelle
|
|
// -----------------------------------------------------
|
|
echo '<span class="celluleLV" > ';
|
|
// echo '<span style="width:205px;border:1px solid lightgrey;border-radius:7px;padding:3px;">  N° ' .$tabIdPays[$i]. ' </span>';
|
|
echo '<input class="inputLV" style="width:100%;" type="text" onChange="paysLib(this.value,' .$tabIdPays[$i]. ');" name="libPays" id="libPays" value="'.ucfirst(mb_strtolower($tabLibPays[$i])). '" title="Libellé du pays"/>';
|
|
echo '</span>';
|
|
}
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Valider
|
|
// -----------------------------------------------------
|
|
echo '<div class="zoneValidate" style="width:95%;" >';
|
|
echo '</div>';
|
|
echo '</form>';
|
|
?>
|