Compare commits

...

154 Commits

Author SHA1 Message Date
humano 6b92090fc0 correcion bug en crear areas 2020-08-01 20:11:14 -05:00
humano 4ec768931a categorizacion de formularios 2020-06-26 14:38:22 -05:00
humano 87e4c4a0b4 filtro para control de versiones 2020-06-26 13:14:18 -05:00
humano 5d1ae839a8 listado 2020-06-26 11:21:50 -05:00
humano 8561f28a32 modo lista 2020-06-26 11:18:01 -05:00
humano acc8d873d3 gestion de procesos 2020-06-26 10:52:46 -05:00
humano 67cf402bd9 coreccion item parallax 2020-06-25 15:52:47 -05:00
humano 7020a67d66 item_parallax 2020-06-25 15:47:20 -05:00
humano 9f37954e5a contenedor_parallax 2020-06-25 15:44:13 -05:00
humano d7c4ebb612 contenedor parallax 2020-06-25 15:33:42 -05:00
humano 8b12f2d146 debug en plantilla 2020-05-29 12:49:26 -05:00
humano 6c4de5619b debug parallax 2020-05-29 12:35:24 -05:00
humano 4715d6d8d8 correcion bug en la visualizacion de usuarios 2020-05-29 11:29:11 -05:00
humano 16849503a4 bug en boton salir 2020-05-28 18:04:47 -05:00
humano 4a0f7d8ff4 bug en parametrizacion_linea 2020-05-28 17:57:57 -05:00
humano 06cc7f8271 debug en consulta 2020-05-28 17:37:52 -05:00
humano c44222c3cf limpieza gantt 2020-05-24 07:47:15 -05:00
humano 1c32752658 tildes en gantt 2020-05-23 15:55:03 -05:00
humano d3bc62fce2 diagrama de gantt 2020-05-23 15:46:13 -05:00
humano 3f489b76b8 funcion microtareas() 2020-05-21 15:32:08 -05:00
humano 13e4bbffa6 Mejoras en tablas 2020-05-20 19:06:54 -05:00
humano d6f9bcc0cb mejortas datatables 2020-05-20 18:49:26 -05:00
humano b31ac5df77 organizacion tareas 2020-05-20 15:54:02 -05:00
humano 492051659e organizacion listado 2020-05-20 12:47:29 -05:00
humano 474d969d88 Buscador en listado de items 2020-05-20 09:18:25 -05:00
humano 3fdf4b9961 estatus de tareas 2020-05-19 12:19:56 -05:00
humano ed33f53395 funcion cargar_identificador 2020-05-18 19:28:26 -05:00
humano b8521821d0 asignacion de microtareas 2020-05-16 19:08:35 -05:00
humano 3bcf149ea8 mejoras remplacetas devuelve id_campo 2020-05-16 14:48:38 -05:00
humano 4870cebf32 organizacion de avatares 2020-05-16 10:28:44 -05:00
humano 9bd6d3a06c soporte para tooltips avanzados 2020-05-16 06:10:44 -05:00
humano 8a13fc6683 correcion bug en edicion campo buscador 2020-05-15 18:36:41 -05:00
humano 6f0e8ad241 debug de importador 2020-05-14 15:02:17 -05:00
humano 17470eb41a limpieza de importador 2020-05-14 14:48:42 -05:00
humano 1721573c8e prueba de concepto mapero iconos 2020-05-13 14:31:36 -05:00
humano ec12802c47 enclosure en importador se establece la comilla 2020-05-12 18:54:45 -05:00
humano ff30e13ea5 limpieza de cadenas en importador 2020-05-12 18:48:30 -05:00
humano 2b8ff8965f prueba de concepto mapbox-gl 2020-05-12 11:43:38 -05:00
humano 6a30db9fc4 debug en categorias 2020-05-07 18:52:57 -05:00
humano a387cea202 debug en categorias 2020-05-07 18:44:17 -05:00
humano 553f3a5167 debug en categorias 2020-05-07 18:36:22 -05:00
humano 597a5ce6a1 link en campo mapa 2020-05-06 20:26:26 -05:00
humano 01df026a5b plantillas individuales para cada identificador 2020-05-04 11:44:25 -05:00
humano 856e5cf038 Merge branch 'master' of https://code.tupale.co/qwerty/milfs 2020-05-04 10:28:15 -05:00
humano 589a5f3922 bug en editar usuarios 2020-05-04 10:27:21 -05:00
kleper 6d032d4495 Merge pull request 'respuesta al issue en repo TupaleFrontEnd Mejorar responsive SM XS Crear campos modificaciones en milfs' (#42) from responsive into master 2020-04-30 17:02:35 -05:00
Hacky Purple 3ba85d859b respuesta al issue en FrontEnd Legibilidad Portal OpenData 2020-04-30 11:59:35 -05:00
Hacky Purple 9f813436bc respuesta al issue en repo TupaleFrontEnd Mejorar responsive SM XS Crear campos modificaciones en milfs 2020-04-29 17:01:28 -05:00
humano 307bc9bc88 optimizacion consultas basadas en vistas 2020-04-22 08:33:21 -05:00
humano ec812e6f85 orden en banner 2020-04-18 16:19:12 -05:00
humano dffdf68607 orden en banner 2020-04-18 16:17:43 -05:00
humano 4cfa6f9d6c pagina de pie 2020-04-18 15:22:10 -05:00
humano 01994f9f7a correcion en campo limite 2020-04-18 13:23:51 -05:00
humano 151092b32e correcion en campo limite 2020-04-18 13:11:17 -05:00
humano 97ac05a025 correcion en campo limite 2020-04-18 12:59:25 -05:00
humano 1985c80114 correcion en buscador de mapero 2020-04-18 11:52:02 -05:00
humano 1113c67e1e organizacion random en vista r 2020-04-18 08:38:16 -05:00
humano 37c952c892 limpiar categorias solo en milfs 2020-04-17 19:50:14 -05:00
humano 7ca8891398 parametrizacion apra agregar datos con doble click en el mapa 2020-04-17 18:58:24 -05:00
humano febc03b683 mostrar items en categorias 2020-04-17 18:37:05 -05:00
humano 5034fb2af5 vista banner 2020-04-17 17:24:58 -05:00
humano 59c81ac5b1 correcion en campo buscador ahira busca despues de dos letras 2020-04-10 19:14:09 -05:00
humano 710efa5be8 correcion en campo buscador con soporte para case insesitive 2020-04-10 19:09:03 -05:00
humano 1af3a673e5 correcion en campo buscador que solo consideraba el inicio del parrafo debug 2020-04-10 18:55:41 -05:00
humano 4d0ed8511e correcion en campo buscador que solo consideraba el inicio del parrafo 2020-04-10 18:42:04 -05:00
humano 9ec3b5609b mejoras en categorias 2020-04-07 08:39:19 -05:00
humano 2a1a1d1428 mejoras en categorias 2020-04-07 07:21:38 -05:00
humano 2701b0efd4 mejoras en categorias 2020-04-07 07:03:31 -05:00
humano dee4031570 mapa 2020-04-06 17:32:05 -05:00
humano 53b34a046c creacion de datos con un click 2020-04-06 16:58:18 -05:00
humano 86b476631e parametrizacion de proveedor de mapas 2020-04-06 08:35:59 -05:00
humano b2896adc7b coordenadas en exportación de campo mapa en vista planilla 2020-04-06 07:25:04 -05:00
humano 3b1b2b47f5 codificacion de tildes en url 2020-04-05 23:25:52 -05:00
humano 8ad5eac234 codificacion de tildes en url 2020-04-05 23:14:36 -05:00
humano c9c1a014d5 codificacion de tildes en url 2020-04-05 23:07:14 -05:00
humano d2a4ae1ece codificacion de tildes en url 2020-04-05 22:44:16 -05:00
humano c5d8f1db94 optimizacion geojson 2020-04-05 21:46:07 -05:00
humano f6c26756eb inclusion fecha en planilla 2020-03-31 14:59:50 -05:00
humano c06a297972 bug de voton multiple en formularios 2020-03-31 10:01:51 -05:00
humano 4298759904 correcion bug api 2020-03-31 07:29:14 -05:00
humano aae4b6c4df parametrizacion de formulario para que ignore areas 2020-03-31 06:45:49 -05:00
humano 7b74d8fab3 debug 2020-03-28 22:51:02 -05:00
humano 39ec69ab58 bug en edicion 2020-03-28 20:52:54 -05:00
humano ed595d22a1 debug 2020-03-28 20:30:46 -05:00
humano 5d75d1895b debug 2020-03-28 20:07:12 -05:00
humano 40f9839827 correcion bug editar 2020-03-28 17:46:39 -05:00
humano cd8c546e0a correcion bug editar 2020-03-28 17:43:51 -05:00
humano 6d3cc120e0 correcion bug editar 2020-03-28 17:42:22 -05:00
humano 52e2d10819 correcion bug editar 2020-03-28 17:38:56 -05:00
humano 5feba8ef5b correcion bug editar 2020-03-28 17:33:31 -05:00
humano def22a720b correcion bug editar 2020-03-28 17:22:18 -05:00
humano 53a8d6e007 correcion bug editar 2020-03-28 17:17:50 -05:00
humano 8324bff480 bug en edicion 2020-03-28 14:30:46 -05:00
humano 804d25ddfa eliminacion de tablas temporales 2020-03-28 09:18:00 -05:00
humano 6f94c6395a quito debug de consulta 2020-03-27 08:52:46 -05:00
humano 0f5d0e20d8 debug 2020-03-27 06:47:48 -05:00
humano 219798d120 debug 2020-03-27 06:25:58 -05:00
humano 28d6b52707 mostrar varios formularios en la landig 2020-03-27 04:15:23 -05:00
humano db85b417a2 correcion id_empresa 2020-03-27 03:56:38 -05:00
humano bc69500c72 multiples formulario en la pagina de inicio 2020-03-27 03:46:26 -05:00
humano e2744553a7 ampliacion de rango de columnas y filas para vista grid 2020-03-26 16:54:20 -05:00
humano 80aade376a cambio d elink para ultimos registros 2020-03-26 11:09:39 -05:00
humano 92d5277364 mejoras landingpage frenalacurva 2020-03-26 06:36:33 -05:00
humano 0bcdcf4ed6 modo grid para landing page 2020-03-25 14:34:16 -05:00
humano 85c518bedb cambio de hoja de estilo 2020-03-25 09:17:59 -05:00
humano ab4676c2b6 remplazo de hoja de estilos 2020-03-24 21:47:21 -05:00
humano 80f29c7379 correcion visualizacion campos de multiples valores 2020-03-23 21:20:08 -05:00
humano 0dec640d08 correcion en visualizacion de imagenes 2020-03-17 16:36:44 -05:00
humano cb830a0f7c correcion en visualizacion de imagenes 2020-03-17 16:22:06 -05:00
humano 6c47a5da23 correciones en tiempo de session 2020-03-17 11:01:12 -05:00
humano 4cad68cc3a correcion en estilos 2020-03-16 16:53:30 -05:00
humano f64dc5a581 mejoras en el campo media 2020-03-16 15:37:26 -05:00
humano 5011071c50 mejoras en la vista parallax 2020-03-16 14:59:31 -05:00
humano a6389941f2 entites to tildes 2019-10-29 05:23:58 -05:00
humano 57b15be226 quito el link de mostrar mas info en geojson 2019-10-27 09:33:42 -05:00
humano 8508543081 quito el link de mostrar mas info en geojson 2019-10-27 09:03:01 -05:00
humano 0ba0fdbdb6 Correccion item unico en geojson 2019-10-27 08:59:51 -05:00
humano 5c26be6718 correcciones geojson 2019-10-27 04:10:37 -05:00
humano 7015b4c2d2 elimina debug en boton anterio 2019-08-30 08:38:52 -05:00
humano ceeeb607a1 elimina boton exportar 2019-08-30 08:29:53 -05:00
humano 275cd29b74 correccion bug en descargar archivo sin plantilla 2019-08-30 06:29:53 -05:00
humano 73beb9f1b7 cierra la barra lateral en mapero al hacer click en un item 2019-08-29 06:13:54 -05:00
humano 7fa0c78fd5 usabilidad en vista f 2019-08-05 07:43:17 -05:00
humano abea5a66d8 desabilito boton para generar documento en opendata 2019-08-05 07:30:36 -05:00
humano 5c70d84462 correccion bug en borrar formulario 2019-08-05 07:06:59 -05:00
humano 899df0a163 correccion bug mapa en milfs y otros 2019-08-05 06:59:09 -05:00
humano 5200902fd4 correccion bug tildes en buscador del mapa 2019-07-29 13:19:31 -05:00
humano adc9b0532b correccion bug tildes en buscador del mapa 2019-07-29 12:44:19 -05:00
humano ea815bc505 Merge branch 'master' of https://code.tupale.co/qwerty/milfs 2019-07-29 10:24:08 -05:00
humano d38325ee0f prueba de concepto crear circuitos 2019-07-29 10:18:37 -05:00
kleper 567d1b97d0 Agregando archivo de control pra v3 2019-07-27 06:15:30 -05:00
kleper c53846d6a8 Agregando archivo de control pra v3 2019-07-27 06:14:30 -05:00
humano 9a89a921e0 depuracion 2019-07-26 19:48:07 -05:00
humano debb238d17 mejoras en parametrizacion de mapero 2019-07-26 12:15:25 -05:00
humano 0c150c3290 mejoras en parametrizacion de mapero 2019-07-26 12:10:22 -05:00
humano f3d3383314 bug imprimir buscador 2019-05-28 07:27:33 -05:00
root e486accc9f Merge branch 'master' of https://code.tupale.co/qwerty/milfs 2019-05-27 17:11:07 -05:00
humano 614e8a4f8d correcion bug en campo busacador 2019-05-27 16:34:34 -05:00
humano 1bec42fcbf tabla para grupo parametrizacon 2019-05-23 05:29:21 -05:00
humano 789b821736 optimizacion areas 2019-05-13 06:54:02 -05:00
humano 2088f66f79 mejoras en listado de aplicaciones 2019-05-08 18:58:08 -05:00
humano bc1767fb5d correciones conexion persistente 2019-05-08 11:38:59 -05:00
humano f730968a61 correcion en csv de rendert json 2019-05-07 11:09:20 -05:00
humano 56bf92c0e2 global en render de campos 2019-05-07 09:11:48 -05:00
humano aa278ae528 correciones en remplacetas 2019-05-03 17:05:40 -05:00
humano d040cadd0b optimizacion remplacetas 2019-05-03 09:27:00 -05:00
humano 9537703477 correcion en conex 2019-05-03 05:31:18 -05:00
humano 6a5e5f637a Merge branch 'master' of https://code.tupale.co/qwerty/milfs 2019-04-30 15:32:44 -05:00
humano f48249b0c7 correccion debug en conex y conexion persistente 2019-04-29 11:17:06 -05:00
humano 3bd375dd34 cambio imagenes 2019-04-26 01:45:09 -05:00
humano 13b1e79abc Merge branch 'master' of https://code.tupale.co/qwerty/milfs 2019-04-10 13:20:37 -05:00
humano 5c5614e174 Merge branch 'master' of https://code.tupale.co/qwerty/milfs 2019-03-25 18:21:32 -05:00
humano ba8ca69c03 Merge branch 'master' of https://code.tupale.co/qwerty/milfs 2018-12-26 11:53:28 -05:00
humano 16024b2d20 campo buscador 2018-12-26 11:52:51 -05:00
23 changed files with 3147 additions and 982 deletions

16
api.php
View File

@ -1,6 +1,6 @@
<?php
session_start();
ini_set('display_errors', 'On');
//session_start();
//ini_set('display_errors', 'On');
require ('xajax/xajax.inc.php');
$xajax = new xajax();
@ -21,11 +21,11 @@ require ("funciones/conex.php");
if($datos['proyecto']==""){
$proyecto= remplacetas('form_id','id',$datos['id'],'id_empresa',"") ;
$datos['proyecto']= $proyecto[0] ;
}
@$datos['formato']=$_REQUEST['formato'];
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');
}
}
if(isset($_REQUEST['formato'])){
// if($_REQUEST['formato']=='li'){
@ -33,17 +33,19 @@ if(isset($_REQUEST['formato'])){
//print_r($array);//echo "hola li";
$json= json($datos);
$array = json_decode($json);
echo array_linea($array,$_REQUEST['formato'],$_REQUEST['id'])." ";
//echo "".build_list($array,$_REQUEST['formato'],$_REQUEST['id']);
//echo $json;
//echo planilla($datos['id'],$datos['registros'],"dinamico");
// }
}else{
header('Content-Type: application/json');
//echo "hola /// $_REQUEST[id] // " ;
//echo " <pre>".print_r($datos)."</pre>";
echo json($datos);
}
?>

83
css/mapero.css Normal file
View File

@ -0,0 +1,83 @@
body { margin:0; padding:0; overflow:hidden; touch-action:none; }
#map { position:absolute; top:0; bottom:0; width:100%; overflow:hidden; }
p {font-size: 14px;}
#sidebar {
z-index: 10; position: absolute; right: 10px; top: 10px; width: 320px;
background-color:rgba(255,255,255,.9); padding: 20px; border-radius: 3px; }
#title h1 { color: #390; }
#introduction p { margin-bottom: 10px; line-height: 1.5em }
#taxas>div { display: inline-block; }
#taxas p { text-align: center; }
.button {
background-color: #fff; background-size:cover;
border-radius: 5px; border: #390 1px solid; height:48px; width: 48px;
margin: 4px; margin-left: 8px;
}
.button.active { border:color:#390; }
.button:hover { border-color: #390; }
.button#Plantae { background-image: url('img/icon0_plantae.png') }
.button#Aves { background-image: url('img/icon0_aves.png') }
.button#Insecta { background-image: url('img/icon0_insecta.png') }
.button#Fungi { background-image: url('img/icon0_fungi.png') }
.button#Plantae.active { background-image: url('img/icon1_plantae.png') }
.button#Aves.active { background-image: url('img/icon1_aves.png') }
.button#Insecta.active { background-image: url('img/icon1_insecta.png') }
.button#Fungi.active { background-image: url('img/icon1_fungi.png') }
.button#Plantae:hover { background-image: url('img/icon1_plantae.png') }
.button#Aves:hover { background-image: url('img/icon1_aves.png') }
.button#Insecta:hover { background-image: url('img/icon1_insecta.png') }
.button#Fungi:hover { background-image: url('img/icon1_fungi.png') }
.marker {
border: #fff 1.4px solid; border-radius: 50%; cursor: pointer; box-shadow: 1px 1px 1px;
height: 48px; width: 48px; margin: -24px 0 0 -24px;
background-size: cover; }
.marker:hover { z-index: 1; border-color: #390; }
.marker.sm {
background-color: none; border-width: 0; box-shadow: 0 0 0;
height: 32px; width: 32px; margin-left: -16px; margin-top:-16px;}
.marker.sm:hover { border: #fff 1px solid; }
#me { height: 16px; width: 16px; background-size: 100% 100%; }
.mapboxgl-ctrl-geocoder { z-index: 0; }
.mapboxgl-popup { width: 280px; }
.mapboxgl-popup-close-button { background-color: rgba(255,255,255,.9); height: 30px; width: 30px; font-size: 18px; padding:2px; border-radius: 1px;}
.mapboxgl-popup p { font-size: 12px; line-height: 16px; margin-top:6px;}
.img-md { height: 260px; width:260px; background-position: center center; background-repeat: no-repeat; background-size: cover; }
.loading { display:none; }
@media only screen and (max-width: 479px) {
.mobile-hide{ display: none; }
.mobile-show{ display: inline-block !important; }
#sidebar {
z-index: 2; border-radius: 0; padding:2vh 4vw 2vh 4vw;
position: absolute; width:100%; height:150px;
bottom: 30px; left:0; right:0; top:inherit;
}
#sidebar p { margin-bottom: 2vh; font-size: 1em; }
#title { margin-bottom: 2vh; }
#title h1 { font-size: 20px; line-height: 26px; display: inline-block; }
#info {
height:18px; width:18px; display: inline-block; margin-left:3px;
background-image: url('img/arrow_down.svg'); background-size:cover; }
.button { width:15vw; margin: .5vh 1vw .5vh 10vw; height:15vw;}
.button:first-of-type { margin-left:5vw; }
.button img { height:100%; width: 100%; }
#taxas p { text-align: center; margin-left: 5vw; }
.mapboxgl-popup-content { padding: 1vw; padding-bottom: 2vw; }
.mapboxgl-popup { width: 52vw; }
.img-md { height: 50vw; width: 50vw;}
}

View File

@ -14,10 +14,35 @@ el otro archivo css style.css que está en la carpeta milfs
display: block;
}
#canvas-holder_$tipo_$id_campo{
max-width:100%;
}
@media (max-width: 768px) {
#panel_administrador{
padding: 0px !important;
}
}
@media (max-width: 480px) {
#modificarcampo_succesalert{
position: relative;
display: block;
border-collapse: separate;
padding-top: 13px;
}
#modificarcampo_succesalert>.input-group-addon{
border: 1px solid #ccc !important;
border-radius: 0px;
}
#nuevocampo_success{
padding-bottom: 60px !important;
}
#nuevocampo_success>.btn{
display: block;
}
}

