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/listado_estadotramite.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Listado General Solicitudes Credito</title>
<style type="text/css">
<!--
.lista {color: #003366;
	font-size: 12px;
	font-weight:bold;
}
.Estilo2 {color: #FF6633;
	font-size: 16px;
}
.Estilo3 {color: #006600;
	font-weight: bold;
	font-size: 12px;
}
.recaudo {font-family: "Courier New", Courier, monospace;
	font-size: 12px;
	font-style: normal;
	font-weight: bold;
	font-variant: normal;
	color: #000000;
	background-color: #B6CBDC;
	margin: 4px;
	padding: 8px;
	width: auto;
	border: medium outset #339966;
}
.Estilo4 {
	color: #D94B3C;
	font-size: 24px;
}
.est_cont1 {
	font-family: "Times New Roman", Times, serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #4068F4;
	background-color: #E6FFF1;
	margin: 1px;
	padding: 1px;
	height: auto;
	width: auto;
	border: thin double #33CC66;
}
.est_cont2 {
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #418BAF;
	background-color: #F0F5CF;
	height: 15px;
	width: auto;
	border: thin solid #FABF85;
}
.est_cont3 {
	font-family: "Courier New", Courier, monospace;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #EA261C;
	background-color: #DEDDE8;
	height: auto;
	width: auto;
	border: thin outset #FC9F67;
}
.est_cont5 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	background-color: #D6ECFE;
	margin: 2px;
	padding: 2px;
	height: auto;
	width: auto;
	border: thin groove #E9AAF0;
	color: #C72350;
}
.Estilo50 {color: #CC3333;
	font-family: "Arial Narrow";
	font-weight: bold;
}
.fecha {font-size: 12px; font-family: Arial; color:#990000; display: block; }
.titulos {font: 16px; color: red; font-family:Arial; font-weight:bold}
-->
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <div align="center">
    <table width="669" border="0" align="center" cellpadding="2" cellspacing="2">
      <tr bgcolor="#FFFFCC">
        <td class="titulos"><div align="center">LISTADO SOLICITUDES CREDITOS </div></td>
      </tr>

      <tr bgcolor="#FFCC99">
        <td><div align="center">
            <input name="menu2" type="button" class="Estilo50" id="menu2" onclick="window.location.href='menu_solicitud_credito.php'" value="IR AL MENU" />
            <label></label>
        </div></td>
      </tr>
    </table>
    <div align="left"></div>
    <div align="left"></div>
    <div align="right"></div> 
  </div>
</form>
</body>
</html>
<?php


echo "<form id='form2' name='form2' method='post' action=''>";


require_once("mainfile.php");
include ("config.php");
global $dbi;

require_once("Conectarse.php");

   //$mssql = mysql_query("select * from solicitud_credito",$dbi);
   $resul = mysql_query('SELECT * FROM solicitud_credito ');
			if (!$resul) {
				die('Invalid query: ' . mysql_error());
			}
   if($resul)
   {
         $filas = mysql_num_rows($resul);
         if ($filas > 0)
         {

	 $res = mysql_query('SELECT cedula, nombre, fecha, monto_solicitado, codigo_sucursal  , numero_libranza ,  entidad_laboral, estado_cre  FROM solicitud_credito WHERE estado_cre != "3" and estado_cre != "" and tipo_solicitud_cre =  "2"  order by nombre ');
			if (!$res) {
				die('Invalid query: ' . mysql_error());
			}
                      if ((mysql_num_rows($res)!=0)) 
	                    {	 
                               
						
						echo "<table width='700' border='2' align='center' cellpadding='1' cellspacing='1' class='est_cont1'>

                        <tr>
        					<td width='100'><div align='center'><strong>CEDULA</strong></div></td>
        					<td width='200'><div align='center'><strong>NOMBRE</strong></div></td>
        					<td width='100'><div align='center'><strong>MONTO</strong></div></td>
							<td width='100'><div align='center'><strong>No LIBRANZA</strong></div></td>
							<td width='100'><div align='center'><strong>FECHA</strong></div></td>
        					<td width='100'><div align='center'><strong>SUCURSAL</strong></div></td>
							<td width='100'><div align='center'><strong>ESTADO</strong></div></td>
      					</tr>";		  
                           							  
                        

             while(list($ced, $nom, $fec, $mon, $suc, $numlib, $enti, $esta) = mysql_fetch_row($res)) 
                              {  					   
								   
								   if ($suc > 0)
								   {
			
				$resul = mysql_query('SELECT nombre FROM sucursal  WHERE codigo = "' . "$suc". '" ');

			if (!$resul) {
				die('Invalid query: ' . mysql_error());
			}
		list($suc) = mysql_fetch_row($resul);
		
		}
		
		if ($esta == '0')
		{
		$estado= "Investigar Capacidad Endeudamiento";
		}
		
		if ($esta == '1')
		{
		$estado= "Firma de Documentos";
		}
		
		if ($esta == '2')
		{
		$estado= "Validacion Solicitud";
		}
			if ($esta == '4')
		{
		$estado= "Generar Planilla";
		}
		
			if ($esta == '5')
		{
		$estado= "Aprobacion Credito";
		}
		
		
								   	  printf("<TR>
                                   <TD bgcolor='#FFFFFF'><div align='center' class='lista'>".$ced."</span></div></TD>
                                   <TD bgcolor='#FFFFFF'><div align='center' class='lista'>".$nom."</span></div></TD>
								   <TD bgcolor='#FFFFFF'><div align='center' class='lista'>".$mon."</span></div></TD>
								    <TD bgcolor='#FFFFFF'><div align='center' class='lista'>".$numlib."</span></div></TD>	
								   <TD bgcolor='#FFFFFF'><div align='center' class='lista'>".$fec."</span></div></TD>					   
		                           <TD bgcolor='#FFFFFF'><div align='center' class='lista'>".$suc."</span></div></TD>
								     <TD bgcolor='#FFFFFF'><div align='center' class='lista'>".$estado."</span></div></TD>
								   	</TR>"); 
								  
								                								   
                               }
			                       
								   echo "</table>";		  
                        }
						
					
		       
	      }
     }

echo "</form>";


?>