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/comercial/solicitud_empleados_nuevo_privada.php
<?php 
require_once("../Conectarse.php");
	

/*$resu = mysql_query('SELECT cedula,nombre,grado,unidad FROM datos_credito WHERE cedula = "'.$_GET["ced2"].'"');
if (!$resu) {
	die('Invalid query 2: ' . mysql_error());
}	
 
list($cedula, $apes, $grado, $unidad) = mysql_fetch_row($resu);*/

$sql9 = mysql_query('SELECT id, nit, razon, unidad, condicion FROM personas_juridicas WHERE condicion != ""  ');
if (!$sql9) {
	die('Invalid query juridica: ' . mysql_error());
}
$row_sql9 = mysql_fetch_assoc($sql9);
$totalRows_sql9 = mysql_num_rows($sql9);

$sql10 = mysql_query('SELECT id, nit, razon, sigla, sucursal_serviasjudinet, ciudad_empresa, direccion, telefono, unidad, condicion FROM personas_juridicas WHERE condicion != ""  ');
if (!$sql10) {
	die('Invalid query juridica: ' . mysql_error());
}
$row_sql10 = mysql_fetch_assoc($sql10);
$totalRows_sql10 = mysql_num_rows($sql10);

if ($_GET[id]!="") {

	$Recordset1 = mysql_query('SELECT id, nit, razon, sigla, sucursal_serviasjudinet, ciudad_empresa, direccion, telefono, unidad, condicion FROM personas_juridicas WHERE condicion != "" '); 
	if (!$Recordset1)
	{
		die('Invalid query: ' . mysql_error());
	}
				 
	$row_Recordset1 = mysql_fetch_assoc($Recordset1);
	$totalRows_Recordset1 = mysql_num_rows($Recordset1);
}


$resu = mysql_query('SELECT cedula, nombre, direccion, ciudad, telefono, celular, email, unidad, numero_cuenta, banco, codigo_asesor, numero_libranza, numero_contrato FROM solicitud_credito WHERE cedula = "'.$_GET["ced2"].'"');
if (!$resu) {
	die('Invalid query 2: ' . mysql_error());
}	
 
list($cedula, $apes, $direccion, $ciudad, $telefono, $celular, $email, $uni_new, $numero_cuenta, $banco, $ase_new, $numero_libranza, $numero_contrato) = mysql_fetch_row($resu);

	
				
