Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php session_start();
- if (!isset($_SESSION['usuario'])) { header('location:login.php'); exit(); } ?>
- <!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>
- <div class="container">
- <?php include_once 'partials/menu.php'; ?>
- <div class="row">
- <div class="col">
- <!-- CUERPO -->
- <form class="tema_principal" method="POST" action="procesos/guardar_mensaje.php" enctype="multipart/form-data">
- <div class="form-group" >
- <h2>Crear Mensaje </h2>
- <?php
- if (isset($_SESSION['success'])) {
- echo "<h3 style='color:green'>Mensaje creado correctamente!</h3>";
- unset($_SESSION['success']);
- }
- ?>
- <label>Titulo</label>
- <input type="text" class="form-control" id="titulo" name="titulo" placeholder="Introduce un titulo para el mensaje" style="font-weight: bold;">
- </div>
- <div class="form-group">
- <label>Contenido (max. 500)</label>
- <textarea class="form-control" rows="10" name="contenido" placeholder="Introduce el contenido de tu mensaje"></textarea>
- </div>
- <!-- FIle -->
- <div class="input-group">
- <div class="input-group-prepend">
- <span class="input-group-text" id="inputGroupFileAddon01">Imagen</span>
- </div>
- <div class="custom-file">
- <input type="file" class="custom-file-input" id="imagen" aria-describedby="inputGroupFileAddon01" name="imagen">
- <label class="custom-file-label" for="inputGroupFile01">Examinar...</label>
- </div>
- </div>
- <!-- FIle -->
- <br>
- <button style="width: 150px;" type="submit" class="btn btn-success">Crear</button>
- </form>
- </div> </div>
- </div>
- <!-- IMPORT BOOTSRAP JQUERY --> <?php include_once 'partials/bootstrap_jquery.php' ?> </body> </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement