-
Notifications
You must be signed in to change notification settings - Fork 0
/
promociones.php
147 lines (135 loc) · 6.87 KB
/
promociones.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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?php
include("php/cn.php");
$promocion ="SELECT * FROM promociones";
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>HIRAISHIN</title>
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0, maximum-scale=3.0, minimum-scale=1.0">
<link rel="stylesheet" href="css/estilos.css">
<link rel="stylesheet" href="css/font.css">
</head>
<body>
<header class="main-header">
<div class="container container--flex">
<div class="logo-container column column--50">
<h1 class="logo">HIRAISHIN</h1>
</div>
<div class="main-header__contactInfo column column--50">
<p class="main-header__contactInfo__phone">
<span class="icon-phone">935030509</span>
</p>
<p class="main-header__contactInfo__address">
<span class="icon-location">Calle Libertad 457 - Salaverry, La Libertad, Perú</span>
</p>
</div>
</div>
</header>
<nav class="main-nav">
<div class="container container--flex">
<span class="icon-menu" id="btnmenu"></span>
<ul class="menu" id="menu">
<li class="menu__item"><a href="indexAdmin.html" class="menu__link ">Inicio</a></li>
<li class="menu__item"><a href="categorias.php" class="menu__link">Categorias</a></li>
<li class="menu__item"><a href="plato.php" class="menu__link">Platos</a></li>
<li class="menu__item"><a href="promociones.php" class="menu__link menu__link--select">Promociones</a></li>
<li class="menu__item"><a href="entregas.php" class="menu__link">Lista de entregas</a></li>
<li class="menu__item"><a href="trazado.php" class="menu__link">Trazado de pedidos</a></li>
</ul>
<div class="social-icon">
<a href="" class="social-icon__link"><span class="icon-facebook"></span></a>
<a href="" class="social-icon__link"><span class="icon-twitter"></span></a>
<a href="" class="social-icon__link"><span class="icon-mail"></span></a>
<a href="" class="social-icon__link"><span class="icon-instagram"></span></a>
</div>
</div>
</nav>
<section class="banner2"><img src="img/banner.jpeg" alt="" class="banner2__img"></section>
<main class="main">
<section class="group">
<div class="container container--flex">
<h3 class="group__title">Promociones</h3>
</div>
</section>
<section class="group">
<div class="container">
<h5>
</h5>
<br>
</div>
</section>
</main>
<div class="container container--flex">
<div class="column column--51">
<a href="registrar_promocion.php" class="btn btn--contact">Registrar</a>
</div>
</div>
<div class="container container--flex registro__platos" enctype="multipart/form-data">
<div class="column column--16">
<h3 class="column__title">id Prom</h3>
</div>
<div class="column column--16">
<h3 class="column__title">Nombre</h3>
</div>
<div class="column column--16">
<h3 class="column__title">Precio</h3>
</div>
<div class="column column--16">
<h3 class="column__title">Imagen</h3>
</div>
<div class="column column--16">
<h3 class="column__title">acciones</h3>
</div>
</div>
<?php
$resultado = mysqli_query($conexion, $promocion);
while($row = mysqli_fetch_assoc($resultado)){?>
<div class="container container--flex registro__platos">
<span class="container container--flex registro__platos slec" id="btnOpciones2">
<div class="column column--16">
<p class="column__txt"><?php echo $row ["id_promocion"];?></p>
</div>
<div class="column column--16">
<p class="column__txt"><?php echo $row ["nombre"];?></p>
</div>
<div class="column column--16">
<p class="column__txt"><?php echo $row ["precio"];?></p>
</div>
<div class="column column--16">
<img src="data:image/jpg;base64,<?php echo base64_encode($row['imagen']); ?>"/>
</div>
<div class="column column--16">
<a href="agregar_Prom.php?id_promocion=<?php echo $row["id_promocion"]; ?>" class="social-icon__link"><span class="icon-modi" ></span></a>
<a href="ver_Prom.php?id_promocion=<?php echo $row["id_promocion"]; ?>" class="social-icon__link"><span class="icon-search" ></span></a>
<a href="php/eliminar_promocion.php?id_promocion=<?php echo $row["id_promocion"]; ?>" class="social-icon__link"><span class="icon-delete" ></span></a>
</div>
</span>
</div>
<?php }?>
<footer class="main-footer">
<div class="container container--flex">
<div class="column column--33">
<h2 class="column__title">¿Por que visitarnos?</h2>
<p class="column__txt">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates ut doloribus harum saepe nemo officia dolor voluptate aperiam eos esse libero eveniet, maiores dolores animi, alias ab fugit officiis ex.</p>
</div>
<div class="column column--33">
<h2 class="column__title">Contactanos</h2>
<p class="column__txt">Calle Libertad 457 Salaverry-La Libertad, Perú</p>
<p class="column__txt">Telefono: 935-030-509</p>
<p class="column__txt">hiraishinxddd@gmail.com</p>
</div>
<div class="column column--33">
<h2 class="column__title">Siguenos en nuestras redes</h2>
<p class="column__txt"><a href="" class="icon-facebook">Facebook</a></p>
<p class="column__txt"><a href="" class="icon-twitter">Siguenos en twitter</a></p>
<p class="column__txt"><a href="https://www.youtube.com/channel/UCPbCFn2sN7IclNutD2Aiqkw" class="icon-youtube">Suscribete a nuestro canal</a></p>
<p class="column__txt"><a href="" class="icon-instagram">Siguenos en Instagram</a></p>
</div>
</div>
<p class="copy">copirai</p>
</footer>
<script src="js/menu.js"></script>
</body>
</html>