File: /home/asjudine/www/afinanciera/validada_solicitud_juridica.php
<?php
require_once("../Conectarse.php");
global $dbi;
$espacio = ' ';
$linea = '-';
$resu = mysql_query('SELECT nit ,razon , sucursal_serviasjudinet ,ciudad_empresa,direccion , telefono ,email , fecha_inscripcion ,tipo_contrato,numero_contrato ,valor_contrato ,valor_retefuente ,numero_cuotas , valor_cuota, nombre_banco, cuenta_numero,asesor,renovacion_cuotas,nombre_representante,cedula_representante,celular_representante,renovacion_cuotas FROM personas_juridicas WHERE nit = "' . $_GET["ced2"] . '" ');
if (!$resu) {
die('Invalid query: ' . mysql_error());
}
list($cedula, $apes,$sucur, $ciue, $dire, $tele,$email, $fecafi,$plant , $numero_contrato, $valcon, $mon, $numcuo, $valcuo, $banco, $numero_cuenta, $vendedor, $grad,$nombre_representante,$cedula_representante,$celul,$renovacion_cuotas) = mysql_fetch_row($resu);
$control3 = mysql_query('SELECT codigo_contrato FROM planes_contratos WHERE codigo = "' . "$codigo_plan". '" ');
if (!$control3) {
die('Invalid query: ' . mysql_error());
}
list($plant55) = mysql_fetch_row($control3);
$cont = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "' . "$sucur". '" ');
if (!$cont) {
die('Invalid query cont: ' . mysql_error());
}
list($sucur12) = mysql_fetch_row($cont);
if(isset($_POST["guardar"]))
{
$dis = date("d");
$mes = date("m");
$anos = date("Y");
$fechaval = $anos.'-'.$mes.'-'.$dis ;
$resu9 = mysql_query('SELECT * FROM info_asjudinet WHERE cedula = "' . $_POST["cedb"] . '" and contrato = "' . $_POST["numcont"] . '" ');
$num=mysql_num_rows($resu9);
if($num==0)
{
$mt = floor(($mes_inicio + $numcuo)/12);
$submt = (($mes_inicio + $numcuo)%12)-1;
$at = $mt + $ano_inicio;
if($submt==0)
{
$submt = 12;
$at = $at-1;
}
$control3 = mysql_query('SELECT codigo, unidad FROM descuentos WHERE id = "' .$_POST[unidt2]. '" ');
if (!$control3) {
die('Invalid query: ' . mysql_error());
}
list($codcd, $unidt) = mysql_fetch_row($control3);
$res = mysql_query('SELECT cedula, nombre FROM cartera_serviasjudinet WHERE cedula = "' . $_GET["ced2"] . '" ');
if (!$res) {
die('Invalid query PES: ' . mysql_error());
}
$rest=mysql_num_rows($res);
list($cedud, $nombr) = mysql_fetch_row($res);
$inipag = $_POST[ano_inicio] .'-'.$_POST[mes_inicio];
$finpag = $at.'-'.$submt;
if ($_POST[codigo_sucursal] == "")
{
$res = mysql_query('SELECT codigo FROM sucursal WHERE nombre = "' . $_POST[sucur] . '" ');
if (!$res) {
die('Invalid query sucursal: ' . mysql_error());
}
list($codigo_sucursal) = mysql_fetch_row($res);
}
else
{
$res = mysql_query('SELECT codigo FROM sucursal WHERE codigo = "' . $_POST[codigo_sucursal] . '" ');
if (!$res) {
die('Invalid query sucursal: ' . mysql_error());
}
list($codigo_sucursal) = mysql_fetch_row($res);
}
if ($_POST[plan] == 0)
{
$res = mysql_query('SELECT codigo_contrato FROM planes_contratos WHERE codigo_contrato = "' . $_POST[plant] . '" ');
if (!$res) {
die('Invalid query sucursal: ' . mysql_error());
}
list($plan) = mysql_fetch_row($res);
}
else
{
$res = mysql_query('SELECT codigo_contrato FROM planes_contratos WHERE codigo_contrato = "' . $_POST[plan] . '" ');
if (!$res) {
die('Invalid query sucursal: ' . mysql_error());
}
list($plan) = mysql_fetch_row($res);
}
$control6 = mysql_query('SELECT codigo, numero_bene FROM planes_contratos WHERE codigo_contrato = "' ."$plan". '"');
if (!$control6) {
die('Invalid query BIEN: ' . mysql_error());
}
list($cod_p, $numben) = mysql_fetch_row($control6);
mysql_query("INSERT INTO info_asjudinet (cedula, sucursal, pagaduria, unidad_desc, cod_desc, entidad_recaudo, libranza, fecha_libranza, val_contrato, cuotas, valor_cuota, contrato, tipo_contrato, beneficiarios, mes_inicio, ano_inicio, mes_termino, ano_termino, vendedor, renovacion) VALUES ('" . $_POST["cedb"] . "', '" ."$codigo_sucursal". "','" . $_POST["enti"] . "','" . "$unidt" . "','" . "$codcd" . "', '" . $_POST["entrec"] . "', '" . $_POST["num_lib"] . "','" . $_POST["fechas"] . "','" . $_POST["valcon"] . "','" . $_POST["numcuo"] . "','" . $_POST["valcuo"] . "','" . $_POST["numcont"] . "','" ."$plan". "','" ."$numben". "','" . $_POST["mes_inicio"] . "','" . $_POST["ano_inicio"] . "','" . "$submt" . "','" . "$at" . "', '" . $_POST["ase"] . "','SI')");
$resut6 = mysql_query('SELECT valor_comision FROM valor_comisiones_planes WHERE codigo_plan = "' . "$cod_p". '" ');
if (!$resut6) {
die('Invalid query RARO: ' . mysql_error());
}
list($valorcomip) = mysql_fetch_row($resut6);
$mssql = mysql_query("UPDATE solicitud_credito set cedula = '" . $_POST[cedb] . "', ced_ciudad= '" . $_POST[ciud] . "', nombre= '" . $_POST["apenom"] . "', direccion='" . $_POST[dire] . "', ciudad= '" . $_POST[ciu] . "', telefono= '" . $_POST[tel] . "', celular= '" . $_POST[cel] . "', email= '" . $_POST[email] . "', codigo_asesor= '" . "$ase". "', grado= '" . $_POST[gra] . "', codigo_sucursal= '" .$codigo_sucursal. "', numero_libranza= '" . $_POST[num_lib] . "', concepto_rechazo= '" . $_POST[motem] . "', estado = '" . $_POST[GrupoOpciones1] . "', numero_contrato= '" . $_POST[numcont] . "', entidad_laboral = '" . $_POST[enti] . "', estado = '2' WHERE cedula= '" . $_GET[ced2] . "' or cedula= '" . $_POST[cod] . "'");
if (!$mssql) {
die('Invalid query primer UPDATE: ' . mysql_error());
}
$comis= mysql_query("INSERT INTO comisiones_ventas (cedula, codigo, valor_comision, codigo_asesor, codigo_dir_nacional, codigo_dir_regional, fecha_afiliacion, estado, contrato, tipo) VALUES ('" . $_POST["cedb"] . "', '" . $_POST["cod"] . "' , '" . "$valorcomip" . "', '" . $_POST["ase"] . "', '" . $_POST["cod_dir"] . "', '" . $_POST["cod_reg"] . "', '" . $_POST["fechas"] . "', '0', '" . $_POST["numcont"] . "', '" ."$plan". "')");
if (!$comis) {
die('Invalid query comisiones ventas: ' . mysql_error());
}
$mssql4 = mysql_query("INSERT INTO cartera_serviasjudinet (cedula, nombre, grado , numerocontrato, tipocontrato, numero_libranza, tipo_afiliado, codigo_sucursal, direccion, telefono, celular, ciudad, email, cuenta, banco, entidad_laboral, unidad_descuento, codigo_descuento, entidad_recaudo, fecha_nacimiento, fecha_afiliacion,fecha_validacion, valorcontrato, numerocuotas, valorcuota, fecha_inicio_contrato, fecha_termino_contrato, fecha_ultimo_registro, mes_inicio, ano_inicio, mes_termino, ano_termino, saldoanteior, cuotaspendientes, cuotasdescontadas, saldonuevo, vendedor, director, renovacion, causal_terminacion, estado) VALUES ('" . $_POST["cedb"] . "', '" . $_POST["apenom"] . "', '" . $_POST["gra"] . "', '" . $_POST["numcont"] . "', '" ."$plan". "', '" . $_POST["num_lib"] . "', 'TITULAR', '" ."$codigo_sucursal". "' , '" . $_POST["dire"] . "', '" . $_POST["tel"] . "', '" . $_POST["cel"] . "', '" . $_POST["ciud"] . "', '" . $_POST["email"] . "', '" .$_POST["cue"] . "', '" .$_POST["ban"] . "', '" . $_POST["enti"] . "', '" ."$unidt". "', '" ."$codcd". "', '" . $_POST["entrec"] . "', '" . $_POST["fecna"] . "', '" . $_POST["fechas"] . "', '" ."$fechaval". "', '" . $_POST["valcon"] . "', '" . $_POST["numcuo"] . "', '" . $_POST["valcuo"] . "', '" . $_POST["fechainicio"] . "', '" . $_POST["fechatermino"] . "', '', '" . $_POST["mes_inicio"] . "', '" . $_POST["ano_inicio"] . "', '" ."$submt". "', '" ."$at". "', '" . $_POST["valcon"] . "', '" . $_POST["numcuo"] . "', '0', '" . $_POST["valcon"] . "', '" . $_POST["ase"] . "', '" . $_POST["cod_dir"] . "', 'S', '', '1')");
if (!$mssql4) {
die('Invalid query cartera_serviasjudinet insertar: ' . mysql_error());
}
$mss = mysql_query("INSERT INTO reporte_pagadurias (cedula, codigo, nombre, grado, contrato, plan, libranza, fecha_contrato, valor_contrato, fecha_libranza, valor_descuento, cuotas, pagaduria, mesini_pago, anoini_pago, mesfin_pago, anofin_pago, tipo, codigo_descuento, unidad ,estado) VALUES ('" . $_POST["cedb"] . "', '" . $_POST["cod"] . "', '" . $_POST["apenom"] . "', '" . $_POST["gra"] . "', '" . $_POST["numcont"] . "', '" ."$plan". "', '" . $_POST["num_lib"] . "', '" . $_POST["fechainicio"] . "', '" . $_POST["valcon"] . "', '" . $_POST["fechas"] . "', '" . $_POST["valcuo"] . "', '" . $_POST["numcuo"] . "', '" . $_POST["enti"] . "', '" . $_POST["mes_inicio"] . "', '" . $_POST["ano_inicio"] . "', '" ."$submt". "', '" ."$at". "', 'JUR', '" ."$codcd". "' , '" ."$unidt". "','0')");
if (!$mss) {
die('Invalid query reporte_minidefensa insertar: ' . mysql_error());
}
echo "<script>alert('La Informacion Fue Grabada Correctamente');</script>";
}else{
echo "<script>alert('Tiene un PLAN de JURIDICA pendiente');</script>";
}
}
$sql = mysql_query('SELECT * FROM entidad_laboral order by nombre ');
if (!$sql) {
die('Invalid query: ' . mysql_error());
}
$row_sql = mysql_fetch_assoc($sql);
$totalRows_sql = mysql_num_rows($sql);
$sql2 = mysql_query('SELECT * FROM descuentos WHERE estado = "1" order by codigo ');
if (!$sql2) {
die('Invalid query: ' . mysql_error());
}
$row_sql2 = mysql_fetch_assoc($sql2);
$totalRows_sql2 = mysql_num_rows($sql2);
$sql3 = mysql_query('SELECT * FROM descuentos order by codigo ');
if (!$sql3) {
die('Invalid query: ' . mysql_error());
}
$row_sql3 = mysql_fetch_assoc($sql3);
$totalRows_sql3 = mysql_num_rows($sql3);
$sql4 = mysql_query('SELECT vendedor FROM vendedores WHERE estado = "1" and codigo = "' . "$codigo_asesor". '"');
if (!$sql4) {
die('Invalid query: ' . mysql_error());
}
list($vendedor89) = mysql_fetch_row($sql4);
$sql5 = mysql_query('SELECT * FROM sucursal order by nombre ');
if (!$sql5) {
die('Invalid query: ' . mysql_error());
}
$row_sql5 = mysql_fetch_assoc($sql5);
$totalRows_sql5 = mysql_num_rows($sql5);
$sql6 = mysql_query('SELECT * FROM descuentos WHERE estado = "1" order by codigo ');
if (!$sql6) {
die('Invalid query: ' . mysql_error());
}
$row_sql6 = mysql_fetch_assoc($sql6);
$totalRows_sql6 = mysql_num_rows($sql6);
$sql7 = mysql_query('SELECT * FROM director_ventas WHERE estado = "1" order by nombre');
if (!$sql7) {
die('Invalid query: ' . mysql_error());
}
$row_sql7 = mysql_fetch_assoc($sql7);
$totalRows_sql7 = mysql_num_rows($sql7);
?>
<!DOCTYPE html>
<head>
<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">
<title>INGRESAR SOLICITUD CARTERA</title>
<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;}
.cerrarsesion{width: auto;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
.cerrarsesion:hover{background-color: #ffffff;color: #000;}
.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;}
.direcciona{width: 200px;background-color: #D4090C;color: #fff; padding: 4px;border-radius: 3px;}
.direcciona:hover{background-color: #67a0d9; color: #000;}
.fecha{background-color: #d6e08b; padding: 2px;color: #8A0003;font-size: 15px; text-align: center;font-weight:600;}
td{border:#D6D6D6 solid 1px;}
.tdizq{background-color: #EEE; padding: 0px 5px;color: #00135F;font-size: 13px;font-weight: 600; text-align: left;}
.tdcen{background-color: #EEE; padding: 0px 5px;color: #00135F;font-size: 13px;font-weight: 600; text-align: center;}
.tdder{background-color: #EEE; padding: 0px 5px;color: #00135F;font-size: 13px;font-weight: 600; text-align: right;}
.exp{color:#8A0000; font-size:10px;}
.rojo{color:#C60000;}
.fuerte{font-weight:400;}
.boton1{width:200px;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: 1px 3px; background-color: #FFFEF4;}
/*Estilo Complementario*/
.tdi{background-color: #F9FBC8; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: left;}
.tdc{background-color: #F9FBC8; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: center;}
.tdd{background-color: #F9FBC8; padding: 1px 2px;color: #00135F;font-size: 12px;font-weight: 600; text-align: right;}
.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>
<script Language="JavaScript">
function validarEntero(valor){
//intento convertir a entero.
//si era un entero no le afecta, si no lo era lo intenta convertir
valor = parseInt(valor)
//Compruebo si es un valor numérico
if (isNaN(valor)) {
//entonces (no es numero) devuelvo el valor cadena vacia
return ""
}else{
//En caso contrario (Si era un número) devuelvo el valor
return valor
}
}
function valida_envia(){
//valido LOS APELLIDOS
if (document.form1.ape.value.length==0){
alert("Tiene que escribir sus apellidos")
document.form1.ape.focus()
return (false);
}
//valido el nombre
if (document.form1.noms.value.length==0){
alert("Tiene que escribir sus nombres")
document.form1.noms.focus()
return (false);
}
//valido la cedula
if (document.form1.ced.value.length==0){
alert("Tiene que escribir el numero de cedula")
document.form1.ced.focus()
return (false);
}
return (true);
}
</script>
</head>
<body >
<form action="" method="post" onsubmit="return valida_envia()" enctype="multipart/form-data" name="form1" class="color_fondo_sc" id="form1">
<header>
<img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<div align="center">
<h3 class="titulo">SOLICITUD CARTERA JURIDICA</h3>
<table width="702" border="2" cellpadding="1" cellspacing="1" class="sol_cre1">
<caption>
<div align="center">
<h3 class="titulo">INGRESAR DATOS</h3>
</div>
</caption>
<tr>
<td class="tdder"> </td>
<td class="tdder">Fecha Afiliacion:</td>
<td class="tdizq">
<input name="fechas" type="text" id="fechas" value="<?php echo $fecafi; ?>" size="10" maxlength="10" />
</td>
<td class="tdder">Sucursal :</td>
<td class="tdizq" colspan="3"><input name="sucur" type="text" id="sucur" value="<?php echo $sucur ?>" size="20" maxlength="20" />
</td>
</tr>
<tr>
<td class="tdder">Razon:</td>
<td class="tdizq" colspan="3"><input name="apenom" type="text" id="apenom" value="<?php echo $apes ?>" size="60" maxlength="65" />
</td>
<td class="tdder">Nit No:</td>
<td class="tdizq">
<input name="cedb" type="text" id="cedb" value="<?php echo $cedula ?>" size="20" maxlength="20" />
</td>
</tr>
<tr>
<td class="tdder">Nombre Representante Legal:</td>
<td class="tdizq" colspan="3"><input name="nomrepre" type="text" id="nomrepre" value="<?php echo $nombre_representante ?>" size="60" maxlength="65" />
</td>
<td class="tdder">Cedula Representante:</td>
<td class="tdizq">
<input name="cedrepre" type="text" id="cedrepre" value="<?php echo $cedula_representante ?>" size="20" maxlength="20" />
</td>
</tr>
<tr>
<td class="tdder">Ciudad :</td>
<td class="tdizq">
<input name="ciud" type="text" id="ciud" value="<?php echo $ciue ?>" size="14" maxlength="20" />
</td>
<td class="tdder">Direccion :</td>
<td class="tdizq" colspan="2">
<input name="dire" type="text" id="dire" value="<?php echo $dire ?>" size="45" maxlength="45" />
</td>
<td></td>
</tr>
<tr>
<td class="tdder">Telefono :</td>
<td class="tdizq">
<input name="tel" type="text" id="tel" value="<?php echo $tele ?>" size="10" maxlength="20" />
</td>
<td class="tdder">Celular :</td>
<td class="tdizq">
<input name="cel" type="text" id="cel" value="<?php echo $celul ?>" size="20" maxlength="20" />
</td>
<td class="tdder">E-mail :</td>
<td class="tdizq" colspan="2">
<input name="email" type="text" id="email" value="<?php echo $email ?>" size="35" maxlength="35" />
</td>
</tr>
<tr>
<td class="tdder">Plan :</td>
<td class="tdizq"> <input name="plant" type="text" id="plant" value="<?php echo $plant ?>" size="10" maxlength="20" />
</td>
<td class="tdder">Cuenta No :</td>
<td class="tdizq">
<input name="cue" type="text" id="cue" value="<?php echo $numero_cuenta ?>" size="20" maxlength="20" />
</td>
<td class="tdder">Banco :</td>
<td class="tdizq" colspan="2">
<input name="ban" type="text" id="ban" value="<?php echo $banco ?>" size="20" maxlength="20" />
</td>
</tr>
<tr>
<td class="tdder">Numero Contrato :</td>
<td class="tdizq">
<input name="numcont" type="text" id="numcont" value="<?php echo $numero_contrato ?>" size="12" maxlength="10" />
</td>
<td class="tdder">Numero libranza:</td>
<td class="tdizq">
<input name="num_lib" type="text" id="num_lib" value="<?php echo $numero_libranza ?>" size="12" maxlength="12" />
</td>
<td class="tdder">Vendedor :</td>
<td class="tdizq">
<input name="ase" type="text" id="ase" value="<?php echo $vendedor ?>" size="25" maxlength="25" />
</tr>
<tr>
<td class="tdder">Valor Contrato:</td>
<td class="tdizq">
<input name="valcon" type="text" id="valcon" value="<?php echo $valcon ?>" size="12" maxlength="10" />
</td>
<td class="tdder">Numero de Cuotas:</td>
<td class="tdizq">
<input name="numcuo" type="text" id="numcuo" value="<?php echo $numcuo ?>" size="12" maxlength="12" />
</td>
<td class="tdder">Valor Cuota :</td>
<td class="tdizq">
<input name="valcuo" type="text" id="valcuo" value="<?php echo $valcuo ?>" size="12" maxlength="12" />
</td>
</tr>
<tr>
<td class="tdder">Fecha Inicio Contrato:</td>
<td class="tdizq">
<input name="fechainicio" type="text" id="fechainicio" value="<?php echo $fecafi; ?>" size="10" maxlength="14" />
</td>
<td class="tdder">Fecha Termino Contrato:</td>
<td class="tdizq">
<input name="fechatermino" type="text" id="fechatermino" value="0000-00-00" size="10" maxlength="14" />
</td>
<td class="tdder">Fecha Inicio Pagos:</td>
<td><span class="tdder">MES</span>-
<label>
<select name="mes_inicio" id="mes_inicio">
<option value="01" selected="selected">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
</label>
<strong class="tdder">-AÑo</strong>
<input name="ano_inicio" type="text" id="ano_inicio" value="0000" size="5" maxlength="4" />
</td>
</tr>
<tr>
<td class="tdder">Entidad Recaudo:</td>
<td colspan="3" align="left"><select name="entrec" id="entrec">
<option value="">--SELECIONE ENTIDAD--</option>
<?php
do {
?>
<option value="<?php echo $row_sql6['id'];?>"><?php echo $row_sql6['concepto']?></option>
<?php
} while ($row_sql6 = mysql_fetch_assoc($sql6));
$rows6 = mysql_num_rows($sql6);
if($rows6 > 0) {
mysql_data_seek($sql6, 0);
$row_sql6 = mysql_fetch_assoc($sql6);
}
?>
</select>
</td>
<td class="tdder">Unidad y Codigo Descuento:</td>
<td class="tdizq">
<select name="unidt2" id="unidt2">
<option value="">--SELECIONE UNIDAD--</option>
<?php
do {
?>
<option value="<?php echo $row_sql2['id'];?>"><?php echo $row_sql2['unidad'].'-'.$row_sql2['codigo']?></option>
<?php
} while ($row_sql2 = mysql_fetch_assoc($sql2));
$rows2 = mysql_num_rows($sql2);
if($rows2 > 0) {
mysql_data_seek($sql2, 0);
$row_sql2 = mysql_fetch_assoc($sql2);
}
?>
</select>
</td>
</tr>
<tr>
<td class="tdder"></td>
<td class="tdder">Entidad Laboral:
</td>
<td colspan="2" align="left"><select name="enti" id="enti">
<option value="">--SELECCIONE ENTIDAD--</option>
<?php
do {
?>
<option value="<?php echo $row_sql['codigo'];?>"><?php echo $row_sql['nombre']?></option>
<?php
} while ($row_sql = mysql_fetch_assoc($sql));
$rows = mysql_num_rows($sql);
if($rows > 0) {
mysql_data_seek($sql, 0);
$row_sql = mysql_fetch_assoc($sql);
}
?>
</select></td>
<td class="tdder">Director :</td>
<td align="left" ><select name="cod_dir" id="cod_dir">
<option value="">-SELECCIONE DIRECTOR-</option>
<?php
do {
?>
<option value="<?php echo $row_sql7['codigo'];?>"><?php echo $row_sql7['nombre']?></option>
<?php
} while ($row_sql7 = mysql_fetch_assoc($sql7));
$rows7 = mysql_num_rows($sql7);
if($rows7 > 0) {
mysql_data_seek($sql7, 0);
$row_sql7 = mysql_fetch_assoc($sql7);
}
?>
</select>
</td>
</tr>
<tr>
<td class="tdder">Renovacion Cuotas :</td>
<td class="tdizq">
<input name="renovacion_cuotas" type="text" id="renovacion_cuotas" value="<?php echo $renovacion_cuotas?>" size="12" maxlength="12" />
</td>
</td>
</tr>
</table>
<p>
<label>
<input name="guardar" type="submit" class="direcciona" id="guardar" value="Guardar" />
</label>
</p>
</div>
</form>
</body>
</html>