-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcasa3.php
66 lines (56 loc) · 1.65 KB
/
casa3.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
<title>Todas las propiedades OmegaZone</title>
<table align="center" bgcolor="#000000">
<tr>
<td>
<div id="contenedor" class="className">
<?php
include_once('./css/index.php');
$stm = $con->prepare("SELECT ID,Localizacion,PosX,PosY,EnVenta FROM `propiedades`");
$stm->execute();
$num_row = $stm->rowCount();
if($num_row > 0)
{
while($dato = $stm->fetch())
{
?>
<?php
$x = $dato["PosX"]/7.5;
$y = $dato["PosY"]/7.5;
$venta = $dato["EnVenta"];
$x = $x + 393;
$y = -($y - 393);
if($venta == 0)
{
echo '<div style="position:absolute; left:'.$x.'px; top:'.$y.'px;z-index:20"><a href="#" rel="tooltip" title="Casa '.$dato['ID'].' en '.$dato['Localizacion'].'"><img src="./imagenes/iconos/32.gif"/></a></div>';
}
if($venta == 1)
{
echo '<div style="position:absolute; left:'.$x.'px; top:'.$y.'px;z-index:20"><a href="#" rel="tooltip" title="Casa '.$dato['ID'].' en '.$dato['Localizacion'].'"><img src="./imagenes/iconos/31.gif"/></a></div>';
}
?>
<?php
}
}
?>
</div>
</td>
</tr>
</table>
<style>
#contenedor
{
background-image:url("./imagenes/map.jpg");
border:1px solid #000000;
display:block;
height:798px;position:relative;
width:798px;
}
</style>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-104151474-1', 'auto');
ga('send', 'pageview');
</script>