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/seguimiento_solicitudcredito.php
<?
include("head.php");
include("datacon.php"); 
?>
<script Language="JavaScript"><!--
function validar(formulario)
{

  if (formulario.cedulaField.value == "")
  {
    alert("Debe llenar el campo Cédula.");
    formulario.cedulaField.focus();
    return (false);
  }

  var checkOK = "0123456789";
  var checkStr = formulario.cedulaField.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Escriba sólo Números en el campo Cédula. Sin espacios ni puntuación.");
    formulario.cedulaField.focus();
    return (false);
  }

  if (!(formulario.negadoField.value == "") && (formulario.aprobadoField.value == "SI"))
  {
    alert("Una Solicitud de Crédito NO puede ser Aprobada y Negada al mismo tiempo.");
    formulario.aprobadoField.focus();
    return (false);
  }
  
  if ((formulario.aprobadoField.value == "SI") && !(formulario.devueltoField.value == ""))
  {
    alert("Una Solicitud de Crédito NO puede ser Aprobada y Devuelta al mismo tiempo.");
    formulario.devueltoField.focus();
    return (false);
  }
  
  if ((formulario.aprobadoField.value == "SI") && ((formulario.aprobado_cuantiaField.value == "") && (formulario.aprobado_mesesField.value == "") && (formulario.aprobado_valorcuotaField.value == "")) )
  {
    alert("Si fué aprobada la Solicitud de Crédito debe llenar los campos Cuantía, Meses y Valor Cuota.");
    formulario.aprobado_cuantiaField.focus();
    return (false);
  }
  
  if (!(formulario.negadoField.value == "") && !(formulario.devueltoField.value == ""))
  {
    alert("Una Solicitud de Crédito NO puede ser Negada y Devuelta al mismo tiempo.");
    formulario.negadoField.focus();
    return (false);
  }
  
  return (true);
}

function activaraprobado()
{
		document.formMaker.aprobado_cuantiaField.disabled=false;
		document.formMaker.aprobado_mesesField.disabled=false;
		document.formMaker.aprobado_valorcuotaField.disabled=false;
}
//--></script>


<h4 align="center">Administraci&oacute;n de Solicitudes de Cr&eacute;dito</h4>
<form name=formMaker method=post action="insertseguimiento_solicitudcredito.php" onSubmit="return validar(this)">
<table width="600" align="center" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE">

<tr height=30 valign=top>
  <td width="300" align=right><img src="trans.gif" width="300" height="10"></td>
  <td>&nbsp;</td>
</tr>
<tr height=30 valign=top>
<td align=right><b>C&eacute;dula :</b></td>
<td>

<select name="cedulaField"> 
<option="">Select One

<?

$querydrop = "select cedula from solicitudcredito_deudor";
$resultdrop = MYSQL_QUERY($querydrop);
$numberdrop = mysql_Numrows($resultdrop);

if ($numberdrop>0) 
{

$xdrop=0;

        while ($xdrop<$numberdrop)
        {

             $cedula = mysql_result($resultdrop,$xdrop,"cedula"); 
             $cedula = mysql_result($resultdrop,$xdrop,"cedula"); 
             echo "<option value=\"$cedula\">$cedula</option>"; 
             $xdrop++;
        } // end while 
} // end if 

?>

</select>
</td>
</tr>
<tr height=30 valign=top>
<td align=right><b>Presentaci&oacute;n Solicitud de Cr&eacute;dito :</b></td>
<td>
    <strong>    <select name="presentacionsolicitudField">
      <option value="">Seleccione</option>
      <option value="SI">SI</option>
      <option value="NO">NO</option>
        </select>
</strong></td>
</tr>


<tr height=30 valign=top>
<td align=right><b>Enviado para Evaluaci&oacute;n :</b></td>
<td>
    <strong>    <select name="enviadoparaestudioField">
      <option value="">Seleccione</option>
      <option value="SI">SI</option>
      <option value="NO">NO</option>
    </select>
</strong></td>
</tr>


<tr height=30 valign=top>
<td align=right><b>Resultado de la Evaluaci&oacute;n :</b></td>
<td>
    <strong>    <select name="resultadoevaluacionField">
      <option value="">Seleccione</option>
      <option value="SI">SI</option>
      <option value="NO">NO</option>
    </select>
</strong></td>
</tr>
<tr height=30 valign=top>
  <td align=right>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr height=30 valign=top>
  <td align=right>&nbsp;</td>
  <td><b>Diligencie si la Solicitud fu&eacute; Aprobada </b></td>
</tr>
<tr valign=top height=30>
  <td align=right><b>Solicitud  Aprobada? :</b></td>
  <td><strong>
    <select name="aprobadoField" onChange="activaraprobado();">
      <option value="">Seleccione</option>
      <option value="SI">SI</option>
      <option value="NO">NO</option>
    </select>
</strong></td>
</tr>
<tr height=30 valign=top>
  <td align=right><b>Fecha :</b></td>
  <td><strong>
    <input name="aprobadofechaField" type="text" id="aprobadofechaField">
  </strong></td>
</tr>
<tr height=30 valign=top>
<td align=right><b>Cuant&iacute;a :</b></td>
<td>
    <input type="text" name="aprobado_cuantiaField" disabled>
</td>
</tr>


<tr height=30 valign=top>
<td align=right><b>Meses :</b></td>
<td>
    <input type="text" name="aprobado_mesesField" disabled>
</td>
</tr>


<tr height=30 valign=top>
<td align=right><b>Cuota :</b></td>
<td>
    <input type="text" name="aprobado_valorcuotaField" disabled>
</td>
</tr>


<tr height=30 valign=top>
  <td align=right>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr height=30 valign=top>
  <td align=right><b>Presentaci&oacute;n de Documentos  :</b></td>
  <td><strong>
    <select name="presentaciondocumentosField">
      <option value="">Seleccione</option>
      <option value="SI">SI</option>
      <option value="NO">NO</option>
    </select>
  </strong></td>
</tr>
<tr height=30 valign=top>
  <td align=right><b>Env&iacute;o Documentos para Estudio :</b></td>
  <td><strong>
    <select name="enviodocumentosestudioField">
      <option value="">Seleccione</option>
      <option value="SI">SI</option>
      <option value="NO">NO</option>
    </select>
  </strong></td>
</tr>
<tr height=30 valign=top>
  <td align=right><b>Recepci&oacute;n Documentos Oficina Principal :</b></td>
  <td><strong>
  <select name="recepciondocumentosoficinaprincipalField">
    <option value="">Seleccione</option>
    <option value="SI">SI</option>
    <option value="NO">NO</option>
  </select>
</strong></td>
</tr>
<tr height=30 valign=top>
  <td align=right><b>Resultado del Estudio de Cr&eacute;dito  :</b></td>
  <td><strong>
    <select name="resultadoestudiocreditoField">
      <option value="">Seleccione</option>
      <option value="SI">SI</option>
      <option value="NO">NO</option>
    </select>
  </strong></td>
</tr>
<tr height=30 valign=top>
  <td align=right>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr height=30 valign=top>
<td align=right><b>Negado :</b></td>
<td>
    <select name="negadoField">
      <option value="">Seleccione</option>
      <option value="Falta Requisitos">Falta Requisitos</option>
      <option value="Falta Documentos">Falta Documentos</option>
      <option value="Capacidad de Pago">Capacidad de Pago</option>
    </select>
</td>
</tr>
<tr height=30 valign=top>
  <td align=right>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr height=30 valign=top>
  <td align=right>&nbsp;</td>
  <td><b>Diligencie si la Solicitud fu&eacute; Modificada</b></td>
</tr>
<tr height=30 valign=top>
<td align=right><b> Cuant&iacute;a :</b></td>
<td>
    <input type="text" name="modificado_cuantiaField">
</td>
</tr>


<tr height=30 valign=top>
<td align=right><b>Meses :</b></td>
<td>
    <input type="text" name="modificado_mesesField">
</td>
</tr>


<tr height=30 valign=top>
<td align=right><b>Valor cuota :</b></td>
<td>
    <input type="text" name="modificado_valorcuotaField">
</td>
</tr>


<tr height=30 valign=top>
  <td align=right>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr height=30 valign=top>
<td align=right><b>Devuelto :</b></td>
<td>
    <select name="devueltoField">
      <option value="">Seleccione</option>
      <option value="Para Cambio Codeudor">Para Cambio Codeudor</option>
      <option value="Para Cambio Documentos">Para Cambio Documentos</option>
      <option value="Falta de Firmas">Falta de Firmas</option>
    </select>
</td>
</tr>
<tr valign=top height=30>
  <td align=right><b>Fecha :</b></td>
  <td><strong>
    <input name="devueltofechaField" type="text" id="devueltofechaField">
  </strong></td>
</tr>
<tr height=30 valign=top>
  <td align=right><b>Observaciones :</b></td>
  <td><textarea name="devueltoobservacionesField" cols="35" rows="3"></textarea></td>
</tr>
<tr height=30 valign=top>
  <td align=right>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr height=30 valign=top>
  <td align=right>&nbsp;</td>
  <td><b>Desembolso</b></td>
</tr>
<tr height=30 valign=top>
<td align=right><b>Fecha :</b></td>
<td>
    <input type="text" name="desembolso_fechaField">
</td>
</tr>


<tr height=30 valign=top>
<td align=right><b>Banco :</b></td>
<td>
    <input type="text" name="desembolso_bancoField">
</td>
</tr>


<tr height=30 valign=top>
<td align=right><b>Cuenta :</b></td>
<td>
    <input type="text" name="desembolso_cuentaField">
</td>
</tr>
<tr height=30 valign=top>
  <td align=right>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr height=30 valign=top>
  <td align=right><input type=submit name=Submit value="Grabar"></td>
  <td><input type=reset name=Submit2 value="Limpiar Campos"></td>
</tr>

</table>

</form>


<?
include("foot.php");
?>