consulta($_pagi_sql); // MOSTRAMOS EL NUMERO DE REGISTROS ENCONTRADOS $contenido= " "; while ($row=$db->fetch_array($_pagi_result)) { $tipodocumento = $db->field_text("nombre", "tipodocumento", "tipodocumentoid", $row['tipodocumentoid']); $entidad = $db->field_grupo("nombre", "entidad", "entidadid", $row['documentoid']); $sentencia = $db->field_text("nombre", "sentencia", "sentenciaid", $row['sentenciaid']); $ubicacion = $db->field_text("nombre", "ubicacion", "ubicacionid", $row['ubicacionid']); $contenedor = $db->field_text("nombre", "contenedor", "contenedorid", $row['contenedorid']); $departamento = $db->field_text("nombre", "departamento", "departamentoid", $row['departamentoid']); $municipio = $db->field_text("nombre", "municipio", "municipioid", $row['municipioid']); $tema = $db->field_grupo("nombre", "tema", "temaid", $row['documentoid']); $auto = $db->field_grupo("nombre", "auto", "autoid", $row['documentoid']); $codigo=$row['codigo']; $row['paginas']=intval($row['paginas']); $paginas=( $row['paginas']>0)?$row['paginas']:"N/D"; $contenido.=" "; } $contenido.= "
Codigo Nombre Resumen Tipo Documento Sentencia Auto Entidad Envia Departamento Municipio Año No. Paginas Ubicación Física
".$row['codigo']." ".htmlentities($row['nombre'])." ".htmlentities($row['resumen'])." ".htmlentities($tipodocumento)." ".htmlentities($sentencia)." ".htmlentities($auto)." ".htmlentities($entidad)." ".htmlentities($departamento)." ".htmlentities($municipio)." ".$row['anio_radicado']." ".$paginas." ".htmlentities($ubicacion)." ".htmlentities($row['ubicacion'])." - ".htmlentities($contenedor)." ".htmlentities($row['contenedor'])."
"; echo $contenido; $db->desconectar(); // CERRAMOS LA CONECCION CON LA BASE DE DATOS ?>