mejoras en mapero

This commit is contained in:
humano 2019-08-08 07:48:53 -05:00
parent 9305996832
commit 2acb7c56e7
11 changed files with 266 additions and 4580 deletions

965
chami.php
View File

@ -1,965 +0,0 @@
<?php session_start();
//ini_set('display_errors', 'On');
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
require ('milfs/xajax/xajax.inc.php');
//$xajax = new xajax();
$xajax = new xajax("");
//$xajax = new xajax("https://tupale.co/index.php");
require ("milfs/funciones/conex.php");
require ('milfs/funciones/funciones.php');
include ('milfs/addon/funciones.php');
require ("milfs/includes/markdown.php");
require ("milfs/includes/parametrizacion.php");
require ("milfs/includes/simple_html_dom.php");
$xajax->processRequests(); ?>
<!DOCTYPE html>
<html lang="en">
<head >
<meta http-equiv="Cache-control" content="public">
<meta charset="ISO-8859-1">
<meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Chrome, Firefox OS y Opera -->
<?php
$embebido =0;
$acceso = 0;
$onload="";
$menu_lateral="";
$id_empresa="";
$link_empresa="";
$razon_social="";
$opciones="";
$background_imagen = "";
$titulo = array();
$sigla = "";
$slogan[] = "";
$uri_set = "";
$uri = "";
$set = "";
$descripcion_meta ="";
$identificador = "";
if(isset($_REQUEST['v'])) {
$variable = $_REQUEST['v'];
}else { $variable="";}
$cols_interior ="12";
$menu="";
$orden="";
$cantidad_registros ="10";
/// e = EMPRESA *
/// s= SET DE DATOS *
/// S= SET DE DATOS EMBEBIDO
/// i= IDENTIFICADOR *
/// I= IDENTIFICADOR EMBEBIDO*
/// d= IDENTIFICADOR EDITABLE *
/// f= FORMULARIO *
/// g=FORMULARIO EMBEBIDO *
/// h=ADDON *
/// j=ADDON EMBEBIDO *
/// a= Aplicacion
/// p= Aplicacion
$destacados = mas_visto("ultimos","6","6");
$aleatorios = mas_visto("aleatorios","6","6");
//if (isset($_GET['v'])) {$variable = $_GET['v'];}else {$variable = "";}
if (isset($_REQUEST['empresa'])) {$variable = "e".$_REQUEST['empresa'];}
elseif (isset($_REQUEST['form']) AND isset($_REQUEST['embebido']) ) {$variable = "g".$_REQUEST['form'];}
elseif (isset($_REQUEST['identificador']) AND $_REQUEST['t'] =='edit' ) {$variable = "d".$_REQUEST['identificador'];}
elseif (isset($_REQUEST['addon']) AND isset($_REQUEST['embebido']) ) {$variable = "j".$_REQUEST['addon'];}
elseif (isset($_REQUEST['set'])) {$variable = "s".$_REQUEST['set'];}
elseif (isset($_REQUEST['identificador'])) {$variable = "i".$_REQUEST['identificador'];}
elseif (isset($_REQUEST['form'])) {$variable = "f".$_REQUEST['form'];}
elseif (isset($_REQUEST['addon'])) {$variable = "h".$_REQUEST['addon'];}
else {}
//$variable="b43";
//$variable="b115";
if(isset($_REQUEST['variable'])){
$variable= $_REQUEST['variable'];
}
/*
if($variable =='' AND isset($_SESSION['id_empresa'])) {
$variable ="e$_SESSION[id_empresa]";
}else { $variable =""; }
*/
//$variable="e50";
//$variable="a74";
if ($variable !=''){
$v = decodifica_parametro($variable);
if($v[0] =='e') {
/// e = EMPRESA
$id_empresa = $v[1];
$id =$id_empresa;
$logo = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
$titulo = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
$descripcion = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
//$background_imagen = buscar_imagen('',"","","$id_empresa");
$background_imagen = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
$background_imagen = $background_imagen[0];
$uri_set = "";
$acceso = 1;
$menu ="
<div class='col-sm-2 hidden-xs hidden-sm'>
<div class='container'>
<nav style=' max-height:95% !important ; overflow:auto !important; ' id='toc' data-spy='affix' data-toggle='toc'></nav>
</div>
</div>";
$cols_interior ="10";
}
elseif($v[0] =='b') {
/// s= SET DE DATOS
$set =$v[1];
$empresa = remplacetas('form_id','id',"$set",'id_empresa',"") ;
$logo = @remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
$id_empresa = $empresa[0];
//$titulo = remplacetas('form_id','id',"$set",'nombre',"") ;
//$descripcion = remplacetas('form_id','id',"$set",'descripcion',"") ;
$titulo = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
$descripcion = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
$background_imagen = buscar_imagen("$set","","","$id_empresa");
$uri_set = "";
$cantidad_registros="";
$orden="ASC";
$menu ="
<div class='col-sm-2 hidden-xs hidden-sm'>
<div class='container'>
<nav style=' max-height:95% !important ; overflow:auto !important; ' id='toc' data-spy='affix' data-toggle='toc'></nav>
</div>
</div>";
$cols_interior ="10";
//$onload = landingpage_contenido_formulario($set);
$publico = remplacetas('form_id','id',"$set",'publico',"") ;
if($publico[0] =='1') {$acceso = 1;}
}
elseif($v[0] =='s') {
/// s= SET DE DATOS
$set =$v[1];
$empresa = remplacetas('form_id','id',"$set",'id_empresa',"") ;
$logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
$id_empresa = $empresa[0];
$titulo = remplacetas('form_id','id',"$set",'nombre',"") ;
$descripcion = remplacetas('form_id','id',"$set",'descripcion',"") ;
$background_imagen = buscar_imagen("$set","","","$id_empresa");
$uri_set = "";
//$onload = landingpage_contenido_formulario($set);
$publico = remplacetas('form_id','id',"$set",'publico',"") ;
if($publico[0] =='1') {$acceso = 1;}
}
elseif($v[0] =='S') {
$set =$v[1];
/// s= SET DE DATOS
$embebido = "1";
$onload = "".consultar_contenido_formulario("$set",'5','','embebido','')."";
}
elseif($v[0] =='I') {
$identificador =$v[1];
if(strlen($identificador) > 32) {
$identificador_original= $identificador;
$key = substr($identificador, 32, $length = 40);
$identificador = substr($identificador, 0, $length = 32);
} else {$identificador_original = $identificador;}
$primer = formulario_uso("","$identificador",'primer') ;
$id_form="$primer[3]";
$embebido = "1";
//$onload = mostrar_identificador("$identificador","$id_form","landingpage",'simple');
$onload = landingpage_contenido_identificador("$identificador_original","$id_form","landingpage",'simple');
}
elseif($v[0] =='p') {
$identificador =$v[1];
if(strlen($identificador) > 32) {
$identificador_original= $identificador;
$key = substr($identificador, 32, $length = 40);
$identificador = substr($identificador, 0, $length = 32);
} else {$identificador_original = $identificador;}
$primer = formulario_uso("","$identificador",'primer') ;
$id_form="$primer[3]";
$embebido = "1";
//$onload = mostrar_identificador("$identificador","$id_form","landingpage",'simple');
$onload = landingpage_contenido_identificador("$identificador_original","$id_form","remplazo",'simple');
}
elseif($v[0] =='i') {
/// i= IDENTIFICADOR
$identificador =$v[1];
if(strlen($identificador) > 32) {
$identificador_original= $identificador;
$key = substr($identificador, 32, $length = 40);
$identificador = substr($identificador, 0, $length = 32);
} else {$identificador_original = $identificador;}
$primer = formulario_uso("","$identificador",'primer') ;
$id_form="$primer[3]";
//$form = remplacetas('form_datos','control',$identificador,'form_id',"") ;
$empresa = remplacetas('form_id','id',$id_form,'id_empresa',"") ;
$logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
$id_empresa = $empresa[0];
$id = $empresa[0];
$embebido = "0";
//$impresion = mostrar_identificador("$identificador","$id_form[0]","landingpage",'simple');
$impresion = landingpage_contenido_identificador("$identificador_original","$id_form","landingpage",'simple');
$razon_social = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
$impresion = strip_tags($impresion);
$descripcion_meta = $impresion;
$titulo = remplacetas('form_id','id',$id_form,'nombre',"") ;
$descripcion = remplacetas('form_id','id',$id_form,'descripcion',"") ;
$background_imagen = buscar_imagen("$id_form",$identificador,"","");
$uri_set = "<a class='' href='s$id_form'>$titulo[0]</a>";
$publico = remplacetas('form_id','id',$id_form,'publico',"") ;
//if($publico[0] =='1') {$acceso = 1;}
$acceso = 1;
}
elseif($v[0] =='d') {
/// d= IDENTIFICADOR EDITABLE
$identificador =$v[1];
// $form =$v[1];
//$embebido = "1";
//$onload = formulario_embebido_ajax($form[0],'$identificador','edit');
$form = remplacetas('form_datos','control',$identificador,'form_id',"") ;
$empresa = remplacetas('form_id','id',$form['0'],'id_empresa',"") ;
$id_empresa = $empresa[0];
$id = $empresa[0];
$impresion = mostrar_identificador("$identificador","","landingpage",'');
$impresion = strip_tags($impresion);
$descripcion_meta = $impresion;
$titulo = remplacetas('form_id','id',$form['0'],'nombre',"") ;
$background_imagen = buscar_imagen("$form[0]",$identificador,"","");
$uri_set = "<a class='' href='s$form[0]'>$titulo[0]</a>";
$publico = remplacetas('form_id','id',$form[0],'publico',"") ;
if($publico[0] =='1') {$acceso = 1;}
$t = "edit";
$embebido = "1";
$onload = formulario_embebido_ajax($form[0],"$identificador",'edit');
// $onload =" <script type=\"text/javascript\">xajax_formulario_embebido_ajax($form[0],'$identificador','edit')</script>";
}
elseif($v[0] =='f') {
/// f= FORMULARIO
$form =$v[1];
$onload =" <script type=\"text/javascript\">xajax_formulario_embebido_ajax('$form','','nuevo')</script>";
}
elseif($v[0] =='a') {
$form =$v[1];
/// a=Aplicacion
$geo = buscar_campo_tipo($form,"14");
$embebido = "1";
$empresa = remplacetas('form_id','id',$form,'id_empresa',"") ;
$razon_social_portal = remplacetas('empresa','id',"1",'razon_social','') ;
$id_empresa = $empresa[0];
$registros = consultar_contenido_formulario("$form",'5','','embebido','');
$formulario = formulario_embebido($form,$opciones);
$titulo = remplacetas('form_id','id',$form,'nombre',"") ;
$razon_social = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
$slogan = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
$web = remplacetas('empresa','id',"$id_empresa",'web','');
$logo = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
if($geo[0] != "") {
$mapa = "
<div class='text-center'>
<iframe src='https://$web[0]/milfs/map.php?id=$form' width='80%' height='600px;' ></iframe>
</div>";
}else {$mapa = "";}
$aplicacion = "
<div class='container center-block' style='word-wrap: break-word; '>
<div class='text-center'><a href='https://$web[0]'><i class='fa fa-home'></i> $razon_social_portal[0]</a> / <a href='https://$web[0]/e$id_empresa'>$razon_social[0]</a> $slogan[0]</div>
$formulario
<br>
$registros
$mapa
<span>Powered by <a href='https://github.com/humano/milfs' target='milfs'>MILFS</a></span>
<div class='container' style='background-color:white' >
<h2><img src= 'https://qwerty.co/qr/?d=https://$web[0]/a$form'>Comparte nuestra aplicación</h2>
<p>Descarga una aplicación para leer este código
<a href='https://play.google.com/store/search?q=qr%20code%20reader&hl=es_419'><i class='fa fa-android'></i></a>
<a href='https://itunes.apple.com/us/app/qr-reader-for-iphone/id368494609?mt=8'><i class='fa fa-apple'></i></a>
</p>
</div>";
$onload = "$aplicacion";
}
elseif($v[0] =='g') {
/// g=FORMULARIO EMBEBIDO
$form =$v[1];
$embebido = "1";
$onload = formulario_embebido($form,$opciones);
}
elseif($v[0] =='h') {
/// h=ADDON
$addon =$v[1];
$onload = include("milfs/addon/$addon/$addon".".php");
}
elseif($v[0] =='j') {
/// j=ADDON EMBEBIDO
$addon =$v[1];
$embebido = "1";
$onload = include("milfs/addon/$addon/$addon".".php");
}
else{
}
$video = remplacetas('form_parametrizacion','campo',"presentacion",'descripcion'," tabla='empresa' and opcion = 'video' and id_empresa = '$id_empresa'") ;
if($video[0] !="") { $video ="<iframe type='text/html' width='640' height='385' src='https://www.youtube.com/embed/$video[0]' frameborder='0'></iframe>"; }
else {$video ="";}
$logo = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
$direccion = remplacetas('empresa','id',"$id_empresa",'direccion','') ;
$telefono = remplacetas('empresa','id',"$id_empresa",'telefono','') ;
$email = remplacetas('empresa','id',"$id_empresa",'email','') ;
$facebook = remplacetas('empresa','id',"$id_empresa",'facebook','') ;
$twitter = remplacetas('empresa','id',"$id_empresa",'twitter','') ;
$razon_social = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
$slogan = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
$sigla = remplacetas('empresa','id',"$id_empresa",'sigla','') ;
$link_empresa = "e$id_empresa";
}else {
/*
if(isset($_SESSION['id_empresa'])) {
$id_empresa ="$_SESSION[id_empresa]";
}else { $id_empresa =""; }
*/
$id_empresa="";
$id="";
$logo = remplacetas('empresa','id',"1",'imagen','') ;
$background_imagen = remplacetas('empresa','id',"1",'imagen','') ;
$background_imagen = $background_imagen[0];
//$titulo[0] ="Tupale.co";
$titulo = remplacetas('empresa','id',"1",'razon_social','') ;
$slogan = remplacetas('empresa','id',"1",'slogan','') ;
//$descripcion[0] ="Los datos no hacen la felicidad, pero pueden medirla";
$descripcion = remplacetas('empresa','id',"1",'slogan','') ;
$twitter[0] ="tupaleco";
$facebook[0] ="https://www.facebook.com/Qwerty-co-146226688795185";
$video ="<div class='text-center'>
<!-- <iframe src='https://player.vimeo.com/video/3514904?color=ffffff&title=0&byline=0&portrait=0' width='640' height='281' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> -->
</div>
";
}
$css_adicional = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'adicional' and id_empresa = '$id_empresa'") ;
if($css_adicional[0] !="") {
$css_adicional ="<style >
$css_adicional[0]
</style>";
}
else {
$css_adicional ="<style ></style>";
}
$uri = trim($_SESSION['site'], '/').$_SERVER['REQUEST_URI'];
?>
<meta NAME="Language" CONTENT="Spanish">
<meta NAME="Revisit" CONTENT="1 days">
<meta NAME="Distribution" CONTENT="Global">
<meta NAME="Robots" CONTENT="All">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="<?php echo $twitter[0]; ?>">
<meta name="twitter:creator" content="@qwerty_co">
<meta name="twitter:url" content="<?php echo $uri ; ?>">
<meta name="twitter:title" content="<?php echo $titulo[0]; ?>">
<meta name="twitter:description" content=" <?php echo $descripcion_meta; ?>">
<meta name="twitter:image" content="<?php echo "$_SESSION[url]images/secure/?file=full/$background_imagen"; ?>">
<meta property="og:type" content="article">
<meta property="og:title" content="<?php echo $titulo[0]; ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo "$uri"; ?>" />
<meta property="og:image" content="<?php echo "$_SESSION[url]images/secure/?file=full/$background_imagen"; ?>" />
<meta property="og:site_name" content="<?php echo $razon_social[0]; ?>" />
<meta property="og:description" content=" <?php echo $descripcion_meta; ?>" />
<link rel="shortcut icon" href="<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>">
<meta name='viewport' content='width=device-width'>
<meta name='mobile-web-app-capable' content='yes'>
<link rel='icon' sizes='192x192' href='<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>'>
<link rel="apple-touch-icon-precomposed" href="<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>">
<title><?php echo @$titulo[0]; ?> <?php echo strip_tags($slogan[0]); ?> Tupale.co </title>
<?php $xajax->printJavascript("milfs/xajax/");
//$xajax->debugOn();
$xajax->statusMessagesOn();
;?>
<style>
<!-- ESTILOS PRIORITARIOS -->
.modal-dialog {
width: 95% !important;
height: auto;
padding: 0;
}
.modal-lg {
width: 95% !important;
height: auto;
padding: 0;
}
.modal-content {
height: auto;
}
.modal-body {
max-height: calc(100vh - 100px);
overflow-y: auto;
}
fieldset.fieldset-borde {
border: 2px solid #EDEDED !important;
border-radius:3px;
padding: 0 1.4em 1.4em 1.4em !important;
margin: 0 0 1.5em 0 !important;
-webkit-box-shadow: 0px 0px 0px 0px #000;
box-shadow: 0px 0px 0px 0px #000;
}
legend.legend-area {
font-size: 1.2em !important;
font-weight: bold !important;
text-align: left !important;
width:auto;
padding:0 10px;
border-bottom:none;
}
</style>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha256-k2/8zcNbxVIh5mnQ52A0r3a6jAgMGxFJFE2707UxGCk= sha512-ZV9KawG2Legkwp3nAlxLIVFudTauWuBpC10uEafMHYL0Sarrz5A7G79kXh5+5+woxQ5HM559XX2UZjMJ36Wplg==" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<?php
$css = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'bootstrap' and id_empresa = '$id_empresa'") ;
if($css[0] !="") {
$css ="
<!-- incluir tema bootstrap parametrizado -->
<link rel='stylesheet' href='$css[0]?".time()."' >";
$tema="";
}
else {
$tema= "magazine";
$css ='
<!-- incluir tema bootstrap por defecto -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css?'.time().'" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous" >';
}
echo " <!-- tema $tema --> ";
if($tema=="") {
$barra="
<nav style='' class='navbar navbar-inverse navbar-fixed-top topnav' role='navigation'>
<div style='padding:10px; ' class='container topnav '>
<ul style=' ' class='nav navbar-nav navbar-center'>
<li class='dropdown' >
<a style=' ' href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-haspopup='true' aria-expanded='false'><i class='fa fa-bars'></i> $portal_sigla</a>
<ul class='dropdown-menu' style='background-color: white; width:500px;' >
<li><a class='' href='$portal_url'><i class='fa fa-home'></i> Portal</a></li>
<li><a class='' href='$link_empresa'>$sigla[0] Inicio</a></li>
<li><a href='milfs/'>Administrador</a></li>
<li role='separator' class='divider'></li>
".aplicaciones_listado("$id_empresa",'','nav','')."
</ul>
</li>
</ul>
</div>
</nav>
";
?> <?php echo $css; ?>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" integrity="sha512-K1qjQ+NcF2TYO/eI3M6v8EiNYZfA95pQumfvcVrTHtwQVDG+aHRqLi/ETn2uB+1JqwYqVG3LIvdm9lj6imS/pQ==" crossorigin="anonymous"></script>
<style>
.navbar .navbar-nav {
display: inline-block;
float: none;
}
.navbar .navbar-collapse {
text-align: center;
height: 30px;
margin-top: -13px;
}
.navbar-nav > li > a, .navbar-brand {
padding-top:0px !important; padding-bottom:0 !important;
height: 30px;
margin-top: -13px;
}
.navbar {min-height:30px !important;}
.navbar-nav > li > a, .navbar-brand {
padding-top:0px !important; padding-bottom:0 !important;
height: 30px;
margin-top: -13px;
color:black !important;
}
.topnav {
width: 100px !important;
display: inline;
height: 30px;
padding-top:-10px !important;
padding-bottom:0 !important;
height:30px;
background:none;
border:0px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
/*width:80px; background: none; border:0px; -webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
*/
</style>
<style>
.fh5co-post-entry article h2{
font-size: 28px; !important;
}
#fh5co-offcanvas .fh5co-bio img{
border-radius: 10px !important;
}
fieldset.fieldset-borde {
border: 2px solid #EDEDED !important;
border-radius:3px;
padding: 0 1.4em 1.4em 1.4em !important;
margin: 0 0 1.5em 0 !important;
-webkit-box-shadow: 0px 0px 0px 0px #000;
box-shadow: 0px 0px 0px 0px #000;
}
legend.legend-area {
font-size: 1.2em !important;
font-weight: bold !important;
text-align: left !important;
width:auto;
padding:0 10px;
border-bottom:none;
}
</style>
<?php
}
else {
echo "
<meta name='theme-color' content='#DF0101'/>
<!-- Windows Phone -->
<meta name='msapplication-navbutton-color' content='#DF0101'/>
<!-- iOS Safari -->
<meta name='apple-mobile-web-app-capable' content='yes'/>
<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent'/>
";
include("temas/$tema/cabecera");
include("temas/$tema/pie");
$barra="
<ul >
<li><a class='' href='$portal_url'><i class='fa fa-home'></i> Portal</a></li>
<li><a class='' href='$link_empresa'>".@$sigla[0]." Inicio</a></li>
<li><a href='milfs/'>Administrador</a></li>
<li role='separator' class='divider'></li>
".aplicaciones_listado("$id_empresa",'','nav','')."
</ul>
";
$menu_lateral = "
<div id='fh5co-offcanvas'>
<a href='#' class='fh5co-close-offcanvas js-fh5co-close-offcanvas'><span><i class='icon-cross3'></i> <span>Close</span></span></a>
<div class='fh5co-bio'>
<figure>
<img src='milfs/images/secure/?file=full/$logo[0]' alt='Free HTML5 Bootstrap Template' class='img-responsive'>
</figure>
<h3 data-toc-skip >LO QUE SOMOS</h3>
<h2 data-toc-skip >".@$razon_social[0]." </h2>
<h3 >".@$titulo[0]."</h3>
<p>".@$descripcion[0]." </p>
<ul class='fh5co-social'>
<li><a href='https://twitter.com/$twitter[0]'><i class='icon-twitter'></i></a></li>
<li><a href='https://www.facebook.com/$facebook[0]'><i class='icon-facebook'></i></a></li>
</ul>
</div>
<div class='fh5co-menu'>
<div class='fh5co-box'>
$barra
</div>
<!-- <div class='fh5co-box'>
<h3 class='heading'>Search</h3>
<form action='#'>
<div class='form-group'>
<input type='text' class='form-control' placeholder='Type a keyword'>
</div>
</form>
</div> -->
</div>
</div>
";
}
?>
<!-- include codemirror (codemirror.css, codemirror.js, xml.js, formatting.js) -->
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.css">
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/theme/monokai.css">
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/mode/xml/xml.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/codemirror/2.36.0/formatting.js"></script>
<!-- wysiwyg -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.1/summernote.js"></script>
<!-- include summernote css/js-->
<link href="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.1/summernote.css" rel="stylesheet">
<!-- add after bootstrap.min.js -->
<script src="milfs/js/scripts.js"></script>
<link rel="stylesheet" href="https://cdn.rawgit.com/afeld/bootstrap-toc/v0.3.0/dist/bootstrap-toc.min.css">
<script src="https://cdn.rawgit.com/afeld/bootstrap-toc/v0.3.0/dist/bootstrap-toc.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/4.0.1/ekko-lightbox.min.js"></script>
<?php echo $css_adicional; ?>
<script type="text/javascript">
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = " /* <br /><br />Gracias por compartir, por favor citanos así:<br/><a href='"+document.location.href+"'>"+document.location.href+"<br /><b>https://tupale.co</b> */";
var copytext = selection + pagelink;
var newdiv = document.createElement('div');
newdiv.style.position='absolute';
newdiv.style.left='-99999px';
body_element.appendChild(newdiv);
newdiv.innerHTML = copytext;
selection.selectAllChildren(newdiv);
window.setTimeout(function() {
body_element.removeChild(newdiv);
},0);
}
document.oncopy = addLink;
</script>
</head>
<body data-spy="scroll" data-target="#toc">
<!-- <div class="text-center">
<a href="frida.php?redirect" >
<img class='center-block img img-responsive' src='https://tupale.co/milfs/images/frida.gif'>
</a>
<a href="frida.php" ><small class="center-block" >¿ Necesitas ayuda para apoyarnos ?</small></a>
</div> -->
<?php
//echo "<h1>$identificador</h1>";
if($tema=="") {
echo $barra ;
}else{
echo " " ;
}
if(isset($_SESSION['id'])) {$id_empresa_portada='1'; echo panel_aplicaciones('1',"$_SESSION[id_empresa]",""); }
if( $embebido =="1" ){ /* SI SE SOLICITA UN EMBEBIDO SE MUESTRA ESTO */
echo $onload;
if(isset($set)) {
}
?>
<!-- </div> -->
<!-- Modal -->
<div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
<div class='modal-dialog modal-lg' >
<div class='modal-content'>
<div class='modal-header' >
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'><i class='fa fa-times-circle'></i></button>
<h4 class='modal-title' id='myModalLabel_info'><div id='titulo_modal'></div></h4>
</div>
<div class='modal-body'>
<div id='muestra_form'>
</div>
</div>
<div class='modal-footer' id='pie_modal'>
</div>
</div>
</div>
</div>
<!-- Modal -->
</body>
</html>
<?php //echo $barra ?>
<!-- fin embebido -->
<?php
}
else{ /* SI NO SE SOLICITA UN EMBEBIDO SE CONTINUA CON EL FLUJO DEL HTML */
?>
<div class='container-fluid'>
<div class="col-sm-<?php echo $cols_interior; ?>">
<?php echo $menu_lateral ; ?>
<!-- END #fh5co-offcanvas -->
<header id="fh5co-header">
<div class="container-fluid">
<div class="row">
<div class='pull-right'>
<a href="#" class="js-fh5co-nav-toggle fh5co-nav-toggle"><i></i></a>
<ul class="fh5co-social list-inline intro-social-buttons ">
<li><a href="https://twitter.com/<?php echo $twitter[0]; ?>"><i class="fa fa-twitter"></i></a></li>
<li><a href="<?php echo $facebook[0]; ?>"><i class="fa fa-facebook"></i></a></li>
<li><?php echo milfs_session("$login_formulario","$login_campo_usuario","$login_campo_password","boton",""); ?></li>
</ul>
</div>
<div class="col-lg-12 col-md-12 ">
<div class="row">
<div class="col-md-12">
<div id='formulario_login' class='' ></div>
<img class='center-block img img-responsive' style="" src="milfs/images/secure/?file=full/<?php echo $logo[0]; ?>">
</div>
<div class="col-md-12 text-center">
<h1 id="fh5co-logo" data-toc-skip ><a href="./"><?php echo $titulo[0]; ?></a></h1>
<p><?php echo "$slogan[0] "; ?></p>
</div>
<div class="col-md-12 text-center">
<?php
if(isset($_REQUEST['asistento'])) {
echo asistente_aplicaciones("",'','','');
}else {
echo "<a href='?asistento' class='btn btn-success'>Quiero crear una campaña </a>";
}
?>
</div>
<!-- <div class="text-center">
<a href="frida.php?redirect" >
<img class='center-block img img-responsive' src='https://tupale.co/milfs/images/frida.gif'>
</a>
<a href="frida.php" ><small class="center-block" >¿ Necesitas ayuda para apoyarnos ?</small></a>
</div> -->
<div class="col-md-12">
<div class='center-block'>
<?php
if($id_empresa=="") {
echo identificador_resaltado("1","");
//echo milfs_session("$login_formulario","$login_campo_usuario","$login_campo_password","","");
echo social_login("","","") ;
}else {echo identificador_resaltado($id_empresa,"landingpage");} ?>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
<div class="row fh5co-post-entry">
<?php
if($id_empresa=="") {
echo mas_visto("aleatorios","4","");
echo "<div class='clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block'></div>";
echo mas_visto("ultimos","4","");
echo "<div class='clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block'></div>";
echo mas_visto("identificador","4","");
echo "<div class='clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block'></div>";
echo mas_visto("formulario","4","");
}
?>
<?php
if($acceso ==1) {
if($set != "") {
echo " ".consultar_contenido_formulario("$set",$cantidad_registros,'','contenido',"$orden","");
}
elseif($identificador !="") {
//echo landingpage_contenido_identificador($identificador);
echo "".landingpage_contenido_identificador("$identificador_original","$id_form","landingpage",'simple') ;
}
else{
if($id_empresa =="") {
//echo multiempresa_listado('','')."Hola mundo";
}
else {
//echo landingpage_contenido($id_empresa);
echo landingpage_contenido($id_empresa);
}
}
}else{ echo multiempresa_listado('',''); }
?>
</div>
<div class='container-fluid'><?php //echo $aleatorios ?> </div>
<footer id="fh5co-footer">
<small>
<p class="">Tupale.co funciona gracias a <a href='https://QWERTY.co/milfs'>&copy; MILFS Un proyecto de https://QWERTY.co</a> Se distribuye bajo licencia GPL V3
<a href="milfs/?psi" ><i class="fa fa-smile-o "></i> Políticas de privacidad y protección de datos.</a></p>
</small>
</footer>
</div>
<?php echo $menu; ?>
</div>
<div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
<div class='modal-dialog modal-lg' >
<div class='modal-content'>
<div class='modal-header' >
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'><i class='fa fa-times-circle'></i></button>
<h4 class='modal-title' id='myModalLabel_info'><div id='titulo_modal'></div></h4>
</div>
<div class='modal-body'>
<div id='muestra_form'>
</div>
</div>
<div class='modal-footer' id='pie_modal'>
</div>
</div>
</div>
</div>
<!-- Modal -->
<!-- Footer -->
<?php echo $onload; ?>
<?php } ?>
<script type="text/javascript">
$(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) {
event.preventDefault();
$(this).ekkoLightbox();
});
//// wysiwyg
var edit = function() {
$('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true});
};
var save = function() {
var makrup = $('.wysiwyg').summernote('code');
$('.wysiwyg').summernote('destroy');
};
$(document).ready(function() {
$('.wysiwyg_auto').summernote({dialogsInBody: true});
});
</script>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.tupale.co/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 1]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//stats.tupale.co/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -1,301 +0,0 @@
<?php session_start();
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
require ('milfs/xajax/xajax.inc.php');
$xajax = new xajax();
//require ('json.lab.php');
require ('milfs/funciones/funciones.php');
require ("milfs/funciones/conex.php");
include ('milfs/librerias/parsedown/Parsedown.php');
//require_once ('includes/markdown.php');
//require ('funciones/convert.php');
$xajax->processRequests();
//if($_REQUEST[id2] =='') {$agregar= $_REQUEST[id];}else {$agregar = $_REQUEST[id2];}
if(isset($_REQUEST['categoria']) AND isset($_REQUEST['buscar'])) {
$cadena_busqueda = "$_REQUEST[buscar]";
$_REQUEST['buscar'] = "$_REQUEST[categoria]:$_REQUEST[buscar]";
}
$formulario_nombre = remplacetas('form_id','id',$_REQUEST[id],'nombre',"","") ;
$formulario_descripcion = remplacetas('form_id','id',$_REQUEST[id],'descripcion',"","") ;
$descripcion_meta = preg_replace("[\n|\r|\n\r|\t]",'', strip_tags($formulario_descripcion[0]));
$agregar_nombre = remplacetas('form_id','id',$agregar,'nombre',"","") ;
$id_empresa = remplacetas('form_id','id',$_REQUEST[id],'id_empresa',"","") ;
$twitter = remplacetas('empresa','id',"$id_empresa[0]",'twitter','',"","") ;
if($twitter[0] =="") {$twitter[0] ="@tupaleCo";}
$logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','',"","") ;
$razon_social = remplacetas('empresa','id',"$id_empresa[0]",'razon_social','',"","") ;
$campos_formulario = input_campos("$_REQUEST[id]","categoria");
$uri = "$_SERVER[SERVER_NAME]/$_SERVER[REQUEST_URI]";
$background_imagen = buscar_imagen("$_REQUEST[id]","","","$id_empresa");
$plantilla ="mapa";
$categorias = lista_categorias($_REQUEST['id'],'','mapa') ;
$buscador ="
<form action='?id='$_REQUEST[id]' method='get'>
<input type='hidden' id='id' name='id' value='$_REQUEST[id]' >
$campos_formulario'
<div id='div_campos'></div>
<input type='text' id='buscar' name='buscar' class='form-control ' placeholder='Buscar' >
<br>
<input type='submit' class='btn btn-info btn-block ' value='Buscar'>
</form>
<hr>
";
?>
<!DOCTYPE html>
<html lang="en">
<head >
<title><?php echo "$formulario_nombre[0] / $cadena_busqueda" ?> tupale.co</title>
<meta charset="utf-8">
<!-- <meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1"> -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
<meta name="description" content="">
<meta NAME="Language" CONTENT="Spanish">
<meta NAME="Revisit" CONTENT="1 days">
<meta NAME="Distribution" CONTENT="Global">
<meta NAME="Robots" CONTENT="All">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="<?php echo $twitter[0]; ?>">
<meta name="twitter:creator" content="@qwerty_co">
<meta name="twitter:url" content="<?php echo $uri ; ?>">
<meta name="twitter:title" content="<?php echo "$formulario_nombre[0] / $cadena_busqueda" ?> tupale.co">
<meta name="twitter:description" content=" <?php echo $descripcion_meta; ?>">
<meta name="twitter:image" content="<?php echo "$_SESSION[url]images/secure/?file=full/$background_imagen"; ?>">
<meta property="og:type" content="article">
<meta property="og:title" content="<?php echo "$formulario_nombre[0] / $cadena_busqueda" ?> tupale.co" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo "$uri"; ?>" />
<meta property="og:image" content="<?php echo "$_SESSION[url]images/secure/?file=full/$background_imagen"; ?>" />
<meta property="og:site_name" content="<?php echo $razon_social[0]; ?>" />
<meta property="og:description" content=" <?php echo $descripcion_meta; ?>" />
<link rel="shortcut icon" href="<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>">
<?php $xajax->printJavascript("milfs/xajax/"); ?>
<link rel="shortcut icon" href="favicon-152.png">
<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
<link rel="stylesheet" href="librerias/bootstrap/css/bootstrap.min.css" >
<link rel="stylesheet" href="librerias/leaflet/leaflet.css" />
<script src="librerias/leaflet/leaflet.js"></script>
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.css" />
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.Default.css" />
<script src="librerias/leaflet/dist/leaflet.markercluster-src.js"></script>
<script type="text/javascript" src="milfs/geojson.js.php?id=<?php echo $_REQUEST['id'] ?>&buscar=<?php echo $_REQUEST['buscar'] ?>&item=<?php echo $_REQUEST['item'] ?>"></script>
<?php
$otro_json = remplacetas('form_parametrizacion','campo',$_REQUEST[id],'descripcion'," tabla='form_id' and opcion = 'json'","","") ;;
//$obj = file_get_contents('https://www.kleper.net/wiki/RutaPazTerritorial.geojson');
$ids = json_decode($otro_json[0]);
foreach ($ids as $clave => $valor) {
if($valor !=""){
$obj=file_get_contents("$valor[0]");
$li .="<script>var geojsonAuxiliar_$clave = $obj ;</script>";
$layer .= "
var geojsonAux_$clave = L.geoJson(geojsonAuxiliar_$clave, {
pointToLayer: function(feature, latlng) {
var smallIcon = new L.Icon({
iconSize: [100, 100],
iconAnchor: [13, 27],
popupAnchor: [1, -24],
/*iconUrl: feature.properties.icon.iconUrl*/
iconUrl: 'https://tupale.co/milfs/images/secure/?file=150/da6d16547658ebc06c5378b30d1ee4bf.png'
});
return L.marker(latlng, {icon: smallIcon});
},
onEachFeature: function(feature, layer) {
var popupText = feature.properties.description
layer.bindPopup(popupText); }
});
";
$add_layer .= "markers.addLayer(geojsonAux_$clave);";
$capas_nombre .="geojsonAux_$clave,";
$capas .= "{
'$clave': geojsonAux_$clave
};";
$overlays ="
var overlays = $capas ";
}
}
echo $li;
?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="librerias/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="librerias/leaflet/css/leaflet-sidebar.css" />
<link rel="stylesheet" href="librerias/bootstrap/css/bootstrap.min.css" >
<style>
body {
padding: 0;
margin: 0;
}
html, body, #map {
height: 100%;
}
</style>
</head>
<body>
<!-- optionally define the sidebar content via HTML markup -->
<div id="sidebar" class="leaflet-sidebar collapsed">
<!-- nav tabs -->
<div class="leaflet-sidebar-tabs">
<!-- top aligned tabs -->
<ul role="tablist">
<li><a href="#home" role="tab"><i class="fa fa-bars active"></i></a></li>
<li><a href="#search" role="tab"><i class="fa fa-search active"></i></a></li>
</ul>
<!-- bottom aligned tabs -->
<ul role="tablist">
<li><a href="https://tupale.co"><img title='Powered by Tupale.co' alt='http://tupale.co' class='img img-responsive' src='https://tupale.co/images/icons/icon-152x152.png'></a></li>
</ul>
</div>
<!-- panel content -->
<div class="leaflet-sidebar-content">
<div class="leaflet-sidebar-pane" id="home">
<h1 class="leaflet-sidebar-header">
<span id='formulario_titulo_mapa'><?php echo $formulario_nombre[0] ?></span>
<span class="leaflet-sidebar-close"><i class="fa fa-caret-left"></i></span>
</h1>
<hr>
<label id='formulario_descripcion_mapa'><?php echo $formulario_descripcion[0] ?></label>
<hr>
<?php echo $categorias; ?>
</div>
<div class="leaflet-sidebar-pane" id="search">
<label>Buscar en el Mapa</label>
<?php echo $buscador; ?>
</div>
</div>
</div>
<div id="map"></div>
<script src="librerias/leaflet/leaflet.js" crossorigin=""></script>
<script src="librerias/leaflet/js/leaflet-sidebar.js"></script>
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.css" />
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.Default.css" />
<script src="librerias/leaflet/dist/leaflet.markercluster-src.js"></script>
<script src="librerias/jquery/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="milfs/geojson.js.php?id=<?php echo $_REQUEST['id'] ?>&buscar=<?php echo $_REQUEST['buscar'] ?>&item=<?php echo $_REQUEST['item'] ?>"></script>
<script>
// standard leaflet map setup
var map = L.map('map');
// map.setView([51.2, 7], 9);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: "Map data &copy; OpenStreetMap contributors <a href='https://tupale.co'>Powered by Tupale.co</a>"
}).addTo(map);
var geojson = L.geoJson(geojsonSample, {
pointToLayer: function(feature, latlng) {
var smallIcon = new L.Icon({
iconSize: [50, 50],
iconAnchor: [13, 27],
popupAnchor: [1, -24],
autoPanPadding: [30,30],
iconUrl: feature.properties.icon.iconUrl
/* iconUrl: "http://localhost/default/tupali/milfs/images/secure/?file=150/da6d16547658ebc06c5378b30d1ee4bf.png"*/
});
return L.marker(latlng, {icon: smallIcon });
},
onEachFeature: function(feature, layer) {
layer._leaflet_id = feature.properties.control;
var popupText = feature.properties.description
layer.bindPopup(popupText)
layer.bindTooltip(feature.properties.title).openTooltip();
}
}).addTo(map);
<?php echo $layer; ?>
// markers.addLayer(geojsonAux);
var markers = L.markerClusterGroup();
markers.addLayer(geojson).addTo(map);
<?php echo $add_layer; ?>
map.fitBounds(geojson.getBounds().pad(Math.sqrt(2) /4));
// create the sidebar instance and add it to the map
var sidebar = L.control.sidebar({ container: 'sidebar', autopan: true })
.addTo(map)
.open('home');
// add panels dynamically to the sidebar
sidebar
// add a tab with a click callback, initially disabled
/* .addPanel({
id: 'mail',
tab: '<i class="fa fa-envelope"></i>',
title: 'Messages',
button: function() { alert('opened via JS callback') },
disabled: true,
})*/
// be notified when a panel is opened
sidebar.on('content', function (ev) {
switch (ev.id) {
case 'autopan':
sidebar.options.autopan = true;
break;
default:
sidebar.options.autopan = true;
}
});
var userid = 0
function addUser() {
sidebar.addPanel({
id: 'user' + userid++,
tab: '<i class="fa fa-user"></i>',
title: 'User Profile ' + userid,
pane: '<p>user ipsum dolor sit amet</p>',
});
}
</script>
</body>
</html>

