-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagregar.php
73 lines (56 loc) · 2.05 KB
/
agregar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php require_once ('conexion.php');
$menu = 'agregar';
if (!isset($_SESSION['iduser'])) {header('location:'.$dato[0]);
}
require_once('inc/head.php');
?>
<body class="fondo-oscuro">
<?php include 'inc/header.php';?>
<div class="contenedor relleno-8 borde-gris">
<div class="fila">
<div class="columna columna-m-12 columna-g-12">
<center>
<h1>AGREGAR NOTICIAS </h1>
<form onsubmit="return false" class="formulario" id="formAgregar" style="max-width: 600px;">
<div class="form-team">
<label for="titulo">Titulo:</label>
<input type="text" name="titulo" id="titulo">
</div>
<div class="form-team">
<label for="imagen" >Imagen:</label>
<input class="izquierda" type="file" name="imagen[]" id="imagen" multiple>
</div>
<br>
<div class="form-team">
<label for="categoria">Categoria:</label>
<select name="categoria" id="categoria" class="izquierda">
<option value="">selecionar categoria</option>
<option value="1">Noticias</option>
<option value="2">Acuerdos</option>
</select>
</div>
<div class="form-team">
<label for="contenido">Contenido:</label>
<textarea name="contenido" id="contenido" cols="30" rows="10"></textarea>
</div>
<div class="form-team oculto" id="agregar-error">
<div id="agregar-mensaje" class="alerta alerta-rojo alerta-pequenia" >Error</div>
</div>
<br>
<div class="form-team">
<input type="submit" class="button button-enviar" value="agregar post" onclick="CKEDITOR.instances.contenido.updateElement();agregar(titulo.value, categoria.value,contenido.value);">
</div>
</form>
<script>
CKEDITOR.replace( 'contenido',
{
height: '300px',
});
</script>
</center>
</div>
</div>
</div>
<?php include 'inc/footer.php';?>
</body>
</html>