1
0
Fork 0

Actualizacion de MILFS con cambios en Galenux

This commit is contained in:
kleper 2018-07-02 12:49:58 -05:00
parent d1887b3851
commit d26522744a
40 changed files with 55026 additions and 1368 deletions

View File

@ -43,7 +43,7 @@ function brigadistas_grabar($formulario) {
if(is_array($valor)) {
foreach($valor as $c=>$v){
$consulta = "INSERT INTO form_datos ( timestamp,id_usuario,id_empresa,form_id,ip,control,id_campo,contenido) VALUES
( UNIX_TIMESTAMP(),'$_SESSION[id]','$id_empresa','$id_formulario','$ip' ,'$control', '$campo' , '".mysql_real_escape_string( $v )."')
( UNIX_TIMESTAMP(),'$_SESSION[id]','$id_empresa','$id_formulario','$ip' ,'$control', '$campo' , '".mysqli_real_escape_string($link, $v )."')
";
$sql=mysqli_query($consulta,$link);

View File

@ -76,11 +76,11 @@ if(@$and !=''){$AND = "AND $and";}else{$AND ="";}
//$consulta = "SELECT * , md5(binary $por ) as md5_".$por." FROM $tabla WHERE $campo = '$valor' $AND order by $campo DESC limit 1";
$consulta = "SELECT * , md5(binary $por ) as md5_".$por." FROM $tabla WHERE $campo = '$valor' $AND order by id DESC limit 1";
$sql=mysqli_query($consulta,$link);
if (@mysql_num_rows($sql)!=0){
$resultado[] = mysql_result($sql,0,$por);
$resultado[] = mysql_result($sql,0,'id');
if (@mysqli_num_rows($sql)!=0){
$resultado[] = mysqli_result($sql,0,$por);
$resultado[] = mysqli_result($sql,0,'id');
$resultado[] = $consulta;
$resultado[] = mysql_result($sql,0,"md5_$por");
$resultado[] = mysqli_result($sql,0,"md5_$por");
}else{
$resultado[0] = '';
$resultado[1] ="";
@ -134,9 +134,9 @@ $consulta ="SELECT form_campos.id, form_campos.campo_nombre FROM form_tipo_campo
$link=Conectarse();
mysqli_query("SET NAMES 'utf8'");
$sql=mysqli_query($consulta,$link);
if (mysql_num_rows($sql)!='0'){
$resultado[0]=mysql_result($sql,0,"id");
$resultado[1]=mysql_result($sql,0,"campo_nombre");
if (mysqli_num_rows($sql)!='0'){
$resultado[0]=mysqli_result($sql,0,"id");
$resultado[1]=mysqli_result($sql,0,"campo_nombre");
$resultado[2] =$consulta;
}else{ $resultado[0]='';
$resultado[2] =$consulta;

View File

@ -43,7 +43,7 @@ function brigadistas_grabar($formulario) {
if(is_array($valor)) {
foreach($valor as $c=>$v){
$consulta = "INSERT INTO form_datos ( timestamp,id_usuario,id_empresa,form_id,ip,control,id_campo,contenido) VALUES
( UNIX_TIMESTAMP(),'$_SESSION[id]','$id_empresa','$id_formulario','$ip' ,'$control', '$campo' , '".mysql_real_escape_string( $v )."')
( UNIX_TIMESTAMP(),'$_SESSION[id]','$id_empresa','$id_formulario','$ip' ,'$control', '$campo' , '".mysqli_real_escape_string($link, $v )."')
";
$sql=mysqli_query($consulta,$link);

View File

@ -76,11 +76,11 @@ if(@$and !=''){$AND = "AND $and";}else{$AND ="";}
//$consulta = "SELECT * , md5(binary $por ) as md5_".$por." FROM $tabla WHERE $campo = '$valor' $AND order by $campo DESC limit 1";
$consulta = "SELECT * , md5(binary $por ) as md5_".$por." FROM $tabla WHERE $campo = '$valor' $AND order by id DESC limit 1";
$sql=mysqli_query($consulta,$link);
if (@mysql_num_rows($sql)!=0){
$resultado[] = mysql_result($sql,0,$por);
$resultado[] = mysql_result($sql,0,'id');
if (@mysqli_num_rows($sql)!=0){
$resultado[] = mysqli_result($sql,0,$por);
$resultado[] = mysqli_result($sql,0,'id');
$resultado[] = $consulta;
$resultado[] = mysql_result($sql,0,"md5_$por");
$resultado[] = mysqli_result($sql,0,"md5_$por");
}else{
$resultado[0] = '';
$resultado[1] ="";
@ -134,9 +134,9 @@ $consulta ="SELECT form_campos.id, form_campos.campo_nombre FROM form_tipo_campo
$link=Conectarse();
mysqli_query("SET NAMES 'utf8'");
$sql=mysqli_query($consulta,$link);
if (mysql_num_rows($sql)!='0'){
$resultado[0]=mysql_result($sql,0,"id");
$resultado[1]=mysql_result($sql,0,"campo_nombre");
if (mysqli_num_rows($sql)!='0'){
$resultado[0]=mysqli_result($sql,0,"id");
$resultado[1]=mysqli_result($sql,0,"campo_nombre");
$resultado[2] =$consulta;
}else{ $resultado[0]='';
$resultado[2] =$consulta;

29
api.php
View File

@ -9,32 +9,15 @@ require ('funciones/convert.php');
require ("includes/markdown.php");
require ("funciones/conex.php");
$datos['id']=$_REQUEST['id'];
if(isset($_REQUEST['identificador'])) {$datos['identificador']=$_REQUEST['identificador'];}
if(isset($_REQUEST['dato'])) {$datos['dato']=$_REQUEST['dato'];}
if(isset($_REQUEST['inicio'])) {$datos['inicio']=$_REQUEST['inicio'];}
if(isset($_REQUEST['start'])) {$datos['start']=$_REQUEST['start'];}
if(isset($_REQUEST['fin'])) {$datos['fin']=$_REQUEST['fin'];}
if(isset($_REQUEST['end'])) {$datos['end']=$_REQUEST['end'];}
if(isset($_REQUEST['tipo'])) {$datos['tipo']=$_REQUEST['tipo'];}
if(isset($_REQUEST['formato'])) {$datos['formato']=$_REQUEST['formato'];}
if(isset($_REQUEST['registros'])) {$datos['registros']=$_REQUEST['registros'];}
if(isset($_REQUEST['pagina'])) {$datos['pagina']=$_REQUEST['pagina'];}
if(isset($_REQUEST['plantilla'])) {$datos['plantilla']=$_REQUEST['plantilla'];}
/*$datos['dato']=$_REQUEST['dato'];
$datos['identificador']=$_REQUEST['identificador'];
$datos['dato']=$_REQUEST['dato'];
$datos['inicio']=$_REQUEST['inicio'];
$datos['start']=$_REQUEST['start'];
$datos['fin']=$_REQUEST['fin'];
$datos['end']=$_REQUEST['end'];
$datos['tipo']=$_REQUEST['tipo'];*/
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
if(!isset($_REQUEST['formato'])) {
$datos['tipo']=$_REQUEST['tipo'];
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');
}
header('Content-Type: application/json');
echo json($datos);
}else{
echo "<br><br><div class='container-fluid '>".consultar_contenido_formulario("$datos[id]","$datos[registros]","$datos[pagina]","$datos[formato]",'',"$datos[plantilla]")."</div>";
}
//echo "hola /// $_REQUEST[id] // " ;
echo json($datos);
?>

196
copia de index.php Normal file
View File

@ -0,0 +1,196 @@
<?php
session_start();
//ini_set('display_errors', 'On');
require ('xajax/xajax.inc.php');
$xajax = new xajax();
require ('funciones/funciones.php');
require ('funciones/convert.php');
require ('funciones/login.php');
$xajax->processRequests();
//$xajax->debugOn();
?>
<!DOCTYPE html>
<html lang="en">
<head >
<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="author" content="fredyrivera" >
<?php $xajax->printJavascript("xajax/"); ?>
<link rel="shortcut icon" href="favicon-152.png">
<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
<link href="css/font-awesome/css/font-awesome.css" rel="stylesheet">
<!-- <link href="css/estilos.php?dd" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-markdown.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-markdown.min.css"> -->
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-markdown.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-markdown.min.css">
<style>
#map {width: 500px;height:200px;}
</style>
<title>I<3MILFS</title>
<!-- Bootstrap core CSS -->
<!-- <script language="JavaScript" src="escritorio/librerias/scripts.js" type="text/javascript"></script> -->
<!-- Custom styles for this template -->
<!-- <link href="jumbotron.css" rel="stylesheet"> -->
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[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
// if($_COOKIE['aviso'] != 'presentacion') {
//$onload = "onload = \"$('#muestraInfo').modal('toggle')\"";
//setcookie("aviso","presentacion",time()+60*60*24);
// }
//($id,$form_respuesta,$control,$tipo)
if($_REQUEST[id] !='' OR $_REQUEST[c]){$onload ="<script type=\"text/javascript\"> xajax_formulario_modal('$_REQUEST[id]','','$_REQUEST[c]','$_REQUEST[t]')</script>";}
?>
</head>
<body >
<?php echo $onload; ?>
<?php if(isset($_REQUEST[f])){
form_publico("$_REQUEST[f]");
}
if ( isset ( $_SESSION['id'] ) ) { ?>
<div class="navbar navbar-inverse nav-bar-fixed-top " role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">MILFS</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><img src="favicon-152.png" style="width:60px" alt="MILFS" title="Multi Interactive Light Form System"></a>
</div>
<?php echo milfs() ?>
</div><!-- /.container-fluid -->
</div>
<?php }else{ } ?>
<div class='container'>
<div id='contenido'>
<?php
if(!isset($_SESSION[id_empresa])) {$id_empresa_portada='1';} else{$id_empresa_portada = $_SESSION[id_empresa];}
$encabezado = empresa_datos("$id_empresa_portada",'encabezado');
$pie = empresa_datos("$id_empresa_portada",'pie');
echo "$encabezado";
?>
<?php if(isset($_REQUEST[change])){
echo cambiar_password_formato("$_REQUEST[change]");
}
revisar_ingreso();?>
<?php echo $pie; ?>
<img class='img-responsive center-block' src="images/logo.png" alt="MILFS">
</div>
<?php
/*session_start();
// Comprobamos si existe la variable
if ( !isset ( $_SESSION['grupo'] ) ) {
// Si no existe
header("Location: includes/error.php");
// echo "hola 2";
} */
/*if($_SESSION[prioridad] <= '2'){ }else{
echo consultar_formulario();
*/
/*
formulario_importar("","");
echo "<div id='importador' name='importador'>";
echo "</div> ";
*/
/*formulario_consultar('','');
if($_REQUEST[id] !=''){$onload ="<script type=\"text/javascript\"> xajax_formulario_areas('despacho','$_REQUEST[id]')</script>";}
?>
<div id='despacho' name='despacho' class='div_flotante' style="top:500px; left:500px; position:absolute; " ></div>
<?php echo "$onload ";
}///fin de la seguridad
*/
?>
<!-- Modal -->
<div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
<div class='modal-dialog' >
<div class='modal-content'>
<div class='modal-header' >
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</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>
</div>
<div class="">
<div class="container">
<a href='http://QWERTY.co/milfs'>&copy; MILFS Un proyecto de http://QWERTY.co</a> Se distribuye bajo licencia GPL V3
<a target="_blank" href='http://qwerty.co/faq/category/19/privacidad-y-protecci%C3%B3n-de-datos.html'>Políticas de privacidad y protección de datos.</a>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/markdown.js"></script>
<script src="js/to-markdown.js"></script>
<script src="js/bootstrap-markdown.js"></script>
<script src="js/scripts.js"></script>
<!-- <script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/scripts.js"></script>
<script src="js/bootstrap-markdown.js"></script>
<script src="js/markdown.js"></script>
<script src="js/to-markdown.js"></script>
<script src="js/bootstrap-markdown.js"></script>
-->
</body>
</html>

118
copia de map.php Normal file
View File

@ -0,0 +1,118 @@
<?php
//ini_set('display_errors', 'On');
require ('xajax/xajax.inc.php');
$xajax = new xajax();
//require ('json.lab.php');
require ('funciones/funciones.php');
//require ('funciones/convert.php');
$formulario_nombre = remplacetas('form_id','id',$_REQUEST[id],'nombre') ;
?>
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title><?php echo $formulario_nombre[0] ?> MILFS</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.2/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.2/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<!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="">
<meta name="author" content="kleper" >
<?php $xajax->printJavascript("xajax/"); ?>
<link rel="shortcut icon" href="favicon-152.png">
<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
<link href="css/font-awesome/css/font-awesome.css" rel="stylesheet">
<link href="http://getbootstrap.com/examples/sticky-footer-navbar/sticky-footer-navbar.css" rel="stylesheet">
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.2/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.2/mapbox.css' rel='stylesheet' />
<!-- <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" /> -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/estilos.php?hghgS" rel="stylesheet">
<style type="text/css">
body { padding: 0; margin: 0; }
.leaflet-popup-content { width:800px !important; }
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<!-- <link rel="points" type="application/json" href="json.php?id=<?php echo $_REQUEST["id"] ?>&id2=<?php echo $_REQUEST["id2"] ?>"> -->
</head>
<body>
<div id='map'></div>
<script>
L.mapbox.accessToken = 'pk.eyJ1IjoiaHVtYW5vIiwiYSI6IlgyRTFNdFEifQ.OmQBXmcVg_zq-vMpr8P5vQ';
var map = L.mapbox.map('map', 'humano.jki5hno0')
.setView([40, -74.50], 8);
var geoJson = [ <?php echo imprime_geojson("$_REQUEST[id]","$_REQUEST[id2]");?> ];
var myLayer = L.mapbox.featureLayer()
.setGeoJSON(geoJson)
.addTo(map);
myLayer.on('layeradd', function(e) {
var marker = e.layer,
feature = marker.feature;
// Create custom popup content
var popupContent = '' + feature.properties.description + '';
// http://leafletjs.com/reference.html#popup
marker.bindPopup(popupContent,{
closeButton: false,
minWidth: 320
});
marker.setIcon(L.icon(feature.properties.icon));
});
map.fitBounds(myLayer.getBounds());
myLayer.setGeoJSON(geoJson);
</script>
<div class="panel-map" id='panel_map_<?php echo $id ?>' style="z-index: 2 !important;">
<div role='row' class='row center-block' style="; "><?php echo mapa_ficha("$_REQUEST[id]");?></div>
</div>
<!-- Modal -->
<div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
<div class='modal-dialog' >
<div class='modal-content'>
<div class='modal-header' >
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</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>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/scripts.js"></script>
</body>
</html>

152
copia de rt.php Normal file
View File

@ -0,0 +1,152 @@
<?php
//ini_set('display_errors', 'On');
require ('xajax/xajax.inc.php');
$xajax = new xajax();
//require ('json.lab.php');
require ('funciones/funciones.php');
//require ('funciones/convert.php');
$formulario_nombre = remplacetas('form_id','id',$_REQUEST[id],'nombre') ;
?>
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title><?php echo $formulario_nombre[0] ?> MILFS</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.2/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.2/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<!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="">
<meta name="author" content="fredyrivera" >
<?php $xajax->printJavascript("xajax/"); ?>
<link rel="shortcut icon" href="favicon-152.png">
<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
<link href="css/font-awesome/css/font-awesome.css" rel="stylesheet">
<link href="http://getbootstrap.com/examples/sticky-footer-navbar/sticky-footer-navbar.css" rel="stylesheet">
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.2/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.2/mapbox.css' rel='stylesheet' />
<!-- <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" /> -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/estilos.php?hghgS" rel="stylesheet">
<style type="text/css">
body { padding: 0; margin: 0; }
.leaflet-popup-content { width:600px !important; }
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<link rel="points" type="application/json" href="json.lab.php?id=<?php echo $_REQUEST["id"] ?>">
</head>
<body >
<audio id="foobar" src="images/audios/audio6.mp3" preload="auto" autoplay loop controls></audio>
<style>
.info {
width: 800px;
height: 90%;
overflow-y: auto;
overflow-x: hidden;
position:absolute;
top:100px;
left:50px;
}
.info div {
border-radius:3px;
}
</style>
<div id='map'></div>
<div id='info' class='info' draggable="true"></div>
<script>
L.mapbox.accessToken = 'pk.eyJ1IjoiaHVtYW5vIiwiYSI6IlgyRTFNdFEifQ.OmQBXmcVg_zq-vMpr8P5vQ';
var map = L.mapbox.map('map', 'humano.jki5hno0')
.setView([40, -74.50], 15);
// As with any other AJAX request, this technique is subject to the Same Origin Policy:
// http://en.wikipedia.org/wiki/Same_origin_policy
var featureLayer = L.mapbox.featureLayer()
//.loadURL('json.lab.php?id=<?php echo $id ?>')
.loadURL('json.lab.php?id=<?php echo $_REQUEST[id] ?>&id2=<?php echo $_REQUEST[id2] ?>')
// Once this layer loads, we set a timer to load it again in a few seconds.
.on('ready', run)
.addTo(map);
// Add custom popups to each using our custom feature properties
featureLayer.on('layeradd', function(e) {
var marker = e.layer,
feature = marker.feature;
// Create custom popup content
var popupContent = '' + feature.properties.name + '' +
feature.properties.title +'';
var aviso = feature.properties.name;
info.innerHTML = aviso;
// http://leafletjs.com/reference.html#popup
marker.bindPopup(popupContent,{
closeButton: false,
minWidth: 320
});
marker.setIcon(L.icon(feature.properties.icon));
});
function run() {
featureLayer.eachLayer(function(l) {
map.panTo(l.getLatLng());
});
window.setTimeout(function() {
//featureLayer.loadURL('json.lab.php?id=<?php echo $_REQUEST[id] ?>');
featureLayer.loadURL('json.lab.php?id=<?php echo $_REQUEST[id] ?>&id2=<?php echo $_REQUEST[id2] ?>');
//featureLayer.loadURL('https://wanderdrone.appspot.com/');
//alert("Hola");
info.innerHTML = aviso;
},15000);
}
</script>
<div class="panel-map" id='panel_map_<?php echo $_REQUEST[id] ?>' style="z-index: 2 !important;">
<div role='row' class='row center-block' style="; "><?php echo mapa_ficha("$_REQUEST[id]");?></div>
<a onClick="window.location.reload()">*</a>
</div>
<!-- Modal -->
<div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
<div class='modal-dialog' >
<div class='modal-content'>
<div class='modal-header' >
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</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>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/scripts.js"></script>
</body>
</html>

View File

@ -15,7 +15,7 @@
/* Carousel base class */
.carousel {
min-height: 800px;
height: 500px;
margin-bottom: 60px;
}
/* Since positioning the image, we need to help out the caption */

11
css/dragones.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -10,10 +10,10 @@ $consulta = "SELECT elemento FROM estilos GROUP BY elemento";
$sql=mysqli_query($consulta,$link);
if (mysql_num_rows($sql)!='0'){
mysql_data_seek($sql, 0);
if (mysqli_num_rows($sql)!='0'){
mysqli_data_seek($sql, 0);
while( $row = mysql_fetch_array( $sql ) ) {
while( $row = mysqli_fetch_array( $sql ) ) {
$elemento= dibuja_elemento($row[elemento]);
$resultado .= "$row[elemento]{
$elemento
@ -29,8 +29,8 @@ function dibuja_elemento($elemento){
mysqli_query("SET NAMES 'utf8'");
$consulta = "SELECT * FROM estilos WHERE elemento = '$elemento' ";
$sql=mysqli_query($consulta,$link);
if (mysql_num_rows($sql)!='0'){
while( $row = mysql_fetch_array( $sql ) ) {
if (mysqli_num_rows($sql)!='0'){
while( $row = mysqli_fetch_array( $sql ) ) {
if($row[color] !=='') {$color = "$row[color]";}else{$color="";}
$resultado .= "$row[label]:$row[valor] $color ;\n";
}

View File

@ -1,404 +1,172 @@
body {overflow-x:hidden!important;}
#cabecera-botonera-admin {
background-color: #777677;
* {
margin: 0;
padding: 0;
}
.btn-botonera-admin {
margin-left: 20px;
margin-right: 20px;
border-left: 1px solid white;
body {
background: #222;
font-family: Georgia, serif;
color: #fff;
font-size: 14px;
}
#botonera-admin,
#botonera-admin>a {
color: white !important;
#dates a {
color: gray;
text-decoration: none;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-o-transition: 0.5s;
-ms-transition: 0.5s;
transition: 0.5s;
font-size: 12px;
}
.btn-botonera-admin:hover {
background-color: black;
#dates a:hover,
#dates a.selected {
color: red;
font-size: 18px;
}
/*
h1,h2,h4,h5,h6 {
text-align: center;
color: #ccc;
text-shadow: #000 1px 1px 2px;
margin-bottom: 5px;
}
.btn.btn-botonera-admin:hover {
color: white !important;
h1 {
font-size: 18px;
}
h2 {
font-size: 14px;
}
.sociales {
text-align: center;
margin-bottom: 20px;
}
.intro-social-buttons {
padding-top: 10px !important;
}
#botonera_landing {
display: inline-flex;
}
.boton_land {
margin-left: 3px !important;
}
.cabecera {
padding-bottom: 30px;
padding-left: 80px !important;
}
#logo_cabecera {
max-width: 60% !important;
margin: 0 auto;
}
#encabezado_proyecto {
padding-top: 30px;
}
.thumbnail {
height: 100% !important;
overflow-y: auto;
overflow-x: hidden;
padding: 0px 0px 70px 0px;;
border:none;
}
.box-secciones {
/* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
transition: all 0.3s cubic-bezier(.25, .8, .25, 1);*/
border-radius: 0px !important;
padding: 50px;
border-bottom: 1px solid lightgrey;
}
.box-secciones:hover {
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
.img-secciones {
max-height: 250px;
}
#buscador_centro {
display: inline-flex;
}
#buscador_blog {
display: inline-flex !important;
}
#fh5co-footer{
display: inline-block;
}
/* nube de etiquetas */
div.etiquetas {
/* font-family: verdana,arial,helvetica;
font-size:8pt;
*/
padding: 5px;
}
div.etiquetas span {
float: left;
margin: 0 3px 0 3px;
height: 20pt;
white-space: nowrap;
}
span.etiquetatam1 {
font-size: 110%;
}
span.etiquetatam2 {
font-size: 120%;
}
span.etiquetatam3 {
font-size: 130%;
}
span.etiquetatam4 {
font-size: 140%;
}
span.etiquetatam5 {
font-size: 150%;
}
span.etiquetatam6 {
font-size: 160%;
}
span.etiquetatam7 {
font-size: 170%;
}
span.etiquetatam8 {
font-size: 180%;
}
span.etiquetatam9 {
font-size: 250%;
}
span.etiquetatam10 {
font-size: 300%;
}
/* nube de etiquetas */
.drop-up {
top: auto;
bottom: 100% !important;
overflow: visible;
}
.dropdown-menu {
min-width: 300px;
padding: 3px;
z-index: 99999;
}
.navbar .navbar-nav {
display: inline-block;
float: none;
}
.navbar .navbar-collapse .navbar-principal {
text-align: center;
height: 30px;
margin-top: -13px;
}
.navbar-principal>li>a,
{
padding-top: 0px !important;
padding-bottom: 0 !important;
height: 30px;
margin-top: -13px;
}
.navbar-principal {
min-height: 30px !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;
*/
#timeline {
width: 95%;
height: 500px;
overflow: hidden;
margin: 100px auto;
position: relative;
@media all {
div.saltopagina {
display: none;
}
}
@media print {
div.saltopagina {
display: block;
page-break-before: always;
}
div.noprint {
display: none;
}
}
<!-- ESTILOS PRIORITARIOS -->.modal-dialog {
width: 95% !important;
height: auto;
padding: 0;
}
.modal-lg {
width: 98% !important;
height: auto;
padding: 0;
}
.modal-xs {
width: 40% !important;
height: auto;
padding: 0;
}
.modal-content {
height: auto;
}
.modal-body {
max-height: calc(100vh - 300px);
min-height: calc(100vh - 300px);
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;
}
.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;
}
/*RESPONSIVE*/
@media only screen and (min-width: 1200px) {
}
@media (max-width: 991px) {
#encabezado_proyecto {
text-align: center;
padding-top: 0px !important;
}
#logo_cabecera {
max-width: 100% !important;
padding-top: 0px !important;
}
#buscador_blog {
padding: 0px;;
}
}
@media (max-width: 768px) {
.modal-body {
max-height: calc(100vh - 100px) !important;
min-height: calc(100vh - 100px) !important;
}
#texto_articulo{
padding: 0px !important;
}
.box-secciones {
padding: 5px !important;
}
#menu_tupale {
background-color: #dfdfdf;
}
.btn-botonera-admin {
margin-left: 0px;
margin-right: 0px;
border-left: none;
}
.dropdown-menu>li>a {
color: #333 !important;
}
.thumbnail {
height: 100%;
}
#secciones,
.articulo_cuadro {
padding: 0px;
}
#btn_agregar {
margin-bottom: 3px;
}
#btn_filtro{
margin-bottom: 3px;
}
}
@media (max-width: 480px) {
#logo_cabecera {
max-width: 100% !important;
}
.cabecera {
padding-bottom: 30px;
padding-left: 0px !important;
}
}
/*FIN responsive*/
}
#dates {
width: 800px;
height: 60px;
overflow: hidden;
background: url('timeline/dot.gif') left 45px repeat-x;
}
#dates li {
list-style: none;
float: left;
width: 100px;
height: 50px;
font-size: 24px;
text-align: center;
background: url('timeline/biggerdot.png') center bottom no-repeat;
}
#dates a {
line-height: 18px;
padding-bottom: 10px;
}
#dates .selected {
font-size: 18px;
}
#issues {
width: 800px;
height: 500px;
overflow: hidden;
}
#issues li {
width: 900px;
height: 500px;
list-style: none;
float: left;
}
#issues li.selected img {
-webkit-transform: scale(1.1,1.1);
-moz-transform: scale(1.1,1.1);
-o-transform: scale(1.1,1.1);
-ms-transform: scale(1.1,1.1);
transform: scale(1.1,1.1);
}
#issues li img {
float: left;
margin: 10px 30px 10px 50px;
background: transparent;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE 8 */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);/* IE 6 & 7 */
zoom: 1;
-webkit-transition: all 2s ease-in-out;
-moz-transition: all 2s ease-in-out;
-o-transition: all 2s ease-in-out;
-ms-transition: all 2s ease-in-out;
transition: all 2s ease-in-out;
-webkit-transform: scale(0.7,0.7);
-moz-transform: scale(0.7,0.7);
-o-transform: scale(0.7,0.7);
-ms-transform: scale(0.7,0.7);
transform: scale(0.7,0.7);
}
#issues li h1 {
font-size: 48px;
margin: 20px 0;
color: red;
/*text-shadow: #000 1px 1px 2px;*/
}
#issues li p {
font-size: 14px;
margin-right: 70px;
font-weight: normal;
line-height: 22px;
/* text-shadow: #000 1px 1px 2px;*/
}
#grad_left,
#grad_right {
width: 100px;
height: 500px;
position: absolute;
top: 0;
}
#grad_left {
left: 0;
/* background: url('timeline/grad_left.png') repeat-y;*/
}
#grad_right {
right: 0;
/* background: url('timeline/grad_right.png') repeat-y;*/
}
#next,
#prev {
position: absolute;
top: 0;
font-size: 70px;
top: 170px;
width: 22px;
height: 38px;
background-position: 0 0;
background-repeat: no-repeat;
text-indent: -9999px;
overflow: hidden;
}
#next:hover,
#prev:hover {
background-position: 0 -76px;
}
#next {
right: 0;
background-image: url('timeline/next.png');
}
#prev {
left: 0;
background-image: url('timeline/prev.png');
}
#next.disabled,
#prev.disabled {
opacity: 0.2;
}

