This commit is contained in:
fredyrivera 2017-08-21 11:07:03 -05:00
commit 37fd72f178
26 changed files with 1540 additions and 540 deletions

308
index.php
View File

@ -1,6 +1,6 @@
<?php session_start();
<?php session_start();
//ini_set('display_errors', 'On');
if(isset($_REQUEST['debug'])) {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("");
@ -27,7 +27,7 @@ if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
<?php
<?php
$embebido =0;
$acceso = 0;
$onload="";
@ -68,13 +68,13 @@ $cantidad_registros ="10";
//$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['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'];}
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";
@ -94,14 +94,14 @@ if ($variable !=''){
$v = decodifica_parametro($variable);
if($v[0] =='e') {
/// e = EMPRESA
$id_empresa = $v[1];
$id =$id_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 = buscar_imagen('',"","","$id_empresa");
$background_imagen = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
$background_imagen = $background_imagen[0];
$background_imagen = $background_imagen[0];
$uri_set = "";
$acceso = 1;
$menu ="
@ -111,10 +111,10 @@ if ($variable !=''){
</div>
</div>";
$cols_interior ="10";
}
}
elseif($v[0] =='b') {
/// s= SET DE DATOS
$set =$v[1];
$set =$v[1];
$empresa = remplacetas('form_id','id',"$set",'id_empresa',"") ;
$logo = @remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
$id_empresa = $empresa[0];
@ -122,44 +122,44 @@ if ($variable !=''){
//$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");
$background_imagen = buscar_imagen("$set","","","$id_empresa");
$uri_set = "";
$cantidad_registros="";
$orden="ASC";
$orden="DESC";
$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);
//$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];
$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");
$background_imagen = buscar_imagen("$set","","","$id_empresa");
$uri_set = "";
//$onload = landingpage_contenido_formulario($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) {
@ -168,11 +168,11 @@ if ($variable !=''){
$identificador = substr($identificador, 0, $length = 32);
} else {$identificador_original = $identificador;}
$impresion = landingpage_contenido_identificador("$identificador_original","$id_form","social",'head');
$impresion = strip_tags($impresion);
//$impresion= str_replace('\t', '', $impresion);
$impresion = preg_replace("[\n|\r|\n\r|\t]",'', $impresion);
$descripcion_meta = $impresion;
$descripcion_meta = $impresion;
$primer = formulario_uso("","$identificador",'primer') ;
$id_form="$primer[3]";
$embebido = "1";
@ -193,7 +193,7 @@ if ($variable !=''){
//$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];
@ -204,7 +204,7 @@ if ($variable !=''){
} else {$identificador_original = $identificador;}
$primer = formulario_uso("","$identificador",'primer') ;
$id_form="$primer[3]";
//$form = remplacetas('form_datos','control',$identificador,'form_id',"") ;
//$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];
@ -216,7 +216,7 @@ if ($variable !=''){
$impresion = strip_tags($impresion);
//$impresion= str_replace('\t', '', $impresion);
$impresion = preg_replace("[\n|\r|\n\r|\t]",'', $impresion);
$descripcion_meta = $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,"","");
@ -228,20 +228,20 @@ if ($variable !=''){
elseif($v[0] =='d') {
/// d= IDENTIFICADOR EDITABLE
$identificador =$v[1];
$identificador =$v[1];
// $form =$v[1];
//$embebido = "1";
//$onload = formulario_embebido_ajax($form[0],'$identificador','edit');
$form = remplacetas('form_datos','control',$identificador,'form_id',"") ;
$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;
$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>";
@ -249,7 +249,7 @@ if ($variable !=''){
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>";
@ -257,7 +257,7 @@ if ($variable !=''){
elseif($v[0] =='f') {
/// f= FORMULARIO
$form =$v[1];
$onload =" <script type=\"text/javascript\">xajax_formulario_embebido_ajax('$form','','nuevo')</script>";
$onload =" <script type=\"text/javascript\">xajax_formulario_embebido_ajax('$form','','nuevo')</script>";
}
elseif($v[0] =='a') {
$form =$v[1];
@ -268,42 +268,42 @@ if ($variable !=''){
$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);
$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>";
</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
$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
<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
@ -338,7 +338,7 @@ $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";
$link_empresa = "e$id_empresa";
}else {
/*
if(isset($_SESSION['id_empresa'])) {
@ -350,7 +350,7 @@ $link_empresa = "e$id_empresa";
$logo = remplacetas('empresa','id',"1",'imagen','') ;
$background_imagen = remplacetas('empresa','id',"1",'imagen','') ;
$background_imagen = $background_imagen[0];
$background_imagen = $background_imagen[0];
//$titulo[0] ="Tupale.co";
$titulo = remplacetas('empresa','id',"1",'razon_social','') ;
$slogan = remplacetas('empresa','id',"1",'slogan','') ;
@ -392,7 +392,7 @@ $uri = trim($_SESSION['site'], '/').$_SERVER['REQUEST_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: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"; ?>" />
@ -407,20 +407,20 @@ $uri = trim($_SESSION['site'], '/').$_SERVER['REQUEST_URI'];
<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/");
<?php $xajax->printJavascript("milfs/xajax/");
//$xajax->debugOn();
$xajax->statusMessagesOn();
;?>
<style>
<!-- ESTILOS PRIORITARIOS -->
.modal-dialog {
width: 95% !important;
width: 95% !important;
height: auto;
padding: 0;
}
.modal-lg {
width: 95% !important;
width: 95% !important;
height: auto;
padding: 0;
}
@ -431,8 +431,8 @@ $uri = trim($_SESSION['site'], '/').$_SERVER['REQUEST_URI'];
.modal-body {
max-height: calc(100vh - 100px);
overflow-y: auto;
}
}
fieldset.fieldset-borde {
border: 2px solid #EDEDED !important;
border-radius:3px;
@ -460,10 +460,10 @@ legend.legend-area {
<!--[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
<![endif]-->
<?php
$css = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'bootstrap' and id_empresa = '$id_empresa'") ;
if($css[0] !="") {
@ -473,7 +473,7 @@ legend.legend-area {
$tema="";
}
else {
// $tema= "magazine";
$tema ="";
$css ='
@ -481,17 +481,17 @@ legend.legend-area {
<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=="") {
if($tema=="") {
$barra="
$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;' >
@ -505,18 +505,18 @@ legend.legend-area {
</ul>
</div>
</nav>
";
?> <?php echo $css; ?>
?> <?php echo $css; ?>
<script src="./librerias/jquery/jquery-2.1.4.min.js" ></script>
<script src="./librerias/bootstrap/js/bootstrap.min.js" ></script>
<style>
@ -530,7 +530,7 @@ legend.legend-area {
text-align: center;
height: 30px;
margin-top: -13px;
}
.navbar-nav > li > a, .navbar-brand {
@ -550,13 +550,13 @@ legend.legend-area {
.topnav {
width: 100px !important;
width: 100px !important;
display: inline;
height: 30px;
padding-top:-10px !important;
padding-bottom:0 !important;
height:30px;
background:none;
padding-top:-10px !important;
padding-bottom:0 !important;
height:30px;
background:none;
border:0px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
@ -576,7 +576,7 @@ box-shadow: none;
font-size: 28px; !important;
}
#fh5co-offcanvas .fh5co-bio img{
border-radius: 10px !important;
border-radius: 10px !important;
}
fieldset.fieldset-borde {
border: 2px solid #EDEDED !important;
@ -597,7 +597,7 @@ legend.legend-area {
}
</style>
<?php
<?php
}
else {
echo "
@ -606,12 +606,12 @@ else {
<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'/>
<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent'/>
";
include("temas/$tema/cabecera");
include("temas/$tema/pie");
$barra="
$barra="
<ul >
<li><a class='' href='$portal_url'><i class='fa fa-home'></i> Portal</a></li>
@ -620,7 +620,7 @@ $barra="
<li role='separator' class='divider'></li>
".aplicaciones_listado("$id_empresa",'','nav','')."
</ul>
";
@ -638,15 +638,15 @@ $menu_lateral = "
<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>
@ -673,7 +673,7 @@ $menu_lateral = "
<script type="text/javascript" src="href="./librerias/codemirror/xml.js"></script>
<script type="text/javascript" src="href="./librerias/codemirror/formatting.js"></script>
<!-- wysiwyg -->
<script src="href="./librerias/summernote/summernote.js"></script>
<script src="./librerias/summernote/summernote.js"></script>
<!-- include summernote css/js-->
<link href="./librerias/summernote/summernote.css" rel="stylesheet">
@ -718,20 +718,20 @@ document.oncopy = addLink;
<?php
//echo "<h1>$identificador</h1>";
if($tema=="") {
if($tema=="") {
echo $barra ;
}else{
echo " " ;
}
if(isset($_SESSION['id'])) {$id_empresa_portada='1'; echo panel_aplicaciones('1',"$_SESSION[id_empresa]",""); }
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)) {
echo $onload;
if(isset($set)) {
}
?>
@ -746,111 +746,111 @@ document.oncopy = addLink;
<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 ?>
<?php //echo $barra ?>
<!-- fin embebido -->
<?php
<?php
}
else{ /* SI NO SE SOLICITA UN EMBEBIDO SE CONTINUA CON EL FLUJO DEL HTML */
?>
<div class="col-sm-<?php echo $cols_interior; ?>">
<div class="col-sm-<?php echo $cols_interior; ?>">
<?php echo $menu_lateral ; ?>
<!-- END #fh5co-offcanvas -->
<header id="fh5co-header">
<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 id='meta_cabecera' class="col-lg-12 col-md-12 ">
<div class="row">
<div class="col-md-12">
<div id='formulario_login' class='' ></div>
<img id='logo_cabecera' class='center-block img img-responsive' style='width:30%' src="milfs/images/secure/?file=600/<?php echo $logo[0]; ?>">
</div>
</div>
<div class="col-md-12 text-center">
<h1 id="fh5co-logo" data-toc-skip ><a href="./"><?php echo $titulo[0]; ?></a></h1>
<div id='slogan_landingpage'><p><?php echo "$slogan[0] "; ?></p></div>
<div id='slogan_landingpage'><p><?php echo "$slogan[0] "; ?></p></div>
</div>
<div id="asistento" class="col-md-12 text-center">
<?php
if(isset($_REQUEST['asistento'])) {
echo asistente_aplicaciones("",'','','');
echo asistente_aplicaciones("",'','','');
}else {
echo "<a href='?asistento' class='btn btn-success'>Quiero crear una campaña </a>";
}
?>
</div>
<div class="col-md-12">
<div class='center-block'>
<div class='center-block'>
<?php
<?php
if($id_empresa=="") {
if($id_empresa=="") {
echo identificador_resaltado("1","");
//echo milfs_session("$login_formulario","$login_campo_usuario","$login_campo_password","","");
//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="container-fluid">
<?php
if($id_empresa=="") {
//echo mas_visto("aleatorios","4","");
echo "
";
echo mas_visto("ultimos","4","4");
echo "<div class='clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block'></div>";
@ -860,43 +860,43 @@ document.oncopy = addLink;
echo "";
}
?>
<?php
if($acceso ==1) {
if($set != "") {
if($set != "") {
echo " ".consultar_contenido_formulario("$set",$cantidad_registros,'','contenido',"$orden","");
}
elseif($identificador !="") {
//echo landingpage_contenido_identificador($identificador);
//echo landingpage_contenido_identificador($identificador);
echo "".landingpage_contenido_identificador("$identificador_original","$id_form","landingpage",'simple') ;
}
else{
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>
<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>
</small>
</footer>
</div>
<?php echo $menu; ?>
</div>
@ -908,14 +908,14 @@ document.oncopy = addLink;
<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>
@ -923,19 +923,19 @@ document.oncopy = addLink;
<!-- Modal -->
<!-- Footer -->
<?php echo $onload; ?>
<?php echo $onload; ?>
<?php } ?>
<script type="text/javascript">
$(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) {
event.preventDefault();
$(this).ekkoLightbox();
});
});
//// wysiwyg
var edit = function() {
@ -952,7 +952,7 @@ $(document).ready(function() {
$('.wysiwyg_auto').summernote({dialogsInBody: true});
});
</script>
</script>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];

View File

@ -1,6 +1,6 @@
/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
.btn-default,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
@ -1106,7 +1106,6 @@ a:focus {
text-decoration: underline;
}
a:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
@ -2537,7 +2536,6 @@ select[size] {
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
@ -3029,7 +3027,6 @@ select[multiple].input-lg {
.btn.focus,
.btn:active.focus,
.btn.active.focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
@ -11,16 +11,16 @@ if (typeof jQuery === 'undefined') {
+function ($) {
'use strict';
var version = $.fn.jquery.split(' ')[0].split('.')
if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 2)) {
throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3')
if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {
throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')
}
}(jQuery);
/* ========================================================================
* Bootstrap: transition.js v3.3.6
* Bootstrap: transition.js v3.3.7
* http://getbootstrap.com/javascript/#transitions
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@ -77,10 +77,10 @@ if (typeof jQuery === 'undefined') {
}(jQuery);
/* ========================================================================
* Bootstrap: alert.js v3.3.6
* Bootstrap: alert.js v3.3.7
* http://getbootstrap.com/javascript/#alerts
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@ -96,7 +96,7 @@ if (typeof jQuery === 'undefined') {
$(el).on('click', dismiss, this.close)
}
Alert.VERSION = '3.3.6'
Alert.VERSION = '3.3.7'
Alert.TRANSITION_DURATION = 150
@ -109,7 +109,7 @@ if (typeof jQuery === 'undefined') {
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
}
var $parent = $(selector)
var $parent = $(selector === '#' ? [] : selector)
if (e) e.preventDefault()
@ -172,10 +172,10 @@ if (typeof jQuery === 'undefined') {
}(jQuery);
/* ========================================================================
* Bootstrap: button.js v3.3.6
* Bootstrap: button.js v3.3.7
* http://getbootstrap.com/javascript/#buttons
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@ -192,7 +192,7 @@ if (typeof jQuery === 'undefined') {
this.isLoading = false
}
Button.VERSION = '3.3.6'
Button.VERSION = '3.3.7'
Button.DEFAULTS = {
loadingText: 'loading...'
@ -214,10 +214,10 @@ if (typeof jQuery === 'undefined') {
if (state == 'loadingText') {
this.isLoading = true
$el.addClass(d).attr(d, d)
$el.addClass(d).attr(d, d).prop(d, true)
} else if (this.isLoading) {
this.isLoading = false
$el.removeClass(d).removeAttr(d)
$el.removeClass(d).removeAttr(d).prop(d, false)
}
}, this), 0)
}
@ -281,10 +281,15 @@ if (typeof jQuery === 'undefined') {
$(document)
.on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) {
var $btn = $(e.target)
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
var $btn = $(e.target).closest('.btn')
Plugin.call($btn, 'toggle')
if (!($(e.target).is('input[type="radio"]') || $(e.target).is('input[type="checkbox"]'))) e.preventDefault()
if (!($(e.target).is('input[type="radio"], input[type="checkbox"]'))) {
// Prevent double click on radios, and the double selections (so cancellation) on checkboxes
e.preventDefault()
// The target component still receive the focus
if ($btn.is('input,button')) $btn.trigger('focus')
else $btn.find('input:visible,button:visible').first().trigger('focus')
}
})
.on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
$(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))
@ -293,10 +298,10 @@ if (typeof jQuery === 'undefined') {
}(jQuery);
/* ========================================================================
* Bootstrap: carousel.js v3.3.6
* Bootstrap: carousel.js v3.3.7
* http://getbootstrap.com/javascript/#carousel
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@ -324,7 +329,7 @@ if (typeof jQuery === 'undefined') {
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
}
Carousel.VERSION = '3.3.6'
Carousel.VERSION = '3.3.7'
Carousel.TRANSITION_DURATION = 600
@ -531,13 +536,14 @@ if (typeof jQuery === 'undefined') {
}(jQuery);
/* ========================================================================
* Bootstrap: collapse.js v3.3.6
* Bootstrap: collapse.js v3.3.7
* http://getbootstrap.com/javascript/#collapse
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
/* jshint latedef: false */
+function ($) {
'use strict';
@ -561,7 +567,7 @@ if (typeof jQuery === 'undefined') {
if (this.options.toggle) this.toggle()
}
Collapse.VERSION = '3.3.6'
Collapse.VERSION = '3.3.7'
Collapse.TRANSITION_DURATION = 350
@ -743,10 +749,10 @@ if (typeof jQuery === 'undefined') {
}(jQuery);
/* ========================================================================
* Bootstrap: dropdown.js v3.3.6
* Bootstrap: dropdown.js v3.3.7
* http://getbootstrap.com/javascript/#dropdowns
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@ -763,7 +769,7 @@ if (typeof jQuery === 'undefined') {
$(element).on('click.bs.dropdown', this.toggle)
}
Dropdown.VERSION = '3.3.6'
Dropdown.VERSION = '3.3.7'
function getParent($this) {
var selector = $this.attr('data-target')
@ -909,10 +915,10 @@ if (typeof jQuery === 'undefined') {
}(jQuery);
/* ========================================================================
* Bootstrap: modal.js v3.3.6
* Bootstrap: modal.js v3.3.7
* http://getbootstrap.com/javascript/#modals
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@ -943,7 +949,7 @@ if (typeof jQuery === 'undefined') {
}
}
Modal.VERSION = '3.3.6'
Modal.VERSION = '3.3.7'
Modal.TRANSITION_DURATION = 300
Modal.BACKDROP_TRANSITION_DURATION = 150
@ -1050,7 +1056,9 @@ if (typeof jQuery === 'undefined') {
$(document)
.off('focusin.bs.modal') // guard against infinite focus loop
.on('focusin.bs.modal', $.proxy(function (e) {
if (this.$element[0] !== e.target && !this.$element.has(e.target).length) {
if (document !== e.target &&
this.$element[0] !== e.target &&
!this.$element.has(e.target).length) {
this.$element.trigger('focus')
}
}, this))
@ -1247,11 +1255,11 @@ if (typeof jQuery === 'undefined') {
}(jQuery);
/* ========================================================================
* Bootstrap: tooltip.js v3.3.6
* Bootstrap: tooltip.js v3.3.7
* http://getbootstrap.com/javascript/#tooltip
* Inspired by the original jQuery.tipsy by Jason Frame
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@ -1274,7 +1282,7 @@ if (typeof jQuery === 'undefined') {
this.init('tooltip', element, options)
}
Tooltip.VERSION = '3.3.6'
Tooltip.VERSION = '3.3.7'
Tooltip.TRANSITION_DURATION = 150
@ -1565,9 +1573,11 @@ if (typeof jQuery === 'undefined') {
function complete() {
if (that.hoverState != 'in') $tip.detach()
that.$element
.removeAttr('aria-describedby')
.trigger('hidden.bs.' + that.type)
if (that.$element) { // TODO: Check whether guarding this code with this `if` is really necessary.
that.$element
.removeAttr('aria-describedby')
.trigger('hidden.bs.' + that.type)
}
callback && callback()
}
@ -1610,7 +1620,10 @@ if (typeof jQuery === 'undefined') {
// width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093
elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top })
}
var elOffset = isBody ? { top: 0, left: 0 } : $element.offset()
var isSvg = window.SVGElement && el instanceof window.SVGElement
// Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3.
// See https://github.com/twbs/bootstrap/issues/20280
var elOffset = isBody ? { top: 0, left: 0 } : (isSvg ? null : $element.offset())
var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() }
var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null
@ -1726,6 +1739,7 @@ if (typeof jQuery === 'undefined') {
that.$tip = null
that.$arrow = null
that.$viewport = null
that.$element = null
})
}
@ -1762,10 +1776,10 @@ if (typeof jQuery === 'undefined') {
}(jQuery);
/* ========================================================================
* Bootstrap: popover.js v3.3.6
* Bootstrap: popover.js v3.3.7
* http://getbootstrap.com/javascript/#popovers
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@ -1782,7 +1796,7 @@ if (typeof jQuery === 'undefined') {
if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
Popover.VERSION = '3.3.6'
Popover.VERSION = '3.3.7'
Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
placement: 'right',
@ -1871,10 +1885,10 @@ if (typeof jQuery === 'undefined') {
}(jQuery);
/* ========================================================================
* Bootstrap: scrollspy.js v3.3.6
* Bootstrap: scrollspy.js v3.3.7
* http://getbootstrap.com/javascript/#scrollspy
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@ -1900,7 +1914,7 @@ if (typeof jQuery === 'undefined') {
this.process()
}
ScrollSpy.VERSION = '3.3.6'
ScrollSpy.VERSION = '3.3.7'
ScrollSpy.DEFAULTS = {
offset: 10
@ -2044,10 +2058,10 @@ if (typeof jQuery === 'undefined') {
}(jQuery);
/* ========================================================================
* Bootstrap: tab.js v3.3.6
* Bootstrap: tab.js v3.3.7
* http://getbootstrap.com/javascript/#tabs
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@ -2064,7 +2078,7 @@ if (typeof jQuery === 'undefined') {
// jscs:enable requireDollarBeforejQueryAssignment
}
Tab.VERSION = '3.3.6'
Tab.VERSION = '3.3.7'
Tab.TRANSITION_DURATION = 150
@ -2200,10 +2214,10 @@ if (typeof jQuery === 'undefined') {
}(jQuery);
/* ========================================================================
* Bootstrap: affix.js v3.3.6
* Bootstrap: affix.js v3.3.7
* http://getbootstrap.com/javascript/#affix
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@ -2229,7 +2243,7 @@ if (typeof jQuery === 'undefined') {
this.checkPosition()
}
Affix.VERSION = '3.3.6'
Affix.VERSION = '3.3.7'
Affix.RESET = 'affix affix-top affix-bottom'

File diff suppressed because one or more lines are too long

5
librerias/jquery/jquery-1.11.3.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -137,8 +137,11 @@
history: {
undo: 'Annuler la dernière action',
redo: 'Restaurer la dernière action annulée'
},
specialChar: {
specialChar: 'CARACTÈRES SPÉCIAUX',
select: 'Choisir des caractères spéciaux'
}
}
});
})(jQuery);

View File

@ -0,0 +1,118 @@
// Starsoft Mongolia LLC Temuujin Ariunbold
(function ($) {
$.extend($.summernote.lang, {
'mn-MN': {
font: {
bold: 'Тод',
italic: 'Налуу',
underline: 'Доогуур зураас',
clear: 'Цэвэрлэх',
height: 'Өндөр',
name: 'Фонт',
superscript: 'Дээд илтгэгч',
subscript: 'Доод илтгэгч',
strikethrough: 'Дарах',
size: 'Хэмжээ'
},
image: {
image: 'Зураг',
insert: 'Оруулах',
resizeFull: 'Хэмжээ бүтэн',
resizeHalf: 'Хэмжээ 1/2',
resizeQuarter: 'Хэмжээ 1/4',
floatLeft: 'Зүүн талд байрлуулах',
floatRight: 'Баруун талд байрлуулах',
floatNone: 'Анхдагч байрлалд аваачих',
shapeRounded: 'Хүрээ: Дугуй',
shapeCircle: 'Хүрээ: Тойрог',
shapeThumbnail: 'Хүрээ: Хураангуй',
shapeNone: 'Хүрээгүй',
dragImageHere: 'Зургийг энд чирч авчирна уу',
selectFromFiles: 'Файлуудаас сонгоно уу',
maximumFileSize: 'Файлын дээд хэмжээ',
maximumFileSizeError: 'Файлын дээд хэмжээ хэтэрсэн',
url: 'Зургийн URL',
remove: 'Зургийг устгах'
},
video: {
video: 'Видео',
videoLink: 'Видео холбоос',
insert: 'Видео оруулах',
url: 'Видео URL?',
providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion болон Youku)'
},
link: {
link: 'Холбоос',
insert: 'Холбоос оруулах',
unlink: 'Холбоос арилгах',
edit: 'Засварлах',
textToDisplay: 'Харуулах бичвэр',
url: 'Энэ холбоос хаашаа очих вэ?',
openInNewWindow: 'Шинэ цонхонд нээх'
},
table: {
table: 'Хүснэгт'
},
hr: {
insert: 'Хэвтээ шугам оруулах'
},
style: {
style: 'Хэв маяг',
p: 'p',
blockquote: 'Иш татах',
pre: 'Эх сурвалж',
h1: 'Гарчиг 1',
h2: 'Гарчиг 2',
h3: 'Гарчиг 3',
h4: 'Гарчиг 4',
h5: 'Гарчиг 5',
h6: 'Гарчиг 6'
},
lists: {
unordered: 'Эрэмбэлэгдээгүй',
ordered: 'Эрэмбэлэгдсэн'
},
options: {
help: 'Тусламж',
fullscreen: 'Дэлгэцийг дүүргэх',
codeview: 'HTML-Code харуулах'
},
paragraph: {
paragraph: 'Хэсэг',
outdent: 'Догол мөр хасах',
indent: 'Догол мөр нэмэх',
left: 'Зүүн тийш эгнүүлэх',
center: 'Төвд эгнүүлэх',
right: 'Баруун тийш эгнүүлэх',
justify: 'Мөрийг тэгшлэх'
},
color: {
recent: 'Сүүлд хэрэглэсэн өнгө',
more: 'Өөр өнгөнүүд',
background: 'Дэвсгэр өнгө',
foreground: 'Үсгийн өнгө',
transparent: 'Тунгалаг',
setTransparent: 'Тунгалаг болгох',
reset: 'Анхдагч өнгөөр тохируулах',
resetToDefault: 'Хэвд нь оруулах'
},
shortcut: {
shortcuts: 'Богино холбоос',
close: 'Хаалт',
textFormatting: 'Бичвэрийг хэлбэржүүлэх',
action: 'Үйлдэл',
paragraphFormatting: 'Догол мөрийг хэлбэржүүлэх',
documentStyle: 'Бичиг баримтын хэв загвар'
},
history: {
undo: 'Буцаах',
redo: 'Дахин хийх'
},
specialChar: {
specialChar: 'Тусгай тэмдэгт',
select: 'Тусгай тэмдэгт сонгох'
}
}
});
})(jQuery);

View File

@ -41,7 +41,13 @@
openInNewWindow: 'Abrir em uma nova janela'
},
table: {
table: 'Tabela'
table: 'Tabela',
addRowAbove: 'Adicionar linha acima',
addRowBelow: 'Adicionar linha abaixo',
addColLeft: 'Adicionar coluna a esquerda',
addColRight: 'Adicionar coluna a direita',
delRow: 'Excluir linha',
delCol: 'Excluir coluna'
},
hr: {
insert: 'Inserir linha horizontal'

View File

@ -51,7 +51,14 @@
openInNewWindow: 'Yeni pencerede aç'
},
table: {
table: 'Tablo'
table: 'Tablo',
addRowAbove: 'Yukarı satır ekle',
addRowBelow: 'Aşağı satır ekle',
addColLeft: 'Sola sütun ekle',
addColRight: 'Sağa sütun ekle',
delRow: 'Satırı sil',
delCol: 'Sütunu sil',
delTable: 'Tabloyu sil'
},
hr: {
insert: 'Yatay çizgi ekle'

View File

@ -38,7 +38,7 @@
videoLink: '视频链接',
insert: '插入视频',
url: '视频地址',
providers: '(优酷, Instagram, DailyMotion, Youtube等)'
providers: '(优酷, 腾讯, Instagram, DailyMotion, Youtube等)'
},
link: {
link: '链接',

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
date_default_timezone_set('America/Bogota');
function equipos($clave,$proyecto,$name,$div)
{
{
$resultado="";
$respuesta = new xajaxResponse('utf-8');
@ -25,20 +25,20 @@ $resultado .="<li class='list-group-item'><a onclick=\"document.getElementById('
}}
$resultado .="</ul></div>";
$respuesta->addAssign("$div","innerHTML","$resultado");
}
else{
$resultado ="<input value='' type='text' id='$name' name='$name' placeholder='$name' class='form-control'
onkeyup=\"xajax_equipos(this.value,$proyecto,'$name','div_$name') \"
$resultado ="<input value='' type='text' id='$name' name='$name' placeholder='$name' class='form-control'
onkeyup=\"xajax_equipos(this.value,$proyecto,'$name','div_$name') \"
>
";
return $resultado;
}
return $respuesta;
return $respuesta;
}
@ -47,7 +47,7 @@ $xajax->registerFunction("equipos");
function cambiar_propiedades($div,$clave,$valor)
{
{
$respuesta = new xajaxResponse('utf-8');
if($clave !="") {
@ -56,11 +56,11 @@ $respuesta->addAssign("$div","$clave"," $valor");}
else{$respuesta->addAssign($div,"style.top","0px");
$respuesta->addAssign($div,"style.height","100%");}
//$respuesta->addAssign("$div","innerHTML","$resultado");
return $respuesta;
@ -131,20 +131,20 @@ $contenido .= "
height: 200px;
width: 200px;
z-index:10;'
onmouseenter=\"xajax_cambiar_propiedades('div_titulo_$row[control]','className','item-galeria-over'); \"
onmouseleave=\"xajax_cambiar_propiedades('div_titulo_$row[control]','className','item-galeria'); \"
onmouseenter=\"xajax_cambiar_propiedades('div_titulo_$row[control]','className','item-galeria-over'); \"
onmouseleave=\"xajax_cambiar_propiedades('div_titulo_$row[control]','className','item-galeria'); \"
><img class='img img-responsive' src='$imagen'>
<div id='div_titulo_$row[control]'
<div id='div_titulo_$row[control]'
style='' class='item-galeria'>
<ul class='list-unstyled'>
<li class=''>$titulo[0]</li>
<li>Autor: $autor[0]</li>
<li>Licencia: $licencia[0]</li>
<input class='form-control' value='$url' onmouseenter='select()'>
</ul>
</div>
</div>
</div>";
}
@ -158,12 +158,12 @@ function json_render($contenido,$tipo,$control){
$campos = "$tipo,$contenido";
$datos = json_decode($contenido, true);
if ($tipo == "html"){
foreach ($datos as $id_campo => $valor) {
foreach ($datos as $id_campo => $valor) {
$campo_nombre = remplacetas('form_campos','id',"$id_campo",'campo_nombre',"") ;
$campo_descripcion = remplacetas('form_campos','id',"$id_campo",'campo_descripcion',"") ;
foreach ($valor as $c => $v) {
foreach ($v as $c1 => $v1) {
$linea .= "<tr><td>$v1</td></tr>";
foreach ($valor as $c => $v) {
foreach ($v as $c1 => $v1) {
$linea .= "<tr><td>$v1</td></tr>";
}
}
}
@ -177,26 +177,26 @@ $linea
";
}
elseif($tipo == "csv") {
foreach ($datos as $id_campo => $valor) {
foreach ($datos as $id_campo => $valor) {
$campo_nombre = remplacetas('form_campos','id',"$id_campo",'campo_nombre',"") ;
$campo_descripcion = remplacetas('form_campos','id',"$id_campo",'campo_descripcion',"") ;
foreach ($valor as $c => $v) {
foreach ($v as $c1 => $v1) {
$linea .= " $v1,";
foreach ($valor as $c => $v) {
foreach ($v as $c1 => $v1) {
$linea .= " $v1,";
}
}
}
$resultado = trim($linea,",");
}
elseif($tipo == "array") {
$array= array();
foreach ($datos as $id_campo => $valor) {
foreach ($valor as $c => $v) {
foreach ($v as $c1 => $v1) {
$array[]= "$v1";
foreach ($datos as $id_campo => $valor) {
foreach ($valor as $c => $v) {
foreach ($v as $c1 => $v1) {
$array[]= "$v1";
}
}
}
$resultado = $array;
@ -213,9 +213,9 @@ function exportar_svg($formulario) {
if($formulario !=""){
$estructura = "$_SESSION[path]/tmp/$formulario/svg/";
if (!file_exists($estructura)) {
if(!mkdir($estructura, 0775, true)) {
die("Fallo al crear las carpetas... $estructura");
}
//$archivo = "milfs/tmp/$nombre";
@ -233,7 +233,7 @@ while( $row = mysqli_fetch_array( $sql ) ) {
$campo_titulo = remplacetas('form_parametrizacion','campo',$formulario,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
$id_campo = $campo_titulo[0];
$titulo = remplacetas('form_datos','id_campo',$campo_titulo[0],'contenido'," control = '$row[control]' ") ;
// if (!is_array($listado_campos)){$listado_campos="<td >$listado_campos</td>";}else {$listado_campos=$listado_campos;}
$linea .= landingpage_contenido_identificador("$row[control]","$formulario","svg",'paginado');
$impresion = landingpage_contenido_identificador("$row[control]","$formulario","svg",'paginado');
@ -552,7 +552,7 @@ $acciones="<div class='btn-group' role='group' aria-label='...'>
<a class='btn btn-info ' target='api' href='$_SESSION[site]/milfs/api.php?id=$id&tipo=simple'> {json simple}</a>
$mapa
<a class='btn btn-info ' target='api' href='$_SESSION[site]/b$id?registros=10'>Mostrar</a>
<a class='btn btn-info ' target='api' href='$_SESSION[site]/s$id?registros=10'>Mostrar</a>
<a class='btn btn-info ' target='api' href='$_SESSION[site]/f$id?registros=10'>Llenar</a>
<a class='btn btn-info ' target='api' href='$_SESSION[site]/g$id?registros=10'>Embeber</a>
<a class='btn btn-info ' target='api' href='$_SESSION[site]/opendata.php?tipo=documento&id=$id'>Doc</a>
@ -3281,7 +3281,7 @@ $acciones="
$nombre = remplacetas('form_id','id',$id_form,'nombre','') ;
$resultado = "
<a name='cabecera'></a>
<h1><a href='b$id_form'>$nombre[0]</a></h1>
<h1><a href='s$id_form'>$nombre[0]</a></h1>
<h2>$descripcion[0]</h2>
$acciones
<div id='mostrar_resultado' class='mostrar_resultado_landingpage'>
@ -3362,8 +3362,8 @@ while( $row = mysqli_fetch_array( $sql ) ) {
<div class='div_proyecto'>
<a href='http://$dominio[0]/e$row[id_empresa]' target ='empresa'>
<div class='proyecto_titulo ' style=''>$row[razon_social]</div>
$logo
$logo
</a>
</div>
@ -3390,7 +3390,7 @@ while( $row = mysqli_fetch_array( $sql ) ) {
</div>
</div>
</section>
<!-- FIN Proyectos -->
<!-- FIN Proyectos -->
";
}else{
@ -3627,7 +3627,7 @@ $contenido
}else {$edicion="";}
$documento="<div id='gen_documento'><a href='opendata.php?tipo=documento&identificador=$identificador'>Generar documento</a></div>";
}
if($plantilla_original=="svg") { return $impresion;}else{
$linea = "
$manejadores
@ -3781,14 +3781,14 @@ if (mysqli_num_rows($sql)!='0'){
$contenido = "";
if(!isset($mapbox_token)) { include("milfs/includes/datos.php"); if(!isset($mapbox_token)) {$error_token = 1; } else {$error_token = "";}}
while( $row = mysqli_fetch_array( $sql ) ) {
//$link = "<a href='b$row[id]?registros=10'> Consultar <i class='glyphicon glyphicon-external-link-square'></i></a>";
//$link = "<a href='s$row[id]?registros=10'> Consultar <i class='glyphicon glyphicon-external-link-square'></i></a>";
$imagen = buscar_imagen($row['id'],'','','');
$geo = buscar_campo_tipo($row['id'],"14");
$ultimo_mapa = remplacetas('form_datos','form_id',$row['id'],'contenido'," id_campo = '$geo[0]'") ;
$mostrar = remplacetas('form_parametrizacion','campo',$row['id'],'descripcion'," tabla='form_id' AND opcion='mostrar_portal'") ;
$llenar = remplacetas('form_parametrizacion','campo',$row['id'],'descripcion'," tabla='form_id' AND opcion='llenar_portal'") ;
$ver_data = remplacetas('form_parametrizacion','campo',$row['id'],'descripcion'," tabla='form_id' AND opcion='ver_data_portal'") ;
if($ultimo_mapa[0] !="") {
$campos = explode(" ",$ultimo_mapa[0]);
$lat = $campos['0'];
@ -3808,13 +3808,14 @@ if (mysqli_num_rows($sql)!='0'){
}else{ $miniatura ="<div class='alert alert-danger'>No se ha definido un token de mapbox</div>";}
}
if($geo[0] !='') { $mapa= "<a href='mapero.php?id=$row[id]' target='mapa'>$miniatura Ver mapa</a>";}else {$mapa='';}
//if($geo[0] !='') { $mapa= "<a href='mapero.php?id=$row[id]' target='mapa'> $miniatura </i>Ver mapa</a>";}else {$mapa='';}
if($geo[0] !='') { $mapa= "<a class='boton_land btn btn-default ' href='mapero.php?id=$row[id]' target='mapa'><i class='glyphicon glyphicons-globe'></i>Mapa</a>";}else {$mapa='';}
$descripcion_limpia = strip_tags($row['descripcion']);
if($imagen !="") {
$imagen ="
<figure>
<a href='b$row[id]?registros=10'>
<a href='s$row[id]?registros=10'>
<img style='max-height:170px; ' class='img img-rounded img-responsive' src='milfs/images/secure/?file=300/$imagen' alt='$row[nombre]'>
<!-- <figcaption class='articulo_caption' >$row[nombre]</figcaption> -->
</a>
@ -3822,25 +3823,25 @@ if (mysqli_num_rows($sql)!='0'){
";
}
$contenido ="
<h2 class='text-center titulo_formulario section-heading'><a href='b$row[id]?registros=10'>$row[nombre] <i class='glyphicon glyphicon-external-link-square'></i></a></h2>
<h2 class='text-center titulo_formulario section-heading'><a href='s$row[id]?registros=10'>$row[nombre] <i class='glyphicon glyphicon-external-link-square'></i></a></h2>
$imagen
<p class='descripcion_formulario text-left'>$descripcion_limpia </p>";
<p class='descripcion_formulario text-left'>$descripcion_limpia </p>";
// if ( $fila%2==0){
if($llenar[0] !="0") {$boton_agregar =" <div class='btn btn-default btn-block ' onclick=\"xajax_formulario_embebido_ajax('$row[id]','','nuevo');\"> <i class='glyphicon glyphicon-plus-sign'></i> Agregar </div>";}
if($llenar[0] !="0") {$boton_agregar =" <div class='boton_land btn btn-default ' onclick=\"xajax_formulario_embebido_ajax('$row[id]','','nuevo');\"> <i class='glyphicon glyphicon-plus-sign'></i> Agregar </div>";}
else{$boton_agregar = "";}
if($ver_data[0] !="0") {$boton_ver_data =" <a target='datos'class='btn btn-default btn-block ' href= 'opendata.php?id=$row[id]'> <i class='glyphicon glyphicons-charts'></i> Ver datos</a>";}
if($ver_data[0] !="0") {$boton_ver_data =" <a target='datos'class='boton_land btn btn-default ' href= 'opendata.php?id=$row[id]'> <i class='glyphicon glyphicons-stats'></i> OpenData</a>";}
else{$boton_ver_data = "";}
if($mostrar[0] !="0") {
//// PRIVACIDAD
$publico = remplacetas('form_id','id',"$row[id]",'publico',"") ;
/// PRIVACIDAD
if($publico[0] =='1') {
if($publico[0] =='1') {
$linea .= "
<div style=' ' class=' articulo_cuadro col-md-4' id='b_articulo_formulario_$row[id]'>
@ -3854,17 +3855,14 @@ if($publico[0] =='1') {
</div>
</div>
<div class='row'>
<div class='col-md-12 animate-box'>
$mapa
</div>
<div class= 'botonera_landing btn-group.btn-group-justified btn-group-sm' role='group' >
$boton_agregar $mapa $boton_ver_data
</div>
$boton_agregar $boton_ver_data
</div>
</div>
";
}else{
}else{
if($llenar[0] !="0"){
$linea .="
<div style=' ' class=' articulo_cuadro col-md-4' id='b_articulo_formulario_$row[id]'>
@ -3882,11 +3880,11 @@ if($publico[0] =='1') {
</div>
$boton_agregar
$boton_agregar
</div>
</div>
";}
}
}else {
@ -3900,7 +3898,7 @@ if($publico[0] =='1') {
<div class='col-lg-4 col-md-12 animate-box'>
<br>
<figure>
<a href='b$row[id]?registros=10'>
<a href='s$row[id]?registros=10'>
$imagen
</a>
<figcaption>$row[nombre]</figcaption>
@ -4062,11 +4060,11 @@ $consulta= " SELECT * FROM form_campos WHERE id = id $w_empresa $w_especialista
$lineas .= "<tr class='$class'><td>$row[id]</td><td>$row[campo_nombre]</td><td>$row[campo_descripcion]</td><td title='Tipo $row[campo_tipo] ' >$campo_tipo</td><td>$row[campo_area]</td><td>$row[activo]</td><td>$row[id_empresa]</td><td>$row[id_especialista] $mio</td><td>$accion</td></tr>";
}
$tabla = "
<div id='div_tabla_campos'>
<legend>
<legend>
<a onclick = \" xajax_campos_tabla('$filtro','div_tabla_campos','$limite','$anterior','$valor'); \"><<< ANTERIORES</a>
Mostrando $cantidad_mostrada de $cantidad_total
<a onclick = \" xajax_campos_tabla('$filtro','div_tabla_campos','$limite','$fin','$valor'); \">SIGUIENTES >>></a>
@ -4623,17 +4621,17 @@ foreach($listado_campos as $campo=>$valor){
@$listado_campos .= "<td title='' >$valor_actual</td>"; }
elseif($tipo_campo[0] =="6" ) {
$contenido_campo =imprimir_buscador_campo($valor,$contenido[0]) ;
@$listado_campos .= "<td title='' >$contenido_campo </td>";
@$listado_campos .= "<td title='' >$contenido_campo </td>";
}
elseif($tipo_campo[0] =="29" ) {
@$listado_campos .= "<td title='' ><img class='img' height='100' src='$contenido[0]'> </td>";
@$listado_campos .= "<td title='' ><img class='img' height='100' src='$contenido[0]'> </td>";
}
elseif($tipo_campo[0] =="30" or $tipo_campo[0] =="24") {
$valor_actual = json_render("$contenido[0]","html","$row[control]");
@$listado_campos .= "<td title='' >$valor_actual </td>";
@$listado_campos .= "<td title='' >$valor_actual </td>";
}
//
//
// if($tipo_campo[0] =="29" ) {$contenido[0] ="<img class='img img-responsive' src='$contenido[0]'> "; }//$contenido="<img class='img img-responsive' src='$contenido'>";
else {
@$listado_campos .= "<td title='$tipo_campo[0]' >$contenido[0]</td>";
@ -5190,7 +5188,7 @@ $consulta = "
$sql=mysqli_query($link,$consulta);
if (mysqli_num_rows($sql)!='0'){
$resultado = "<ul class='list-group'>
";
while( $row = mysqli_fetch_array( $sql ) ) {
@ -5203,7 +5201,7 @@ while( $row = mysqli_fetch_array( $sql ) ) {
}
$icono = "$icon";
$contenido= html_entity_decode($row[contenido]);
$resultadox .= "
<div class='' style='width:50px; heigth:100px; float:left; vertical-align: top; margin: 5px; text-align:center'>
<a href='?id=$perfil&buscar=$categoria_campo:$contenido'>
@ -5571,14 +5569,14 @@ $otro_json = remplacetas('form_parametrizacion','campo',$formulario,'descripcion
$respuesta = new xajaxResponse('utf-8');
if($valores =="") {
$cadena= array();
$ids = json_decode($otro_json[0]);
foreach ($ids as $clave => $valor) {
if($valor !=""){
$li .="$valor[0] $valor[1]\n";
}
@ -5594,7 +5592,7 @@ $resultado ="
return $respuesta;
}else{
//$ids=array();
$cadena= array();
@ -5614,7 +5612,7 @@ $resultado ="
// $ids['formulario']="$formulario";
$resultado =json_encode($cadena);
//parametrizacion_linea($tabla,$campo,$opcion,$descripcion,$div,$script,$item)
$insertar = parametrizacion_linea('form_id',"$formulario","json","$resultado",'','','');
$insertar = parametrizacion_linea('form_id',"$formulario","json","$resultado",'','','');
$respuesta->addAssign("$div","innerHTML","$resultado_visible");
return $respuesta;
}
@ -5945,7 +5943,7 @@ $consulta = "INSERT INTO form_datos ( orden, timestamp,id_usuario,id_empresa,for
$link=Conectarse();
mysqli_real_escape_string($link,$consulta);
mysqli_set_charset($link, "utf8");
if($valor !="") {
$sql=mysqli_query($link,$consulta);
@ -7333,7 +7331,7 @@ while( $row = mysqli_fetch_array( $sql ) ) {
$resultado_campos .= "
<fieldset class='fieldset-borde ' id ='fieldset_$area_nombre'>
<legend class='legend-area' id ='legend_$area_nombre'>$area_nombre</legend>
$campos
$campos
</fieldset>";
}
@ -8259,7 +8257,7 @@ function formulario_embebido($id){
function formulario_embebido_ajax($id,$opciones,$tipo){
$respuesta = new xajaxResponse('utf-8');
$publico = remplacetas('form_id','id',"$id",'modificable',"") ;
$equipo = remplacetas('form_datos','control',$opciones,'equipo',"") ;
$equipo = remplacetas('form_datos','control',$opciones,'equipo',"") ;
if($publico[0] =="0" AND $_SESSION[id] =="") {
$resultado = " <div class='alert alert-danger'><h1>NO tiene permiso para usar este formulario <i class='glyphicon glyphicon-key'></i></h1>";
$respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
@ -8282,12 +8280,12 @@ if($equipo[0] =="" OR is_null($equipo[0]) ) {}else{
if($tipo =='edit' AND ($_SESSION['equipo'] !== $equipo[0] )){
$aviso = "<div class='alert alert-warning text-center '>
<h1><i class='glyphicon glyphicon-exclamation-triangle'></i> ATENCIÓN<br><small>No está autorizado Para modificar esta información</small><br> pertenece a un grupo de trabajo diferente</h1></div>";
$resultado = "
<div class='container-fluid' style=''>
$salir
$aviso
</div>
";
// $respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
@ -8382,8 +8380,8 @@ function json($datos){
//print_r($datos); return;
if(!isset ($datos["tipo"] )) { $datos["tipo"]="";}
if ( !isset ( $_SESSION['id_empresa'] ) ) { $publico = "AND form_id.publico = '1' "; $w_publico = "WHERE form_id.publico = '1' "; }
else {
$publico = "AND form_id.id_empresa = '$_SESSION[id_empresa]'";
else {
$publico = "AND form_id.id_empresa = '$_SESSION[id_empresa]'";
$w_publico = "WHERE form_id.id_empresa = '$_SESSION[id_empresa]' ";
}
$datos = mysql_seguridad($datos);
@ -8400,7 +8398,7 @@ mysqli_set_charset($link, "utf8");
$publico
GROUP BY form_datos.control
ORDER BY form_datos.timestamp DESC";
$sql = mysqli_query($link,$consulta) or die("Error al ejecutar consulta 03 ");
if (mysqli_num_rows($sql)!='0'){
$i = 1;
@ -8408,13 +8406,13 @@ mysqli_set_charset($link, "utf8");
// $features[] = $consulta;
while($row = mysqli_fetch_array( $sql ))
{
if($datos["tipo"]=="simple"){
$id_campo = @remplacetas('form_datos','id',$row["id_dato"],'id_campo',"") ;
//if($privado != '1') {
//$contenido = remplacetas('form_datos','id',$row[id_dato],'contenido',"") ;
//$contenido = remplacetas_orden('form_datos','id',$row[id_dato],'contenido',""," ORDER BY timestamp DESC ") ;
@ -8432,24 +8430,24 @@ mysqli_set_charset($link, "utf8");
else {
// $features[] = $row;
}
$i++;
}
}
if($datos["tipo"] == "array" ) {
$resultado = $features;
}else {
$resultado = json_encode($features,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT);
}
return $resultado;
}
else {
$campos ="form_datos.id as id_dato, form_datos.form_id AS
@ -8465,7 +8463,7 @@ mysqli_set_charset($link, "utf8");
ORDER BY form_datos.control ,form_datos.timestamp ";
}
//return $consulta;
}
elseif($datos["identificador"] !=''){
if($datos["tipo"] =='simple') {$campos ="form_campos.id as id_campo, form_datos.id as id_dato " ;}
@ -8473,7 +8471,7 @@ mysqli_set_charset($link, "utf8");
id_formulario, nombre as formulario, campo_nombre, form_campos.id AS
id_campo ,contenido ,timestamp, control as identificador ,
form_datos.orden" ;}
$consulta = "SELECT $campos
FROM `form_datos` , `form_campos` ,form_id
WHERE form_datos.id_campo = `form_campos`.id
@ -8534,7 +8532,7 @@ $mostrar = mostrar_areas($datos['id'],"","","api");
$features[] = $row;
}
}
$i++;
}
@ -8589,7 +8587,7 @@ $link=Conectarse();
mysqli_set_charset($link, "utf8");
$sql = mysqli_query($link,$consulta) or die("Error al ejecutar consulta 05 ");
$cantidad = mysqli_num_rows($sql);
if (mysqli_num_rows($sql)!='0'){
$id = 1;
@ -8617,14 +8615,14 @@ while( $row = mysqli_fetch_array( $sql ) ) {
$propiedades[localizacion] ="$localizacion[0] ";
if($cantidad < 300) {
}
else {
$campo_titulo = remplacetas('form_parametrizacion','campo',$id_form,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
$titulo = remplacetas('form_datos','id_campo',$campo_titulo[0],'contenido'," control = '$row[control]' ") ;
$propiedades[description] ="$titulo[0]"; }
$propiedades[description] ="$titulo[0]"; }
//$propiedades[description] ="<div class='container-fluid' id='contenedor_datos' >$formulario</div>";
$propiedades[description] ="$formulario";
$propiedades[icon][iconSize] =[60];
@ -9869,7 +9867,7 @@ if($contenido_original !="") {
</div>";
}
}
}
//$resultado .=" </div> <!-- <div class='badge pull-right'>Datos registrados el $fecha </div> --> ";
@ -10170,7 +10168,7 @@ $numero_columna ++;
if(($titulo != "equipo") and ($titulo != "control" ) and ($titulo != "timestamp" ) ) {
if(is_numeric($titulo)) { $titulo =$titulo;}else {$titulo = -9;}
$verificar_campo = formulario_verificar_campo($perfil,$titulo);
$campo_existe = remplacetas('form_campos','id',$titulo,'campo_nombre','');
if($verificar_campo == NULL){$verificar_campo_aviso ="<i class='glyphicon glyphicon-frown-o'></i><small> No existe<br></small>"; $class='danger';
if($campo_existe[0] !='') { $verificar_campo_aviso ="<i class='glyphicon glyphicon-exclamation-triangle'></i><small> No está en el formulario<br></small>";$class='warning';}
@ -11841,7 +11839,7 @@ if (mysqli_num_rows($sql)!='0' ){
$mostrar = remplacetas('form_parametrizacion','campo',$row['id'],'descripcion'," tabla='form_id' AND opcion='mostrar_portal'") ;
$llenar = remplacetas('form_parametrizacion','campo',$row['id'],'descripcion'," tabla='form_id' AND opcion='llenar_portal'") ;
$ver_data = remplacetas('form_parametrizacion','campo',$row['id'],'descripcion'," tabla='form_id' AND opcion='ver_data_portal'") ;
if($geo[0] !='') { $mapa= "<li class='list-group-item'><a href='mapero.php?id=$id' target='mapa'><i class='glyphicon glyphicon-globe'></i> Mapa</a></li>";}else {$mapa='';}
if($i % $divider==0) {
@ -11877,7 +11875,7 @@ $item .= "<!-- <div class='col-sm-$columnas' style=';'> -->
<div class='col-xs-6'>
<h4>$nombre_formulario[0]</h4>
<div style='display:none' id='div_mostrar_portal_$row[id]'></div>
<ul class='list-group'>
<li class='list-group-item'>
@ -11892,7 +11890,7 @@ $item .= "<!-- <div class='col-sm-$columnas' style=';'> -->
<li class='list-group-item'>
<div class='input-group'>
<span class='input-group-addon'>NO</span>
<input type='range' value='$mostrar[0]' class='form-control' NAME='mostrar_portal' id='mostrar_portal' onchange=\"xajax_parametrizacion_linea('form_id','$row[id]','mostrar_portal',(this.value),'div_mostrar_portal_$row[id]'); \"
<input type='range' value='$mostrar[0]' class='form-control' NAME='mostrar_portal' id='mostrar_portal' onchange=\"xajax_parametrizacion_linea('form_id','$row[id]','mostrar_portal',(this.value),'div_mostrar_portal_$row[id]'); \"
min='0' max='1' >
<span class='input-group-addon'>SI</span><span class='input-group-addon alert-success' id= 'div_$name'>Mostrar en el portal</span>
</div>
@ -11900,7 +11898,7 @@ $item .= "<!-- <div class='col-sm-$columnas' style=';'> -->
<li class='list-group-item'>
<div class='input-group'>
<span class='input-group-addon'>NO</span>
<input type='range' value='$llenar[0]' class='form-control' NAME='llenar_portal' id='llenar_portal' onchange=\"xajax_parametrizacion_linea('form_id','$row[id]','llenar_portal',(this.value),'div_mostrar_portal_$row[id]'); \"
<input type='range' value='$llenar[0]' class='form-control' NAME='llenar_portal' id='llenar_portal' onchange=\"xajax_parametrizacion_linea('form_id','$row[id]','llenar_portal',(this.value),'div_mostrar_portal_$row[id]'); \"
min='0' max='1' >
<span class='input-group-addon'>SI</span><span class='input-group-addon alert-success' id= 'div_$name'>Llenar desde el portal</span>
</div>
@ -11908,14 +11906,14 @@ $item .= "<!-- <div class='col-sm-$columnas' style=';'> -->
<li class='list-group-item'>
<div class='input-group'>
<span class='input-group-addon'>NO</span>
<input type='range' value='$ver_data[0]' class='form-control' NAME='ver_data_portal' id='ver_data_portal' onchange=\"xajax_parametrizacion_linea('form_id','$row[id]','ver_data_portal',(this.value),'div_mostrar_portal_$row[id]'); \"
<input type='range' value='$ver_data[0]' class='form-control' NAME='ver_data_portal' id='ver_data_portal' onchange=\"xajax_parametrizacion_linea('form_id','$row[id]','ver_data_portal',(this.value),'div_mostrar_portal_$row[id]'); \"
min='0' max='1' >
<span class='input-group-addon'>SI</span><span class='input-group-addon alert-success' id= 'div_$name'>Ver data desde el portal</span>
</div>
</li>
</ul>
</div>
@ -12151,14 +12149,14 @@ if($control !="") {
if($campo_tipo_accion == 'text'){$render = "<input value='$value' type='text' id='".$id_campo."[".$item."]' name='".$id_campo."[".$item."]' class='form-control' placeholder='$campo_descripcion' > ";}
elseif($campo_tipo_accion == 'date'){
$rango = remplacetas('form_campos_valores','id_form_campo',$id_campo,'campo_valor',"") ;
$campos = explode(":",$rango[0]);
$valores_rango = explode(";",$campos[1]);
$min= $valores_rango[0];
$max= $valores_rango[1];
$render = "<input min='$min' max='$max' value='$value' type='date' id='".$id_campo."[".$item."]' name='".$id_campo."[".$item."]' class='form-control' placeholder='' > <label class='label_date'>$campo_descripcion </label> $rango[0]";
}
elseif($campo_tipo_accion == 'rango'){
@ -12315,7 +12313,7 @@ elseif($campo_tipo_accion == 'email'){$render = "
//$select = select('form_campos_valores','campo_valor','campo_valor','',"id_form_campo = $id_campo",$id_campo."[".$item."]");
$select = select_multiple($id_campo,$id_form,$value,$id_campo."[".$item."]",$control,"");
$render = "$select <small>$campo_descripcion</small>";
// $cols='12';
// $cols='12';
}
elseif($campo_tipo_accion == 'checkbox'){
//$select = select('form_campos_valores','campo_valor','campo_valor','',"id_form_campo = $id_campo",$id_campo."[".$item."]");
@ -12341,9 +12339,9 @@ elseif($campo_tipo_accion == 'email'){$render = "
$cols='12';
}
elseif($campo_tipo_accion == 'firma'){
$render = "
<link href='librerias/firma/signature-pad.css' rel='stylesheet'>
$render = "
<link href='librerias/firma/signature-pad.css' rel='stylesheet'>
<div id='signature-pad' class='m-signature-pad'>
<div class='m-signature-pad--body'>
<canvas id='canvas_firma' onmouseout=\" if (signaturePad.isEmpty()) { alert('Por favor firme primero.'); } else { saveViaAJAX(); }\" ></canvas>
@ -12371,9 +12369,9 @@ elseif($campo_tipo_accion == 'email'){$render = "
}
</script>
<script src=\"librerias/firma/signature_pad.js\"></script>
<script src=\"librerias/firma/signature_pad.js\"></script>
<script src=\"librerias/firma/app.js\"></script>
";
$cols='12';
}
@ -12384,7 +12382,7 @@ elseif($campo_tipo_accion == 'email'){$render = "
$min= $valores_rango[0];
$max= $valores_rango[1];
$render = "
<input min='$min' max='$max' value='$value' type='number' id='".$id_campo."[".$item."]' name='".$id_campo."[".$item."]' class=' has-warning form-control' placeholder='$campo_descripcion' >
<code>(solo números)</code>$rango[0] / $valores_rango[0] - $valores_rango[1]";
@ -12616,7 +12614,7 @@ function formulario_grabar($formulario) {
$id_empresa = remplacetas('form_id','id',$formulario['form_id'],'id_empresa',"") ;
$id_empresa = $id_empresa[0];
}
if(isset ( $_SESSION['equipo'])){$equipo = $_SESSION['equipo']; }else { $equipo = NULL;}
foreach($formulario as $c=>$v){
@ -12624,13 +12622,13 @@ foreach($formulario as $c=>$v){
//LISTA ELEMENTOS DE UN ARRAY
if (is_array($v) ){
foreach($v as $C=>$V){
$campo_tipo = remplacetas("form_campos","id",$c,"campo_tipo","");
$campo_nombre = remplacetas("form_campos","id",$c,"campo_nombre","");
if(@$campo_tipo[0] =="30" OR @$campo_tipo[0] =="24") {
$V=array();
$V[$c]=$v;
$V = json_encode($V);
}
if($V != '') {
@ -12656,7 +12654,7 @@ $datos .= "<p>$$c = \$formulario['$c'][$C]; // <b>$V</b> /$campo_tipo[0] </p>"
$campos = explode(":",$rango[0]);
if($campos[0] =='rango') {
$valores_rango = explode(";",$campos[1]);
$min= $valores_rango[0];
$max= $valores_rango[1];
if($V < $min OR $V > $max) {
@ -12665,7 +12663,7 @@ $datos .= "<p>$$c = \$formulario['$c'][$C]; // <b>$V</b> /$campo_tipo[0] </p>"
$respuesta->addAlert("El campo $campo_nombre[0] debe estar entre $min y $max");
return $respuesta;
}
}
$respuesta->addAssign("input_".$c."[".$C."]","className"," form-group has-success ");
//return $respuesta;
@ -12675,7 +12673,7 @@ $datos .= "<p>$$c = \$formulario['$c'][$C]; // <b>$V</b> /$campo_tipo[0] </p>"
$respuesta->addAlert("El campo $campo_nombre[0] solo acepta valores numéricos");
return $respuesta;
}
}
}
if($campo_tipo[0] =='11' ) {
$rango = remplacetas('form_campos_valores','id_form_campo',$c,'campo_valor',"") ;
@ -12683,7 +12681,7 @@ $datos .= "<p>$$c = \$formulario['$c'][$C]; // <b>$V</b> /$campo_tipo[0] </p>"
if($campos[0] =='rango') {
$valores_rango = explode(";",$campos[1]);
$min= strtotime("$valores_rango[0]");
$ano = date("Y", strtotime($valores_rango[0]));
$mes = date("m", strtotime($valores_rango[0]));
$dia = date("d", strtotime($valores_rango[0]));
@ -12691,16 +12689,16 @@ $datos .= "<p>$$c = \$formulario['$c'][$C]; // <b>$V</b> /$campo_tipo[0] </p>"
if($valores_rango[1] =='0') { $max = time(); $valores_rango[1]= $max; $max_fecha = date("Y-m-d");}else{$max= strtotime("$valores_rango[1]"); $max_fecha= $valores_rango[1];}
$fecha = strtotime("$V");
if($fecha < $min OR $fecha > $max) {
$respuesta->addAssign("input_".$c."[".$C."]","className"," form-group has-error ");
$respuesta->addScript("document.getElementById('".$c."[".$C."]').focus(); ");
$respuesta->addAlert("El campo $campo_nombre[0] debe estar entre $valores_rango[0] y $max_fecha");
return $respuesta;
}
}
$respuesta->addAssign("input_".$c."[".$C."]","className"," form-group has-success ");
//return $respuesta;
@ -12745,7 +12743,7 @@ $valor_original =$V;
/*if(@$campo_tipo[0] =="30") {
$V=array();
$V[$c]=$v;
$V = json_encode($V);
}*/
if(!is_null($existe) AND $tipo =='edit' AND $V =='') {
@ -12780,7 +12778,7 @@ if(($V !='' ) && (is_numeric($c)) AND $repetido !=1 ) {
$campo_tipo = remplacetas("form_campos","id",$c,"campo_tipo","");
if(@$campo_tipo[0] =="30" OR @$campo_tipo[0] =="24") { $V=$V;}else{$V = htmlentities($V);}
if(@$campo_tipo[0] =="18") {
$V = md5("$V");
@ -12977,8 +12975,8 @@ function formulario_campos_render_multiple($id_campo,$id_form,$control,$item) {
$identificador = explode(',',$row[identificador]);
$identificador = $identificador[0];
//$identificador = $row[identificador];
/// banear para que el campo 24 no se comporte como multiple en la edicion
/// banear para que el campo 24 no se comporte como multiple en la edicion
$resultado .= $identificador;
$resultado .= formulario_campos_render($row[id_campo],$id_form,$control,$row[orden],$identificador);
$item = $item + 1;
@ -13449,7 +13447,7 @@ $valor_actual = json_render("$valor","csv","$control");
<div class='checkbox' id='check_$row[campo_valor]' >
<label>
<input type='checkbox' NAME='$name"."[]"."' id='$name"."[]"."'value='$row[campo_valor]' $selected >
$row[campo_valor]
$row[campo_valor]
</label>
</div>";
}
@ -14057,7 +14055,7 @@ $empresa ="
<div class='input-group'>
<span class='input-group-addon'><i class=' glyphicon glyphicon-heart-empty'></i> Proyecto </span>
$empresa
</div>
@ -14085,13 +14083,13 @@ $form = "
<i class='glyphicon glyphicon-user '></i><i class='glyphicon glyphicon-user '></i>
</span>
$equipo
</div>
<div style='position:absolute; z-index:100; left: 50px;' id='div_equipo'></div>
</div>
</div>
<div class='row'>
<div class='col-md-6'>
<label></label>
@ -14668,4 +14666,3 @@ $xajax->registerFunction("XXX");
?>

View File

@ -1,3 +1,4 @@
<?php
session_start();
if($_SESSION['grupo'] != "administrador") {

4
milfs/js/jquery-3.2.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long