if(isset($_POST["guardar"]))
{
	
	$fechast = date("y").'-'.date("m").'-'.date("d");	
	
	$resu = mysql_query('SELECT cedula FROM solicitud_credito WHERE cedula =  "' . $_POST["ced"]  . '" and numero_contrato =  "' . $_POST["numcont"]  . '"');
	if (!$resu) {
		die('Invalid query: ' . mysql_error());
	} 		
 
	list($cedulatt) = mysql_fetch_row($resu);
	
	if ((mysql_num_rows($resu)==0))
	{
		$tieser = $tie.$espacio.$ma;
	
		$resul5 = mysql_query('SELECT valor_mensual, valor_total FROM planes_contratos  WHERE codigo =  "' . $_POST["plan"]  . '" ');
		if (!$resul5) {
			die('Invalid query: ' . mysql_error());
		} 
		list($vmj, $vmt ) = mysql_fetch_row($resul5);
		
		
  		$control3 = mysql_query('SELECT cedula, numero_desembolso FROM solicitud_credito  WHERE cedula = "' . $_GET["ced2"] . '" ');
		if (!$control3) {
			die('Invalid query: ' . mysql_error());
		} 
		list($cedula, $numdem) = mysql_fetch_row($control3);
		$num4=mysql_num_rows($control3);

		if ($_POST["codigo_sucursal"] == "")
		{
			$resul4 = mysql_query('SELECT codigo FROM sucursal WHERE nombre  =  "'.$_POST[sucur].'" ');
			if (!$resul4) {
				die('Invalid query ooo: ' . mysql_error());
			}	
			list($codigo_sucursal) = mysql_fetch_row($resul4);
		}
		else
		{
			$resul4 = mysql_query('SELECT codigo FROM sucursal WHERE codigo =  "'.$_POST[codigo_sucursal].'" ');
			if (!$resul4) {
				die('Invalid query ooo: ' . mysql_error());
			}	
						list($codigo_sucursal) = mysql_fetch_row($resul4);
		}			
			
		if($_POST["plan"]  == "")
		{
			$resul5 = mysql_query('SELECT codigo FROM planes_contratos  WHERE codigo_contrato  =  "'.$_POST["plant"] .'" ');
			if (!$resul5) {
				die('Invalid query ooo: ' . mysql_error());
			}	
			list($plan) = mysql_fetch_row($resul5); 
		}else
		{
			$resul5 = mysql_query('SELECT codigo FROM planes_contratos  WHERE codigo_contrato  =  "'.$_POST["plan"] .'" ');
			if (!$resul5) {
				die('Invalid query ooo: ' . mysql_error());
			}	
			list($plan) = mysql_fetch_row($resul5); 
		}
		if ($num4 != "")
		{
			$mssql = mysql_query("UPDATE  solicitud_credito set cedula= '" . $_POST[ced] . "', ced_ciudad= '" . $_POST[ciuced] . "', nombre= '" . $_POST[ape] . "', fecha = '" . $_POST[fechas] . "', direccion='" . $_POST[dir] . "', ciudad= '" . $_POST[ciu] . "',  telefono= '" . $_POST[tel] . "', celular= '" . $_POST[cel] . "',  email= '" . $_POST[email] . "',  unidad= '" . $_POST[uni] . "', codigo_plan= '" . $plan. "', numero_cuenta= '" . $_POST[cue] . "', banco= '" . $_POST[ban] . "', grado= '" . $_POST[gra] . "', codigo_militar= '" . $_POST[codigom] . "',  codigo_sucursal= '" .$codigo_sucursal. "', numero_libranza= '" . $_POST[num_lib] . "', con_valor_mensual= '" .$vmj. "', con_valor_total= '" .$vmt. "', fecha_nac= '" . $_POST[fechanac] . "', tipo_solicitud = '9', estado= '0', numero_contrato = '" . $_POST[numcont] . "',renovacion_cuotas='" . $_POST[cuotas] . "' ,permanencia='" . $_POST[permanencia] . "',fecha_registro ='". $fechast."'  WHERE cedula= '" . $_GET[ced2] . "' ");	

			if (!$mssql) {
				die('Invalid query udate: ' . mysql_error());
			}

		}
		else
		{
		
  			mysql_query("INSERT INTO solicitud_credito (cedula, ced_ciudad, nombre, fecha, direccion, ciudad, telefono, celular, email, unidad, codigo_plan,  numero_cuenta, banco, codigo_asesor, codigo_militar, grado, codigo_sucursal, numero_libranza, con_valor_mensual, con_valor_total, fecha_nac, tipo_solicitud, estado,  numero_contrato, alerta1, alerta2, alerta3, alerta4, alerta5,empresa_laboral,nit_empresa_laboral, unidad_empresarial, direccion_empresa,  ciudad_empresa,telefono_empresa,renovacion_cuotas,permanencia,fecha_registro) VALUES ('" . $_POST["ced"] . "', '" . $_POST["ciuced"] . "', '" . $_POST["ape"] . "', '" . $_POST["fechas"] . "', '" . $_POST["dir"] . "', '" . $_POST["ciu"] . "', '" . $_POST["tel"] . "', '" . $_POST["cel"] . "', '" . $_POST["email"] . "', '" . $_POST["uni"] . "', '" ."$plan". "' , '" . $_POST["cue"] . "', '" . $_POST["ban"] . "', '" . $_POST["ase"] . "', '" . $_POST["codigom"] . "', '" . $_POST["gra"] . "', '" ."$codigo_sucursal". "', '" . $_POST["num_lib"] . "', '" ."$vmj". "', '" ."$vmt". "', '" . $_POST["fechanac"] . "', '9', '0', '" . $_POST["numcont"] . "', '" . $_GET["alerta1"] . "', '" . $_GET["alerta2"] . "', '" . $_GET["alerta3"] . "', '" . $_GET["alerta4"] . "', '" . $_GET["alerta5"] . "', '" . $_POST["empresa_laboral"] . "', '" . $_POST["num_nit"] . "', '" . $_POST["uni"] . "','" . $_POST["direc"] . "','" . $_POST["ciudad_empresa"] . "','" . $_POST["tel_empre"] . "','" . $_POST["cuotas"] . "','" . $_POST["permanencia"] . "','".$fechast."')");	  

		}


		$resu = mysql_query('SELECT cedula, ced_ciudad, nombre, direccion, ciudad, telefono, celular, email, unidad, codigo_plan, numero_cuenta, banco, codigo_militar, grado, codigo_sucursal ,  con_valor_mensual, con_valor_total, fecha_nac, numero_libranza,  numero_contrato FROM solicitud_credito WHERE cedula =  "' . $_POST["ced"]  . '" ');
		if (!$resu) {
			die('Invalid query: ' . mysql_error());
		} 		
 
		list($cedula, $ced_ciudad, $apes, $direccion, $ciudad, $telefono, $celular, $email, $unidad, $plant,  $numero_cuenta, $banco, $codm, $grado, $sucur, $val_menj, $val_ment, $fechanac, $numero_libranza, $numero_contrato) = mysql_fetch_row($resu);
		
		echo "<script>alert('SOLICITUD GUARDADA SATISFACTORIAMENTE');</script>";
		echo "<script>window.location.href='tipo_solicitud.php';</script>";
	}
	else
	{
	 	echo "<script>alert('SOLICITUD PENDIENTE');</script>";
	}
		 
}





