1
0
Fork 0

mejoras en visualizacion de imagenes y mapa

This commit is contained in:
humano 2018-11-03 19:02:04 -05:00
parent 5655473633
commit 3f9dd30dad
1 changed files with 17 additions and 10 deletions

View File

@ -4785,7 +4785,7 @@ $asunto= "Recibiste un mensaje en [$portal_sigla] ";
if($tipo =="simple") {
$menu ="
<div id='botones-social_$identificador' class='btn-group btn-group-justified botones_social interacciones_identificador' role='group' aria-label='botonera' >
<div id='botones-social_$identificador' class='btn-group botones_social interacciones_identificador' role='group' aria-label='botonera' >
<div id='Gusta_$identificador' onclick=\"xajax_interaccion_identificador('$identificador','Gusta','',''); \"class='btn btn-primary btn-xs' role='' title='Me gusta'>
<span class='badge' id='Gusta_cantidad_$identificador'>$cantidad_me_gusta</span> <span class='fa fa fa-thumbs-o-up' aria-hidden='true'></span><span class='hidden-xs'><br> Me gusta </span>
</div>
@ -5732,7 +5732,7 @@ $resultado ="";
$fecha = date("Y-m-d H:i:s", $row['timestamp']);
$aplicacion= remplacetas('form_id','id',"$row[form_id]","nombre","");
$aplicacion_descripcion= remplacetas('form_id','id',"$row[form_id]","descripcion","");
$resultado .= "<div class='respuesta'><legend class='formulario_respuesta_nombre'>$aplicacion[0]<span class='formulario_respuesta_nombre'>$aplicacion_descripcion[0]</span></legend> $respuesta</div><hr> ";
$resultado .= "<div class='respuesta'><legend class=' hidden formulario_respuesta_nombre'>$aplicacion[0] <span class='formulario_respuesta_nombre'>$aplicacion_descripcion[0]</span></legend> $respuesta</div><hr> ";
}
$resultado .="";
@ -6619,7 +6619,7 @@ if (mysqli_num_rows($sql)!='0'){
$url_pin =urlencode("$_SESSION[site]milfs/images/iconos/pin.png");
$miniatura = "
<img alt='$row[nombre]' class=' lazy imagen_presentacion img-responsive img-rounded' style='width:100%' data-src='https://staticmap.openstreetmap.co/staticmap.php?center=$lon,$lat&zoom=$zoom&size=250x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >
<img alt='$row[nombre]' class=' mapa_estatico lazy imagen_presentacion img-responsive img-rounded' style='' data-src='https://staticmap.openstreetmap.co/staticmap.php?center=$lon,$lat&zoom=$zoom&size=250x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >
<br>";
/* $miniatura = "
@ -13240,6 +13240,8 @@ $xajax->registerFunction("editar_campo");
function formulario_imprimir($id,$control,$tipo,$timestamp) {
$tiene_plantilla = remplacetas('form_parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'plantilla:$tipo'") ;
$tiene_plantilla = $tiene_plantilla[0];
$control_existe = remplacetas('form_datos','control',"$control",'id',"") ;
$contenido_full="";
@ -13368,7 +13370,8 @@ if (mysqli_num_rows($sql)!='0'){
$url_pin = urlencode("$_SESSION[site]milfs/images/iconos/pin.png");
$contenido = "
<img class='lazy img img-round img-responsive' style='width:100%' src ='https://staticmap.openstreetmap.co/staticmap.php?center=$lon,$lat&zoom=$zoom&size=250x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >
<img class=' mapa+estatico lazy img img-rounded img-responsive' style='' src ='https://staticmap.openstreetmap.co/staticmap.php?center=$lon,$lat&zoom=$zoom&size=600x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >
<a href='https://www.openstreetmap.org/?mlat=$lon&mlon=$lat#map=$zoom/$lon/$lat' target='mapa'>Ampliar mapa</a>
"; }else{ $contenido ="<div class='alert alert-danger'>No se ha definido un token de mapbox</div>";}
}
}
@ -13461,7 +13464,11 @@ $campo_imagen = buscar_campo_tipo($id,"15");
$campo_imagen = $campo_imagen[0];
////
if($row['id_campo'] == $campo_imagen AND $tipo !="" ){
if($tiene_plantilla ==''){
$contenido = "<img class='imagen_sin_plantilla img img-rounded img img-responsive' style='' src='$_SESSION[url]/images/secure/?file=600/$contenido'>";
}else{
$contenido = strip_tags($contenido)."";
}
//$contenido = "<img class='img img-responsive' style='' src='$_SESSION[url]/images/secure/?file=600/$contenido'>";
}
@ -13522,9 +13529,9 @@ if($contenido_original !="") {
<div id='contenedor_$row[id_campo]' class='container-fluid contenedor_campo text-left'>
<pdata-toc-skip class='campo_contenido' id='contenido_$row[id_campo]'>
<span type= '$campo_tipo' class='col-md-2 campo_titulo campo_nombre' id='nombre_$row[id_campo]'>$campo_nombre[0]:</span>
<h3 class=' col-md-10 '><b>$contenido</b>
<p class='contenido_item col-md-10 '><b>$contenido</b>
<span class=' pull-right'> $metadatos </span>
</h3>
</p>
</div>";
}
@ -14108,7 +14115,7 @@ if (mysqli_num_rows($sql)!='0'){
}else {
$size="150" ;
}
if($contenido !=""){$contenido = "<img class=' $lazy img img-responsive' $src='milfs/images/sinimagen_$size.jpg' $data_src='$_SESSION[site]milfs/images/secure/?file=$size/$contenido' style='max-height: $size"."px !important;' >"; }
if($contenido !=""){$contenido = "<img class=' $lazy img img-responsive img-rounded' $src='milfs/images/sinimagen_$size.jpg' $data_src='$_SESSION[site]milfs/images/secure/?file=$size/$contenido' style='max-height: $size"."px !important;' >"; }
else{$contenido=" ";}
}
elseif($campo_tipo=='14'){
@ -14122,8 +14129,8 @@ if (mysqli_num_rows($sql)!='0'){
//https://staticmap.openstreetmap.co/staticmap.php?center=40.714728,-73.998672&zoom=14&size=865x512&maptype=mapnik
$contenido = "
<img class='$lazy img-round img img-responsive' style='max-height: 100px !important;' $src='milfs/images/sinimagen_150.jpg' $data_src='https://staticmap.openstreetmap.co/staticmap.php?center=$lon,$lat&zoom=$zoom&size=250x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >
";
<img class='mapa_estatico mapa_estatico_planilla $lazy img-rounded img img-responsive' style='max-height: 100px !important;' $src='milfs/images/sinimagen_150.jpg' $data_src='https://staticmap.openstreetmap.co/staticmap.php?center=$lon,$lat&zoom=$zoom&size=250x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >
<a class='link_mapa' href='https://www.openstreetmap.org/?mlat=$lon&mlon=$lat#map=$zoom/$lon/$lat' target='mapa'>Ampliar mapa</a>";
} else { $contenido =' ';}
//return "vacio";
@ -14206,7 +14213,7 @@ if (mysqli_num_rows($sql)!='0'){
$zoom = $campos[2];
// @require("includes/datos.php");
$contenido = "
<img style='height:100px;' class='lazy img-rounded img ' data-src ='https://staticmap.openstreetmap.co/staticmap.php?center=$lon,$lat&zoom=$zoom&size=350x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' src ='https://staticmap.openstreetmap.co/staticmap.php?center=$lon,$lat&zoom=$zoom&size=350x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >";
<img style='height:100px;' class='mapa_estatico lazy img-rounded img ' data-src ='https://staticmap.openstreetmap.co/staticmap.php?center=$lon,$lat&zoom=$zoom&size=350x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' src ='https://staticmap.openstreetmap.co/staticmap.php?center=$lon,$lat&zoom=$zoom&size=350x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >";
} else { $contenido ='';}
}
elseif($campo_tipo=='4'){ $contenido = "<a href='$contenido' target='_blank'>$contenido</a>";}