-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
94 lines (85 loc) · 3.82 KB
/
index.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
<!DOCTYPE html>
<html lang="es">
<head>
<title>Inicio</title>
<meta charset ="UTF-8">
<?php include './titulos/link.php'; ?>
</head>
<body id="container-page-index">
<?php include './titulos/barnav.php'; ?>
<div class="jumbotron" id="jumbotron-index">
<h1><span class="tittles-pages-logo">VentaCOL</span> <small style="color: #fff;">Online</small></h1>
<p>
Bienvenid@ a nuestra tienda en linea, aquí encontras una gran variedad de artículos de belleza, nutricion, hogar, y muchas mas.
</p>
</div>
<section id="new-prod-index">
<div class="container">
<div class="page-header">
<h1>Novedades <small>productos</small></h1>
</div>
<div class="row">
<?php
include 'modelo/consulSQL.php';
$consulta= ejecutarSQL::consultar("select * from producto");
if(mysqli_num_rows($consulta) > 0){
while($fila=$consulta->fetch_assoc()){
echo '
<div class="col-xs-12 col-sm-6 col-md-4">
<div class="thumbnail">
<img src="assets/img-products/'.$fila['Imagen'].'">
<div class="caption">
<h3>'.$fila['Marca'].'</h3>
<p>'.$fila['Nombre'].'</p>
<p>$'.$fila['Precio'].'</p>
<p class="text-center">
<a href="infoProd.php?CodigoProd='.$fila['Cod_producto'].'" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i> Detalles</a>
<button value="'.$fila['Cod_producto'].'" class="btn btn-success btn-sm botonCarrito"><i class="fa fa-shopping-cart"></i> Añadir</button>
</p>
</div>
</div>
</div>
';
}
}else{
echo '<h2>No hay productos registrados en la tienda</h2>';
}
?>
</div>
</div>
</section>
<section id="reg-info-index">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-6 text-center">
<article style="margin-top:20%;">
<p><i class="fa fa-users fa-4x"></i></p>
<h3>Registrate</h3>
<p>Registrese y hagase cliente de <span class="tittles-pages-logo">VentaCOL</span> para recibir las mejores ofertas y descuentos especiales de nuestros productos.</p>
<p><a href="registration.php" class="btn btn-info btn-block">Registrarse</a></p>
</article>
</div>
<div class="col-xs-12 col-sm-6">
<img src="assets/img/seccionRegistro.png" alt="Smart-TV" class="img-responsive">
</div>
</div>
</div>
</section>
<section id="distribuidores-index">
<div class="container">
<div class="col-xs-12 col-sm-6">
</div>
<div class="col-xs-12 col-sm-6">
</div>
<div class="col-xs-12">
<div class="page-header">
<h1>Nuestras <small style="color: #333;">Marcas</small></h1>
</div>
<br><br>
<img src="assets/img/logos-marcas.png" alt="logos-marcas" class="img-responsive">
</div>
</div>
</section>
<?php include './titulos/footer.php'; ?>
</body>
</html>