hellofacteurV1/vues/post_illustration_maj.php

36 lines
880 B
PHP
Executable File

<?php
/**
* Vue retournant les résultats d'une tentative de téléchargement ou de suppression de l'illustration d'un post
* S'affiche dans une frame, invisible si javascript actif.
*
**/
?>
<!DOCTYPE html>
<html lang="fr-fr">
<head>
<meta charset="utf-8">
<head>
<title>Téléchargement de l'illustration d'un post.</title>
</head>
<body>
<?php
$msg="";
if(!empty($msg_form))
{
foreach($msg_form as $message)
echo "<h4>$message</h4>";
if($msg_form[0]==MSG_UTILISA_TELECHARGE_VALID)
$msg=str_replace("\"","'",MSG_UTILISA_TELECHARGE_VALID);//pour comparaison en JS
elseif($msg_form[0]==MSG_UTILISA_MAJ_SUPPR_VALID)
$msg=str_replace("\"","'",MSG_UTILISA_MAJ_SUPPR_VALID);//idem
else
$msg=str_replace("\"","'",get_html_alerte_msg($msg_form));
}
?>
</body>
<script type="text/javascript">
<!--
window.top.window.msg_telechargement("<?=$msg;?>");
//-->
</script>
</html>