View File

@ -1,35 +0,0 @@
<html>
<head>
</head>
<body style='color:red; font-family: Verdana'>
<div style='width:800px; margin: 0 auto;'>
<h1 style='text-align:center;'>
<br>Desde Tupale.co
<br>hemos apoyado tus causas
<br>ahora queremos acceder a una subvención del
<br>Programa Frida
<br>y necesitamos tu apoyo
</h1>
<p>
Solo debes ingresar al <a href="http://bit.ly/tupalefrida">aquí</a> acceder con tu cuenta de facebook y dar click en el botón [APOYAR] también agradecemos si dejas un comentario.
</p>
<a href="http://bit.ly/tupalefrida">
<div style="text-align:center;" >
<img style=' ' src="https://tupale.co/milfs/images/frida_ingresa.png" alt="">
</div>
</a>
<h3>
Si tienes problemas con el proceso te dejamos unos vídeos a continuación.
</h3>
<h2>Desde tu teléfono apóyanos así</h2>
<iframe width="560" height="315" src="https://www.youtube.com/embed/vOAQFZpYSC0" frameborder="0" allowfullscreen></iframe>
<h2>Desde tu PC apóyanos así</h2>
<iframe width="560" height="315" src="https://www.youtube.com/embed/H7kBqu94-kI" frameborder="0" allowfullscreen></iframe>
</div>
</body>
</html>
<?php
?>

