-
Notifications
You must be signed in to change notification settings - Fork 0
/
agregar_Prom.php
141 lines (134 loc) · 6.41 KB
/
agregar_Prom.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
<?php
include("php/cn.php");
$id_promocion= $_REQUEST['id_promocion'];
$plato="SELECT * FROM plato";
if(!empty($_POST)){
$nombre=$_POST["nombre"];
$plato="SELECT * FROM plato WHERE nombre='$nombre'";
}
?>
<!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">Selecccion de platos</h3>
</div>
</section>
<section class="group">
<div class="container">
<form action="" method="post">
<input class="input" type="text" name="nombre">
<input type="submit">
</form>
</div>
<br>
</section>
<div class="container container--flex registro__platos">
<div class="column column--25">
<h3 class="column__title">Nombre</h3>
</div>
<div class="column column--25">
<h3 class="column__title">Descripcion</h3>
</div>
<div class="column column--25">
<h3 class="column__title">Precio</h3>
</div>
<div class="column column--25">
<h3 class="column__title">acciones</h3>
</div>
</div>
<?php
$resultado = mysqli_query($conexion, $plato);
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--25">
<p class="column__txt"><?php echo $row ["nombre"];?></p>
</div>
<div class="column column--25">
<p class="column__txt"><?php echo $row ["descripcion"];?></p>
</div>
<div class="column column--25">
<p class="column__txt"><?php echo $row ["precio"];?></p>
</div>
<div class="column column--25">
<a href="php/agregarProm.php?id_plato=<?php echo $row["id_plato"]; ?>&id_promocion=<?php echo $id_promocion ?>" class="btn btn--contact">Agregar</a>
</div>
</span>
</div>
<?php }?>
</main>
<center>
<div class="column column--34">
<a href="promociones.php" class="btn btn--contact">Ver promociones</a>
</div>
</center>
<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>