44 lines
1.8 KiB
PHP
Executable File
44 lines
1.8 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// -----------------------------------------------------
|
|
// Supprimer
|
|
// -----------------------------------------------------
|
|
if (isset($_POST["supprimer"]) && $_POST["supprimer"]=='Supprimer' || ($codeOpe=='supprimer' && isset($codeOpe)) )
|
|
{echo '<div id="supprimer" style="display:block;margin:4px;padding:4px;align:top;" >'; }
|
|
else
|
|
{echo '<div id="supprimer" style="display:none;margin:4px;padding:4px;align:top;" >'; }
|
|
|
|
$title="Sélectionnez une page";
|
|
echo '<span class="libChampsWebmaster" title="' .$title. '">Sélectionnez une page à supprimer : </span>';
|
|
echo '<select class="selectWbm" name="theIdPage3" id="theIdPage3" onChange="suppr();" >';
|
|
if ($theIdPage=='') {echo '<option value="" selected>Sélectionnez</option>';}
|
|
else {echo '<option value="" >Sélectionnez</option>';}
|
|
for ($i=0;$i<count($nomPage);$i++) {
|
|
if ($theIdPage==$tabIdPage[$i]) {
|
|
echo '<option value="' .$tabIdPage[$i]. '" selected>' .$nomPage[$i]. '</option>';
|
|
$theFicPage=$ficPage[$i];
|
|
$theEmplacement=$tabEmplacement[$i];
|
|
$theDescPage=$descPage[$i];
|
|
}
|
|
else
|
|
{echo '<option value="' .$tabIdPage[$i]. '">' .$nomPage[$i]. '</option>';}
|
|
}
|
|
echo '</select>';
|
|
// }
|
|
if (isset($codeOpe) && $codeOpe=='supprimer') {
|
|
echo ' ';
|
|
echo '<button style="display:block;" class="boutonsWebmaster" title="' .$title. '" value="Supprimer" name="supprimer" id="toto" type="submit" >';
|
|
echo '<i class="fad fa-trash-alt" ></i> ';
|
|
echo 'Supprimer';
|
|
echo '</button>';
|
|
}
|
|
else {
|
|
echo ' ';
|
|
echo '<button style="display:none;" class="boutonsWebmaster" title="' .$title. '" value="Supprimer" name="supprimer" id="toto" type="submit" >';
|
|
echo '<i class="fad fa-trash-alt" ></i> ';
|
|
echo 'Supprimer';
|
|
echo '</button>';
|
|
}
|
|
echo '</div>';
|
|
?>
|