-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlugares11.php
112 lines (100 loc) · 3.86 KB
/
lugares11.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
<!doctype html>
<?php
header('Content-Type: text/html; charset=UTF-8');
?>
<html lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Aztli</title>
<meta name="Title" content="Disfrutando Puebla">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/semantic.min.css">
<link type="text/css" rel="stylesheet" href="css/stylesheet.css"/>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="js/semantic.min.js"></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/js/bootstrap.min.js'></script>
<script type="text/javascript" src="js/scripts.js"></script>
</head>
<body>
<navbar id="top" class="ui menu inverted teal text-small">
<div class="right menu">
<a class="item" href="contacto.php">Contacto</a>
</div>
</navbar>
<!-- Menu lateral -->
<div class="ui vertical inverted teal sidebar menu left">
<a class="item white" href="index.php">Inicio</a>
<a class="item white" href="lugares.php">Lugares</a>
<!--<a class="item white" href="buscar.php">Buscar</a>-->
<a class="item white" href="login.php">Iniciar Sesión</a>
<a class="item white" href="registro.php">Regístrate</a>
</div>
<!-- Menu principal -->
<div class="ui vertical masthead center aligned segment">
<div class="ui container">
<div class="ui large secondary menu" id="menu_desplegable">
<a class="toc item">
<i class="sidebar icon"></i>
</a>
<img class="ui mini image" src="images/logo.png">
<a href="index.php" class="ui left header item">
¡Bienvenido!
</a>
<div class="right item">
<a class="item teal" href="index.php">Inicio</a>
<a class="item active teal" href="lugares.php">Lugares</a>
<!--<a class="item teal" href="buscar.php">Buscar</a>-->
<a class="item teal" href="login.php">Iniciar Sesión</a>
<a class="item teal" href="registro.php">Regístrate</a>
</div>
</div>
</div>
</div>
<div class="ui center aligned container">
<br><h2 class="ui teal header">
<?php $cat=$_GET['cat'];
echo"<div class='content'>
$cat
</div>";
?>
</h2>
<h3 class="ui header">
<div class="content">
Dale clic en el nombre del lugar para tener la informacion completa
</div>
</h3>
<table class="ui selectable celled padded table">
<thead>
<tr>
<th>ID</th>
<th>Nombre</th>
<th>Ubicacion</th>
<th>Foto</th>
</tr></thead>
<tbody>
<?php
$link=mysqli_connect("localhost","root","");
mysqli_select_db($link,"disfrutandopuebla");
$resultado=mysqli_query($link,"select * from lugar where categoria='$cat'");
while($row=mysqli_fetch_array($resultado))
{
echo"<tr>";
$id=$row['id_lugar'];
$no=$row['nombre'];
$fo=$row['foto'];
$ub=$row['ubicacion'];
echo"<td class='single line'>$id</td>";
echo"<td><a href='descripcion.php?idl=$id'><h2 class='ui header'>$no</h2></a></td>";
$t = utf8_encode($ub);
echo"<td class='single line'>$t</td>";
echo"<td><img class='ui centered tiny rounded image' src='MisImagenes/$fo'/></td>";
echo"</tr>";
}
mysqli_close($link);
?>
</tbody>
</table>
</div>
</body>
</html>