44 lines
2.0 KiB
PHP
Executable File
44 lines
2.0 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
echo '<div style="margin:auto;width:100%;" >';
|
|
echo '<div style="display:block;margin-bottom:5px;padding:8px;" >';
|
|
// -----------------------------------------------------
|
|
// Bouton download
|
|
// -----------------------------------------------------
|
|
echo '<span class="boutonsWebmaster"
|
|
title="Cliquez ici pour parcourir les dossiers de votre ordinateur. "
|
|
style="display:inline;margin:5px;" >';
|
|
echo '<label for="fileToUpload" >';
|
|
echo '<i class="fad fa-download"></i>';
|
|
echo 'Choisir une notice .pdf';
|
|
echo '</label>';
|
|
echo '<input style="display:none;" type="file" name="fileToUpload" id="fileToUpload" >';
|
|
echo '</span>';
|
|
|
|
// -----------------------------------------------------
|
|
// Bouton valider
|
|
// -----------------------------------------------------
|
|
echo '  ';
|
|
echo '<span class="boutonsWebmaster" title="Cliquez ici pour valider. " onClick="updatePrd();" style="display:inline;width:100%;" >';
|
|
echo '<i class="fad fa-check-circle"></i> ';
|
|
echo 'Valider';
|
|
echo '</span>';
|
|
echo '<input type="hidden" name="lienNotice" id="lienNotice" value="' .$lienNotice. '" />';
|
|
|
|
// -----------------------------------------------------
|
|
// Bouton supprimer
|
|
// -----------------------------------------------------
|
|
echo '  ';
|
|
echo '<span title="Supprimer une notice" border-radius:10%; background-color:#DEDEDE; padding:3px; padding:7px; ; margin:auto; text-align:center;" >';
|
|
echo '<i class="fad fa-trash-alt" style="color:red; fill:red; cursor:pointer;" onClick="deleteNotice()"></i>';
|
|
echo '</span>';
|
|
echo '</div>';
|
|
|
|
if (($lienNotice!="") && ($lienNotice!="-")) {
|
|
echo '<div style="margin:auto;" >';
|
|
// echo '<span class="libChampsWebmaster">Notice : </span>';
|
|
echo '<iframe src=".' .$lienNotice. '" width="100%" marginwidth="0" align="top" height="500" frameborder="0" scrolling="yes" ></iframe>';
|
|
echo '</div>';
|
|
}
|
|
echo '</div>';
|
|
?>
|