MOON
Server: Apache
System: Linux kvm.asjudinet.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: asjudine (1001)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/asjudine/www/comercial/listado_aprobados_asesor.php
<!DOCTYPE HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=8; IE=9; IE=edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
    *{margin: 0;padding: 0;}
    body{background-color:#EAEAEA;font-family:Geneva, Arial, Helvetica, sans-serif;}
    header {background-color: #B7271F; text-align: center;}
    
    .titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
    table{margin: 0 auto;border: 8px solid #bebebe; text-align: center;}
    .divirmenu{text-align: center;}
    .irmenu{width: 200px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;}
    .irmenu:hover{background-color: #67a0d9; color: #000;}
    
    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
    td{padding: 1px; border: 1px solid #a0a0a0;}
    .td{background-color: #e5e5e5; padding: 1px 30px;color: #00135F;font-size: 14px;font-weight: 600; text-align: center;}
    .boton1{width:30%;background-color: #ffffff;color: #000;padding: 2px;border:2px solid #580000;border-radius:10px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
    input[type=text]{border-radius: 5px; padding: 3px;background-color: #fffde8;}
	
	.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 12px; font-weight: 900}
    .tdfull{background-color: #fff; color: #000; padding: 1px; text-align: center; font-size: 12px;}
    .botonnew{width: 90px; background-color: #e3dec0;color: #b20606;padding: 1px;border-radius:5px;}
    .botonnew:hover{width: 90px; background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
 <header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
 <h3 class="titulo">SOLICITUDES APROBADAS</h3>	
  <div align="center">
    <table width="500" border="0" align="center" cellpadding="2" cellspacing="2">
      <tr bgcolor="#ECE9D8">
        <td width="272" height="22" class="fecha">
        <span class="Estilo51">CODIGO ASESOR :</span></td>
        <td width="54" class="fecha"><div align="left">
          <input name="ase" type="text" id="ase" size="10" maxlength="10" />
        </div></td>
        <td width="150" class="fecha"><select name="tiposol" id="tiposol">
          <option value="0">--SELECCION TIPO--</option>
          <option value="1">CREDITO-JURIDICA</option>
          <option value="2">CREDITO</option>
          <option value="3">JURIDICA</option>
        </select></td>
       
      </tr>
      <tr>
        <td colspan="4" class="td">
          <input name="consultar" type="submit" class="boton1" id="consultar" value="Consultar"  />
        </td>
      </tr>
      <tr>
        <td colspan="4" td class="td">
            <input name="menu2" type="button" class="irmenu" id="menu2" onclick="window.location.href='menu_solicitud_credito.php'" value="IR AL MENU" />
            
        </td>
      </tr>
    </table>
   
  </div>
</form>
</body>
</html>
<?php

if(isset($_POST["consultar"]))
{
echo "<form id='form2' name='form2' method='post' action=''>";


require_once("../Conectarse.php");

 $resul = mysql_query('SELECT cedula, nombre, monto_solicitado FROM solicitud_credito WHERE estado = "2" and codigo_asesor = "' . $_POST[ase] . '" and tipo_solicitud = "' . $_POST[tiposol] . '"');
			if (!$resul) {
				die('Invalid query11: ' . mysql_error());
			} 
        
                      if ((mysql_num_rows($resul)!=0)) 
	                    {	 
                               
						
						echo "<table width='400' border='2' align='center' cellpadding='1' cellspacing='1' class='est_cont5'>
                        <tr>
        					<TD class='tdtitulo'>CEDULA</strong></td>
        					<TD class='tdtitulo'><strong>NOMBRE</td>
        					<TD class='tdtitulo'>MONTO</td>
       						<TD class='tdtitulo'>EMPRESA</td>
        					<TD class='tdtitulo'>CIUDAD</td>
      					</tr>";		  
                           							  
                       
                      while(list($ced, $nom, $mon) = mysql_fetch_row($resul)) 
                              {  					   
$resu = mysql_query('SELECT nombre, ciudad FROM datos_empresa   				 								WHERE nit ="' . $_POST[ced] . '" ');
			if (!$resu) {
				die('Invalid query: ' . mysql_error());
			}
				
   	 
						list($nomb, $ciu) = mysql_fetch_row($resu);	
						 printf("<TR>
			  						 
                          <TD class='tdfull'><div align='center' class='tdfull'><input type='button' value=$ced name='cedu' class=botonnew onClick =window.open('mostrar_solicitud3.php?ced2=$ced','','top=50,left=100,toolbar=yes,scrollbars=yes,width=1100,height=650,status=yes')></a></span></div></TD>
                          <td class='tdfull'>".$nom."</TD>
						  <td class='tdfull'>".$mon."</TD>
						  <td class='tdfull'>".$nomb."</TD>						   
		                  <td class='tdfull'>".$ciu."</TD>
						  </TR>");               								   
                               }
			                       
								   echo "</table>";		  
                        }


echo "</form>";

}
?>