Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. <?php session_start();
  2.  
  3. if (!isset($_SESSION['usuario'])) { header('location:login.php'); exit(); } ?>
  4.  
  5. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> <title>Inicio</title> <!-- IMPORT BOOTSRAP-CSS --> <?php include_once 'partials/bootstrap_css.php' ?> <!-- CSS 'FULL' --> <link rel="stylesheet" href="estilos/full.css"> </head> <body>
  6.  
  7.  
  8. <div class="container">
  9. <?php include_once 'partials/menu.php'; ?>
  10.  
  11. <div class="row">
  12. <div class="col">
  13. <!-- CUERPO -->
  14. <form class="tema_principal" method="POST" action="procesos/guardar_mensaje.php" enctype="multipart/form-data">
  15. <div class="form-group" >
  16. <h2>Crear Mensaje </h2>
  17. <?php
  18. if (isset($_SESSION['success'])) {
  19. echo "<h3 style='color:green'>Mensaje creado correctamente!</h3>";
  20. unset($_SESSION['success']);
  21. }
  22.  
  23.  
  24.  
  25. ?>
  26. <label>Titulo</label>
  27. <input type="text" class="form-control" id="titulo" name="titulo" placeholder="Introduce un titulo para el mensaje" style="font-weight: bold;">
  28. </div>
  29. <div class="form-group">
  30. <label>Contenido (max. 500)</label>
  31. <textarea class="form-control" rows="10" name="contenido" placeholder="Introduce el contenido de tu mensaje"></textarea>
  32. </div>
  33.  
  34. <!-- FIle -->
  35. <div class="input-group">
  36. <div class="input-group-prepend">
  37. <span class="input-group-text" id="inputGroupFileAddon01">Imagen</span>
  38. </div>
  39. <div class="custom-file">
  40. <input type="file" class="custom-file-input" id="imagen" aria-describedby="inputGroupFileAddon01" name="imagen">
  41. <label class="custom-file-label" for="inputGroupFile01">Examinar...</label>
  42. </div>
  43. </div>
  44. <!-- FIle -->
  45. <br>
  46.  
  47. <button style="width: 150px;" type="submit" class="btn btn-success">Crear</button>
  48. </form>
  49. </div> </div>
  50.  
  51. </div>
  52.  
  53.  
  54.  
  55. <!-- IMPORT BOOTSRAP JQUERY --> <?php include_once 'partials/bootstrap_jquery.php' ?> </body> </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement