Compare commits

...

4 Commits

5 changed files with 486 additions and 169 deletions

View File

@ -1,27 +1,150 @@
/* GLOBAL STYLES
/*HOJA DE ESTILOS complementaria para sacar los estilos del archivo PHP y centralizarlos
Se propone usar esta hoja de estilos existentes asociado previamente a Portal.php para no crear una hoja
de estilos css adicional, pero se propone la posibilidad de crear y migrar a una hoja de estilos ejmplo: <estilos_portalphp.css>
*/
body {
background: url("") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
color: gray;
background-color: black;
}
.alert-info {
color: #341208;
border-color: #341208;
background-image: url("");
}
.jumbotron {
/* background-image: url("milfs/images/secure/?file=full/<?php echo $logo[0];?>"); */
background-size: cover;
background-position: center;
/* text-shadow: 1px 1px 1px rgba(255,255,255,0.8) ; */
background-color: black;
}
.navbar-header>p {
font-size: 20px;
color: white;
font-family: "Open Sans", sans-serif;
font-weight: normal;
display: inline
}
.navbar-header>strong {
font-size: 20px;
color: #802a2a;
font-weight: normal;
font-family: "Open Sans", sans-serif;
;
display: inline
}
.navbar-header {
width: 50%;
}
.div_aplicacion {
background-color: #f0eee1 !important;
}
.div_aplicacion:hover {
-webkit-animation: animatedBackground 1s ease-out 1;
-moz-animation: animatedBackground 1s ease-out 1;
animation: animatedBackground 1s ease-out 1;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
z-index: 10000;
}
#muestraInfo>.modal-body {
background-color: red !important;
}
@-webkit-keyframes animatedBackground {
0% {
-webkit-transform: scale(1, 1);
-moz-transform: scale(1, 1);
-ms-transform: scale(1, 1);
-o-transform: scale(1, 1);
transform: scale(1, 1)
}
100% {
-webkit-transform: scale(1.1, 1.1);
-moz-transform: scale(1.1, 1.1);
-ms-transform: scale(1.1, 1.1);
-o-transform: scale(1.1, 1.1);
transform: scale(1.1, 1.1)
}
}
@-moz-keyframes animatedBackground {
0% {
-webkit-transform: scale(1, 1);
-moz-transform: scale(1, 1);
-ms-transform: scale(1, 1);
-o-transform: scale(1, 1);
transform: scale(1, 1)
}
100% {
-webkit-transform: scale(1.1, 1.1);
-moz-transform: scale(1.1, 1.1);
-ms-transform: scale(1.1, 1.1);
-o-transform: scale(1.1, 1.1);
transform: scale(1.1, 1.1)
}
}
@keyframes animatedBackground {
0% {
-webkit-transform: scale(1, 1);
-moz-transform: scale(1, 1);
-ms-transform: scale(1, 1);
-o-transform: scale(1, 1);
transform: scale(1, 1)
}
100% {
-webkit-transform: scale(1.1, 1.1);
-moz-transform: scale(1.1, 1.1);
-ms-transform: scale(1.1, 1.1);
-o-transform: scale(1.1, 1.1);
transform: scale(1.1, 1.1)
}
}
.pie {
position: fixed; z-index: 10000;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 50px;
background-color: white;
background-image: url('milfs/images/menosmicos/background.jpg');
/* GLOBAL STYLES FOR CAROUSEL
-------------------------------------------------- */
/* Padding below the footer and lighter body text */
/* CUSTOMIZE THE NAVBAR
-------------------------------------------------- */
/* Special class on .container surrounding .navbar, used for positioning it into place. */
/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */
/* Carousel base class */
.carousel {
height: 500px;
margin-bottom: 60px;
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
z-index: 10;
}
/* Declare heights because of positioning of img element */
@ -29,37 +152,36 @@
height: 500px;
background-color: black;
}
.carousel-inner > .item > img {
.carousel-inner>.item>img {
position: absolute;
top: 0;
margin-left: auto;
height: 500px;
}
/* MARKETING CONTENT
-------------------------------------------------- */
/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
margin-bottom: 20px;
text-align: center;
}
.marketing h2 {
font-weight: normal;
}
.marketing .col-lg-4 p {
margin-right: 10px;
margin-left: 10px;
}
/* Featurettes
------------------------- */
.featurette-divider {
margin: 80px 0; /* Space out the Bootstrap <hr> more */
margin: 80px 0;
/* Space out the Bootstrap <hr> more */
}
/* Thin out the marketing headings */
@ -69,19 +191,20 @@
letter-spacing: -1px;
}
/* RESPONSIVE CSS
-------------------------------------------------- */
@media (min-width: 768px) {
/* Navbar positioning foo */
.navbar-wrapper {
margin-top: 20px;
}
.navbar-wrapper .container {
padding-right: 15px;
padding-left: 15px;
}
.navbar-wrapper .navbar {
padding-right: 0;
padding-left: 0;
@ -108,4 +231,4 @@
.featurette-heading {
margin-top: 120px;
}
}
}

View File

@ -14,6 +14,100 @@ el otro archivo css style.css que está en la carpeta milfs
display: block;
}
/* Portal Consulta*/
#muestraInfo {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
}
#modal-panel-consulta{
position: fixed;
margin: 0;
width: 100% !important;
height: 100%;
padding: 0;
}
#contenido-panel-consulta {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 0;
box-shadow: none;
}
#header-panel-consulta{
position: absolute;
top: 0;
right: 0;
left: 0;
height: 50px;
padding: 10px;
background: #e5e5e5;
border: 0;
}
#panel-buscador {
margin-bottom: 0px !important;
}
#panel-consulta {
padding: 0px;
position: absolute;
top: 50px;
bottom: 30px !important;
display: flex;
width: 100%;
max-height: calc(100vh - 100px);
}
.herramientas-buscador {
padding-left: 15px;
padding-top: 10px;
}
.scroll{
overflow-y: auto;
cursor: pointer;
}
.acciones-consulta>a {
margin-bottom: 3px;
}
#div_resultados{
height: auto !important;
scroll-behavior: auto;
}
#pie_modal{
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 50px;
padding: 12px;
background: #e5e5e5;
}
.panel-heading .glyphicon {
transition: .3s transform ease-in-out;
}
.panel-heading .collapsed .glyphicon {
transform: rotate(90deg);
}
.input-group {
padding-bottom: 10px;
}
/*Fin panel consulta*/
#canvas-holder_$tipo_$id_campo{
max-width:100%;
}
@ -25,6 +119,15 @@ el otro archivo css style.css que está en la carpeta milfs
}
@media (max-width: 480px) {
#contenedor_principal{
padding-left: 0px !important;
padding-right: 0px !important;
}
#contenido>legend {
padding-left: 10px;
}
#modificarcampo_succesalert{
position: relative;
display: block;
@ -32,6 +135,64 @@ el otro archivo css style.css que está en la carpeta milfs
padding-top: 13px;
}
#botonera-panel-consulta{
padding-left: 0px;
}
#div_resultados {
padding-left: 0px;
}
.herramientas-buscador{
padding-left: 0px;
}
#paginador-consultas{
padding-left: 10px;
}
#panel-aplicacion{
padding: 0px !important;
}
.encabezado-app{
padding: 0px !important;
}
.botonera-acciones>li>.btn.btn-default {
margin-bottom: 4px;
}
.datos-app{
padding-right: 0px !important;
}
.botones-editar {
margin-bottom: 3px !important;
}
.panel-app{
padding: 0px !important;
}
.panel-editar{
padding: 0px !important;
}
.email-grupo{
display: block !important;
}
.opciones-portal{
display: table-caption !important;
width: auto !important;
}
.opciones-portal-grupo{
padding: 7px 0px !important;
background-color:transparent !important;
border: none !important;
margin: -3px;
}
.panel-api{
padding: 0px !important;
}
#modificarcampo_succesalert>.input-group-addon{
border: 1px solid #ccc !important;
border-radius: 0px;