113
geojson_prueba.json Normal file
View File

@ -0,0 +1,113 @@
let geojsonSample = [
{
"type": "FeatureCollection",
"features": [{"type":"Feature","geometry":{
"type": "Point",
"coordinates": [
-72,
4
]
},"properties":{
"title": "Espacio Akana",
"3263": "Espacio Akana",
"3268": "Espacio Cultural dedicado a la formaci\u0026oacute;n, creaci\u0026oacute;n y difusi\u0026oacute;n de distintos materiales esc\u0026eacute;nicos principalmente de car\u0026aacute;cter regional.\u003Cbr\u003E\u003Cbr\u003ECentro Cultural Akana se ha consagrado como una de las instituciones referentes de la regi\u0026oacute;n de Tarapac\u0026aacute;, Chile, ya que en \u0026eacute;l se realizan aproximadamente un 50% o m\u0026aacute;s de las actividades art\u0026iacute;stica locales.\u003Cbr\u003E\u003Cbr\u003EEl proyecto parte el a\u0026ntilde;o 2010 y hoy es un lugar que cuenta con 2 espacios: Una sala de Teatro y un patio multiuso. Ambos lugares funcionan como espacios de exhibici\u0026oacute;n y\/o ejecuci\u0026oacute;n como por ejemplo: Ciclos de Teatro, Talleres Art\u0026iacute;sticos, charlas, seminarios, Ciclos de m\u0026uacute;sica etc. \u003Cbr\u003E\u003Cbr\u003EEl Centro Cultural cuenta con 3 ejes de acci\u0026oacute;n: Formaci\u0026oacute;n, Programaci\u0026oacute;n y Creaci\u0026oacute;n y Producci\u0026oacute;n, ademas de participar en diferentes proyectos asociativos con distintos artistas regionales de Teatro, Cine, M\u0026uacute;sica y Danza.",
"3279": "Ram\u0026iacute;rez 1265",
"3265": "Iquique",
"category": "Chile",
"icon": {
"iconUrl": "https:\/\/tupale.co\/milfs\/images\/secure\/?file=300\/82afc44d9c358234ebb411f848481ea4.png",
"iconSize": [
60
]
},
"3266": "Chile",
"3264": "-72 4 15",
"3267": "Mixto",
"3278": "{\\\u00223278\\\u0022:[[\\\u0022Danza\\\u0022,\\\u0022Teatro\\\u0022,\\\u0022Música\\\u0022,\\\u0022Cine\\\u0022,\\\u0022Formación\\\u0022]]}",
"3283": null,
"3284": "Espacio abierto para presenciar obras de teatro, m\u0026uacute;sica, conversatorios, exposiciones, etc. y para colaborar con artistas locales, nacionales o extranjeros.",
"3277": "Desierto Esc\u0026eacute;nico en Abril",
"3285": null,
"3286": null,
"3287": null,
"3288": null,
"3269": "A porcentaje",
"3289": "c040a424412bbb3ce598c503bcdf49b7.jpg",
"3305": "www.espacioakana.cl",
"3290": "https:\/\/www.youtube.com\/user\/akanateatro",
"3291": "www.facebook.com\/espacioakana",
"3292": "instagram.com\/espacioakana",
"3293": "Eduardo Gonz\u0026aacute;lez",
"3295": "Javiera Ayala",
"3294": null,
"3296": null,
"3298": "Director Espacio Akana",
"3299": "Recepci\u0026oacute;n Espacio Akana",
"3272": "culturaakana@gmail.com",
"3297": "direccionakana@gmail.com",
"localizacion": "-72 4 15 ",
"control": "69c90579b5cbccc80b09df24057ff82b",
latLng: [
-72,
4
],
"id": 1176066448,
"name": 616010607,
"description": "\u003Cdiv class=\u0027col-md-12 well well-sm\u0027\u003E\n \u003Cdiv class=\u0027panel-heading\u0027\u003E\n \u003Ccenter\u003E\u003Ch1 class=\u0027text-info\u0027\u003EEspacio Akana\u003C\/h1\u003E\u003C\/center\u003E\n \u003C\/div\u003E\n \u003Cdiv\u003E\n \u003Ccenter\u003E\u003Cimg class=\u0027img img-responsive img-rounded\u0027 src=\u0027https:\/\/tupale.co\/milfs\/images\/secure\/?file=300\/c040a424412bbb3ce598c503bcdf49b7.jpg\u0027 \/\u003E\u003C\/center\u003E\n \u003Cul class=\u0027list-group\u0027\u003E\n \u003Cli class=\u0027list-group-item\u0027\u003E\n\u003Cspan class=\u0027pull-right\u0027\u003E\u003Ca href=\u0027mailto:culturaakana@gmail.com\u0027\u003EEduardo González\u003C\/a\u003E\u003C\/span\u003E\n\u003Cstrong class=\u0027text-info\u0027\u003E Contacto\u003C\/strong\u003E\n\u003C\/li\u003E\n\u003Cli class=\u0027list-group-item\u0027\u003E\n\u003Cspan class=\u0027pull-right\u0027\u003E Ramírez 1265\u003C\/span\u003E\n\u003Cstrong class=\u0027text-info\u0027\u003EDirección\u003C\/strong\u003E\n\u003C\/li\u003E\n\u003Cli class=\u0027list-group-item\u0027\u003E\n\u003Cspan class=\u0027pull-right\u0027\u003E www.espacioakana.cl\u003C\/span\u003E\n\u003Cstrong class=\u0027text-info\u0027\u003ESitio web\u003C\/strong\u003E\n\u003C\/li\u003E\n \u003Ccenter\u003E\u003Ca class= \u0027btn btn-success\u0027 role=\u0027button\u0027 href=\u0027www.facebook.com\/espacioakana\u0027\u003E\u003Ci class=\u0027fa fa-facebook\u0027\u003E\u003C\/i\u003E Facebook\u003C\/a\u003E\n \u003Ca class= \u0027btn btn-success\u0027 role=\u0027button\u0027 href=\u0027instagram.com\/espacioakana\u0027\u003E\u003Ci class=\u0027fa fa-instagram\u0027\u003E\u003C\/i\u003E Instagram\u003C\/a\u003E \u003C\/center\u003E\n \u003C\/ul\u003E\n \u003C\/div\u003E\n\n\u003Cdiv well well-sm\u003E\n\u003Ccenter\u003E\u003Ca class= \u0027btn btn-info\u0027 role=\u0027button\u0027 href=\u0027https:\/\/tupale.co\/i69c90579b5cbccc80b09df24057ff82b\u0027 target=\u0027_blank\u0027\u003ELeer información completa\u003C\/a\u003E\u003C\/center\u003E\u003C\/div\u003E\n\u003C\/div\u003E \u003Cdiv class=\u0027text-center mostrar_solo\u0027\u003E\u003Ca class=\u0027btn btn-info btn-sm\u0027 href=\u0027?id=895\u0027\u003EMostrar todos\u003C\/a\u003E \u003Ca class=\u0027btn btn-info btn-sm\u0027 href=\u0027?id=895\u0026item=69c90579b5cbccc80b09df24057ff82b\u0027\u003EMostar solo este\u003C\/a\u003E\u003C\/div\u003E "
}},{"type":"Feature","geometry":{
"type": "Point",
"coordinates": [
-70.3976891,
-23.64939325
]
},"properties":{
"title": "Teatro Pedro de la Barra",
"3263": "Teatro Pedro de la Barra",
"3268": "El Teatro Pedro de la Barra de la Universidad de Antofagasta, se encuentra ubicado en pleno centro de la ciudad de Antofagasta. El edificio originalmente, una escuela de ni\u0026ntilde;as, data de fines del S. XIX., y en 1985 fue declarado Monumento Nacional. Desde 1981 fue adaptado como sala de teatro, donde funciona la cincuentenaria Compa\u0026ntilde;\u0026iacute;a de Teatro de la Universidad de Antofagasta. Actualmente se encuentra en desarrollo un proyecto de restauraci\u0026oacute;n y puesta en valor del edificio.",
"3279": "Condell 2954",
"3265": "Antofagasta",
"category": "Chile",
"icon": {
"iconUrl": "https:\/\/tupale.co\/milfs\/images\/secure\/?file=300\/82afc44d9c358234ebb411f848481ea4.png",
"iconSize": [
60
]
},
"3266": "Chile",
"3264": "-70.3976891 -23.64939325 16",
"3267": "Universitario (depende de la Universidad de Antofagasta)",
"3278": "{\\\u00223278\\\u0022:[[\\\u0022Danza\\\u0022,\\\u0022Teatro\\\u0022,\\\u0022Música\\\u0022,\\\u0022Cine\\\u0022]]}",
"3283": "Una variada gama de expresiones art\u0026iacute;stico-esc\u0026eacute;nicas, tanto locales como nacionales y extranjeras, adem\u0026aacute;s de exhibiciones.",
"3284": "- Disposici\u0026oacute;n sala: a la italiana\u003Cbr\u003E- Patio de butacas con 102 ubicaciones, separadas por un pasillo central de acceso. (Disposici\u0026oacute;n mostrada en plano siguiente, es la anterior al a\u0026ntilde;o 2000)\u003Cbr\u003E- 02 salidas de emergencia laterales, junto a la primera fila.\u003Cbr\u003E- Camar\u0026iacute;n mixto con 8 espejos para maquillaje.\u003Cbr\u003E- Ba\u0026ntilde;o artistas con ducha y agua caliente (en exterior).\u003Cbr\u003E",
"3277": "La actividad principal que se realiza cada a\u0026ntilde;o, son las temporadas de los montajes de la C\u0026iacute;a. de Teatro de la Universidad de Antofagasta. Elenco profesional de 56 a\u0026ntilde;os de trayectoria art\u0026iacute;stica que tiene a cargo el establecimiento teatral. Tambi\u0026eacute;n durante el mes de enero de cada a\u0026ntilde;o, apoya en la realizaci\u0026oacute;n del Festival Internacional de Teatro ZICOSUR Antofagasta (FITZA). Se imparten talleres de actuaci\u0026oacute;n para estudiantes de ense\u0026ntilde;anza secundaria y universitaria. Durante el a\u0026ntilde;o lectivo, se acoge a la Carrera de Artes Esc\u0026eacute;nicas de la U. de Antofagasta, facilitando las instalaciones para la realizaci\u0026oacute;n de clases y muestras de ex\u0026aacute;menes de algunas asignaturas.",
"3285": "- Altura: 04 metros\u003Cbr\u003E- Embocadura: 8,82 metros\u003Cbr\u003E- Fondo: 9,32 metros\u003Cbr\u003E- Altura escenario: 77 cms.\u003Cbr\u003E- Piso: De madera. Sin declive.\u003Cbr\u003E- 04 salidas laterales\u003Cbr\u003E- Ch\u0026aacute;sena\u003Cbr\u003E- 04 varas m\u0026oacute;viles para maniobras de tramoya\u003Cbr\u003E- Tel\u0026oacute;n de fondo: negro o blanco\u003Cbr\u003E- 10 varas fijas de iluminaci\u0026oacute;n\u003Cbr\u003E- Sala de control FOH en altura.\u003Cbr\u003E- Luz de sala con dimmer en sala de control o switch directo en foyer.\u003Cbr\u003E- Alimentaci\u0026oacute;n trif\u0026aacute;sica 380 volts\u003Cbr\u003E- 80 circuitos el\u0026eacute;ctricos para iluminaci\u0026oacute;n\u003Cbr\u003E- Patchera 24 salidas\/ 6 enchufes cada una\u003Cbr\u003E- 01 power Lite Puter DX 1227 20A 12 dimmers (4kW por canal)\u003Cbr\u003E*Existe otro power de mismas caracter\u0026iacute;sticas, pero cuenta con solo 8 canales dimmeables, el resto\u003Cbr\u003Eno funciona bien, si bien encienden, lo hacen al 100%, no permitiendo su atenuaci\u0026oacute;n de intensidad.\u003Cbr\u003E- 06 focos elipsoidales gen\u0026eacute;ricos 50o 750W\u003Cbr\u003E- 01 foco elipsoidal ETC Source 4 Jr. Zoom 25-50o- 02 focos elipsoidales 19o\u003Cbr\u003E- 10 focos PAR 64 NSP\u003Cbr\u003E- 09 focos PAR 56 NSP\u003Cbr\u003E- 03 Barras LED\u003Cbr\u003E- 01 consola Theatrelight Novalink 36 DMX-512 (instalada en sala de control)\u003Cbr\u003E- 01 consola AmericanPro 24\/48 DMX-512\u003Cbr\u003E- Sistema pasivo Panaray BOSE 502A (altavoces agudos y medios) BOSE 502B (altavoz bajos)\u003Cbr\u003E- BOSE 502C (controlador del sistema)\u003Cbr\u003E",
"3286": "c7660eae7c1aef1bdeb7733c7aec8b0a.pdf",
"3287": null,
"3288": null,
"3269": "Se manejan distintas opciones, considerando la naturaleza del espect\u0026aacute;culo. - Gratuito: Se presta apoyo para actividades con fondos concursables del Estado (Fondart, FNDR) - Arriendo: Existe la opci\u0026oacute;n de una suma fija o por porcentaje (60% - 40%)",
"3289": "aaf457e8838f80876e64135ba4a536fb.jpg",
"3305": "www.teatrouantof.com \/\/ www.uantof.cl\/vinculacion\/grupos_artisticos",
"3290": null,
"3291": "Teatro Pedro de la Barra. Antofagasta. Chile \/\/ Compa\u0026ntilde;\u0026iacute;a de Teatro de la Universidad de Antofagasta",
"3292": "@teatropedrodelabarraua",
"3293": "Ra\u0026uacute;l Rocco Rojas ",
"3295": "Claudio Ortiz Chiang",
"3294": 56995463194,
"3296": 56982303815,
"3298": "Encargado de Sala",
"3299": "Director",
"3272": "raul.rocco@uantof.cl",
"3297": "claudio.ortiz@uantof.cl",
"localizacion": "-70.3976891 -23.64939325 16 ",
"control": "7850c035cc53ee5719aa8677fb805ea7",
latLng: [
-70.3976891,
-23.64939325
],
"id": 909134586,
"name": 1568506445,
"description": "\u003Cdiv class=\u0027col-md-12 well well-sm\u0027\u003E\n \u003Cdiv class=\u0027panel-heading\u0027\u003E\n \u003Ccenter\u003E\u003Ch1 class=\u0027text-info\u0027\u003ETeatro Pedro de la Barra\u003C\/h1\u003E\u003C\/center\u003E\n \u003C\/div\u003E\n \u003Cdiv\u003E\n \u003Ccenter\u003E\u003Cimg class=\u0027img img-responsive img-rounded\u0027 src=\u0027https:\/\/tupale.co\/milfs\/images\/secure\/?file=300\/aaf457e8838f80876e64135ba4a536fb.jpg\u0027 \/\u003E\u003C\/center\u003E\n \u003Cul class=\u0027list-group\u0027\u003E\n \u003Cli class=\u0027list-group-item\u0027\u003E\n\u003Cspan class=\u0027pull-right\u0027\u003E\u003Ca href=\u0027mailto:raul.rocco@uantof.cl\u0027\u003ERaúl Rocco Rojas\u003C\/a\u003E\u003C\/span\u003E\n\u003Cstrong class=\u0027text-info\u0027\u003E Contacto\u003C\/strong\u003E\n\u003C\/li\u003E\n\u003Cli class=\u0027list-group-item\u0027\u003E\n\u003Cspan class=\u0027pull-right\u0027\u003E Condell 2954\u003C\/span\u003E\n\u003Cstrong class=\u0027text-info\u0027\u003EDirección\u003C\/strong\u003E\n\u003C\/li\u003E\n\u003Cli class=\u0027list-group-item\u0027\u003E\n\u003Cspan class=\u0027pull-right\u0027\u003E www.teatrouantof.com \/\/ www.uantof.cl\/vinculacion\/grupos_artisticos\u003C\/span\u003E\n\u003Cstrong class=\u0027text-info\u0027\u003ESitio web\u003C\/strong\u003E\n\u003C\/li\u003E\n \u003Ccenter\u003E\u003Ca class= \u0027btn btn-success\u0027 role=\u0027button\u0027 href=\u0027Teatro Pedro de la Barra. Antofagasta. Chile \/\/ Compañía de Teatro de la Universidad de Antofagasta\u0027\u003E\u003Ci class=\u0027fa fa-facebook\u0027\u003E\u003C\/i\u003E Facebook\u003C\/a\u003E\n \u003Ca class= \u0027btn btn-success\u0027 role=\u0027button\u0027 href=\u0027@teatropedrodelabarraua\u0027\u003E\u003Ci class=\u0027fa fa-instagram\u0027\u003E\u003C\/i\u003E Instagram\u003C\/a\u003E \u003C\/center\u003E\n \u003C\/ul\u003E\n \u003C\/div\u003E\n\n\u003Cdiv well well-sm\u003E\n\u003Ccenter\u003E\u003Ca class= \u0027btn btn-info\u0027 role=\u0027button\u0027 href=\u0027https:\/\/tupale.co\/i7850c035cc53ee5719aa8677fb805ea7\u0027 target=\u0027_blank\u0027\u003ELeer información completa\u003C\/a\u003E\u003C\/center\u003E\u003C\/div\u003E\n\u003C\/div\u003E \u003Cdiv class=\u0027text-center mostrar_solo\u0027\u003E\u003Ca class=\u0027btn btn-info btn-sm\u0027 href=\u0027?id=895\u0027\u003EMostrar todos\u003C\/a\u003E \u003Ca class=\u0027btn btn-info btn-sm\u0027 href=\u0027?id=895\u0026item=7850c035cc53ee5719aa8677fb805ea7\u0027\u003EMostar solo este\u003C\/a\u003E\u003C\/div\u003E "
}} ]}];

