Planilla, encabezado y pie

This commit is contained in:
fredyrivera 2017-09-30 17:22:29 -05:00
parent 75fb5182a3
commit d24d1b69ff

View File

@ -14,9 +14,27 @@ mysqli_data_seek($sql_total, 0);
$titulo = formulario_imprimir_linea("$id",$row[control],'titulos');
$nombre_formulario = remplacetas("form_id","id",$id,"nombre","");
$descripcion_formulario = remplacetas("form_id","id",$id,"descripcion","");
$empresa = remplacetas("form_id","id","$id","id_empresa","");
$id_empresa= $empresa[0];
$imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
$razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
$web = remplacetas("empresa","id",$id_empresa,"web","");
$slogan = remplacetas("empresa","id",$id_empresa,"slogan","");
$pie = empresa_datos("$id_empresa",'pie');
$cabecera="
<div class='cabecera_planilla row'>
<div class='col-xs-2'>
<img src='milfs/images/secure/?file=150/$imagen[0]' class='img img-responsive img_planilla'>
</div>
<div class=''col-xs-10>
<h1>$razon_social[0] <small>$slogan[0]</small></h1>
<h2>$nombre_formulario[0] <small>$descripcion_formulario[0]</small></h2>
</div>
</div>";
$fila=1;
while( $row = mysqli_fetch_array( $sql ) ) {
if($fila % $registros == 0) {$separador="</table><div class='saltopagina'></div><h1>$nombre_formulario[0] <small>$descripcion_formulario[0]</small></h1><table class='table table-bordered table-striped'><th></th>$titulo";}else {$separador="";}
if($fila % $registros == 0) {$separador="</table>$pie<div class='saltopagina'></div>$cabecera<table class='table table-bordered table-striped'><th></th>$titulo";}else {$separador="";}
$linea = formulario_imprimir_linea("$id","$row[control]","linea_planilla");
$despliegue .= "<tr><td><small>$fila</small></td>$linea</tr> $separador";
//formulario_imprimir_linea("$row[form_id]","$row[control]")
@ -25,8 +43,8 @@ $linea = formulario_imprimir_linea("$id","$row[control]","linea_planilla");
}
$tabla= "<h1>$nombre_formulario[0] <small>$descripcion_formulario[0] </small></h1><table class='table table-bordered table-striped'><th></th>$titulo $despliegue</table>";
return "$tabla";
$tabla= "$cabecera<table class='table table-bordered table-striped'><th></th>$titulo $despliegue</table>$pie";
return "<div class='container-fluid'>$tabla</div>";
}