View File

@ -7846,7 +7846,7 @@ $xajax->registerFunction("multiempresa");
//funciones panel consulta //
function array_control($form_id,$key,$valor){
$resultado = array();
$consulta = "SELECT control FROM form_datos WHERE form_id = '$form_id' AND id_campo = $key AND contenido = '$valor' ";
@ -7978,43 +7978,41 @@ $fecha = time ();
$ahora = date ( "Y-m-d" , $fecha );
$campos = listar_campos_formulario($id_form,"select");
$peticion = "
<form autocomplete='off' class='form' role='form' name='peticion' id='peticion' action='' target='rss' method='post'>
<form autocomplete='off' class='form' role='form' name='peticion' id='peticion' action='' target='rss' method='post'>
<div class='row'>
<div class='col-xs-3 col-sm-12 col-md-4 col-lg-2'>
<div class='input-group'>
<span class='input-group-addon'>Desde</span>
<input value='2000-01-01' type='date' name='inicio' id='inicio' class='form-control' title='YYYY-MM-DD'>
</div>
</div>
<div class='col-sm-12 col-md-4 col-lg-2'>
<div class='input-group'>
<span class='input-group-addon'>Hasta</span>
<input type='date' name='fin' id='fin' class='form-control' title='YYYY-MM-DD' value='$ahora'>
</div>
</div>
<div class='col-sm-12 col-md-4 col-lg-3'>
<div class='input-group'>
<span class='input-group-addon'><i class='glyphicon glyphicon-filter'></i></span>
$campos
</div>
</div>
<div class='col-sm-10 col-md-11 col-lg-3'>
<div class='input-group'>
<span class='input-group-addon'>Texto</span>
<input value='$busqueda' type=text name='busqueda' id='busqueda' placeholder='Contenido a buscar' class='form-control'>
</div>
</div>
<div class='col-lg-1'>
<input type='hidden' value='$id_form' id='id_form' name='id_form'>
<div class='btn btn-default' OnClick=\"xajax_consultar_formulario(xajax.getFormValues('peticion'),'10','','filtro');\"><i class='glyphicon glyphicon-search'></i></div>
</div>
</div>
<div class='row'>
<div class='col-lg-3'>
<div class='input-group'>
<span class='input-group-addon'>Inicio</span>
<input value = '2000-01-01' type='date' name='inicio' id='inicio' class='form-control' title='YYYY-MM-DD'>
</div>
</div>
<div class='col-lg-3'>
<div class='input-group'>
<span class='input-group-addon'>Fin</span>
<input type='date' name='fin' id='fin' class='form-control' title='YYYY-MM-DD' value='$ahora' >
</div>
</div>
</form>
<div class='col-lg-2'>
<div class='input-group'>
<span class='input-group-addon'>Frase</span>
<input value='$busqueda' type=text name='busqueda' id='busqueda' placeholder='Cadena de busqueda' class='form-control' >
</div>
</div>
<div class='col-lg-3'>
<div class='input-group'>
<span class='input-group-addon'><i class='glyphicon glyphicon-filter'></i></span>
$campos
</div>
</div>
<div class='col-lg-1'>
<input type='hidden' value='$id_form' id='id_form' name ='id_form'>
<div class='btn btn-default' OnClick=\"xajax_consultar_formulario(xajax.getFormValues('peticion'),'10','','filtro');\"><i class='glyphicon glyphicon-search'></i></div>
</div>
</div>
</form>
";
/////// FILTRO
@ -8061,34 +8059,64 @@ $boton_borrar = "
<li class=''><a title='Cambiar a la pagina $pages' onClick=\"xajax_consultar_formulario(xajax.getFormValues('peticion'),'$registros','$pages','');\"' style='cursor:pointer'><i class='glyphicon glyphicon-step-forward'></i> </a></li>"; }
}
$paginacion = "<ul class='pagination '>$link</ul>";
$paginacion = "<div' id='paginador-consultas'><ul class='pagination'>$link</ul></div>";
$encabezado = " <div class='row'>
<div class='col-sm-12'>
$peticion
</div>
</div>
<div class='row' id='botonera'>
<div class='col-sm-12'>
<ul class='pagination'>
<li role='presentation'><span>$total_registros registros</span></li>
<li role='presentation'>$boton_borrar</li>
<li role='presentation'>$boton_exportar</li>
$encabezado = "
<div class='row'>
<div id='container-buscador-consultas' class='col-xs-3 col-sm-6 col-md-8 col-lg-12'>
<div id='panel-buscador' class='panel-group'>
<div id='buscador-consulta' class='panel panel-default'>
<div class='panel-heading'>
<h4 class='panel-title'>
<a class='accordion-toggle' data-toggle='collapse' data-parent='#accordion' href='#collapseTwo'>
<i class='glyphicon glyphicon-chevron-right pull-right'> </i> Herramienta Buscador
</a>
</h4>
</div>
<div id='collapseTwo' class='panel-collapse collapse'>
<div id='caja-consultas' class='panel-body'>
<div class='scroll'>
<div id='botonera-panel-consulta' class=' col-sm-12'>
$peticion
</div>
</div>
<div class='row' id='botonera'>
<div class='col-sm-12'>
<ul class='pagination'>
<li role='presentation'><span>$total_registros registros</span></li>
<li role='presentation'>$boton_borrar</li>
<li role='presentation'>$boton_exportar</li>
</ul>
<a class='accordion-toggle' data-toggle='collapse' data-parent='#accordion' href='#collapseTwo'>
<i class='fa fa-chevron-up pull-right'></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class='row'>
<div class='col-xs-3 col-sm-6 col-md-8 col-lg-12'>
$paginacion
</div>
</div>
";
</ul>
$paginacion
</div>
</div>";
$total_registros = mysqli_num_rows($sql);
$nombres_campos = listar_campos_formulario("$id_form","nombres");
foreach($nombres_campos as $campo_nombre=>$nombre){
$listado_nombres .= "<th>$nombre</th>";
}
$listado_nombres = "<tr><th class='actions' ></th><th>Identificador</th><th></th><th>Respuestas</th>$listado_nombres </tr>";
$listado_nombres = "<tr><th class='actions' ></th><th id='id_consultas'>Identificador</th><th>Respuestas</th>$listado_nombres </tr>";
$listado_campos = listar_campos_formulario("$id_form",'');
while( $row = mysqli_fetch_array( $sql ) ) {
@ -8201,24 +8229,24 @@ foreach($campos as $campo=>$valor){
}
$menu ="<td class='actions $alert ' >
$menu ="<td class='actions $alert ' >
<div class='container-fluid'>
<div class='row'>
<div class='col-md-12'>
<a class='btn btn-default btn-xs' target='form' href='../I$row[control]'><i class='glyphicon glyphicon-eye-open'></i> Plantilla</a>
<div class='acciones-consulta col-md-12'>
<a class='btn btn-default btn-xs ' target='form' style='width: 100%; text-align: left;' href='../I$row[control]'><i class='glyphicon glyphicon-eye-open'></i> Plantilla</a>
</div>
<div class='col-md-12' >
<div class='acciones-consulta col-md-12' >
$areas
<div id='areas_$row[control]'></div>
</div>
</div >
<div class='row'>
<div class='col-md-12'>
<a title='Editar' class='btn btn-default btn-xs' onclick=\"xajax_formulario_embebido_ajax('','$row[form_id]','$row[control]','edit'); \"><i class='glyphicon glyphicon-pencil'></i> E</a>
<a title='Borrar' class='btn btn-default btn-xs' onclick=\"xajax_eliminar_identificador('$row[control]','','$row[form_id]'); \" href='#'><i class='glyphicon glyphicon-trash'></i> B</a>
<a title='Clonar' class='btn btn-default btn-xs' onclick=\"xajax_clonar_identificador('$row[control]',''); \" href='#'><i class='glyphicon glyphicon-clone'></i> C</a>
<div class='acciones-consulta col-md-12'>
<a title='Editar' class='btn btn-danger btn-xs' onclick=\"xajax_formulario_embebido_ajax('','$row[form_id]','$row[control]','edit'); \"><i class='glyphicon glyphicon-pencil'></i> E</a>
<a title='Borrar' class='btn btn-default btn-xs pull-right' onclick=\"xajax_eliminar_identificador('$row[control]','','$row[form_id]'); \" href='#'><i class='glyphicon glyphicon-trash'></i> B</a>
<a title='Clonar' class='btn btn-default btn-xs' style='width: 100%; text-align: left;' onclick=\"xajax_clonar_identificador('$row[control]',''); \" href='#'><i class='glyphicon glyphicon-retweet'></i> Clonar</a>
<div id='eliminar_$row[control]'></div>
<div id='clonar_$row[control]'></div>
</div>
@ -8244,7 +8272,7 @@ foreach($campos as $campo=>$valor){
</td>";
$lineas .= " <tr>$menu<td>$row[control]</td>$listado_campos</tr>";
$lineas .= " <tr>$menu<td style='word-break: break-all;'>$row[control]</td>$listado_campos</tr>";
}
@ -8264,6 +8292,7 @@ $encabezado
$tabla
</div>
$paginacion
";
}
else {
@ -8310,7 +8339,7 @@ $datos ="$boton_descarga";
$datos = $resultado;
}
$div ="contenido_de_modal";
$resultado = "<div class=''> $datos</div>";
$resultado = "<div class='herramientas-buscador'> $datos</div>";
$div_contenido = "<div id='$div' >$div</div>";
$respuesta->addAssign("muestra_form","innerHTML","$div_contenido");
//$respuesta->addAssign("titulo_modal","innerHTML","Hola mundo");
@ -17023,22 +17052,22 @@ ${"key_escritura_".$id} = remplacetas('form_permisos','form_id',"$id",'permiso
${"key_administrador_".$id} = remplacetas('form_permisos','form_id',"$id",'permiso',"id_empresa = '$_SESSION[id_empresa]' AND tipo='administrador'") ;
$item .= "<!-- <div class='col-sm-$columnas' style=';'> -->
<div class='panel panel-default' id='panel_$row[id]'>
<div class='panel-heading' id= 'encabezado_$row[id]' role='tab'>
<div class='panel-title container-fluid'>
<div class='panel panel-default panel-app' id='panel_$row[id]'>
<div class='panel-heading encabezado-app' id= 'encabezado_$row[id]' role='tab'>
<div id='panel-aplicacion' class='panel-title container-fluid'>
<div class='col-xs-12 col-sm-12col-md-12 col-lg-12' >
<h2 >$row[id]
<small>$nombre_formulario[0]</small>
</h2>
<ul class='list-group col-md-6'>
<ul class='list-group datos-app col-md-6'>
<li class='list-group-item'>Creación: $row[creacion] / $propietario[0]</li>
$cantidad
$mapa
</ul>
<ul class='list-group col-md-6'>
<ul class='list-group datos-app col-md-6'>
$ultimo
$primer
@ -17052,7 +17081,7 @@ $item .= "<!-- <div class='col-sm-$columnas' style=';'> -->
<div style='display:none' id='div_mostrar_portal_$row[id]'></div>
<ul class='list-group'>
<ul class='list-group botonera-acciones'>
<li class='list-group-item'>
<div class='btn btn-default' onclick=\"xajax_consultar_formulario('$row[id]','10','','modal'); \"><i class='glyphicon glyphicon-eye-open'></i> Consultar</div>
<a class='btn btn-default ' onclick =\" xajax_formulario_importar_subir('$id') \" ><i class='glyphicon glyphicon-upload'></i> Importar</a>
@ -17063,74 +17092,81 @@ $item .= "<!-- <div class='col-sm-$columnas' style=';'> -->
<i class='glyphicon glyphicon-edit'></i> Editar
</a>
<a class='btn btn-default collapsed' role='button' data-toggle='collapse' data-parent='#acordion_grid' href='#api$row[id]' aria-expanded='false' aria-controls='api$row[id]'>API
</a>
<a class='btn btn-default collapsed text-right' role='button' data-toggle='collapse' data-parent='#acordion_grid' href='#config_form$row[id]' aria-expanded='false' aria-controls='config_form$row[id]'>
<i class='glyphicon glyphicon-cog'></i>
</a>
</li>
<div id='config_form$row[id]' class='panel-collapse collapse' role='tabpanel' aria-labelledby='encabezado_$row[id]'>
<div class='panel-body' >
<div class='container-fluid'>
<div id='config_form$row[id]' class='panel-collapse collapse' role='tabpanel' aria-labelledby='encabezado_$row[id]'>
<div class='panel-api panel-body'>
<div class='container-fluid'>
<legend>Portal</legend>
<li class='opciones-portal-grupo 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]','',''); \"
min='0' max='1'>
<span class='input-group-addon'>SI</span><span class='opciones-portal input-group-addon alert-success' id='div_mostrar_$row[id]'>Mostrar en el portal</span>
</div>
</li>
<li class='opciones-portal-grupo list-group-item'>
<div class='input-group'>
<span class='input-group-addon'>NO</span>
<input type='range' value='$ignorar_areas[0]' class='form-control' NAME='ignorar_areas' id='ignorar_areas' onchange=\"xajax_parametrizacion_linea('form_id','$row[id]','ignorar_areas',(this.value),'div_ignorar_areas_$row[id]','',''); \"
min='0' max='1'>
<span class='input-group-addon'>SI</span><span class='opciones-portal input-group-addon alert-success' id='div_ignorar_areas_$row[id]'>Ignorar áreas del formulario</span>
</div>
</li>
<li class='opciones-portal-grupo 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]','',''); \" min='0'
max='1'>
<span class='input-group-addon'>SI</span><span class='opciones-portal input-group-addon alert-success' id='div_llenar_$row[id]'>Llenar desde el portal</span>
</div>
</li>
<li class='opciones-portal-grupo 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]','',''); \"
min='0' max='1'>
<span class='input-group-addon'>SI</span><span class='opciones-portal input-group-addon alert-success' id='div_ver_$row[id]'>Ver data desde el portal</span>
</div>
</li>
</div>
</div>
</div>
<div id='api' class='row'>
<legend>API</legend>
<div id='api$row[id]' class='panel-collapse collapse' role='tabpanel' aria-labelledby='encabezado_$row[id]'>
<div class='panel-api panel-body'>
<div class='container-fluid'>
<div id='api' class='row'>
<legend>API</legend>
<button class='btn btn-warning' onclick=\"xajax_generar_token('token_administrador_$id','administrador'); \"> <i class='glyphicon glyphicon-refresh'></i> Token administrador</button></span>
<div class='form-group'>
<textarea rows='4' class='form-control ' id='token_administrador_"."$id"."' readonly>".${"key_administrador_".$id}[0]."</textarea>
<legend id='token_administrador_$id"."_aviso' style='overflow-wrap:break-word;'></legend>
</div>
<button class='btn btn-warning' onclick=\"xajax_generar_token('token_administrador_$id','administrador'); \"> <i class='glyphicon glyphicon-refresh'></i> Token administrador</button></span>
<div class='form-group'>
<textarea rows='4' class='form-control ' id='token_administrador_"."$id"."' readonly>".${"key_administrador_".$id}[0]."</textarea>
<legend id='token_administrador_$id"."_aviso' style='overflow-wrap:break-word;'></legend>
</div>
<button class='btn btn-warning' onclick=\"xajax_generar_token('token_lectura_$id','lectura'); \"> <i class='glyphicon glyphicon-refresh'></i> Token lectura</button></span>
<div class='form-group'>
<textarea rows='4' class='form-control ' id='token_lectura_"."$id"."' readonly>".${"key_lectura_".$id}[0]."</textarea>
<legend id='token_lectura_$id"."_aviso' style='overflow-wrap:break-word;'></legend>
</div>
<button class='btn btn-warning' onclick=\"xajax_generar_token('token_lectura_$id','lectura'); \"> <i class='glyphicon glyphicon-refresh'></i> Token lectura</button></span>
<div class='form-group'>
<textarea rows='4' class='form-control ' id='token_lectura_"."$id"."' readonly>".${"key_lectura_".$id}[0]."</textarea>
<legend id='token_lectura_$id"."_aviso' style='overflow-wrap:break-word;'></legend>
</div>
<button class='btn btn-warning' onclick=\"xajax_generar_token('token_escritura_$id','escritura'); \"> <i class='glyphicon glyphicon-refresh'></i> Token escritura</button></span>
<div class='form-group'>
<textarea rows='4' class='form-control ' id='token_escritura_"."$id"."' readonly>".${"key_escritura_".$id}[0]."</textarea>
<legend id='token_escritura_$id"."_aviso' style='overflow-wrap:break-word;'></legend>
</div>
<legend>Portal</legend>
<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]','',''); \"
min='0' max='1' >
<span class='input-group-addon'>SI</span><span class='input-group-addon alert-success' id= 'div_mostrar_$row[id]'>Mostrar en el portal</span>
</div>
</li>
<li class='list-group-item'>
<div class='input-group'>
<span class='input-group-addon'>NO</span>
<input type='range' value='$ignorar_areas[0]' class='form-control' NAME='ignorar_areas' id='ignorar_areas' onchange=\"xajax_parametrizacion_linea('form_id','$row[id]','ignorar_areas',(this.value),'div_ignorar_areas_$row[id]','',''); \"
min='0' max='1' >
<span class='input-group-addon'>SI</span><span class='input-group-addon alert-success' id= 'div_ignorar_areas_$row[id]'>Ignorar áreas del formulario</span>
</div>
</li>
<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]','',''); \"
min='0' max='1' >
<span class='input-group-addon'>SI</span><span class='input-group-addon alert-success' id= 'div_llenar_$row[id]'>Llenar desde el portal</span>
</div>
</li>
<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]','',''); \"
min='0' max='1' >
<span class='input-group-addon'>SI</span><span class='input-group-addon alert-success' id= 'div_ver_$row[id]'>Ver data desde el portal</span>
</div>
</li>
</div>
</div>
</div>
<button class='btn btn-warning' onclick=\"xajax_generar_token('token_escritura_$id','escritura'); \"> <i class='glyphicon glyphicon-refresh'></i> Token escritura</button></span>
<div class='form-group'>
<textarea rows='4' class='form-control ' id='token_escritura_"."$id"."' readonly>".${"key_escritura_".$id}[0]."</textarea>
<legend id='token_escritura_$id"."_aviso' style='overflow-wrap:break-word;'></legend>
</div>
</div>
</div>
</div>
</div>
</ul>
@ -17140,20 +17176,20 @@ $item .= "<!-- <div class='col-sm-$columnas' style=';'> -->
</div>
<div id='collapse$row[id]' class='panel-collapse collapse' role='tabpanel' aria-labelledby='encabezado_$row[id]'>
<div class='panel-body' >
<div class='panel-editar panel-body' >
<div class='container-fluid'>
<div class='row'>
<div class='col-md-4'>
<div class='botones-editar col-sm-4'>
<div class='btn btn-block btn-success' onclick=\"xajax_agregar_campos('consultar_campos','contenido','$row[id]','')\">Agregar o quitar campos</div>
</div>
<!-- <div class='col-md-4'>
<!-- <div class='botones-editar col-md-4'>
<a class='btn btn-primary btn-block' href='#' onclick=\"xajax_formulario_modal('$row[id]','','',''); \">Llenar</a>
</div> -->
<div class='col-md-4'>
<div class='botones-editar col-sm-4'>
<a class='btn btn-warning btn-block' href='#' onclick=\"xajax_formulario_parametrizacion($row[id],'','contenido',''); \">Parametrización</a>
</div>
<div class='col-md-4'>
<div class='botones-editar col-sm-4'>
<div id='eliminar_$row[id]'> <a class='btn btn-danger btn-block' href='#' onclick=\"xajax_formulario_eliminar($row[id],''); \"><i class='glyphicon glyphicon-trash'></i> Eliminar</a></div>
</div>
</div>
@ -17205,7 +17241,7 @@ $item .= "<!-- <div class='col-sm-$columnas' style=';'> -->
</li>
<li class='list-group-item'>
<div id='div_email_envio_$row[id]'>
<div class='input-group' >
<div class='email-grupo input-group' >
<span class='input-group-addon'>Definir un email para envío</span>
<input class='form-control' id='email_envio_$row[id]' name='email_envio_$row[id]' value='$email_envio[0]'>
<div class='input-group-btn'>