View File

@ -306,7 +306,9 @@ if ($variable !=''){
$set =$v[1];
/// s= SET DE DATOS
$embebido = "1";
if(isset($_REQUEST['print'])) { $print = "window.print()";}
if(isset($_REQUEST['print'])) {
//$print = "window.print()";
}
$onload = "".consultar_contenido_formulario("$set",'',"",'listado','',"$plantilla")." <script type=\"text/javascript\">$print</script> ";
}

File diff suppressed because it is too large Load Diff

View File

@ -10,10 +10,9 @@ include ('milfs/librerias/parsedown/Parsedown.php');
//require ('funciones/convert.php');
$xajax->processRequests();
//if($_REQUEST[id2] =='') {$agregar= $_REQUEST[id];}else {$agregar = $_REQUEST[id2];}
if(isset($_REQUEST[categoria]) AND isset($_REQUEST[buscar])) {
if(isset($_REQUEST['categoria']) AND isset($_REQUEST['buscar'])) {
$cadena_busqueda = "$_REQUEST[buscar]";
$_REQUEST['buscar'] = "$_REQUEST[categoria]:$_REQUEST[buscar]";
}
$formulario_nombre = remplacetas('form_id','id',$_REQUEST[id],'nombre',"","") ;
$formulario_descripcion = remplacetas('form_id','id',$_REQUEST[id],'descripcion',"","") ;
@ -28,7 +27,26 @@ $campos_formulario = input_campos("$_REQUEST[id]","categoria");
$uri = "$_SERVER[SERVER_NAME]/$_SERVER[REQUEST_URI]";
$background_imagen = buscar_imagen("$_REQUEST[id]","","","$id_empresa");
$plantilla ="mapa";
$categorias = lista_categorias($_REQUEST['id'],'','mapa') ;
$buscador ="
<form action='?id='$_REQUEST[id]' method='get'>
<input type='hidden' id='id' name='id' value='$_REQUEST[id]' >
$campos_formulario'
<div id='div_campos'></div>
<input type='text' id='buscar' name='buscar' class='form-control ' placeholder='Buscar' >
<br>
<input type='submit' class='btn btn-info btn-block ' value='Buscar'>
</form>
<hr>
";
?>
<!DOCTYPE html>
<html lang="en">
<head >
@ -60,22 +78,8 @@ $plantilla ="mapa";
<?php $xajax->printJavascript("milfs/xajax/"); ?>
<link rel="shortcut icon" href="favicon-152.png">
<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
<link rel="stylesheet" href="librerias/leaflet/leaflet-search.css"/>
<script src="librerias/leaflet/leaflet.js"></script>
<script src="librerias/jquery/jquery-2.1.4.min.js"></script>
<script src="librerias/leaflet/leaflet-providers.js"></script>
<script src="librerias/leaflet/leaflet-search.js"></script>
<link rel="stylesheet" href="librerias/bootstrap/css/bootstrap.min.css" >
<link rel="stylesheet" href="librerias/leaflet/leaflet.css" />
<script src="librerias/leaflet/leaflet.js"></script>
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.css" />
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.Default.css" />
<script src="librerias/leaflet/dist/leaflet.markercluster-src.js"></script>
<script type="text/javascript" src="milfs/geojson.js.php?id=<?php echo $_REQUEST['id'] ?>&buscar=<?php echo $_REQUEST['buscar'] ?>&item=<?php echo $_REQUEST['item'] ?>"></script>
<?php
<?php
$otro_json = remplacetas('form_parametrizacion','campo',$_REQUEST[id],'descripcion'," tabla='form_id' and opcion = 'json'","","") ;;
//$obj = file_get_contents('https://www.kleper.net/wiki/RutaPazTerritorial.geojson');
$ids = json_decode($otro_json[0]);
@ -122,295 +126,162 @@ $ids = json_decode($otro_json[0]);
echo $li;
?>
<style type="text/css">
@media (max-width: 800px) {
.panel-map{
max-width: 970px;
}
}
@media (min-width: 800px) {
.panel-map{
max-width: 200px;
}
}
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="librerias/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="librerias/leaflet/css/leaflet-sidebar.css" />
<link rel="stylesheet" href="librerias/bootstrap/css/bootstrap.min.css" >
<style>
body {
padding: 0;
margin: 0;
}
html, body, #map {
height: 100%;
}
.leaflet-popup-content { word-wrap: break-word !important; width:600px !important; }
#map { position:absolute; top:0; bottom:0; width:100%; }
/* Sticky footer styles
-------------------------------------------------- */
.footer {
position: absolute;
bottom: 3px;
width: 95%;
margin: 0 auto;
height: 120px;
/* Set the fixed height of the footer here */
z-index: 999999;
}
#div_leyenda {
padding: 2px;
background-color: white;
border-radius: 3px;
width: 90%;
overflow-x: scroll;
}
.modal-dialog {
width: 70%;
height: 50%;
padding: 0;
}
.modal-content {
height: 50%;
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
</style>
<?php
$categorias = lista_categorias($_REQUEST['id'],'','mapa') ;
$css_adicional = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'adicional' and id_empresa = '$id_empresa[0]'") ;
$fijar_barra = remplacetas('form_parametrizacion','campo',$_REQUEST['id'],'descripcion'," tabla='form_id' and opcion = 'fijar_barra'") ;
$mostrar_items = remplacetas('form_parametrizacion','campo',$_REQUEST['id'],'descripcion'," tabla='form_id' and opcion = 'mostrar_items'") ;
if( $fijar_barra[0] !='1'){ $sidebar='sidebar';} else{$sidebar='';}
if($css_adicional[0] !="") {
$css_adicional ="<style >
$css_adicional[0]
<!-- adicional -->
</style>";
}
else {
$css_adicional ="<style ><!-- nada --></style>";
}
echo $css_adicional; ?>
</style>
</head>
<body>
<!--nav sidebar -->
<aside>
<nav class="navbar navbar-inverse <?php echo $sidebar; ?> navbar-fixed-top" role="navigation">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href="librerias/leaflet/css/sidebar.css" rel="stylesheet">
<div class="nav-side-menu">
<div class="brand"><a href="./"><img style='width: 100%;' src='images/banner.png' class='image-responsive'></a><br> <i class="fa fa-info-circle fa-lg pull-right" style="margin-top: 10px; margin-right: 5px;"></i></div>
<i class="fa fa-bars fa-2x toggle-btn" data-toggle="collapse" data-target="#menu-content"></i>
<!-- optionally define the sidebar content via HTML markup -->
<div id="sidebar" class="leaflet-sidebar collapsed">
<!-- nav tabs -->
<div class="leaflet-sidebar-tabs">
<!-- top aligned tabs -->
<ul role="tablist">
<li><a href="#home" role="tab"><i class="fa fa-bars active"></i></a></li>
<li><a href="#search" role="tab"><i class="fa fa-search active"></i></a></li>
</ul>
<!-- bottom aligned tabs -->
<ul role="tablist">
<li><a href="https://tupale.co"><img title='Powered by Tupale.co' alt='http://tupale.co' class='img img-responsive' src='https://tupale.co/images/icons/icon-152x152.png'></a></li>
</ul>
</div>
<!-- panel content -->
<div class="leaflet-sidebar-content">
<div class="leaflet-sidebar-pane" id="home">
<h1 class="leaflet-sidebar-header">
<span id='formulario_titulo_mapa'><?php echo $formulario_nombre[0] ?></span>
<span class="leaflet-sidebar-close"><i class="fa fa-caret-left"></i></span>
</h1>
<hr>
<label id='formulario_descripcion_mapa'><?php echo $formulario_descripcion[0] ?></label>
<hr>
<?php echo $categorias; ?>
</div>
<div class="leaflet-sidebar-pane" id="search">
<label>Buscar en el Mapa</label>
<?php echo $buscador; ?>
</div>
<br>
<form action="?id=<?php echo $_REQUEST[id]; ?>" method="get">
<div class='input-group '>
<input type='hidden' id='id' name='id' value="<?php echo $_REQUEST[id]; ?>" >
<?php echo $campos_formulario; ?><div id='div_campos'></div>
<input type='text' id='buscar' name='buscar' class='form-control' placeholder='Buscar' >
</div>
</div>
<div id="map"></div>
<input type="submit" class="btn btn-info " value="Buscar">
<script src="librerias/leaflet/leaflet.js" crossorigin=""></script>
<script src="librerias/leaflet/leaflet-providers.js"></script>
<script src="librerias/leaflet/js/leaflet-sidebar.js"></script>
</div>
</form>
<hr>
<div class="menu-list">
<div style='width: calc(90% - 40px);;' class="container-fluid">
<h1><?php echo $formulario_nombre[0]; ?></h1>
<h2><?php echo $formulario_descripcion[0]; ?></h2>
<hr>
<h3>Categorías</h3>
<div style="height: 300px; overflow: auto;" >
<?php echo $categorias; ?>
</div>
<div class="sidebar-logo">
<a href="e<?php echo $id_empresa[0]; ?>" >
<img style='margin: 0px auto;' class='img img-responsive block-center' src="milfs/images/secure/?file=150/<?php echo $logo[0]; ?>" alt="<?php echo $razon_social[0]; ?>">
<h4><?php echo $razon_social[0]; ?></h4>
</a>
</div>
</div>
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.css" />
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.Default.css" />
<script src="librerias/leaflet/dist/leaflet.markercluster-src.js"></script>
<script src="librerias/jquery/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="milfs/geojson.js.php?id=<?php echo $_REQUEST['id'] ?>&buscar=<?php echo $_REQUEST['buscar'] ?>&item=<?php echo $_REQUEST['item'] ?>"></script>
</div>
</div>
</nav>
</aside>
<div id="map"></div>
<?php
if($categorias !="") {
$pie="
<div style='' class='' id='contenedor_pie' >
<div style='' class='container' >
<a href='#' onclick=\"xajax_limpia_div('contenedor_pie'); \"><span class='pull-right'><i class='fa fa-times'></i></span></a>
$categorias
</div></div>
</div>";
$leyenda ="<div id='div_leyenda'><a class='btn btn-default btn-xs' onclick=xajax_contenido_ocultar('div_leyenda');>Cerrar</a> $categorias </div> ";
}else{
}
//echo $pie;
?>
<script type="text/javascript">
function htmlbodyHeightUpdate(){
var height3 = $( window ).height()
var height1 = $('.nav').height()+50
height2 = $('.main').height()
if(height2 > height3){
$('html').height(Math.max(height1,height3,height2)+10);
$('body').height(Math.max(height1,height3,height2)+10);
}
else
{
$('html').height(Math.max(height1,height3,height2));
$('body').height(Math.max(height1,height3,height2));
}
}
$(document).ready(function () {
htmlbodyHeightUpdate()
$( window ).resize(function() {
htmlbodyHeightUpdate()
});
$( window ).scroll(function() {
height2 = $('.main').height()
htmlbodyHeightUpdate()
});
});
function htmlbodyHeightUpdate(){
var height3 = $( window ).height()
var height1 = $('.nav').height()+50
height2 = $('.main').height()
if(height2 > height3){
$('html').height(Math.max(height1,height3,height2)+10);
$('body').height(Math.max(height1,height3,height2)+10);
}
else
{
$('html').height(Math.max(height1,height3,height2));
$('body').height(Math.max(height1,height3,height2));
}
}
$(document).ready(function () {
htmlbodyHeightUpdate()
$( window ).resize(function() {
htmlbodyHeightUpdate()
});
$( window ).scroll(function() {
height2 = $('.main').height()
htmlbodyHeightUpdate()
});
});
var tiles = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom:19,
attribution: '<a href="https://tupale.co">https://tupale.co</a> &copy; <a href="https://openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}),
latlng = L.latLng(4, -74.9005222);
var map = L.map('map', {center: latlng, zoom: 5, layers: [tiles],zoomControl: false});
<script>
// standard leaflet map setup
var map = L.map('map');
// map.setView([51.2, 7], 9);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: "Map data &copy; OpenStreetMap contributors <a href='https://tupale.co'>Powered by Tupale.co</a>"
}).addTo(map);
var geojson = L.geoJson(geojsonSample, {
pointToLayer: function(feature, latlng) {
var smallIcon = new L.Icon({
iconSize: [100, 100],
iconSize: [50, 50],
iconAnchor: [13, 27],
popupAnchor: [1, -24],
autoPanPadding: [30,30],
iconUrl: feature.properties.icon.iconUrl
/* iconUrl: "http://localhost/default/tupali/milfs/images/secure/?file=150/da6d16547658ebc06c5378b30d1ee4bf.png"*/
});
return L.marker(latlng, {icon: smallIcon});
return L.marker(latlng, {icon: smallIcon });
},
onEachFeature: function(feature, layer) {
onEachFeature: function(feature, layer) {
layer._leaflet_id = feature.properties.control;
var popupText = feature.properties.description
layer.bindPopup(popupText); }
});
layer.bindPopup(popupText)
layer.bindTooltip(feature.properties.title).openTooltip();
}
});
<?php echo $layer; ?>
var markers = L.markerClusterGroup();
markers.addLayer(geojson);
// markers.addLayer(geojsonAux);
//var markers = L.markerClusterGroup();
var markers = L.layerGroup();
markers.addLayer(geojson).addTo(map);
<?php echo $add_layer; ?>
map.fitBounds(geojson.getBounds());
map.fitBounds(geojson.getBounds().pad(Math.sqrt(2) /4));
var legend = L.control({position: 'bottomright'});
//disable zoomControl when initializing map (which is topleft by default)
// create the sidebar instance and add it to the map
var sidebar = L.control.sidebar({ container: 'sidebar', autopan: true })
.addTo(map)
.open('home');
///L.control.layers(<?php echo $capas_nombre; ?>).addTo(map);
function openMarkerPopup(e){
const markerID = e.id;
const marker = markers.getLayer(markerID);
marker.openPopup();
}
// add panels dynamically to the sidebar
/* //add zoom control with your options
L.control.zoom({
position:'topright'
}).addTo(map);
*/
legend.onAdd = function (map) {
var div = L.DomUtil.create('div', 'info legend');
div.innerHTML = "";
div.id = "info legend"
return div;
};
legend.addTo(map);
sidebar.on('content', function (ev) {
switch (ev.id) {
case 'autopan':
sidebar.options.autopan = true;
break;
default:
sidebar.options.autopan = true;
}
});
map.addLayer(markers);
</script>
</script>
</body>
</html>

