MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/public_html/creditos/list_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,valorsolicitado,plazomeses,devengado,valorcredito,valorlibranza from solicitudcredito_deudor ";
$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&eacute;dito<br>
Informaci&oacute;n del Solicitante</h3>
<table width="800" border=0 align="center" cellpadding=1 cellspacing=2>
    <tr bgcolor="#EEEEEE">
      <td>&nbsp;</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="Estilo8"><a href="<? echo $PHP_SELF; ?>?sortby=valorsolicitado&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">SOLICITADO</a></span></td>
    <td><span class="Estilo8"><a href="<? echo $PHP_SELF; ?>?sortby=plazomeses&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">PLAZO MESES</a></span></td>
    <td><span class="Estilo8"><a href="<? echo $PHP_SELF; ?>?sortby=devengado&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">DEVENGADO</a></span></td>
    <td><span class="Estilo8"><a href="<? echo $PHP_SELF; ?>?sortby=valorcredito&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">VALOR CREDITO</a></span></td>
    <td><span class="Estilo8"><a href="<? echo $PHP_SELF; ?>?sortby=valorlibranza&startLimit=<? echo $startLimit; ?>&limitPerPage=<? echo $limitPerPage; ?>">VALOR LIBRANZA</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
            $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"); 
            $valorsolicitado=mysql_result($resultall,$x,"valorsolicitado"); 
            $plazomeses=mysql_result($resultall,$x,"plazomeses"); 
            $devengado=mysql_result($resultall,$x,"devengado"); 
            $valorcredito=mysql_result($resultall,$x,"valorcredito"); 
            $valorlibranza=mysql_result($resultall,$x,"valorlibranza"); 

?>

         <tr bgcolor="<? echo $bgcolor; ?>" height=30>
           <td><span class="Estilo14"><? echo $consecutivo; ?></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> <span class="Estilo10"><? echo $valorsolicitado; ?></span> </td>
            <td> <span class="Estilo10"><? echo $plazomeses; ?></span> </td>
            <td> <span class="Estilo10"><? echo $devengado; ?></span> </td>
            <td> <span class="Estilo10"><? echo $valorcredito; ?></span> </td>
            <td> <span class="Estilo10"><? echo $valorlibranza; ?></span> </td>
            <td><a href="editSolicitudcredito_deudor.php?id=<? echo $cedula; ?>" class="Estilo10 Estilo11">Editar</a></td>
            <td><a href="deleteSolicitudcredito_deudor.php?id=<? echo $cedula; ?>" 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>