-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInsert.php
More file actions
121 lines (104 loc) · 4.74 KB
/
Copy pathInsert.php
File metadata and controls
121 lines (104 loc) · 4.74 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
include('getNoticia.php');
if(isset($_GET['ID'])){
$noticia = getNoticia($_GET['ID']);
}else{
$noticia = array(
'ID' => '',
'Titulo' => '',
'Copete' => '',
'Imagen' => '',
'Texto' => '',
'Autor' => ''
);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>levNews</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lora:400,400i,700,700i&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Abril+Fatface&display=swap" rel="stylesheet">
<link rel="icon" href="images/favicon.ico" />
<link rel="stylesheet" href="css/open-iconic-bootstrap.min.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/aos.css">
<link rel="stylesheet" href="css/ionicons.min.css">
<link rel="stylesheet" href="css/bootstrap-datepicker.css">
<link rel="stylesheet" href="css/jquery.timepicker.css">
<link rel="stylesheet" href="css/flaticon.css">
<link rel="stylesheet" href="css/icomoon.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="colorlib-page">
<a href="#" class="js-colorlib-nav-toggle colorlib-nav-toggle"><i></i></a>
<aside id="colorlib-aside" role="complementary" class="js-fullheight img" style="background-image: url(images/sidebar-bg.jpg);">
<h1 id="colorlib-logo" class="mb-4"><a href="index.html">levNews</a></h1>
<nav id="colorlib-main-menu" role="navigation">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="EditarNoticias.html">Editar Noticias</a></li>
<li class="colorlib-active"><a href="Insert.php">Insertar Noticia</a></li>
</ul>
</nav>
</aside>
<div id="colorlib-main">
<section class="ftco-section ftco-no-pt ftco-no-pb">
<div class="container px-0">
<div class="col-md-7">
<form action="insertConfig.php" method="GET">
<div class="form-group">
<label for="InputTitle">Titulo</label>
<input type="text" class="form-control" id="InputTitle" value='<?php echo $noticia['Titulo']; ?>' name='titulo'>
</div>
<div class="form-group">
<label for="InputCopete">Copete</label>
<input type="text" class="form-control" id="InputCopete" value='<?php echo $noticia['Copete']; ?>' name='copete'>
</div>
<div class="form-group">
<label for="InputImagen">Link Imagen</label>
<input type="text" class="form-control" id="InputImagen" value='<?php echo $noticia['Imagen']; ?>' name='imagen'>
</div>
<div class="form-group">
<label for="InputTexto">Texto</label>
<textarea class="form-control" id="InputTexto" type = 'text' name='texto' rows="4"><?php echo $noticia['Texto']; ?></textarea>
</div>
<div class="form-group">
<label for="InputAutor">Autor</label>
<input type="text" class="form-control" id="InputAutor" value='<?php echo $noticia['Autor']; ?>' name='autor' >
</div>
<input type='hidden' name='ID' value='<?php echo $noticia['ID']; ?>'>
<button type="submit" class="btn btn-primary">Guardar</button>
</form>
</div>
</div>
</div>
</section>
</div><!-- END COLORLIB-MAIN -->
</div><!-- END COLORLIB-PAGE -->
<!-- loader -->
<div id="ftco-loader" class="show fullscreen"><svg class="circular" width="48px" height="48px"><circle class="path-bg" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke="#eeeeee"/><circle class="path" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke-miterlimit="10" stroke="#F96D00"/></svg></div>
<script src="js/jquery.min.js"></script>
<script src="js/jquery-migrate-3.0.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/jquery.waypoints.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/aos.js"></script>
<script src="js/jquery.animateNumber.min.js"></script>
<script src="js/scrollax.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBVWaKrjvy3MaE7SQ74_uJiULgl1JY0H2s&sensor=false"></script>
<script src="js/google-map.js"></script>
<script src="js/main.js"></script>
</body>
</html>