File: /home/asjudine/public_html/creditos/listcompleto_solicitudcredito_deudor.php
<?
include("head.php");
include("datacon.php");
?>
<?
$limitPerPage = 10;
$initStartLimit = 0;
if (!isset($startLimit))
{
$startLimit = $initStartLimit;
}
$querylimit = " limit $startLimit,$limitPerPage ";
$nextStartLimit = $startLimit + $limitPerPage;
$previousStartLimit = $startLimit - $limitPerPage;
if ($sortby!="")
{
$sorted = " order by $sortby ";
}
$bareQuery = "select ciudad,fecha,apellidosynombres,cedula,cedulade,empresa,tiemposervicio,grado,ocupacion,codigo,estadocivil,direccionresidencia,ciudadresidencia,barrio,telefono,banco,cuenta,sucursal,tipodemercancia,valorsolicitado,plazomeses,valorcuotas,devengado,descuentos,disponible,valorcredito,valorlibranza,valorcuota,refco_nombre1,refco_direccion1,refco_telefono1,refco_nombre2,refco_direccion2,refco_telefono2,refco_nombre3,refco_direccion3,refco_telefono3,refper_nombre1,refper_direccion1,refper_telefono1,refper_nombre2,refper_direccion2,refper_telefono2,refper_nombre3,refper_direccion3,refper_telefono3 from solicitudcredito_deudor ";
$queryall = $bareQuery.$sorted.$querylimit;
$resultall = MYSQL_QUERY($queryall);
$numberall = mysql_Numrows($resultall);
if ($numberall==0) {
echo "No Records Found !";
}
else if ($numberall>0) {
$x=0;
?>
<h3>List of Solicitudcredito_deudor </h3>
<table border=0 cellspacing=0 cellpadding=10>
<tr>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=ciudad&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">CIUDAD</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=fecha&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">FECHA</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=apellidosynombres&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">APELLIDOSYNOMBRES</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=cedula&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">CEDULA</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=cedulade&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">CEDULADE</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=empresa&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">EMPRESA</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=tiemposervicio&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">TIEMPOSERVICIO</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=grado&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">GRADO</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=ocupacion&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">OCUPACION</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=codigo&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">CODIGO</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=estadocivil&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">ESTADOCIVIL</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=direccionresidencia&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">DIRECCIONRESIDENCIA</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=ciudadresidencia&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">CIUDADRESIDENCIA</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=barrio&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">BARRIO</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=telefono&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">TELEFONO</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=banco&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">BANCO</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=cuenta&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">CUENTA</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=sucursal&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">SUCURSAL</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=tipodemercancia&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">TIPODEMERCANCIA</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=valorsolicitado&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">VALORSOLICITADO</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=plazomeses&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">PLAZOMESES</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=valorcuotas&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">VALORCUOTAS</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=devengado&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">DEVENGADO</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=descuentos&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">DESCUENTOS</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=disponible&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">DISPONIBLE</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=valorcredito&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">VALORCREDITO</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=valorlibranza&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">VALORLIBRANZA</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=valorcuota&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">VALORCUOTA</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refco_nombre1&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFCO_NOMBRE1</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refco_direccion1&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFCO_DIRECCION1</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refco_telefono1&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFCO_TELEFONO1</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refco_nombre2&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFCO_NOMBRE2</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refco_direccion2&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFCO_DIRECCION2</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refco_telefono2&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFCO_TELEFONO2</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refco_nombre3&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFCO_NOMBRE3</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refco_direccion3&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFCO_DIRECCION3</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refco_telefono3&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFCO_TELEFONO3</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refper_nombre1&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFPER_NOMBRE1</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refper_direccion1&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFPER_DIRECCION1</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refper_telefono1&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFPER_TELEFONO1</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refper_nombre2&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFPER_NOMBRE2</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refper_direccion2&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFPER_DIRECCION2</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refper_telefono2&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFPER_TELEFONO2</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refper_nombre3&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFPER_NOMBRE3</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refper_direccion3&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFPER_DIRECCION3</a></b></td>
<td><b><a href="<? echo $PHP_SELF; ?>?sortby=refper_telefono3&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">REFPER_TELEFONO3</a></b></td>
</tr>
<?
while ($x<$numberall)
{
// Changing Background color for each alternate row
if (($x%2)==0) { $bgcolor="#FFFFFF"; } else { $bgcolor="#C0C0C0"; }
// Retreiving data and putting it in local variables for each row
$ciudad=mysql_result($resultall,$x,"ciudad");
$fecha=mysql_result($resultall,$x,"fecha");
$apellidosynombres=mysql_result($resultall,$x,"apellidosynombres");
$cedula=mysql_result($resultall,$x,"cedula");
$cedulade=mysql_result($resultall,$x,"cedulade");
$empresa=mysql_result($resultall,$x,"empresa");
$tiemposervicio=mysql_result($resultall,$x,"tiemposervicio");
$grado=mysql_result($resultall,$x,"grado");
$ocupacion=mysql_result($resultall,$x,"ocupacion");
$codigo=mysql_result($resultall,$x,"codigo");
$estadocivil=mysql_result($resultall,$x,"estadocivil");
$direccionresidencia=mysql_result($resultall,$x,"direccionresidencia");
$ciudadresidencia=mysql_result($resultall,$x,"ciudadresidencia");
$barrio=mysql_result($resultall,$x,"barrio");
$telefono=mysql_result($resultall,$x,"telefono");
$banco=mysql_result($resultall,$x,"banco");
$cuenta=mysql_result($resultall,$x,"cuenta");
$sucursal=mysql_result($resultall,$x,"sucursal");
$tipodemercancia=mysql_result($resultall,$x,"tipodemercancia");
$valorsolicitado=mysql_result($resultall,$x,"valorsolicitado");
$plazomeses=mysql_result($resultall,$x,"plazomeses");
$valorcuotas=mysql_result($resultall,$x,"valorcuotas");
$devengado=mysql_result($resultall,$x,"devengado");
$descuentos=mysql_result($resultall,$x,"descuentos");
$disponible=mysql_result($resultall,$x,"disponible");
$valorcredito=mysql_result($resultall,$x,"valorcredito");
$valorlibranza=mysql_result($resultall,$x,"valorlibranza");
$valorcuota=mysql_result($resultall,$x,"valorcuota");
$refco_nombre1=mysql_result($resultall,$x,"refco_nombre1");
$refco_direccion1=mysql_result($resultall,$x,"refco_direccion1");
$refco_telefono1=mysql_result($resultall,$x,"refco_telefono1");
$refco_nombre2=mysql_result($resultall,$x,"refco_nombre2");
$refco_direccion2=mysql_result($resultall,$x,"refco_direccion2");
$refco_telefono2=mysql_result($resultall,$x,"refco_telefono2");
$refco_nombre3=mysql_result($resultall,$x,"refco_nombre3");
$refco_direccion3=mysql_result($resultall,$x,"refco_direccion3");
$refco_telefono3=mysql_result($resultall,$x,"refco_telefono3");
$refper_nombre1=mysql_result($resultall,$x,"refper_nombre1");
$refper_direccion1=mysql_result($resultall,$x,"refper_direccion1");
$refper_telefono1=mysql_result($resultall,$x,"refper_telefono1");
$refper_nombre2=mysql_result($resultall,$x,"refper_nombre2");
$refper_direccion2=mysql_result($resultall,$x,"refper_direccion2");
$refper_telefono2=mysql_result($resultall,$x,"refper_telefono2");
$refper_nombre3=mysql_result($resultall,$x,"refper_nombre3");
$refper_direccion3=mysql_result($resultall,$x,"refper_direccion3");
$refper_telefono3=mysql_result($resultall,$x,"refper_telefono3");
?>
<tr bgcolor="<? echo $bgcolor; ?>" height=30>
<td> <? echo $ciudad; ?> </td>
<td> <? echo $fecha; ?> </td>
<td> <? echo $apellidosynombres; ?> </td>
<td> <? echo $cedula; ?> </td>
<td> <? echo $cedulade; ?> </td>
<td> <? echo $empresa; ?> </td>
<td> <? echo $tiemposervicio; ?> </td>
<td> <? echo $grado; ?> </td>
<td> <? echo $ocupacion; ?> </td>
<td> <? echo $codigo; ?> </td>
<td> <? echo $estadocivil; ?> </td>
<td> <? echo $direccionresidencia; ?> </td>
<td> <? echo $ciudadresidencia; ?> </td>
<td> <? echo $barrio; ?> </td>
<td> <? echo $telefono; ?> </td>
<td> <? echo $banco; ?> </td>
<td> <? echo $cuenta; ?> </td>
<td> <? echo $sucursal; ?> </td>
<td> <? echo $tipodemercancia; ?> </td>
<td> <? echo $valorsolicitado; ?> </td>
<td> <? echo $plazomeses; ?> </td>
<td> <? echo $valorcuotas; ?> </td>
<td> <? echo $devengado; ?> </td>
<td> <? echo $descuentos; ?> </td>
<td> <? echo $disponible; ?> </td>
<td> <? echo $valorcredito; ?> </td>
<td> <? echo $valorlibranza; ?> </td>
<td> <? echo $valorcuota; ?> </td>
<td> <? echo $refco_nombre1; ?> </td>
<td> <? echo $refco_direccion1; ?> </td>
<td> <? echo $refco_telefono1; ?> </td>
<td> <? echo $refco_nombre2; ?> </td>
<td> <? echo $refco_direccion2; ?> </td>
<td> <? echo $refco_telefono2; ?> </td>
<td> <? echo $refco_nombre3; ?> </td>
<td> <? echo $refco_direccion3; ?> </td>
<td> <? echo $refco_telefono3; ?> </td>
<td> <? echo $refper_nombre1; ?> </td>
<td> <? echo $refper_direccion1; ?> </td>
<td> <? echo $refper_telefono1; ?> </td>
<td> <? echo $refper_nombre2; ?> </td>
<td> <? echo $refper_direccion2; ?> </td>
<td> <? echo $refper_telefono2; ?> </td>
<td> <? echo $refper_nombre3; ?> </td>
<td> <? echo $refper_direccion3; ?> </td>
<td> <? echo $refper_telefono3; ?> </td>
<td><a href="editSolicitudcredito_deudor.php?id=<? echo $ciudad; ?>">Edit</a></td>
<td><a href="deleteSolicitudcredito_deudor.php?id=<? echo $ciudad; ?>">Delete</a></td>
</tr>
<?
$x++;
} // end while
?>
<a href="<? echo $PHP_SELF; ?>?startLimit=<? echo $nextStartLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>&sortby=<? echo $sortby; ?>">Next <? echo $limitPerPage; ?> Results</a>
<a href="<? echo $PHP_SELF; ?>?startLimit=<? echo $previousStartLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>&sortby=<? echo $sortby; ?>">Previous <? echo $limitPerPage; ?> Results</a>
</table>
<?
} // end if numberall > 0
?>
<?
include("foot.php");
?>