View File

@ -261,10 +261,7 @@ border-color: transparent;
/*Panel Editor*/
.thumbnail {
height: 100% !important;
overflow-y: auto;
overflow-x: hidden;
border: none;
}
.box-secciones {
@ -679,8 +676,8 @@ Help-tip Style
/* CSS animation */
@-webkit-keyframes fadeIn {
0% {
opacity:0;
0% {
opacity:0;
transform: scale(0.6);
}
@ -695,8 +692,8 @@ Help-tip Style
100% { opacity:100%; }
}
.blink{
color: rgb (0, 137, 226);
animation: blink 1s infinite;
}

View File

@ -1,7 +1,12 @@
<?php
function Conectarse(){
if(!isset($_SESSION))
{
session_start();
}
if ( !isset ( $link ) ) {
@include("includes/datos.php");
if(!isset($db)) {
@include("milfs/includes/datos.php");
@ -16,7 +21,7 @@ function Conectarse(){
if (!($link=mysqli_connect($servidor,$usuario,$password,$db)))
{
echo " Error conectando a la base de datos. ";
echo " Error conectando a la base de datos. ($servidor) ";
exit();
}
/* if (!mysqli_select_db($db,$link))
@ -40,19 +45,19 @@ function Conectarse(){
}
function Conectarse_recursivo(){
if ( !isset ( $link ) ) {
@include("milfs/includes/datos.php");
if(!isset($db)) {
@include("../milfs/includes/datos.php");
if(!isset($db)) {
include("../includes/datos.php");
}
}
if (!($link=mysqli_connect($servidor,$usuario,$password,$db)))
{
echo "Error conectando a la base de datos. $servidor,$usuario,$password,$db ";
echo "Error conectando a la base de datos. ";
exit();
}
/* if (!mysqli_select_db($db,$link))

File diff suppressed because it is too large Load Diff

View File

@ -7,11 +7,11 @@ require ('funciones/convert.php');
require ("funciones/conex.php");
$geojson = imprime_geojson("$_REQUEST[id]","","mapa","$_REQUEST[buscar]");
$geojson = imprime_geojson("$_REQUEST[id]","","mapa","$_REQUEST[buscar]","");
//header('Content-Type: application/json');
var geojsonSample =
echo $geojson;
;
?>
?>

View File

@ -8,11 +8,13 @@ include ('librerias/parsedown/Parsedown.php');
require ("funciones/conex.php");
$geojson = imprime_geojson("$_REQUEST[id]","","mapa","$_REQUEST[buscar]","$_REQUEST[item]");
if(isset($_REQUEST['buscar'])){$buscar=$_REQUEST['buscar'];}else{$buscar="";}
if(isset($_REQUEST['item'])){$item=$_REQUEST['item'];}else{$item="";}
if(isset($_REQUEST['id'])){$id=$_REQUEST['id'];}else{$id="";}
//echo print_r($_SERVER);
$geojson = imprime_geojson("$id","","mapa","$buscar","$item","");
//header('Content-Type: application/json');
echo "var geojsonSample = ";
echo "let geojsonSample = [";
echo $geojson;
echo ";"
echo "];"
?>

View File

@ -4,18 +4,22 @@ require ('xajax/xajax.inc.php');
$xajax = new xajax();
require ('funciones/funciones.php');
require ('funciones/convert.php');
include ('librerias/parsedown/Parsedown.php');
require ("funciones/conex.php");
if(isset($_REQUEST['buscar'])){$buscar=$_REQUEST['buscar'];}else{$buscar="";}
if(isset($_REQUEST['item'])){$item=$_REQUEST['item'];}else{$item="";}
if(isset($_REQUEST['id'])){$id=$_REQUEST['id'];}else{$id="";}
if(!isset($_REQUEST['plantilla'])) {
$geojson = imprime_geojson("$_REQUEST[id]","","mapa","$_REQUEST[buscar]");
$geojson = imprime_geojson("$id","","mapa","$buscar","$item");
}else{
$geojson = imprime_geojson("$_REQUEST[id]","","$_REQUEST[plantilla]","$_REQUEST[buscar]");
$geojson = imprime_geojson("$id","","$_REQUEST[plantilla]","$buscar","$item");
}
//header('Content-Type: application/json');
echo $geojson;
?>
?>

BIN
images/iconos/marker.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 907 B

View File

@ -2,13 +2,13 @@
session_start();
// Comprobamos si existe la variable
/*if ( !isset ( $_SESSION['id'] ) ) {
// Si no existe
// Si no existe
header("Location: ../nodisponible.jpg");
// echo "hola mundo2";
}*/
if(!isset($_GET['file']) ){
header("Location: ../sinimagen.jpg");
}
include("../../includes/datos.php");
$dir="$path_images_secure/";
@ -21,25 +21,32 @@ if ((!$file=realpath($dir.$_GET['file']))
$ref=@$_SERVER['HTTP_REFERER'];
if (strpos($ref,'https://')===0 || strpos($ref,'https')!==0){
$mime=array(
'PEG'=>'image/jpeg',
'JPEG'=>'image/jpeg',
'JPG'=>'image/jpeg',
'jpg'=>'image/jpeg',
'peg'=>'image/jpeg',
'jpeg'=>'image/jpeg',
'png'=>'image/png',
'PNG'=>'image/png',
'mid'=>'audio/x-midi',
'wav'=>'audio/x-wav'
);
if(@$mime[substr($file,-3)] =='') {
header('Location: ../pixel.png');
exit();
}
$stat=stat($file);
header('Content-Type: '.$mime[substr($file,-3)]);
header('Content-Length: '.$stat[7]);
// header('Content-Length: '.$stat[7]);
header('Last-Modified: '.gmdate('D, d M Y H:i:s',$stat[9]).' GMT');
readfile($file);
@readfile($file);
exit();
}
header('Pragma: no-cache');
header('Cache-Control: no-cache, no-store, must-revalidate');
include($file.'.php');
//include($file.'.php');
?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -7,14 +7,14 @@ $campo= "$_REQUEST[campo]-$_REQUEST[item]";
$tipo = $_FILES["$campo"]['type'];
//$nombrecillo = $_FILES['myfile']['nombrecillo'];
if($tipo=="image/png") {$ext = ".png"; $imagen=1; }
if($tipo=="image/png") {$ext = ".png"; $imagen=1; }
elseif($tipo=="image/jpeg") {$ext = ".jpg"; $imagen=1; }
elseif($tipo=="image/gif") {$ext = ".gif"; $imagen=1; }
else {
$ext = explode(".", $_FILES["$campo"]['name']); $ext = ".".strtolower($ext[count($ext) - 1]);
// $ext = "novalida";
$imagen=0;}
$imagen=0;}
$nombrecillo= $_REQUEST['nombrecillo'];
$name = "$nombrecillo";
$dir_subida = '/home/images_secure/';
@ -32,7 +32,9 @@ if (move_uploaded_file($_FILES["$campo"]['tmp_name'], $fichero_subido)) {
}
function miniaturizar($file,$width,$directorio) { //$archivo = $file;
$archivo = "$directorio"."full/".$file; $file_info = getimagesize($archivo); $ratio = $file_info[0] / $file_info[1]; $newwidth = $width; $newheight = round($newwidth / $ratio); $ext = explode(".", $file); $ext = strtolower($ext[count($ext) - 1]); if ($ext == "jpeg") $ext = "jpg"; switch ($ext) { case "jpg": $img = imagecreatefromjpeg($archivo); // $img = imagecreatefromstring($archivo); break; case "png": $img = imagecreatefrompng($archivo); break; case "gif": $img = imagecreatefromgif($archivo); break; } $thumb = imagecreatetruecolor($newwidth, $newheight);
$archivo = "$directorio"."full/".$file; $file_info = getimagesize($archivo); $ratio = $file_info[0] / $file_info[1]; $newwidth = $width; $newheight = round($newwidth / $ratio); $ext = explode(".", $file);
$ext = strtolower($ext[count($ext) - 1]);
if ($ext == "jpeg") $ext = "jpg";switch ($ext) { case "jpg": $img = imagecreatefromjpeg($archivo); // $img = imagecreatefromstring($archivo); break; case "png": $img = imagecreatefrompng($archivo); break; case "gif": $img = imagecreatefromgif($archivo); break; } $thumb = imagecreatetruecolor($newwidth, $newheight);
imagealphablending( $thumb, false );
imagesavealpha( $thumb, true ); imagecopyresampled($thumb, $img, 0, 0, 0, 0, $newwidth, $newheight, $file_info[0], $file_info[1]);
if($ext=="jpg") { imagejpeg($thumb,$directorio.$width."/$file", 80);
@ -42,5 +44,3 @@ imagepng($thumb,$directorio.$width."/$file", 9);
}
?>

View File

@ -20,7 +20,7 @@ require ("funciones/conex.php");
$xajax->processRequests();
$embebido =0;
if (isset($_REQUEST['form'])) {
if (isset($_REQUEST['form'])) {
$form = $_REQUEST['form'];
$opciones["formato"]= $_REQUEST['formato'];
} else {$form = "";}
@ -43,6 +43,30 @@ if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";}
<?php
$xajax->printJavascript("xajax/");
if(!isset($_REQUEST['experimental'])){
$bootstrap= "
<script
src='https://code.jquery.com/jquery-3.3.1.min.js'
integrity='sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8='
crossorigin='anonymous'></script>
<script src='https://code.jquery.com/jquery-3.3.1.slim.min.js' integrity='sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo' crossorigin='anonymous'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js' integrity='sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1' crossorigin='anonymous'></script>
<script src='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js' integrity='sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM' crossorigin='anonymous'></script>
<link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' integrity='sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T' crossorigin='anonymous'>
<link href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' rel='stylesheet'>
";
}else{
$bootstrap="
<script src='../librerias/jquery/jquery-2.1.4.min.js'></script>
<script src='../librerias/bootstrap/js/bootstrap.min.js'></script>
<link href='../librerias/bootstrap/css/bootstrap.min.css' rel='stylesheet' type='text/css'>
";
}
// $xajax->debugOn();
//$xajax->statusMessagesOn();
?>
@ -187,7 +211,7 @@ legend.legend-area {
</style>
</head>
<body onload="revisarSession()"; >
<body >
<?php if($embebido ==1) {
if($form!=''){ echo formulario_embebido($form,$opciones);}
elseif($identificador !='') { echo mostrar_identificador($identificador,$id);}
@ -232,13 +256,14 @@ else{}
<div class='row'>
<div id='' class='col-sm-6'>
<?php if(isset($_SESSION['id'])){ echo "
<form id='manejo_sesion' name='form_session' class='navbar-form navbar-left'>
<?php /* $sesion = "<pre>".print_r($_SESSION,true)."</pre>"; if(isset($_SESSION['id'])){ echo "
$sesion <form id='manejo_sesion' name='form_session' class='navbar-form navbar-left'>
<div class='input-group'>
<input type='text' name='tiempo_session' size='18' class='form-control input-sm' readonly>
<span class='input-group-addon'><a href='#' onclick=\"location.reload();\" title='Renovar'><span class='glyphicon glyphicon-refresh' aria-hidden='true'></span></a></span>
</div>
</form> "; } ?>
</form> "; }else{ echo "/ $sesion /<input type='text' name='tiempo_session' size='18' class='form-control input-sm' readonly>";}
*/ ?>
<?php
///echo adjuntar_basico('33');

214
js/mapero.js Normal file
View File

@ -0,0 +1,214 @@
mapboxgl.accessToken = 'pk.eyJ1IjoieXVuamllIiwiYSI6ImNpZnd0ZjZkczNjNHd0Mm0xcGRoc21nY28ifQ.8lFXo9aC9PfoKQF9ywWW-g';
//var sfmapbox = [-122.413692, 37.775712];
var sfmapbox = [-72, 4];
// sfmapbox = [-122,37];
var mylocation = sfmapbox;
var taxon_active = 'Plantae';
var markers = {};
var marker_me;
// Create a new dark theme map
var map = new mapboxgl.Map({
container: 'map', // container id
style: 'mapbox://styles/mapbox/outdoors-v9', //stylesheet location
center: sfmapbox, // Center of USA
zoom: 12, // starting zoom
// minZoom: 11,
});
map.on('load', function() {
// Disable scroll in posts
if (window.location.search.indexOf('embed') !== -1) map.scrollZoom.disable();
//Add controls for navigation, geocoding and geolocation
var geocoder = new mapboxgl.Geocoder();
map.addControl(geocoder);
map.addControl ( new mapboxgl.Navigation({ position: 'top-left' }) );
var geolocator = new mapboxgl.Geolocate({ position: 'top-left' });
map.addControl(geolocator);
//go to SF and retrieve data
mapMe(mylocation);
getObservation(mylocation, taxon_active);
//Toggle icons in the event of zoom change
map.on('zoom', function() {
var zoom = map.getZoom();
$('.marker').each(function() {
checkZoom(this, zoom);
});
});
//Interact with taxas buttons
$('.button').on('click', function() {
$('.button').removeClass('active');
$(this).addClass('active');
taxon_active = $(this).attr('id');
getObservation(mylocation, taxon_active);
$('.mapboxgl-popup') ? $('.mapboxgl-popup').remove() : null;
});
//Redo quest on location change
geocoder.on('result', function(e) {
// window.alert('new location: ' + e.result.center);
mylocation = e.result.center;
getObservation(mylocation, taxon_active);
mapMe(mylocation);
$('.mapboxgl-popup') ? $('.mapboxgl-popup').remove() : null;
});
//Redo quest on geolocation
geolocator.on('geolocate', function(position) {
mylocation = [position.coords.longitude, position.coords.latitude];
map.zoomTo(12);
mapMe(mylocation);
getObservation(mylocation, taxon_active);
});
//Mobile friendly
$('#info').on('click', function() {
if ( $('#introduction').is(':visible') ) {
$('#introduction').hide();
$('#info').css('background-image', 'url(img/arrow_down.svg)');
$('#sidebar').css('height', '150px');
} else {
$('#introduction').show();
$('#info').css("background-image", 'url(img/arrow_up.svg)');
$('#sidebar').css('height', '240px');
}
})
});
// Map the user location using a marker called me
function mapMe(location) {
if (!document.getElementById('me')) {
var me = document.createElement('div');
me.id = "me";
me.style.backgroundImage = 'url(img/icon_me.png)';
marker_me = new mapboxgl.Marker(me)
.setLngLat(location)
.addTo(map);
} else {
marker_me.setLngLat(location);
}
map.flyTo({ 'center': location, 'zoom': 12 });
}
// Retrieve from API, map the markers to the map, and save relevant data in html. Pop-ups for marker on click.
function getObservation(location, taxon) {
$('.loading').show();
// clean up previous markers
for (marker in markers) {
markers[marker].remove();
}
markers = {};
//create url
var iNat_url = createURL(location, taxon);
// get results from url
try {
iNat_results = $.getJSON(iNat_url, function() {
// console.log("API results: ", iNat_results.responseJSON.results);
// Update count in html description
$('#count').html(iNat_results.responseJSON.features.length);
// Used for marker change on zoom level
var zoom = map.getZoom();
// Iterate through all API results
iNat_results.responseJSON.features.forEach(function(marker) {
// create an img element for the marker
var el = document.createElement('div');
el.className = 'marker';
//img_url = marker.photos[0].url;
img_url = marker.properties.imagen;
// text description for popup
var species = marker.species_guess ? marker.species_guess : 'Unknown';
//var user = marker.user.name ? marker.user.name : 'Anonymous';
var user = marker.properties.title ? marker.properties.title : 'Anonymous';
text = species + ' observed on ' + marker.properties.time + ' by ' + user + ' - ';
text = text.charAt(0).toUpperCase() + text.substr(1);
// img_url = img_url.replace("http", "https");
//$(el).attr('data-img', img_url);
$(el).attr('data-img', img_url);
// $(el).attr('data-taxon', taxon);
//$(el).attr('data-text', text);
$(el).attr('data-text', marker.properties.title);
$(el).attr('html', marker.properties.description);
//$(el).html(marker.properties.description);
$(el).attr('data-link', marker.properties.uri);
$(el).attr('data-link', marker.properties.imagen);
//$(el).attr('data-latlon', marker.geojson.coordinates);
$(el).attr('data-latlon', marker.geometry.coordinates);
// Map to the map with markers for the current zoomlevel
checkZoom(el, zoom);
// add marker to map
// markers[marker.id] = new mapboxgl.Marker(el)
markers[marker.control] = new mapboxgl.Marker(el)
// .setLngLat(marker.geojson.coordinates)
.setLngLat(marker.geometry.coordinates)
.addTo(map);
});
$('.loading').hide();
// markers on click
$('.marker').click(function(e) {
e.stopPropagation();
var latlon = $(this).attr('data-latlon').split(",");
latlon = [Number(latlon[0]), Number(latlon[1])];
var descripcion = $(this).attr('html');//.replace('square', 'medium');
$('.mapboxgl-popup') ? $('.mapboxgl-popup').remove() : null;
var popup = new mapboxgl.Popup()
.setLngLat(latlon)
.setHTML(descripcion)
.addTo(map);
});
});
} catch (e) {
window.alert("API not working properly :(")
}
}
// Create the url for API request
function createURL(location, taxon) {
//url = ['https://api.inaturalist.org/v1/observations?geo=true&native=true&photos=true&lat=',location[1], '&lng=', location[0], '&radius=5&iconic_taxa=', taxon, '&order=desc&order_by=created_at'].join('');
url = ['http://localhost/tupali/archivos/74.geojson'].join('');
console.log("API url: ", url);
return url;
}
// Check what zoom level for what markers, then map to map
function checkZoom(marker, zoom) {
var img;
if (zoom < 12) {
$(marker).addClass('sm');
// img = 'url(img/marker_' + $(marker).attr('data-taxon').toLowerCase() + '.png)';
// img = 'url(img/marker_' + $(marker).attr('data-taxon').toLowerCase() + '.png)';
img = 'url(https://tupale.co/milfs/images/secure/?file=150/da6d16547658ebc06c5378b30d1ee4bf.png)';
$(marker).css("background-image", img);
} else {
$(marker).removeClass('sm');
img = 'url(' + $(marker).attr('data-img') + ')';
// img = 'url(https://tupale.co/milfs/images/secure/?file=150/da6d16547658ebc06c5378b30d1ee4bf.png)';
$(marker).css("background-image", img);
};
}

View File

@ -9,24 +9,30 @@ function delayTimer() {
var delayFunction = delayTimer();
function revisarSession(){
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
var expires = "expires=" + d.toUTCString();
document.cookie = cname + "=" + cvalue + "; " + expires;
}
function revisarSession(sesion){
tiempo = "30";
gavela="19";
timestamp = Math.round(Date.now() /1000)
inicio = leerCookie("timestamp");
timestamp = Math.round(Date.now() /1000);
inicio = sesion;//leerCookie("timestamp");
transcurrido = (timestamp - inicio);
transcurrido_minutos = Math.round(transcurrido/60);
restante = (tiempo - transcurrido_minutos);
prefin = (tiempo*60)-transcurrido;
//sesion = "hola";
document.form_session.tiempo_session.value = "Cierra en: "+restante+" minutos ";
document.form_session.tiempo_session.value = "Cierra en: "+restante+" minutos ("+transcurrido+" "+sesion+") ";
if(restante == 1 ){
//alert(transcurrido);
location.href="../../salir.php";
}else{
setTimeout("revisarSession()",2000) ;
setTimeout("revisarSession("+sesion+")",2000) ;
}
}
@ -57,8 +63,8 @@ function loadArticle(pageNumber,id,plantilla,registros,scroll,formato) {
// $('#scroll-contentx').append(html);
var contenido = html;
newDiv.innerHTML = contenido;
$('.lazy').lazy({
// your configuration goes here
//combined: true,
@ -622,6 +628,3 @@ else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}

View File

@ -8,7 +8,7 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css"
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
crossorigin=""/>
@ -16,7 +16,7 @@
integrity="sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA=="
crossorigin=""></script>
-->
<script src="js/scripts.js"></script>
<link rel="stylesheet" href="librerias/leaflet/leaflet.css"/>
<script src="librerias/leaflet/leaflet.js"></script>
<style>
@ -29,20 +29,37 @@
<div id='map'></div>
<?php
<?php
sleep(2);
$ubicacion = $_COOKIE['ubicacion'];
$coordenadas = explode("|",$ubicacion);
if($coordenadas[0] !="" AND $coordenadas[1] !="" ){
$lon = $coordenadas[0];
$lat = $coordenadas[1];
$zoom = "20";
}else{
if ($_REQUEST['lat'] !='') {$lat=$_REQUEST['lat'];}else {$lat= "-72";}
if ($_REQUEST['lon'] !='') {$lon=$_REQUEST['lon'];}else {$lon= "4";}
if ($_REQUEST['zoom'] !='') {$zoom=$_REQUEST['zoom'];}else {$zoom= "20";}
}
?>
<script>
//var e.latlng= localizacion;
//alert(localizacion);
var map = L.map('map')
.setView([<?php echo $lon ?>, <?php echo $lat ?>], <?php echo $zoom ?>);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
<?php
<?php
if(!isset($_REQUEST['exif'])) { ?>
function onLocationFound(e) {
//var radius = e.accuracy / 2;
var marker = L.marker(e.latlng,{draggable: true}).addTo(map);
@ -53,14 +70,14 @@ function onLocationFound(e) {
map.setZoom(<?php echo $zoom; ?>);
var m = marker.getLatLng();
mapa.value= m.lng+' '+m.lat+' <?php echo $zoom; ?>';
function ondragend() {
var m = marker.getLatLng();
var z = map.getZoom();
map.setZoom(z);
mapa.value= m.lng+' '+m.lat+' '+z;
}
@ -81,7 +98,7 @@ function ondragend() {
map.on('locationfound', onLocationFound);
map.locate({setView: true, maxZoom: 20});
<?php }else{ ?>
var marker = L.marker([<?php echo $lon ?>,<?php echo $lat ?>],{draggable: true}).addTo(map);
var mapa = window.parent.document.getElementById('<?php echo $_REQUEST[id]?>');
marker.on('dragend', ondragend);
@ -91,7 +108,7 @@ function ondragend() {
var z = map.getZoom();
mapa.value= m.lng+' '+m.lat+' '+z;
}
<?php } ?>