View File

@ -1,416 +0,0 @@
<?php session_start();
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
require ('milfs/xajax/xajax.inc.php');
$xajax = new xajax();
//require ('json.lab.php');
require ('milfs/funciones/funciones.php');
require ("milfs/funciones/conex.php");
//require_once ('includes/markdown.php');
//require ('funciones/convert.php');
$xajax->processRequests();
//if($_REQUEST[id2] =='') {$agregar= $_REQUEST[id];}else {$agregar = $_REQUEST[id2];}
if(isset($_REQUEST[categoria]) AND isset($_REQUEST[buscar])) {
$_REQUEST[buscar] = "$_REQUEST[categoria]:$_REQUEST[buscar]";
}
$formulario_nombre = remplacetas('form_id','id',$_REQUEST[id],'nombre') ;
$formulario_descripcion = remplacetas('form_id','id',$_REQUEST[id],'descripcion') ;
$agregar_nombre = remplacetas('form_id','id',$agregar,'nombre') ;
$id_empresa = remplacetas('form_id','id',$_REQUEST[id],'id_empresa') ;
$logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
$razon_social = remplacetas('empresa','id',"$id_empresa[0]",'razon_social','') ;
$campos_formulario = input_campos("$_REQUEST[id]","categoria");
$plantilla ="mapa";
?>
<!DOCTYPE html>
<html lang="en">
<head >
<title><?php echo $formulario_nombre[0] ?> MILFS</title>
<meta charset="utf-8">
<!-- <meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1"> -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
<meta name="description" content="">
<?php $xajax->printJavascript("milfs/xajax/"); ?>
<link rel="shortcut icon" href="favicon-152.png">
<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
<link rel="stylesheet" href="librerias/leaflet/leaflet-search.css"/>
<script src="librerias/leaflet/leaflet.js"></script>
<script src="librerias/jquery/jquery-2.1.4.min.js"></script>
<script src="librerias/leaflet/leaflet-providers.js"></script>
<script src="librerias/leaflet/leaflet-search.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="milfs/css/bootstrap.css">
<link rel="stylesheet" href="librerias/leaflet/leaflet.css" />
<script src="librerias/leaflet/leaflet.js"></script>
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.css" />
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.Default.css" />
<script src="librerias/leaflet/dist/leaflet.markercluster-src.js"></script>
<script type="text/javascript" src="milfs/geojson.js.php?id=<?php echo $_REQUEST['id'] ?>&buscar=<?php echo $_REQUEST['buscar'] ?>"></script>
<!-- <script type="text/javascript" src="http://localhost/default/tupali/milfs/geojson.js.php?id=358"></script> -->
<!-- <script type="text/javascript" src="tmp/ruta_paz_territorial.geojson"></script> -->
<?php
$otro_json = remplacetas('form_parametrizacion','campo',$_REQUEST[id],'descripcion'," tabla='form_id' and opcion = 'json'") ;;
//$obj = file_get_contents('https://www.kleper.net/wiki/RutaPazTerritorial.geojson');
$ids = json_decode($otro_json[0]);
foreach ($ids as $clave => $valor) {
if($valor !=""){
$obj=file_get_contents("$valor[0]");
$li .="<script>var geojsonAuxiliar_$clave = $obj ;</script>";
$layer .= "
var geojsonAux_$clave = L.geoJson(geojsonAuxiliar_$clave, {
pointToLayer: function(feature, latlng) {
var smallIcon = new L.Icon({
iconSize: [60, 60],
iconAnchor: [13, 27],
popupAnchor: [1, -24],
iconUrl: feature.properties.icon.iconUrl
/*iconUrl: 'https://tupale.co/milfs/images/secure/?file=150/da6d16547658ebc06c5378b30d1ee4bf.png'*/
});
return L.marker(latlng, {icon: smallIcon});
},
onEachFeature: function(feature, layer) {
var popupText = feature.properties.description
layer.bindPopup(popupText); }
});
";
$add_layer .= "markers.addLayer(geojsonAux_$clave);";
$capas_nombre .="geojsonAux_$clave,";
$capas .= "{
'$clave': geojsonAux_$clave
};";
$overlays ="
var overlays = $capas ";
}
}
//$obj=file_get_contents("$otro_json[0]");
//echo "<script>var geojsonAuxiliar = $obj ;</script>";
echo $li;
?>
<style type="text/css">
@media (max-width: 800px) {
.panel-map{
max-width: 970px;
}
}
@media (min-width: 800px) {
.panel-map{
max-width: 200px;
}
}
.leaflet-popup-content { word-wrap: break-word !important; /*width:600px !important; */ }
#map { position:absolute; top:0; bottom:0; width:100%; }
/* Sticky footer styles
-------------------------------------------------- */
.footer {
position: absolute;
bottom: 3px;
width: 95%;
margin: 0 auto;
height: 120px;
/* Set the fixed height of the footer here */
z-index: 999999;
}
#div_leyenda {
padding: 2px;
background-color: white;
border-radius: 3px;
width: 90%;
overflow-x: scroll;
}
.modal-dialog {
width: 70%;
height: 50%;
padding: 0;
}
.modal-content {
height: 50%;
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
</style>
<?php
$categorias = lista_categorias($_REQUEST['id'],'','') ;
$css_adicional = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'adicional' and id_empresa = '$id_empresa[0]'") ;
if($css_adicional[0] !="") {
$css_adicional ="<style >
$css_adicional[0]
<!-- adicional -->
</style>";
}
else {
$css_adicional ="<style ><!-- nada --></style>";
}
echo $css_adicional; ?>
</head>
<body>
<!--nav sidebar -->
<aside>
<nav class="navbar navbar-inverse sidebar navbar-fixed-top" role="navigation">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href="librerias/leaflet/css/sidebar.css" rel="stylesheet">
<div class="nav-side-menu">
<div class="brand"><a href="./"><img style='width: 100%;' src='images/banner.png' class='image-responsive'></a><br> <i class="fa fa-info-circle fa-lg pull-right" style="margin-top: 10px; margin-right: 5px;"></i></div>
<i class="fa fa-bars fa-2x toggle-btn" data-toggle="collapse" data-target="#menu-content"></i>
<br>
<form action="?id=<?php echo $_REQUEST[id]; ?>" method="get">
<div class='input-group '>
<input type='hidden' id='id' name='id' value="<?php echo $_REQUEST[id]; ?>" >
<?php echo $campos_formulario; ?><div id='div_campos'></div>
<input type='text' id='buscar' name='buscar' class='form-control' placeholder='Buscar' >
<input type="submit" class="btn btn-info " value="Buscar">
</div>
</form>
<hr>
<div class="menu-list">
<div style='width: calc(90% - 40px);;' class="container-fluid">
<h1><?php echo $formulario_nombre[0]; ?></h1>
<h2><?php echo $formulario_descripcion[0]; ?></h2>
<hr>
<h3>Categorías</h3>
<div style="height: 300px; overflow: auto;" >
<?php echo $categorias; ?>
</div>
<div class="sidebar-logo">
<a href="e<?php echo $id_empresa[0]; ?>" >
<img style='margin: 0px auto;' class='img img-responsive block-center' src="milfs/images/secure/?file=150/<?php echo $logo[0]; ?>" alt="<?php echo $razon_social[0]; ?>">
<h4><?php echo $razon_social[0]; ?></h4>
</a>
</div>
</div>
</div>
</div>
</nav>
</aside>
<div id="map"></div>
<?php
if($categorias !="") {
$pie="
<div style='' class='' id='contenedor_pie' >
<div style='' class='container' >
<a href='#' onclick=\"xajax_limpia_div('contenedor_pie'); \"><span class='pull-right'><i class='fa fa-times'></i></span></a>
$categorias
</div></div>
</div>";
$leyenda ="<div id='div_leyenda'><a class='btn btn-default btn-xs' onclick=xajax_contenido_ocultar('div_leyenda');>Cerrar</a> $categorias </div> ";
}else{
}
//echo $pie;
?>
<script type="text/javascript">
function htmlbodyHeightUpdate(){
var height3 = $( window ).height()
var height1 = $('.nav').height()+50
height2 = $('.main').height()
if(height2 > height3){
$('html').height(Math.max(height1,height3,height2)+10);
$('body').height(Math.max(height1,height3,height2)+10);
}
else
{
$('html').height(Math.max(height1,height3,height2));
$('body').height(Math.max(height1,height3,height2));
}
}
$(document).ready(function () {
htmlbodyHeightUpdate()
$( window ).resize(function() {
htmlbodyHeightUpdate()
});
$( window ).scroll(function() {
height2 = $('.main').height()
htmlbodyHeightUpdate()
});
});
function htmlbodyHeightUpdate(){
var height3 = $( window ).height()
var height1 = $('.nav').height()+50
height2 = $('.main').height()
if(height2 > height3){
$('html').height(Math.max(height1,height3,height2)+10);
$('body').height(Math.max(height1,height3,height2)+10);
}
else
{
$('html').height(Math.max(height1,height3,height2));
$('body').height(Math.max(height1,height3,height2));
}
}
$(document).ready(function () {
htmlbodyHeightUpdate()
$( window ).resize(function() {
htmlbodyHeightUpdate()
});
$( window ).scroll(function() {
height2 = $('.main').height()
htmlbodyHeightUpdate()
});
});
var tiles = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: '&copy; <a href="https://openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}),
latlng = L.latLng(4, -74.9005222);
var map = L.map('map', {center: latlng, zoom: 5, layers: [tiles],zoomControl: false});
var geojson = L.geoJson(geojsonSample, {
pointToLayer: function(feature, latlng) {
var smallIcon = new L.Icon({
iconSize: [60, 60],
iconAnchor: [13, 27],
popupAnchor: [1, -24],
iconUrl: feature.properties.icon.iconUrl
/* iconUrl: "http://localhost/default/tupali/milfs/images/secure/?file=150/da6d16547658ebc06c5378b30d1ee4bf.png"*/
});
return L.marker(latlng, {icon: smallIcon});
},
onEachFeature: function(feature, layer) {
var popupText = feature.properties.description
layer.bindPopup(popupText); }
});
/*
var geojsonAux = L.geoJson(geojsonAuxiliar, {
pointToLayer: function(feature, latlng) {
var smallIcon = new L.Icon({
iconSize: [60, 60],
iconAnchor: [13, 27],
popupAnchor: [1, -24],
iconUrl: "http://localhost/default/tupali/milfs/images/secure/?file=150/da6d16547658ebc06c5378b30d1ee4bf.png"
});
return L.marker(latlng, {icon: smallIcon});
},
onEachFeature: function(feature, layer) {
var popupText = feature.properties.description
layer.bindPopup(popupText); }
});
*/
<?php echo $layer; ?>
var markers = L.markerClusterGroup();
markers.addLayer(geojson);
// markers.addLayer(geojsonAux);
<?php echo $add_layer; ?>
map.fitBounds(geojson.getBounds());
var legend = L.control({position: 'bottomright'});
//disable zoomControl when initializing map (which is topleft by default)
///L.control.layers(<?php echo $capas_nombre; ?>).addTo(map);
/* //add zoom control with your options
L.control.zoom({
position:'topright'
}).addTo(map);
*/
legend.onAdd = function (map) {
var div = L.DomUtil.create('div', 'info legend');
div.innerHTML = "";
div.id = "info legend"
return div;
};
legend.addTo(map);
map.addLayer(markers);
</script>
</body>
</html>

2
milfs

@ -1 +1 @@
Subproject commit 5200902fd45a48600deecc8bbe2a4730310cd443
Subproject commit 7fa0c78fd578add255fcf6776c280516f9483ad1

View File

@ -1,343 +0,0 @@
<?php session_start();
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
require ('milfs/xajax/xajax.inc.php');
$xajax = new xajax();
//require ('json.lab.php');
require ('milfs/funciones/funciones.php');
require ("milfs/funciones/conex.php");
//require_once ('includes/markdown.php');
//require ('funciones/convert.php');
$xajax->processRequests();
//if($_REQUEST[id2] =='') {$agregar= $_REQUEST[id];}else {$agregar = $_REQUEST[id2];}
if(isset($_REQUEST[categoria]) AND isset($_REQUEST[buscar])) {
$_REQUEST[buscar] = "$_REQUEST[categoria]:$_REQUEST[buscar]";
}
$formulario_nombre = remplacetas('form_id','id',$_REQUEST[id],'nombre') ;
$formulario_descripcion = remplacetas('form_id','id',$_REQUEST[id],'descripcion') ;
$agregar_nombre = remplacetas('form_id','id',$agregar,'nombre') ;
$id_empresa = remplacetas('form_id','id',$_REQUEST[id],'id_empresa') ;
$logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
$razon_social = remplacetas('empresa','id',"$id_empresa[0]",'razon_social','') ;
$campos_formulario = input_campos("$_REQUEST[id]","categoria");
$plantilla ="mapa";
?>
<!DOCTYPE html>
<html lang="en">
<head >
<title><?php echo $formulario_nombre[0] ?> MILFS</title>
<meta charset="utf-8">
<!-- <meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1"> -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
<meta name="description" content="">
<?php $xajax->printJavascript("milfs/xajax/"); ?>
<link rel="shortcut icon" href="favicon-152.png">
<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
<link rel="stylesheet" href="librerias/leaflet/leaflet-search.css"/>
<script src="librerias/leaflet/leaflet.js"></script>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="librerias/leaflet/leaflet-providers.js"></script>
<script src="librerias/leaflet/leaflet-search.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="milfs/css/bootstrap.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js"></script>
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.css" />
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.Default.css" />
<script src="librerias/leaflet/dist/leaflet.markercluster-src.js"></script>
<script type="text/javascript" src="milfs/geojson.js.php?id=<?php echo $_REQUEST['id'] ?>&buscar=<?php echo $_REQUEST['buscar'] ?>"></script>
<style type="text/css">
@media (max-width: 800px) {
.panel-map{
max-width: 970px;
}
}
@media (min-width: 800px) {
.panel-map{
max-width: 200px;
}
}
.leaflet-popup-content { word-wrap: break-word !important; /*width:600px !important; */ }
#map { position:absolute; top:0; bottom:0; width:100%; }
/* Sticky footer styles
-------------------------------------------------- */
.footer {
position: absolute;
bottom: 3px;
width: 95%;
margin: 0 auto;
height: 120px;
/* Set the fixed height of the footer here */
z-index: 999999;
}
#div_leyenda {
padding: 2px;
background-color: white;
border-radius: 3px;
width: 90%;
overflow-x: scroll;
}
.modal-dialog {
width: 70%;
height: 50%;
padding: 0;
}
.modal-content {
height: 50%;
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
</style>
<?php
$categorias = lista_categorias($_REQUEST['id'],'','') ;
$css_adicional = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'adicional' and id_empresa = '$id_empresa[0]'") ;
if($css_adicional[0] !="") {
$css_adicional ="<style >
$css_adicional[0]
<!-- adicional -->
</style>";
}
else {
$css_adicional ="<style ><!-- nada --></style>";
}
echo $css_adicional; ?>
</head>
<body>
<!--nav sidebar -->
<aside>
<nav class="navbar navbar-inverse sidebar navbar-fixed-top" role="navigation">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href="librerias/leaflet/css/sidebar.css" rel="stylesheet">
<div class="nav-side-menu">
<div class="brand"><a href="./"><img style='width: 100%;' src='images/banner.png' class='image-responsive'></a><br> <i class="fa fa-info-circle fa-lg pull-right" style="margin-top: 10px; margin-right: 5px;"></i></div>
<i class="fa fa-bars fa-2x toggle-btn" data-toggle="collapse" data-target="#menu-content"></i>
<br>
<form action="?id=<?php echo $_REQUEST[id]; ?>" method="get">
<div class='input-group '>
<input type='hidden' id='id' name='id' value="<?php echo $_REQUEST[id]; ?>" >
<?php echo $campos_formulario; ?><div id='div_campos'></div>
<input type='text' id='buscar' name='buscar' class='form-control' placeholder='Buscar' >
<input type="submit" class="btn btn-info " value="Buscar">
</div>
</form>
<hr>
<div class="menu-list">
<div style='width: calc(90% - 40px);;' class="container-fluid">
<h1><?php echo $formulario_nombre[0]; ?></h1>
<h2><?php echo $formulario_descripcion[0]; ?></h2>
<hr>
<h3>Categorías</h3>
<div style="height: 300px; overflow: auto;" >
<?php echo $categorias; ?>
</div>
<div class="sidebar-logo">
<a href="e<?php echo $id_empresa[0]; ?>" >
<img style='margin: 0px auto;' class='img img-responsive block-center' src="milfs/images/secure/?file=150/<?php echo $logo[0]; ?>" alt="<?php echo $razon_social[0]; ?>">
<h4><?php echo $razon_social[0]; ?></h4>
</a>
</div>
</div>
</div>
</div>
</nav>
</aside>
<div id="map"></div>
<?php
if($categorias !="") {
$pie="
<div style='' class='' id='contenedor_pie' >
<div style='' class='container' >
<a href='#' onclick=\"xajax_limpia_div('contenedor_pie'); \"><span class='pull-right'><i class='fa fa-times'></i></span></a>
$categorias
</div></div>
</div>";
$leyenda ="<div id='div_leyenda'><a class='btn btn-default btn-xs' onclick=xajax_contenido_ocultar('div_leyenda');>Cerrar</a> $categorias </div> ";
}else{
}
//echo $pie;
?>
<script type="text/javascript">
function htmlbodyHeightUpdate(){
var height3 = $( window ).height()
var height1 = $('.nav').height()+50
height2 = $('.main').height()
if(height2 > height3){
$('html').height(Math.max(height1,height3,height2)+10);
$('body').height(Math.max(height1,height3,height2)+10);
}
else
{
$('html').height(Math.max(height1,height3,height2));
$('body').height(Math.max(height1,height3,height2));
}
}
$(document).ready(function () {
htmlbodyHeightUpdate()
$( window ).resize(function() {
htmlbodyHeightUpdate()
});
$( window ).scroll(function() {
height2 = $('.main').height()
htmlbodyHeightUpdate()
});
});
function htmlbodyHeightUpdate(){
var height3 = $( window ).height()
var height1 = $('.nav').height()+50
height2 = $('.main').height()
if(height2 > height3){
$('html').height(Math.max(height1,height3,height2)+10);
$('body').height(Math.max(height1,height3,height2)+10);
}
else
{
$('html').height(Math.max(height1,height3,height2));
$('body').height(Math.max(height1,height3,height2));
}
}
$(document).ready(function () {
htmlbodyHeightUpdate()
$( window ).resize(function() {
htmlbodyHeightUpdate()
});
$( window ).scroll(function() {
height2 = $('.main').height()
htmlbodyHeightUpdate()
});
});
var tiles = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}),
latlng = L.latLng(4, -74.9005222);
var map = L.map('map', {center: latlng, zoom: 5, layers: [tiles],zoomControl: false});
var geojson = L.geoJson(geojsonSample, {
pointToLayer: function(feature, latlng) {
var smallIcon = new L.Icon({
iconSize: [60, 60],
iconAnchor: [13, 27],
popupAnchor: [1, -24],
iconUrl: feature.properties.icon.iconUrl
});
return L.marker(latlng, {icon: smallIcon});
},
onEachFeature: function(feature, layer) {
var popupText = feature.properties.description
layer.bindPopup(popupText); }
});
var markers = L.markerClusterGroup();
markers.addLayer(geojson);
map.fitBounds(geojson.getBounds());
var legend = L.control({position: 'bottomright'});
//disable zoomControl when initializing map (which is topleft by default)
//add zoom control with your options
L.control.zoom({
position:'topright'
}).addTo(map);
legend.onAdd = function (map) {
var div = L.DomUtil.create('div', 'info legend');
div.innerHTML = "";
div.id = "info legend"
return div;
};
legend.addTo(map);
map.addLayer(markers);
</script>
</body>
</html>