0
funciones/.giosaveXCKCCY Normal file
View File

File diff suppressed because it is too large Load Diff

View File

@ -126,13 +126,13 @@ $consulta ="SELECT * FROM form_datos WHERE $w_form contenido like '%%$valor%%'
$link=Conectarse();
mysqli_query("SET NAMES 'utf8'");
$sql=mysqli_query($consulta,$link);
if (mysql_num_rows($sql)!=0){
mysql_data_seek($sql, 0);
if (mysqli_num_rows($sql)!=0){
mysqli_data_seek($sql, 0);
$fila=1;
$divider=1;
$cols = (12/$divider);
$i =0;
while( $row = mysql_fetch_array( $sql ) ) {
while( $row = mysqli_fetch_array( $sql ) ) {
if($i % $divider==0) {
$encontrados .= "
@ -189,17 +189,17 @@ $consulta_total= "SELECT * FROM form_datos WHERE form_id= '$id_form' $w_filtro G
$consulta= "SELECT * FROM form_datos WHERE form_id= '$id_form' $w_filtro GROUP BY control LIMIT $inicio , $limite";
$link=Conectarse();
mysqli_query("SET NAMES 'utf8'");
//mysql_real_escape_string($consulta);
//mysqli_real_escape_string($link,$consulta);
$sql_total=mysqli_query($consulta_total,$link);
$total = mysql_num_rows($sql_total);
$total = mysqli_num_rows($sql_total);
$sql=mysqli_query($consulta,$link);
$descripcion = remplacetas('form_id','id',$id_form,'descripcion',"") ;
$descripcion = " $descripcion[0]";
$buscador = buscar_datos("","$id_form","$plantilla","grid_resultado");
$contenido = "<div class='container-fluid'>$descripcion $buscador</div> ";
if (mysql_num_rows($sql)!=0){
mysql_data_seek($sql, 0);
if (mysqli_num_rows($sql)!=0){
mysqli_data_seek($sql, 0);
$fila=1;
if($divider =="") {
$divider=3;
@ -207,7 +207,7 @@ $divider=3;
$cols = (12/$divider);
$i =0;
while( $row = mysql_fetch_array( $sql ) ) {
while( $row = mysqli_fetch_array( $sql ) ) {
if($i % $divider==0) {
$contenido .= "

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -694,8 +694,8 @@ if($tipo =='edit' AND ($_SESSION['equipo'] !== $equipo[0] )){
return $respuesta;
if($tipo=="respuesta") { $form_respuesta = "respuesta";}else {$form_respuesta="";}
$impresion = formulario_areas($datos,"$id","$tipo","$form_respuesta","$opciones");
$cantidad_areas = formulario_areas('',"$id","cantidad","$form_respuesta","$opciones");
$impresion = formulario_areas($datos,"$id","$tipo","$form_respuesta","$opciones",'','');
$cantidad_areas = formulario_areas('',"$id","cantidad","$form_respuesta","$opciones",'','');
$formulario_nombre = remplacetas('form_id','id',$id,'nombre','') ;
$formulario_descripcion = remplacetas('form_id','id',$id,'descripcion','') ;
$muestra_form = "
@ -7866,7 +7866,7 @@ $xajax->registerFunction("parametrizacion_titulo");
function mostrar_modal($form,$control,$plantilla){
$respuesta = new xajaxResponse('utf-8');
if( $control == "") {
$datos = formulario_areas('',$form,"");
$datos = formulario_areas('',$form,"",'','','','');
}else {
$datos = contenido_mostrar("$form","$control",'',"$plantilla");
}
@ -8304,7 +8304,7 @@ $control_original = $control;
if($control =="") {
$control = md5(rand(1,99999999).microtime());
}
$campos = formulario_areas('',$form_id,'campos');
$campos = formulario_areas('',$form_id,'campos','','','','');
$formulario ="
<input type='hidden' id='$campo_remitente"."[0]' name='$campo_remitente"."[0]' value='$_SESSION[usuario_milfs]'>
<input type='hidden' id='tipo' name='tipo' value='solocampos'>
@ -8401,7 +8401,7 @@ if($control =="") {
$mensajes = mysqli_query($link,$consulta);
// $destinatario ="$campo_destinatario"."[0]";
// $para = buscador_campo("$campo_destinatario","$form_id","","$destinatario","","");
$campos = formulario_areas('',$form_id,'campos');
$campos = formulario_areas('',$form_id,'campos','','','','');
$formulario ="
<input type='hidden' id='$campo_remitente"."[0]' name='$campo_remitente"."[0]' value='$_SESSION[usuario_milfs]'>
<input type='hidden' id='tipo' name='tipo' value='solocampos'>
@ -8792,7 +8792,7 @@ elseif($tipo=='registrarse') {
return $respuesta;
}
$campos = formulario_areas('',$form_id,'campos');
$campos = formulario_areas('',$form_id,'campos','','','','');
$boton ="
<button id='boton_registro' href='#' class='btn btn-success btn-block'
@ -9341,7 +9341,7 @@ $xajax->registerFunction("insertar_registro");
function formulario_area_campos($perfil,$area,$control) {
function formulario_area_campos($perfil,$area,$control,$ubicacion) {
$tipo="";
$control_edit ="$control";
$solo_campos ="";
@ -9368,9 +9368,9 @@ if (mysqli_num_rows($sql)!='0'){
//if($row['campo_tipo'] =="24") { $row['multiple'] = "1";}else {}
//if($row['multiple'] =="1" AND $tipo =='edit'){
if($row['multiple'] =="1" ){
$campos .= "".formulario_campos_render_multiple($row['id_campo'],$perfil,$control_edit);
$campos .= "".formulario_campos_render_multiple($row['id_campo'],$perfil,$control_edit,$ubicacion);
}else{
$campos .= "".formulario_campos_render($row['id_campo'],$perfil,$control_edit,'','');
$campos .= "".formulario_campos_render($row['id_campo'],$perfil,$control_edit,'','',"$ubicacion");
//$campos .= "".formulario_campos_render_multiple($row['id_campo'],$perfil,$control_edit);
}
$muestra_form .= "$campos $obligatorio ";
@ -9387,12 +9387,15 @@ $resultado = "$muestra_form ";
}
function formulario_areas($metadatos,$perfil,$tipo,$form_respuesta,$control_respuesta){
function formulario_areas($metadatos,$perfil,$tipo,$form_respuesta,$control_respuesta,$ubicacion,$extra){
$id="";
$resultado_campos ="";
$resultado_solo_campos ="";
$subir_imagen ="";
$campo_imagen_nombre ="";
$imagen="";
$script="";
$controladores="";
$muestra_form="";
if($form_respuesta =='respuesta'){$control = $control_respuesta;}
//elseif($form_respuesta =='edicion'){$control = $control_respuesta;}
@ -9482,7 +9485,7 @@ while( $row = mysqli_fetch_array( $sql ) ) {
//$producto = remplacetas('farmacia_cum','id',$row[id_producto],'fabricante_importador') ;
///// para pasar el parametro de medicamentos al formulario no pos se adiciona ".func_get_arg(2)."
$campos = formulario_area_campos($perfil,$row['campo_area'],"$control_edit");
$campos = formulario_area_campos($perfil,$row['campo_area'],"$control_edit",$ubicacion);
if($fila==1) {$activo='active'; $anterior="";}else{$activo=''; $anterior ="<a class='btn btn-default btn-responsive prev ' href='#'><i class='fa fa-backward' aria-hidden='true'></i> Anterior</a>";}
if($fila == $cantidad) { $boton="
@ -10047,6 +10050,7 @@ $xajax->registerFunction("buscador_base");
function buscador_select_base($id_campo,$form_id,$valor,$name,$control,$tipo){
$div ="div_buscador_base_$name";
$resultado="";
$where="";
$respuesta = new xajaxResponse('utf-8');
if($valor=="") {
$resultado="";
@ -10073,13 +10077,15 @@ $claves = $claves[0];
$descripcion2 = $descripcion2[1];
$descripcion3 = explode(':',$claves[4]) ;
$descripcion3 = $descripcion3[1];
$crue = explode(':',$claves[5]) ;
if(isset($claves[5] )){
$crue = explode(':',$claves[5]) ;
//$crue = $crue[1];
if($crue[1] !=""){
$sentencia=str_replace('_'," ",$crue[1]);
$where = "AND $sentencia ";}
if($crue[1] !=""){