$sql2 = mysql_query('SELECT * FROM descuentos order by codigo ');
if (!$sql2) {
	die('Invalid query m2: ' . 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 3: ' . mysql_error());
} 
$row_sql3 = mysql_fetch_assoc($sql3);
$totalRows_sql3 = mysql_num_rows($sql3);


$sql4 = mysql_query('SELECT * FROM vendedores WHERE (tipo = "AC" || tipo = "AE")  and estado = "1" order by vendedor ');
if (!$sql4) {
	die('Invalid query: ' . mysql_error());
} 
$row_sql4 = mysql_fetch_assoc($sql4);
$totalRows_sql4 = mysql_num_rows($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); 


$sql7 = mysql_query('SELECT * FROM planes_contratos  WHERE estado = "1"   order by codigo ');
if (!$sql7) {
	die('Invalid query: ' . mysql_error());
} 
$row_sql7 = mysql_fetch_assoc($sql7);
$totalRows_sql7 = mysql_num_rows($sql7);

$sql8 = mysql_query('SELECT * FROM director_ventas order by nombre ');
if (!$sql8) {
	die('Invalid query: ' . mysql_error());
}
$row_sql8 = mysql_fetch_assoc($sql8);
$totalRows_sql8 = mysql_num_rows($sql8); 

$sql8 = mysql_query('SELECT * FROM sucursal order by nombre ');
if (!$sql8) {
	die('Invalid query: ' . mysql_error());
} 
$row_sql8 = mysql_fetch_assoc($sql8);
$totalRows_sql8 = mysql_num_rows($sql8); 
?>


<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
	<meta http-equiv="X-UA-Compatible" content="IE=8; IE=9; IE=edge" />
    
<title>INGRESAR SOLICITUD DE CREDITO</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;}
    
    .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: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: 3px;background-color: #FFFEF4;}
	
	.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;}
	.tdizq{background-color: #e5e5e5; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: left;}
    .tdcen{background-color: #e5e5e5; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: center;}
    .tdder{background-color: #e5e5e5; padding: 1px 2px;color: #00135F;font-size: 12px;font-weight: 600; text-align: right;}
	
	/*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;}
</style>

<script
  src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
  integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="
  crossorigin="anonymous">
 </script>

<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 
      } 
} 
</script>

<script>

function valida_envia(){
			//valido la fecha solicitud
	if (document.form1.fechas.value=='0000-00-00'){
		alert("Tiene que escribir la Fecha de Solicitud")
		document.form1.fechas.focus()
		return (false);
	}


	if (document.form1.codigo_sucursal.value==""){
		alert("Tiene que seleccionar sucursal")
		document.form1.codigo_sucursal.focus()
		return (false);
	}


	//valido LOS APELLIDOS
	if (document.form1.ape.value==""){
		alert("Tiene que escribir sus apellidos")
		document.form1.ape.focus()
		return (false);
	}

		//valido la cedula
	if (document.form1.ced.value==""){
		alert("Tiene que escribir el numero de cedula")
		document.form1.ced.focus()
		return (false);
	}
				//valido la fecha grado
	if (document.form1.gra.value==""){
		alert("Tiene que escribir el Grado")
		document.form1.gra.focus()
		return (false);
	}


		if (document.form1.plan.value==""){
		alert("Falta seleccionar plan")
		document.form1.plan.focus()
		return (false);
	}
				

				//valido la fecha dia de nacimiento
	if (document.form1.fechanac.value==""){
		alert("FECHA DE NACIMIENTO")
		document.form1.fechanac.focus()
		return (false);
	}
	
	
	// valida cuotas
	
	if (document.form1.cuotas.value==''){
		alert("Tiene que escribir la Renovacion Cuotas")
		document.form1.cuotas.focus()
		return (false);
	}
	  
	
	
	
	//valido VENDEDOR
	if (document.form1.ase.value==""){
		alert("Falta seleccionar vendedor")
		document.form1.ase.focus()
		return (false);
	}
	
	
	//valido PERMANENCIA
	if (document.form1.permanencia.value==""){
		alert("Falta seleccionar vendedor")
		document.form1.permanencia.focus()
		return (false);
	}
	
	
	//valido la fecha dia de nacimiento

	return (true);
}
</script>


<script type="text/JavaScript">

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

</script>



</head>
<body onLoad="buscar();">
 <header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>


<form action=""  method="post" onsubmit="return valida_envia()" enctype="multipart/form-data" name="form1" class="" id="form1">
  <div align="center">
   <h3 class="titulo">DATOS BASICOS EMPLEADOS EMPRESA PRIVADA</h3>
    <table width="908" border="3" cellpadding="1" cellspacing="1" class="est_cont5">
      <caption>
      <div align="center">
         <h3 class="titulo">DATOS BASICOS - EMPRESA</h3>
          </div>
      </caption>
      
        <tr bgcolor="#ECE9D8">
        <td bgcolor="#EFEFEF" align="right"><b>EMPRESA:</b></td>
  
   <td width="224" bgcolor="#EFEFEF">
   <select name="id" onChange="MM_jumpMenu('parent',this,0)">
            <OPTION value="">--Seleccione La Empresa--</OPTION>
            <?php
do {  
?>
    <option value="solicitud_empleados_nuevo_privada.php?id=<?php echo $row_sql10['nit'];?>&razon=<?php echo $row_sql10['razon'];?>&razon=<?php echo $row_sql10['unidad'];?>&direccion=<?php echo $row_sql10['direccion'];?>&ciudad=<?php echo $row_sql10['ciudad_empresa'];?>&telefono=<?php echo $row_sql10['telefono'];?>"><?php echo $row_sql10['razon']?></option>     
                 <?php
} while ($row_sql10 = mysql_fetch_assoc($sql10));
  $rows10 = mysql_num_rows($sql10);
  if($rows10 > 0) {
      mysql_data_seek($sql10, 0);
       $row_sql10 = mysql_fetch_assoc($sql10);
  }
?>
        </SELECT></td>
         <td class="tdder"><div align="right">Numero Nit:</div></td>
          <td class="tdizq">
          	<!--<input name="num_nit" type="text" id="num_nit" value="" size="30" maxlength="30" />-->
            <input name="num_nit" id="num_nit" type="text" class="Estilo21" value="<?php echo $_GET["id"] ?>" size="30" maxlength="30" readonly="">
        </td>
         
        <td class="tdder"><div align="right">Unidad Empresarial :</div></td>
         <td class="tdizq">
            <!--<input name="uni" type="text" id="uni" value="<?php echo $uni ?>" size="30" maxlength="30" />-->
            <input name="uni" id="uni" type="text" class="Estilo21" value="<?php echo $_GET["razon"] ?>" size="30" maxlength="30" readonly="">
        </td>
    </tr>
        
        
           <tr>
        
        <td class="tdder"><div align="right">Direccion :</div></td>
         <td class="tdizq">
            <!--<input name="direc" type="text" id="direc" value="" size="30" maxlength="30" />-->
            <input name="direc" id="direc" type="text" class="Estilo21" value="<?php echo $_GET["direccion"] ?>" size="30" maxlength="30" readonly="">
        </td>
        
        <td class="tdder"><div align="right">Ciudad Empresa:</div></td>
        <td class="tdizq">
            <!--<input name="ciudad_empresa" type="text" id="ciudad_empresa" value="<?php echo $numero_libranza ?>" size="12" maxlength="12" />-->
            <input name="ciudad_empresa" id="ciudad_empresa" type="text" class="Estilo21" value="<?php echo $_GET["ciudad"] ?>" size="30" maxlength="30" readonly="">
            
        </td>
        
        <td class="tdder"><div align="right">Telefono Empresa:</div></td>
        <td class="tdizq">
            <!--<input name="tel_empre" type="text" id="tel_empre" value="<?php echo $numero_libranza ?>" size="18" maxlength="18" />-->
            <input name="tel_empre" id="tel_empre" type="text" class="Estilo21" value="<?php echo $_GET["telefono"] ?>" size="30" maxlength="30" readonly="">
        </td>
        </tr>
      
      
      
      <tr>
      <td colspan="6">
         <h3 class="titulo">DATOS BASICOS - DEUDOR</h3>
      </td>
      <tr>
       <td class="tdder">&nbsp;</td>
       <td class="tdder"><div align="right">
            <div align="right">Fecha Afiliacion:  </div>
        A&ntilde;o-Mes-dia </div></th>
        <td class="tdizq">
            <input name="fechas" type="text" id="fechas" value="0000-00-00" size="10" maxlength="10" />
        </td>
        <td class="tdder"><div align="right">Sucursal :</div></td>
        <td class="tdizq" colspan="3"> <select name="codigo_sucursal" >
            <option value="">--SELECCIONE SUCURSAL--</option>
            <?php
     do {  
?>
            <option value="<?php echo $row_sql8['codigo'];?>"><?php echo $row_sql8['nombre']?></option>
            <?php
} while ($row_sql8 = mysql_fetch_assoc($sql8));
  $rows = mysql_num_rows($sql8);
  if($rows8 > 0) {
      mysql_data_seek($sql8, 0);
       $row_sql8 = mysql_fetch_assoc($sql8);
  }
?>
          </select>       
           </td>
      </tr>
      <tr>
        <td class="tdder"><div align="right">Apellidos y Nombres:</div></td>
        <td class="tdizq" colspan="3" >
            <input name="ape" type="text" class="Estilo74" id="ape" value="<?php echo $apes ?>" size="66" maxlength="65" />
       
       <td class="tdder"><div align="right">Fecha Nacimiento :</div></td>
       <td class="tdcen">dia-mes
                <input name="fechanac" type="text" class="Estilo85" id="fechanac" value="<?php echo $fechanac ?>" size="6" maxlength="6" />
        </td>
    
      <tr>
        <td class="tdder"><div align="right">Cedula No:</div></td>
        <td class="tdizq">
            <input name="ced" type="text" id="ced" value="<?php echo $cedula ?>" size="20" maxlength="20" />
        </td>
        <td class="tdder"><div align="right">De:</div></td>
        <td class="tdizq" colspan="4">
            <input name="ciuced" type="text" id="ciuced" value="<?php echo $ced_ciudad ?>" size="20" maxlength="20" />
        </td>
       
      </tr>
      <tr>
        <td class="tdder"><div align="right">Ciudad :</div></td>
        <td class="tdizq">
            <input name="ciu" type="text" id="ciu" value="<?php echo $ciudad ?>" size="20" maxlength="20" />
        </td>
        <td class="tdder"><div align="right">Direccion :</div></td>
        <td class="tdizq" colspan="4">
            <input name="dir" type="text" class="Estilo78" id="dir" value="<?php echo $direccion ?>" size="50" maxlength="50" />
        </td> 
      
      </tr>
      <tr>
        <td class="tdder"><div align="right">Telefono :</div></td>
        <td class="tdizq">
            <input name="tel" type="text" id="tel" value="<?php echo $telefono ?>" size="20" maxlength="20" />
        </td>
        <td class="tdder"><div align="right">Celular :</div></td>
        <td class="tdizq">
            <input name="cel" type="text" class="Estilo80" id="cel" value="<?php echo $celular ?>" size="20" maxlength="20" />
        </td>
        <td class="tdder"><div align="right">E-mail :</div></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"><div align="right">Plan :</div></td>
        <td class="tdizq">
            <select name="plan" id="plan">
              <option value="">-PLAN-</option>
              <option value="INT06">INT06</option>
              <option value="INT07">INT07</option>
              <option value="INT08">INT08</option>
              <option value="INT09">INT09</option>
              
                
              </select>
        </td>
        <td class="tdder"><div align="right">Cuenta No :</div></td>
        <td class="tdizq">
           <input name="cue" type="text" id="cue" value="<?php echo $numero_cuenta ?>" size="20" maxlength="20" />
        </td>
        <td class="tdder"><div align="right">Banco :</div></td>
        <td class="tdizq" colspan="2" >
            <input name="ban" type="text" class="Estilo66" id="ban" value="<?php echo $banco ?>" size="20" maxlength="20" />
        </td>
      </tr>
      <tr>
        <td class="tdder"><div align="right">Numero Contrato :</div></td>
       <td class="tdizq">
          <input name="numcont" type="text" id="numcont" value="<?php echo $numero_contrato ?>" size="12" maxlength="10" />
        </span></td>
        <!--
      <td class="tdder"><div align="right">Unidad :</div></td>
        <td class="tdizq">
            <select name="uni" class="Estilo66" id="uni">
              <option value="">--UNIDAD--</option>
             <option value="NPCV">NEPV</option>
             <option value="YYY0">YYY0</option>
                             
            </select>
        </td>
        -->
         <td class="tdder"><div align="right">Numero Pagare:</div></td>
        <td class="tdizq">
            <input name="num_lib" type="text" id="num_lib" value="<?php echo $numero_libranza ?>" size="12" maxlength="12" />
        </td></tr>
        
        
      <tr>
        <td class="tdder"><div align="right">Empresa Laboral :</div></td>
         <td class="tdizq" colspan="3">
            <input name="empresa_laboral" type="text" id="empresa_laboral" value="" size="80" maxlength="80" />
          </td>
        
         
        <td class="tdder"><div align="right">Renovacion Cuotas:</div></td>
        <td class="tdizq">
            <select name="cuotas" id="cuotas">
              <option value="">-CUOTAS-</option>
               <!--<option value="12">12</option>-->
              <option value="24">24</option>
           
          
              </select>
        </td>
        </tr>
        
        
        <tr>
            
        <td class="tdder"><div align="right">Vendedor:</div></td>
         <td class="tdizq"><select name="ase">
            <option value="">--SELECCIONE VENDEDOR--</option>
            <?php
     do {  
?>
            <option value="<?php echo $row_sql4['codigo'];?>"><?php echo $row_sql4['vendedor']?></option>
            <?php
} while ($row_sql4 = mysql_fetch_assoc($sql4));
  $rows = mysql_num_rows($sql4);
  if($rows4 > 0) {
      mysql_data_seek($sql4, 0);
       $row_sql4 = mysql_fetch_assoc($sql4);
  }
?>
          </select>    </td>
          
           <td class="tdder"><div align="right">Clausula De Permanencia :</div></td>
        <td class="tdizq" colspan="2" >
            <select name="permanencia" id="permanencia">
              <option value="">-PERMANENCIA-</option>
              <option value="12">12</option>   
              <option value="24">24</option>
              <option value="SIN">SIN</option>  
          
              </select>

      </tr>
        
        
        <!--</table>-->
        
        
        <?php
		/*
		if(isset($_POST["informacion"])){
			$revisa = mysql_query('SELECT nit, razon FROM personas_juridicas WHERE nit = "'.$_POST["busqueda"].'" ');
			list($nombre_razon) = mysql_fetch_row($revisa);
		}
		*/
		?>
        <!--
        <form action="" accept-charset="utf-8" method="POST">
      <table width="100%">
      <tr>
      <td> Digite NIT
		<input type="text" name="busqueda" id="busqueda" value="" placeholder="" maxlength="30" autocomplete="off" />
        <input type="button" name="informacion" id="informacion" value="Informacion" onClick="informacion();" >
        
        </td>
        </tr>
        </table>
      </form>
<p name="resultados" id="resultados"></p>
		
        
        <table>-->
        
        
       
        
      
      
 
          
    </table>

    <p>
      <label>
      <input name="menu2" type="button" class="boton1" id="menu2" onClick="window.location.href='tipo_solicitud.php'" value="IR AL MENU">
 
 <input name="guardar" type="submit" class="boton1" id="guardar" value="GUARDAR" />
 
      </label>
    </p>

  </div>
</form>

<script>
/*
fuction informacion(){
	$.ajax({
		var nombre = $("#busqueda").val();
            type:'POST', //aqui puede ser igual get
            url: 'solicitud_empleados_nuevo_privada_busqueda.php',//aqui va tu direccion donde esta tu funcion php
            data: {'nombre='+nombre},//aqui tus datos
            success:function(data){
                //lo que devuelve tu archivo mifuncion.php
				$("#resultado").empty;
				$("#resultado").append(data);
           },
           error:function(data){
            //lo que devuelve si falla tu archivo mifuncion.php
           }
         });	
}
*/
</script>

<script>
/*
$(document).ready(function(e){
	$("#buscar").keyup(function(e){
		var nombre = $("#buscar").val();
		$.ajax({
			type: "post",
			url: "solicitud_empleados_nuevo_privado_busqueda.php",
			dataType: "html",
			data: "nombre"=+nombre,
			success: function(dato)
			{
				$("#resultados").empty();
				$("#resultados").append(dato);
				
			}
		});
	});
});
*/
</script>

</body>
</html>