File: /home/asjudine/public_html/creditos/list_solicitudcredito_codeudor.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 ceduladeudor,ciudad,fecha,apellidosynombres,cedula,cedulade,empresa from solicitudcredito_codeudor ";
$queryall = $bareQuery.$sorted.$querylimit;
$resultall = MYSQL_QUERY($queryall);
$numberall = mysql_Numrows($resultall);
if ($numberall==0) {
?>
<h4 align="center">No se encontraron registros en la Base de Datos !</h4>
<?
}
else if ($numberall>0) {
$x=0;
$consecutivo = 0;
?>
<style type="text/css">
<!--
.Estilo8 {font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; font-size: 10px; color: #000000; }
.Estilo9 {color: #000000}
.Estilo10 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; }
.Estilo11 {font-size: 11px}
.Estilo12 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; }
.Estilo14 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000099;
font-weight: bold;
}
-->
</style>
<h3 align="center">Listado de Solicitudes de Crédito <br>
Información del Codeudor </h3>
<table width="800" border=0 align="center" cellpadding=1 cellspacing=2>
<tr bgcolor="#EEEEEE">
<td> </td>
<td><span class="Estilo8"><a href="<? echo $PHP_SELF; ?>?sortby=ceduladeudor&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">SOLICITANTE</a></span></td>
<td><span class="Estilo8"><a href="<? echo $PHP_SELF; ?>?sortby=ciudad&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">CIUDAD</a></span></td>
<td><span class="Estilo8"><a href="<? echo $PHP_SELF; ?>?sortby=fecha&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">FECHA</a></span></td>
<td><span class="Estilo8"><a href="<? echo $PHP_SELF; ?>?sortby=apellidosynombres&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>"> APELLIDOS/NOMBRE</a></span></td>
<td><span class="Estilo8"><a href="<? echo $PHP_SELF; ?>?sortby=cedula&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">CEDULA</a></span></td>
<td><span class="Estilo8"><a href="<? echo $PHP_SELF; ?>?sortby=cedulade&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">DE</a></span></td>
<td><span class="Estilo8"><a href="<? echo $PHP_SELF; ?>?sortby=empresa&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">EMPRESA</a></span></td>
<td><span class="Estilo9"></span> </td>
<td><span class="Estilo9"></span> </td>
</tr>
<?
while ($x<$numberall)
{
// Changing Background color for each alternate row
if (($x%2)==0) { $bgcolor="#FFFFFF"; } else { $bgcolor="#F8F8F8"; }
$consecutivo = $consecutivo + 1;
// Retreiving data and putting it in local variables for each row
$ceduladeudor=mysql_result($resultall,$x,"ceduladeudor");
$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");
?>
<tr bgcolor="<? echo $bgcolor; ?>" height=30>
<td><span class="Estilo14"><? echo $consecutivo; ?></span></td>
<td><span class="Estilo10"><? echo $ceduladeudor; ?></span></td>
<td> <span class="Estilo10"><? echo $ciudad; ?></span> </td>
<td> <span class="Estilo10"><? echo $fecha; ?></span> </td>
<td> <span class="Estilo10"><? echo $apellidosynombres; ?></span> </td>
<td> <span class="Estilo10"><? echo $cedula; ?></span> </td>
<td> <span class="Estilo10"><? echo $cedulade; ?></span> </td>
<td> <span class="Estilo10"><? echo $empresa; ?></span> </td>
<td><a href="editSolicitudcredito_codeudor.php?id=<? echo $ceduladeudor; ?>" class="Estilo10 Estilo11">Editar</a></td>
<td><a href="deleteSolicitudcredito_codeudor.php?id=<? echo $ceduladeudor; ?>" class="Estilo12">Borrar</a></td>
</tr>
<?
$x++;
} // end while
?>
</table>
<div align="center"><br>
<br>
<a href="<? echo $PHP_SELF; ?>?startLimit=<? echo $previousStartLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>&sortby=<? echo $sortby; ?>">Anteriores <? echo $limitPerPage; ?> Solicitudes</a>
/
<a href="<? echo $PHP_SELF; ?>?startLimit=<? echo $nextStartLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>&sortby=<? echo $sortby; ?>">Siguientes <? echo $limitPerPage; ?> Solicitudes</a>
<?
} // end if numberall > 0
?>
<?
include("foot.php");
?>
</div>