multiples formulario en la pagina de inicio

This commit is contained in:
humano 2020-03-27 03:46:26 -05:00
parent e2744553a7
commit bc69500c72

View File

@ -6159,6 +6159,22 @@ if (mysqli_num_rows($sql)!='0'){
return $resultado;
}
function landingpage_formularios($filas,$columnas,$tipo,$plantilla){
$formularios .=
$consulta = "SELECT campo FROM `form_parametrizacion` where opcion = 'mostrar_portal' AND descripcion='1' AND id_empresa ='$id_empresa'";
$link=Conectarse();
mysqli_set_charset($link, "utf8");
$sql=mysqli_query($link,$consulta);
$resultado ="";
if (mysqli_num_rows($sql)!='0'){
while( $row = mysqli_fetch_array( $sql ) ) {
$formularios .= consultar_contenido_formulario("$row[campo]","$columnas",'',"$tipo",'',"$plantilla");
}
}
return $formlularios;
}
function consultar_contenido_formulario($form,$registros,$pagina,$tipo,$orden,$plantilla){
$registros_grid = $registros;
@ -8436,6 +8452,7 @@ return $resultado;
function parametrizacion_linea($tabla,$campo,$opcion,$descripcion,$div,$script,$item){
if(isset($_SESSION['id_empresa']) ){$id_empresa= $_SESSION['id_empresa']; }else{ $id_empresa="";
}
$respuesta = new xajaxResponse('utf-8');
if($tabla =="") {
$resultado = "";
@ -16900,7 +16917,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_mostrar_$row[id]'>Mostrar en el portal</span>
</div>
@ -16908,7 +16925,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_llenar_$row[id]'>Llenar desde el portal</span>
</div>
@ -16916,7 +16933,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='$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_ver_$row[id]'>Ver data desde el portal</span>
</div>