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/cartera_modificar_datos_consultorio.php
<?php 
require_once("mainfile.php");
include ("config.php");
global $dbi;
$espacio = ' ';
$linea = '-';

require_once("Conectarse.php");


echo $_GET["ced2"];
echo $_GET["celular"];

 $control = mysql_query('SELECT fecha_registro, apellidos,nombres,cedula , celular ,  email  , numero_contrato ,   tipo_contrato , empresa_laboral , direccion_empresa  , telefono_empresa ,direccion_residencia ,ciudad_residencia  FROM consultorio_juridico 
 WHERE cedula =  "' . $_GET["cedulita"] . '" and celular =  "' . $_GET["cel"] . '" ');
		  if (!$control) {
				die('Invalid query 1: ' . mysql_error());   
			}
		$num=mysql_num_rows($control); 
		list($fechafil,$apes, $codi,$cedula, $grad, $email, $plan, $num_lib, $titular, $dire,   $codigosu,$tele, $celul, $ciud) = mysql_fetch_row($control);


		
if(isset($_POST["guardar"]))
{
//modificar paraguardar


	 			/*$mssql3 = mysql_query("UPDATE  cartera_serviasjudinet set cedula = '" . $_POST[cedb] . "', codigo_militar = '" . $_POST[cod] . "', nombre  = '" . $_POST[apenom] . "', grado  = '" . $_POST[gra] . "', numerocontrato  = '" . $_POST[numcont] . "', tipocontrato  = '" .$plan. "', numero_libranza  = '" . $_POST[num_lib] . "', codigo_sucursal = '" .$codigosu."', direccion = '" . $_POST[dire] . "', telefono = '" . $_POST[tel] . "', celular = '" . $_POST[cel] . "', ciudad = '" . $_POST[ciud] . "', email = '" . $_POST[email] . "', cuenta = '" . $_POST[cue] . "', banco = '" . $_POST[ban] . "', entidad_laboral = '" .$enti. "', unidad_descuento = '" .$unides. "', codigo_descuento = '" .$codides. "', entidad_recaudo = '" .$entre."', fecha_nacimiento = '" . $_POST[fecna] . "', fecha_afiliacion = '" . $_POST[fechas] . "', valorcontrato = '" . $_POST[valcon] . "', numerocuotas = '" . $_POST[numcuo] . "' , valorcuota = '" . $_POST[valcuo] . "', fecha_inicio_contrato = '" . $_POST[fechainicio] . "', fecha_termino_contrato = '" . $_POST[fechatermino] . "', saldoanteior = '" . $_POST[salant] . "', cuotaspendientes = '" . $_POST[cuopen] . "', saldonuevo = '" . $_POST[salnue] . "',  vendedor = '" .$ven. "', director = '" .$director. "', causal_terminacion = '" .$causal. "', fecha_terminacion = '" .$fechamodi. "' WHERE cedula = '" . $_GET[ced2] . "'  and numerocontrato =  '" . $_GET[numcon] . "' ");
         
	
	
     */
	
}



?>
<!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>INGRESAR SOLICITUD CARTERA</title>


<style type="text/css">
<!--
.est_cont5 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 9px;
	font-style: normal;
	font-weight: normal;
	background-color: #EDFAF4;
	margin: 2px;
	padding: 2px;
	height: auto;
	width: auto;
	border: thin groove #E9AAF0;
	color: #C72350;
}
.color_fondo_sc {
	background-color: #DCE0E4;
}
.Estilo1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: bold;
	background-color: #D6ECFE;
	margin: 2px;
	padding: 2px;
	height: auto;
	width: auto;
	border: thin groove #E9AAF0;
	color: #C72350;
}
.Estilo2 {
	font-size: 14px;
	font-weight: bold;
}
.est_cont2 {
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #2B39EC;
	background-color: #F0F5CF;
	height: 18px;
	width: auto;
	border: thin solid #FABF85;
}
.est_cont6 {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 11px;
	font-style: normal;
	font-weight: normal;
	color: #006262;
	background-color: #EDFED3;
	margin: 1px;
	padding: 1px;
	height: auto;
	width: auto;
	border: thin solid #D9B6F8;
}
.Estilo3 {
	color: #C72350;
	font-weight: bold;
}
.sol_cre1 {
	font-family: "Times New Roman", Times, serif;
	font-size: 13px;
	font-style: normal;
	font-weight: normal;
	color: #0B3495;
	background-color: #E6FAFF;
	margin: 1px;
	padding: 1px;
	height: 18px;
	width: auto;
	border: thin outset #56AD95;
}
.col_cre2 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: bold;
	color: #F92F0B;
	background-color: #B3D9F0;
	height: auto;
	width: auto;
	border: medium groove #FC9227;
}
.Estilo50 {color: #CC3333;
	font-family: "Arial Narrow";
	font-weight: bold;
}
.Estilo52 {color: #FF6633;
	font-size: 16px;
}
.Estilo53 {color: #2492FF;
	font-weight: bold;
}
.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;
}
.Estilo54 {
	color: #7DD096;
	font-weight: bold;
}
.campo1 {background-color: #B7FFFF;
	border: thin dashed #B6B6B6;
}
.campo1 {font-family: "Courier New", Courier, monospace;
	font-size: 16px;
	font-style: normal;
	font-weight: bold;
	background-color: #E1EFFD;
	border: thin doble #009999;
}
.campo1 {	font-family: "Courier New", Courier, monospace;
	font-size: 11px;
	color: #5151FF;
	background-color: #C4E4FD;
	border: thin solid #009999;
	height: 18px;
	width: auto;
}
.datos1 {font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-style: normal;
	text-decoration: blink;
	background-color: #CCFFCC;
	margin: 5px;
	padding: 7px;
	height: auto;
	width: auto;
	border: thin solid #0099FF;
}
.datos1 {font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 16px;
	background-color: #FDE0C1;
	margin: 2px;
	padding: 3px;
	border: medium doble #DBAED7;
}
.datos1 {	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 11px;
	font-weight: normal;
	background-color: #B8F5E8;
	margin: 4px;
	padding: 5px;
	border: thin outset #009999;
}
.datos2 {	font-family: "Courier New", Courier, monospace;
	font-size: 10px;
	font-style: normal;
	font-weight: normal;
	color: #0033FF;
	background-color: #FFE2C6;
	margin: 2px;
	padding: 3px;
	border: medium doble #EEBFEB;
}
.datos3 {	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-style: normal;
	font-weight: normal;
	color: #FF3300;
	background-color: #A6ECD7;
	margin: 4px;
	padding: 4px;
	border: medium groove #CCCCFF;
}
.go {	font-family: "Times New Roman", Times, serif;
	font-size: 9px;
	font-style: normal;
	color: #FF6633;
	background-color: #FBDCBD;
	padding: 1px;
	height: auto;
	width: auto;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
}
.Estilo64 {
	font-size: 8px;
	font-weight: bold;
	color: #000000;
}
.Estilo65 {color: #C72350}
.Estilo66 {
	font-size: 12px;
	font-weight: bold;
}
.label {background-color: #FFFFCC; font-size: 16px; font-family: Arial; color:#0000CC; display: block;}
-->
</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">
  <div align="center">
    <div class="Estilo1">SOLICITUD CARTERA JURIDICA</div>
    <table width="710" border="2" cellpadding="1" cellspacing="1" class="sol_cre1">
      <caption>
      <div align="center"><br />
          <span class="Estilo2">MODIFICAR DATOS CONSULTORIO JURIDICO</span><br />
      </div>
      </caption>
      <tr>
        <th width="64" scope="col">&nbsp;</th>
        <th width="93" scope="col"><div align="right">
            <div align="right"><strong>Fecha Afiliacion :</strong></div>
        </div></th>
        <th width="99" scope="col"><div align="left">
            <input name="fechas" type="text" class="Estilo66" id="fechas" value="<?php echo $fechafil ?>" size="10" maxlength="10" />
        </div></th>
        <th><div align="right"><strong>Sucursal :</strong></div></th>
        <th colspan="3" scope="col"><div align="left">
            <input name="codigosu" type="text" class="Estilo66" id="codigosu" value="<?php echo $codigosu ?>" size="20" maxlength="20"  readonly=""/>
           
        </div></th>
      </tr>
      <tr>
        <td  align="right"><strong>Apellidos y Nombres:</strong></td>
        <td colspan="3" align="left"><input name="apenom" type="text" class="Estilo66" id="apenom" value="<?php echo $apes ?>" size="60" maxlength="65" readonly="readonly" />        </td>
        <td width="112" height="21"><div align="right"><strong>Cedula No:</strong></div></td>
        <td width="205" ><div align="left">
            <input name="cedb" type="text" class="Estilo66" id="cedb" value="<?php echo $cedula ?>" size="20" maxlength="20"  readonly="readonly" />
        </div></td>
      </tr>
      <tr>
        <td><div align="right"><strong>Cogido Militar :</strong></div></td>
        <td ><div align="left">
            <input name="cod" type="text" class="Estilo66" id="cod" value="<?php echo $codi ?>" size="14" maxlength="20" readonly="readonly"/>
        </div></td>
        <td><div align="right"><strong>Grado :</strong></div></td>
        <td width="102"><div align="left">
            <input name="gra" type="text" class="Estilo66" id="gra" value="<?php echo $grad ?>" size="12" maxlength="10" />
        </div></td>
        <td align="right"><strong>Fecha Nacimiento :</strong></td>
        <td align="left"><input name="fecna" type="text" class="Estilo66" id="fecna" value="<?php echo $fecna ?>" size="6" maxlength="6" />
            <span class="Estilo64">DIA-MES</span> </td>
      </tr>
      <tr>
        <td><div align="right"><strong>Cuidad :</strong></div></td>
        <td><div align="left">
            <input name="ciud" type="text" class="Estilo66" id="ciud" value="<?php echo $ciud ?>" size="14" maxlength="20" />
        </div></td>
        <td><div align="right"><strong>Direccion :</strong></div></td>
        <td colspan="2"><input name="dire" type="text" class="Estilo66" id="dire" value="<?php echo $dire ?>" size="43" maxlength="43" />        </td>
      </tr>
      <tr>
        <td><div align="right"><strong>Telefono :</strong></div></td>
        <td><div align="left">
            <input name="tel" type="text" class="Estilo66" id="tel" value="<?php echo $tele ?>" size="10" maxlength="20" />
        </div></td>
        <td><div align="right"><strong>Celular :</strong></div></td>
        <td><div align="left">
            <input name="cel" type="text" class="Estilo66" id="cel" value="<?php echo $celul ?>" size="20" maxlength="20" />
        </div></td>
        <td><div align="right"><strong>E-mail :</strong></div></td>
        <td colspan="2"><div align="left">
            <input name="email" type="text" class="Estilo66" id="email" value="<?php echo $email ?>" size="35" maxlength="35" />
        </div></td>
      </tr>
      <tr>
        <td><div align="right"><strong>Plan :</strong></div></td>
        <td><input name="plan" type="text" class="Estilo66" id="plan" value="<?php echo $plan ?>" size="14" maxlength="14"  readonly=""/>
           
        <td><div align="right"><strong>Cuenta No :</strong></div></td>
        <td><div align="left">
            <input name="cue" type="text" class="Estilo66" id="cue" value="<?php echo $cue ?>" size="20" maxlength="20" />
        </div></td>
        <td><div align="right"><strong>Banco :</strong></div></td>
        <td colspan="2"><div align="left">
            <input name="ban" type="text" class="Estilo66" id="ban" value="<?php echo $ban ?>" size="20" maxlength="20" />
        </div></td>
      </tr>
      <tr>
        <td height="28"><div align="right"><strong>Numero Contrato :</strong></div></td>
        <td><div align="left">
            <input name="numcont" type="text" class="Estilo66" id="numcont" value="<?php echo $numcont ?>" size="12" maxlength="10" />
        </div></td>
        <td><div align="right"><strong>Numero libranza:</strong></div></td>
        <td ><div align="left">
            <input name="num_lib" type="text" class="Estilo66" id="num_lib" value="<?php echo $num_lib ?>" size="12" maxlength="12" />
        </div></td>
        <td><div align="right"><strong>Vendedor :</strong></div></td>
        <td align="left" ><input name="vendedor" type="text" class="Estilo66" id="ven" value="<?php echo $ven ?>" size="30" maxlength="30"  readonly=""/>
            
      </tr>
      <tr>
        <td height="28"><div align="right"><strong>Valor Contrato :</strong></div></td>
        <td><div align="left">
            <input name="valcon" type="text" class="Estilo66" id="valcon" value="<?php echo $valcon ?>" size="12" maxlength="10" />
        </div></td>
        <td><div align="right"><strong>Numero de Cuotas:</strong></div></td>
        <td ><div align="left">
            <input name="numcuo" type="text" class="Estilo66" id="numcuo" value="<?php echo $numcuo ?>" size="12" maxlength="12" />
        </div></td>
        <td align="center"><strong>Valor Cuota:</strong></td>
        <td align="left">
            <input name="valcuo" type="text" class="Estilo66" id="valcuo" value="<?php echo $valcuo ?>" size="12" maxlength="12" />
        </td>
     
      </tr>
      <tr>
        <td height="28"><div align="right"><strong>Cuotas Pendientes:</strong></div></td>
        <td><div align="left">
            <input name="cuopen" type="text" class="Estilo66" id="cuopen" value="<?php echo $cuopen ?>" size="12" maxlength="10" />
        </div></td>
        <td><div align="right"><strong>Saldo Nuevo:</strong></div></td>
        <td ><div align="left">
            <input name="salnue" type="text" class="Estilo66" id="salnue" value="<?php echo $salnue ?>" size="12" maxlength="12" />
        </div></td>
        <td><div align="right"><strong>Saldo Anterior:</strong></div></td>
        <td ><div align="left">
            <input name="salant" type="text" class="Estilo66" id="salant" value="<?php echo $salant ?>" size="12" maxlength="12" />
        </div></td>
      </tr>
      <tr>
        <td height="54"><div align="right"><strong>Fecha Inicio Contrato:</strong></div></td>
        <td><div align="left">
            <input name="fechainicio" type="text" class="Estilo66" id="fechainicio" value="<?php echo $fechainicio ?>" size="10" maxlength="14" />
        </div></td>
        <td><div align="right"><strong>Fecha Termino Contrato:</strong></div></td>
        <td ><div align="left">
            <input name="fechatermino" type="text" class="Estilo66" id="fechatermino" value="<?php echo $fechatermino ?>" size="10" maxlength="14" />
        </div></td>
        <td height="54"><div align="right"><strong>Fecha Inicio Pagos:</strong></div></td>
        <td align="left"><input name="iniciopag" type="text" class="Estilo66" id="iniciopag" value="<?php echo $inipag ?>" size="5" maxlength="5" readonly="" />
            <strong>Fecha Termino Pagos:</strong>
            <input name="iniciopag" type="text" class="Estilo66" id="iniciopag" value="<?php echo $finpag ?>" size="5" maxlength="5" readonly="" />        </td>
      </tr>
    </table>
    <p>
      <label>
      <input name="guardar" type="submit" class="Estilo53" id="guardar" value="Modificar"  />
      </label>
    </p>

  </div>
</form>
</body>
</html>