83 lines
3.6 KiB
PHP
Executable File
83 lines
3.6 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// -----------------------------------------------------
|
|
// List box langues
|
|
// -----------------------------------------------------
|
|
if ($_SESSION['nbLg']>1) {
|
|
$lgLien='affAdmin=23&propager=2&theIdPage='.$theIdPage.'&$lg='.$_SESSION['lgCouranteCode'];
|
|
include ($includePathAdmin."/drapeaux/drapeauxListBox.php");
|
|
}
|
|
|
|
// -----------------------------------------------------
|
|
// Form Description Page
|
|
// -----------------------------------------------------
|
|
echo '<div >';
|
|
include('./pages/page/pageModifier.php');
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Req select item
|
|
// -----------------------------------------------------
|
|
if (isset ($theIdPage) && isset($theIdItem) ) {
|
|
include ("./pages/items/reqItem/itemReqSelect.php");
|
|
}
|
|
else { if (isset($debug[1]) && $debug[1] == '1') $admMsg .= '<br>pas de theIdPage ou pas de theIdItem '; }
|
|
|
|
// -----------------------------------------------------
|
|
// Formulaire item
|
|
// -----------------------------------------------------
|
|
echo '<div style="border:1px solid lightgrey;padding:4px; margin-top:4px;" >';
|
|
|
|
// -----------------------------------------------------
|
|
// Items menu
|
|
// -----------------------------------------------------
|
|
echo '<div style="display:flex; margin-top:8px; margin-bottom:8px; position:sticky;top:50px;" class="flexToColumn" >';
|
|
include('./pages/items/itemMenu.php');
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Assistant langue
|
|
// -----------------------------------------------------
|
|
echo '<span title="En cochant cette case les contenus seront reproduits dans chaque langue" >';
|
|
echo 'Assistant langue : ';
|
|
if ($_SESSION['assist']==1) {
|
|
echo '<input onClick="assistant();" class="inputWebmaster" type="checkbox" name="assist" id="assist" value="1" checked>';
|
|
}
|
|
else {
|
|
echo '<input onClick="assistant();" class="inputWebmaster" type="checkbox" name="assist" id="assist" value="2" >';
|
|
}
|
|
echo '</span>';
|
|
|
|
// // -----------------------------------------------------
|
|
// // Select item
|
|
// // -----------------------------------------------------
|
|
// // echo '<span style="color:grey;"> - Nom de la page : \''.$theNomPage.'\' ( N° '.$theIdPage.')</span>';
|
|
// $title="Sélectionnez un item";
|
|
// echo '<span class="libChampsWebmaster" title="'.$title.'" style="padding-top:7px; padding-bottom:7px;width:100%; margin-bottom:10px; border:1px solid lightgrey" >Sélectionnez un item de la page : ';
|
|
// echo '<select class="selectWbm" name="theIdItem" id="theIdItem" onChange="document.getElementById(\'codeOpe\').value=\'-\';document.frmPage.submit();" >';
|
|
// // echo '<option value="0" >Sélectionnez</option>';
|
|
// for ($i=0; $i < count($idItemTab); $i++) {
|
|
// if ($theIdItem==$idItemTab[$i]) {
|
|
// echo '<option value="'.$idItemTab[$i].'" selected>'.$itemNomTab[$i].' ('.$idItemTab[$i].')'.'</option>';
|
|
// }
|
|
// else
|
|
// {echo '<option value="'.$idItemTab[$i].'" >'.$itemNomTab[$i].' ('.$idItemTab[$i].')'.'</option>';}
|
|
// }
|
|
// echo '</select>';
|
|
// echo '</span>';
|
|
|
|
// -----------------------------------------------------
|
|
// Nom
|
|
// -----------------------------------------------------
|
|
echo '<span class="libChampsWebmaster">' ;
|
|
echo 'Nom du contenu : ';
|
|
echo '<input type="text" class="inputWebmaster" name="theItemNom" value="'.$theItemNom.'" />';
|
|
echo '</span>';
|
|
echo '<br>';
|
|
|
|
// -----------------------------------------------------
|
|
// Formulaire item
|
|
// -----------------------------------------------------
|
|
include("./pages/items/itemModifier.php");
|
|
echo '</div>';
|
|
?>
|