|
|
@@ -1,8 +1,28 @@
|
|
|
<?php require ("header.php"); ?><title>Share a flamm</title><script src="/js/scripts_post.js"></script></head><body>
|
|
|
+<?php $disabled = "";
|
|
|
+if ($msg !== null)
|
|
|
+{
|
|
|
+ $disabled = $msg === true ? " disabled" : "";
|
|
|
+?><div class="alert"><?php echo $msg === true ? "Okay !" : $msg; ?></div><?php } ?>
|
|
|
<form method="POST" action="/post" enctype="multipart/form-data">
|
|
|
- <input type="text" name="title"/>
|
|
|
- <input type="text" name="descr"/>
|
|
|
- <input type="file" name="img" />
|
|
|
- <input type="submit">
|
|
|
+ <div class="input-group">
|
|
|
+ <label>
|
|
|
+ <span>Titre</span>
|
|
|
+ <input type="text" name="title" <?php echo $disabled; ?>/>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div class="input-group">
|
|
|
+ <label>
|
|
|
+ <span>Description</span>
|
|
|
+ <input type="text" name="descr" <?php echo $disabled; ?>/>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div class="input-group">
|
|
|
+ <label>
|
|
|
+ <span>Fichier</span>
|
|
|
+ <input type="file" name="img" <?php echo $disabled; ?>/>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <input type="submit" <?php echo $disabled; ?>>
|
|
|
</form>
|
|
|
</body></html>
|