mejoras en infinity scroll

This commit is contained in:
humano 2018-11-29 07:07:52 -05:00
parent 00c726b3cf
commit c6b3abcd6c
2 changed files with 52 additions and 20 deletions

View File

@ -33,7 +33,8 @@ if(isset($_REQUEST['formato'])){
//print_r($array);//echo "hola li";
$json= json($datos);
$array = json_decode($json);
echo array_linea($array,$_REQUEST['formato'],$_REQUEST['id']);
echo array_linea($array,$_REQUEST['formato'],$_REQUEST['id'])." ";
//echo "".build_list($array,$_REQUEST['formato'],$_REQUEST['id']);
//echo $json;
//echo planilla($datos['id'],$datos['registros'],"dinamico");

View File

@ -294,11 +294,11 @@ function vista_voyeur($form){
}else{
$galeria= "
<section id='galeria' class='' >
<div class='container-fluid'>
<div class=''>
<div style='overflow-y: scroll; overflow-x: hidden; max-height: calc(100vh - 50px); min-height: calc(100vh - 50px); '>
<br>
<div class='container'>
<table class='table table-bordered table-striped exportable'>
<table class='table table-condensed table-voyeur table-striped '>
<thead></thead>
<tbody style=' ' id='scroll-galeria' >
</tbody>
@ -315,24 +315,15 @@ function vista_voyeur($form){
$encabezado="el encabezado";
$onload="
$onload="
<div class='reveal' style='bottom: 50px !important; '>
<div class='slides' >
<section id='inicio' class='text-center scrollable' >
<img style='width: 20%;
display: block;
margin-left: auto;
margin-right: auto;' src='milfs/images/secure/?file=600/$logo[0]' alt='' class='img img-responsive center-block'>
<h1>$titulo[0]</h1>
<h2>$descripcion[0]</h2>
<hr>
<h2>$razon_social[0]</h2>
<h3>$slogan[0]</h3>
<hr>
<div class='revealx' style='top: 0px !important; '>
<div class='slidesx' >
<div id='inicio' class='text-center scrollable' >
$encabezado
<a href='https://tupale.co'>Tupale.co</a>
</section>
</div>
$galeria
@ -349,8 +340,37 @@ function vista_voyeur($form){
function array_linea($datos,$tipo,$id){
$output="";
include("includes/datos.php");
//$id_campo = campo_titulo($form) ;
$debug = print_r($datos,true);
foreach ($datos[0] as $id_campo => $valor) {
$form= remplacetas('form_datos','control',"$valor",'form_id','');
$titulo = remplacetas('form_id','id',$form[0],'nombre',"") ;
$campo_titulo = campo_titulo($form[0]) ;
$id_empresa ="$form[7]";
$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','') ;
$id_usuario = "$form[6]";
$autor = remplacetas("$tabla_autenticacion","id",$id_usuario,"username",'') ;
$email = remplacetas("$tabla_autenticacion","id",$id_usuario,"email",'') ;
$imagen = remplacetas("$tabla_autenticacion","id",$id_usuario,"imagen",'') ;
$default = "https://tupale.co/milfs/images/profile.jpg";
$fecha = date("Y-m-d H:i:s", $form[4]);
if($imagen[0] !=""){$gravatar = $imagen[0];}
else{$gravatar = "https://www.gravatar.com/avatar/" . md5( strtolower( trim( $email[0] ) ) ) . "?d=" . urlencode( $default ) . "&s=20";}
if($autor[0] ==""){$autor[0] ='Anónimo';}
$avatar = "<img style='width:50px;' class='img img-rounded' src='milfs/images/secure/?file=150/$logo[0]'>";
$gravatar = "<img style='width:20px; display: inline-block;' class='img img-circle' src='$gravatar'>";
$cabecera = "<span class=''> <strong>$titulo[0]</strong> $gravatar $autor[0] $fecha</span>";
if( $id_campo=="identificador") {
if(!is_array($valor)){
if($tipo =='li'){
@ -362,7 +382,18 @@ function array_linea($datos,$tipo,$id){
}
elseif($tipo =='voyeur'){
//$output .= formulario_imprimir_linea("","$valor","voyeur")."";
$output .= "<td class='td_array_linea'>".mostrar_identificador("$valor","","","","")."</td>";
$output .= "<td>
<table class='table'>
<thead>$cabecera</thead>
<tbody>
<tr>
<td>$avatar <small>$razon_social[0]</small> </td>
<td class='td_array_linea'>".mostrar_identificador("$valor","","","","")."</td>
</tr>
</tbody>
</table>
</td>";
}