View File

@ -1,19 +1,19 @@
<?php
$usuario="root";
$password="toor";//
$servidor="localhost";
$db="galenux_troconis";
$usuarios_sesion="GaleNUx_htroconis";
$path_instalacion ="/var/www/html/milfs/";
$password="toor";
$servidor="127.0.0.1";
$db="tupale";
$usuarios_sesion="Tupale";
$path_instalacion ="/home/julih/Documents/www/tupali/milfs";
$path_images_secure ="/home/images_secure";
$url = "http://localhost/milfs/";
$site = "http://localhost/";
$url = "http://localhost/tuapli/";
$site = "http://localhost/tupali/";
/// ESCAPAR LAS COMILLAS CON (\)
$codigo_analizador = " ";
/// Depende de la variable http://php.net/upload-max-filesize o en el .htaccess
$upload_size = "30"; // Tamaño permitido para las imagenes en MB
$mapbox_token = "pk.eyJ1IjoiZmNhc3Ryb3QiLCJhIjoiY2lnOWw1bmd1MG93eXVsbTJpcmluYTBxdCJ9.yG7C1rEH6-MpZBEEb68IVg";
$tabla_autenticacion="d9_users";
$tabla_autenticacion="usuarios";
$site='';

View File

@ -291,20 +291,17 @@ echo "</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'>
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'><i class='fa fa-times-circle'></i></button>
<div class='modal-header' >
<h4 class='modal-title' id='myModalLabel_info'><div id='titulo_modal'></div></h4>
<div id='modal-panel-consulta' class='modal-dialog' >
<div id='contenido-panel-consulta' class='modal-content'>
<div id='header-panel-consulta' class='modal-header' >
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'><i class='glyphicon glyphicon-remove'></i> </button>
<h4 class='modal-title' id='myModalLabel_info'><div id='titulo_modal'></div>Panel Consulta</h4>
</div>
<div class='modal-body'>
<div id='panel-consulta' class='modal-body'>
<?php include("psi.php") ;?>
<div id='muestra_form'></div>
</div>
<div class='modal-footer' id='pie_modal'>
</div>
</div>
</div>