mejoras en la api
This commit is contained in:
parent
b91c558618
commit
222b60e79c
@ -5,6 +5,17 @@
|
|||||||
<script src="jquery/jquery-2.1.4.min.js" ></script>
|
<script src="jquery/jquery-2.1.4.min.js" ></script>
|
||||||
<script src="bootstrap/js/bootstrap.min.js" ></script>
|
<script src="bootstrap/js/bootstrap.min.js" ></script>
|
||||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css?" >
|
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css?" >
|
||||||
|
<script src="lazy/jquery.lazy.min.js"></script>
|
||||||
|
<style type="text/css">
|
||||||
|
img.lazy {
|
||||||
|
|
||||||
|
|
||||||
|
/* optional way, set loading as background */
|
||||||
|
background-image: url('../milfs/images/loading.gif');
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 50% 50%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
@ -89,6 +100,12 @@
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
$('.lazy').lazy({
|
||||||
|
appendScroll: $('#scroll-content')
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -19,6 +19,7 @@ if(isset($_REQUEST['tipo'])) {$datos['tipo']=$_REQUEST['tipo'];}
|
|||||||
if(isset($_REQUEST['formato'])) {$datos['formato']=$_REQUEST['formato'];}
|
if(isset($_REQUEST['formato'])) {$datos['formato']=$_REQUEST['formato'];}
|
||||||
if(isset($_REQUEST['registros'])) {$datos['registros']=$_REQUEST['registros'];}
|
if(isset($_REQUEST['registros'])) {$datos['registros']=$_REQUEST['registros'];}
|
||||||
if(isset($_REQUEST['pagina'])) {$datos['pagina']=$_REQUEST['pagina'];}
|
if(isset($_REQUEST['pagina'])) {$datos['pagina']=$_REQUEST['pagina'];}
|
||||||
|
if(isset($_REQUEST['plantilla'])) {$datos['plantilla']=$_REQUEST['plantilla'];}
|
||||||
/*$datos['dato']=$_REQUEST['dato'];
|
/*$datos['dato']=$_REQUEST['dato'];
|
||||||
$datos['inicio']=$_REQUEST['inicio'];
|
$datos['inicio']=$_REQUEST['inicio'];
|
||||||
$datos['start']=$_REQUEST['start'];
|
$datos['start']=$_REQUEST['start'];
|
||||||
@ -31,7 +32,7 @@ if(!isset($_REQUEST['formato'])) {
|
|||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
echo json($datos);
|
echo json($datos);
|
||||||
}else{
|
}else{
|
||||||
echo "$datos[pagina] ".consultar_contenido_formulario("$datos[id]","$datos[registros]","$datos[pagina]","$datos[formato]",'',"li");
|
echo "$datos[pagina] ".consultar_contenido_formulario("$datos[id]","$datos[registros]","$datos[pagina]","$datos[formato]",'',"");
|
||||||
}
|
}
|
||||||
//echo "hola /// $_REQUEST[id] // " ;
|
//echo "hola /// $_REQUEST[id] // " ;
|
||||||
|
|
||||||
|
@ -4427,8 +4427,8 @@ if (mysqli_num_rows($sql)!='0'){
|
|||||||
if($error_token != 1) {
|
if($error_token != 1) {
|
||||||
$url_pin =urlencode("$_SESSION[site]milfs/images/iconos/pin.png");
|
$url_pin =urlencode("$_SESSION[site]milfs/images/iconos/pin.png");
|
||||||
$miniatura = "
|
$miniatura = "
|
||||||
|
|
||||||
<img alt='$row[nombre]' class=' imagen_presentacion img-responsive img-rounded' style='width:100%' src='https://api.tiles.mapbox.com/v4/examples.map-zr0njcqy/url-".$url_pin."($lat,$lon,$zoom)/$lat,$lon,$zoom/600x200.png?access_token=$mapbox_token' >
|
<img alt='$row[nombre]' class=' lazy imagen_presentacion img-responsive img-rounded' style='width:100%' data-src='http://staticmap.openstreetmap.de/staticmap.php?center=$lon,$lat&zoom=$zoom&size=250x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >
|
||||||
<br>";
|
<br>";
|
||||||
/* $miniatura = "
|
/* $miniatura = "
|
||||||
|
|
||||||
@ -9104,7 +9104,7 @@ $imagen = remplacetas('form_datos','control',$row['control'],'contenido',"id_cam
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$indicadores .= "<div><img class='lazy' height='50px' width='100px' data-lazy='$_SESSION[url]images/secure/?file=150/$imagen[0]' src='' ></div>";
|
$indicadores .= "<div><img class='lazy' height='50px' width='100px' data-src='$_SESSION[url]images/secure/?file=150/$imagen[0]' src='' ></div>";
|
||||||
$titulo = remplacetas('form_datos','id',$identificador,'contenido',"") ;
|
$titulo = remplacetas('form_datos','id',$identificador,'contenido',"") ;
|
||||||
//$contenido .= "$contenido_desplegado ";
|
//$contenido .= "$contenido_desplegado ";
|
||||||
$ordenado = ($ordenado +1 );
|
$ordenado = ($ordenado +1 );
|
||||||
@ -10882,6 +10882,7 @@ if (mysqli_num_rows($sql)!='0'){
|
|||||||
$lat = $campos[0];
|
$lat = $campos[0];
|
||||||
$lon = $campos[1];
|
$lon = $campos[1];
|
||||||
$zoom = $campos[2];
|
$zoom = $campos[2];
|
||||||
|
if($zoom < 4) { $zoom = 8;}
|
||||||
@include("includes/datos.php");
|
@include("includes/datos.php");
|
||||||
$error_token ="";
|
$error_token ="";
|
||||||
if(!isset($mapbox_token)) { include("milfs/includes/datos.php"); if(!isset($mapbox_token)) {$error_token = 1; }}
|
if(!isset($mapbox_token)) { include("milfs/includes/datos.php"); if(!isset($mapbox_token)) {$error_token = 1; }}
|
||||||
@ -10889,7 +10890,7 @@ if (mysqli_num_rows($sql)!='0'){
|
|||||||
$url_pin = urlencode("$_SESSION[site]milfs/images/iconos/pin.png");
|
$url_pin = urlencode("$_SESSION[site]milfs/images/iconos/pin.png");
|
||||||
$contenido = "
|
$contenido = "
|
||||||
|
|
||||||
<img class=' img img-round img-responsive' style='width:100%' src='https://api.tiles.mapbox.com/v4/examples.map-zr0njcqy/url-".$url_pin."($lat,$lon,$zoom)/$lat,$lon,$zoom/600x150.png?access_token=$mapbox_token' >
|
<img class='lazy img img-round img-responsive' style='width:100%' src ='http://staticmap.openstreetmap.de/staticmap.php?center=$lon,$lat&zoom=$zoom&size=250x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >
|
||||||
<a target='mapa' href='https://www.openstreetmap.org/?mlat=$lon&mlon=$lat#map=$zoom/$lon/$lat&layers=C'>Ver mapa</a>
|
<a target='mapa' href='https://www.openstreetmap.org/?mlat=$lon&mlon=$lat#map=$zoom/$lon/$lat&layers=C'>Ver mapa</a>
|
||||||
"; }else{ $contenido ="<div class='alert alert-danger'>No se ha definido un token de mapbox</div>";}
|
"; }else{ $contenido ="<div class='alert alert-danger'>No se ha definido un token de mapbox</div>";}
|
||||||
}
|
}
|
||||||
@ -11586,7 +11587,7 @@ if(!isset($_REQUEST['print'])) { $src ="data-src";}else{ $src =" print src"; }
|
|||||||
$url_pin =urlencode("$_SESSION[site]milfs/images/iconos/pin.png");
|
$url_pin =urlencode("$_SESSION[site]milfs/images/iconos/pin.png");
|
||||||
$contenido = "
|
$contenido = "
|
||||||
<!-- <img class='img-round' src='https://dev.openstreetmap.de/staticmap/staticmap.php?center=$lon,$lat&zoom=$zoom&size=350x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' > -->
|
<!-- <img class='img-round' src='https://dev.openstreetmap.de/staticmap/staticmap.php?center=$lon,$lat&zoom=$zoom&size=350x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' > -->
|
||||||
<img class='img-round ' src='https://api.tiles.mapbox.com/v4/examples.map-zr0njcqy/url-".$url_pin."($lat,$lon,$zoom)/$lat,$lon,$zoom/350x100.png?access_token=$mapbox_token' >";
|
<img class='lazy img-round img img-responsive' data-src ='http://staticmap.openstreetmap.de/staticmap.php?center=$lon,$lat&zoom=$zoom&size=350x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >";
|
||||||
} else { $contenido ='';}
|
} else { $contenido ='';}
|
||||||
}
|
}
|
||||||
elseif($campo_tipo=='4'){ $contenido = "<a href='$contenido' target='_blank'>$contenido</a>";}
|
elseif($campo_tipo=='4'){ $contenido = "<a href='$contenido' target='_blank'>$contenido</a>";}
|
||||||
|
BIN
milfs/images/loading.gif
Normal file
BIN
milfs/images/loading.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 53 KiB |
Loading…
Reference in New Issue
Block a user