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/ingresar_valor_transporte_consultorio_bono.php
<?php 

require_once("../Conectarse.php");
	
		
$control = mysql_query('SELECT apellidos,nombres,cedula,fecha_nacimiento,celular,email,grado,ano_cotizado,
fondo_pensiones,fecha_ingreso,fecha_retiro,tiempo_servicio,direccion_residencia,ciudad_residencia,telefono,ciudad_telefono,actuaciones FROM consultorio_bono_pensional WHERE cedula = "'.$_GET["cedula"].'" and celular = "'.$_GET["celular"].'"');
		  if (!$control) {
				die('Invalid query 1: ' . mysql_error());
			}
		
		
		$num=mysql_num_rows($control); 
		
list($ape,$nom,$cedu,$fecha_nacimiento,$celular,$email,$grado,$ano_cotizado,$fondo_pensiones,$fecha_ingreso,$fecha_retiro,$tiempo_servicio,$direccion,$ciudad,$telefono,$ciudadtelefono,$actuaciones) = mysql_fetch_row($control);

$Recordset1 = mysql_query('SELECT * FROM Usuarios WHERE ((codigo="662" || codigo="714") || cargo LIKE "'."%DISER%". '") order by Nombre_Completo'); 


$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
		
////////////////

$Recordset2 = mysql_query('SELECT * FROM sucursal order by nombre'); 
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
$totalRows_Recordset2 = mysql_num_rows($Recordset2);
////////////////   
  
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Registro de Formulario Juridico</title>
<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: #F1F1F1;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;}
	.fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}

	.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 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: right;}
	.boton{width:380px;background-color: #00135F;color: #FFFFFF;padding: 2px;border:2px solid #FFFFFF;}
	.boton:hover{background-color: #5361A0; color: #FFFFFF;}
	.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], select{border-radius: 5px; padding: 3px;background-color: #fffef7;}
	.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;}
</style>
</head>
 
<body bgcolor="#EFEFEF" text="#000000" topmargin="0" leftmargin="0">
<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<table width="100%" height="75%" bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="0">
         
  <tr>
    <td height="10" valign="top">
 
      <table width="70%" border="0" cellspacing="0" cellpadding="0">
 
      </table>
    </td>
  </tr>
 
  <tr>
    <td align="center">
 
      <table align="center" border="2" cellspacing="0" cellpadding="1">
 <tr>
   <td class="titulo">Ingresar Valor Transporte Bono Pensional</td>
  
 </tr>
 
 <tr>
   <td align="center" colspan="2">
 
<script languaje="JavaScript">
function validar_campos(formulario)
{
	
    if (formulario.funcionario.value == "")
  {
    alert("Seleccione El Funcionario");
    formulario.funcionario.focus();
    return (false);
  }	
	
  if (formulario.sucursal.value == "")
  {
    alert("Seleccione La Sucursal");
    formulario.sucursal.focus();
    return (false);
  }
    
  if (formulario.codigo_autorizacion.value == "")
  {
    alert("Escriba El Codigo De Autorizacion");
    formulario.codigo_autorizacion.focus();
    return (false);
  }
  
    if (formulario.valor_transporte.value == "")
  {
    alert("Escriba El Valor Del Transporte");
    formulario.valor_transporte.focus();
    return (false);
  }
  
   if (formulario.mensaje.value == "")
  { 
    alert("Ingrese Una Gestion");
    formulario.mensaje.focus();
    return (false);
  }

 
  if (confirm("Los datos de la consulta son correctos"))
  {   
    return (true);
  }
  else
  {
   return (false);
   }

  return (true);
}  
//-->
</script>
 
<form name="formulario" method="post" action="" enctype="multipart/form-data" onSubmit="return validar_campos(this)">
       <table border="1" bgcolor="#EFEFEF" cellspacing="5">
        <tr>
  <td class="tdder">Apellidos:</td>
  <td class="tdizq"><input type="text" name="apellidos" value="<? echo $ape?>"size="50" maxlength="40"  readonly></td>
  
       </tr>
       
         <tr>
  <td class="tdder">Nombres:</td> 
  <td class="tdizq"><input type="text" name="nombre"  value="<? echo $nom?>"size="50"maxlength="40" readonly></td>
       </tr>
 
   
   <tr>
  <td class="tdder">Cedula de Ciudadania:</td>
  <td class="tdizq"><input type="text" name="ced"   value="<? echo $cedu?>"size="50"maxlength="40" readonly></td>
       </tr>
       
       <tr>
  <td class="tdder">A&ntilde;o Nacimiento:</td>
  <td class="tdizq"><input type="text" name="expedicion" value="<? echo $fecha_nacimiento ?>"size="5" maxlength="5" readonly></td>
       </tr>
  
  <tr>
  <td class="tdder">Celular:</td>
  <td class="tdizq"><input type="text" name="celu"   value="<? echo $celular?>"size="50"maxlength="40" readonly></td>
       </tr>
 
  <tr>
  <td class="tdder">Correo Electronico:</td>
  <td class="tdizq"><input type="text" name="email"  value="<? echo $email?>"size="50" readonly></td>
       </tr>
         
       <tr>
  <td class="tdder">Grado:</td>
  <td class="tdizq"><input type="text" name="grado"   value="<? echo $grado?> "size="10"  readonly></td>
       </tr>
       
          <tr>
  <td class="tdder">Ultimo A&ntilde;o Cotizado:</td>
  <td class="tdizq"><input type="text" name="ano_cotizado"   value="<? echo $ano_cotizado?> "size="10" readonly></td>
       </tr>

  <tr>
  <td class="tdder">Fondo Pensiones:</td>
  <td class="tdizq"><input type="text" name="fondo_pensiones"  value="<? echo $fondo_pensiones ?>" size="70" readonly></td>
       </tr>
       
       
      <tr>
    <td class="tdder">Fecha Ingreso:</td>
    <td class="tdizq"><input type="text" name="fecha_ingreso" value="<? echo $fecha_ingreso ?>" size="10" readonly></td>
  </tr>

	<tr>
    <td class="tdder">Fecha Retiro:</td>
    <td class="tdizq"><input type="text" name="fecha_retiro" value="<? echo $fecha_retiro ?>" size="10" readonly></td>
  </tr>

<tr>
    <td class="tdder">Tiempo De Servicio:</td>
    <td class="tdizq"><input type="text" name="tiempo_servicio" value="<? echo $tiempo_servicio?>" size="10" readonly></td>
  </tr>  

  <tr>
  <td class="tdder">Direccion Residencia:</td>
  <td class="tdizq"><input type="text" name="dirresidencia"  value="<? echo $direccion?>"size="70" readonly></td>
       </tr>        
 <tr>
  <td class="tdder">Ciudad Residencia:</td>
  <td class="tdizq"><input type="text" name="ciuresidencia"  value="<? echo $ciudad ?>"size="50" readonly></td>
       </tr>    
       
      <tr>
         <td class="tdder">Funcionario:</td>
        <td class="tdizq"><SELECT NAME="funcionario">
            <OPTION value="">--Nombre Funcionario--</OPTION>
            <?php
do {  
?>
            <option value="<?php echo $row_Recordset1['codigo']?>"><?php echo $row_Recordset1['Nombre_Completo']?></option>
            <?php
} while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
  $rows = mysql_num_rows($Recordset1);
  if($rows > 0) {
      mysql_data_seek($Recordset1, 0);
	  $row_Recordset1 = mysql_fetch_assoc($Recordset1);
  }
?>
          </SELECT>
        </td>
        
        </tr>   
        
        
       <tr>
         <td class="tdder">Sucursal:</td>
        <td class="tdizq"><SELECT NAME="sucursal">
            <OPTION value="">--Sucursal--</OPTION>
            <?php
do {  
?>
        <option value="<?php echo $row_Recordset2['codigo']?>"><?php echo $row_Recordset2['nombre']?></option>
            <?php
} while ($row_Recordset2 = mysql_fetch_assoc($Recordset2));
  $rows = mysql_num_rows($Recordset2);
  if($rows > 0) {
      mysql_data_seek($Recordset2, 0);
	  $row_Recordset2 = mysql_fetch_assoc($Recordset2);
  }
?>
          </SELECT>
        </td>
        </tr>   
       
     <tr>
  <td class="tdder">Telefono Fijo:</td>
  <td class="tdizq"><input type="text" name="telefono"  value="<? echo $telefono ?>"size="12" readonly></td>
       </tr>     
       
        <tr>
  <td class="tdder">Ciudad Telefono:</td>
  <td class="tdizq"><input type="text" name="ciudad_telefono"  value="<? echo $ciudadtelefono ?>"size="12" readonly></td>
       </tr>  
       
     
    <tr>
  <td class="tdder">Codigo Autorizacion:</td>
  <td class="tdizq"><input type="text" name="codigo_autorizacion"  value=""size="6"></td>
       </tr>
       
       <tr>
  <td class="tdder">Valor Transporte:</td>
  <td class="tdizq"><input type="text" name="valor_transporte"  value=""size="6"></td>
       </tr>      
    
       
   </table><br>
 
      <b>Gestion De Telemercadeo<br>
     <textarea name="mensaje" cols="80" rows="8"></textarea><br><br>
     
 	 <input name="guardar4" type="submit" class="boton1" id="guardar" value="Guardar " />
 	
 
     </form>
   
   </td>
 </tr>
      </table><br>
 
    </td>
  </tr>
  <!--
  <tr>
    <td height="10" align="center" bgcolor="#000052"><b style="font-size:7.5p;color:#FFFFFF">ACTUACIONES</td>
  </tr> -->
</table>
 
</body>
</html>

<?
				

if(isset($_POST["guardar4"]))
{

	
	if ($cedu==$_GET["cedula"]);
	
		
$mssql3 = mysql_query("UPDATE consultorio_bono_pensional set codigo_autorizacion = '".$_POST[codigo_autorizacion]."',valor_transporte= '".$_POST[valor_transporte]."' WHERE cedula = '".$_GET["cedula"]."'" );   
             
            if (!$mssql3) {   
				die('Invalid query cartera_serviasjudinet MODIFICAR: ' . mysql_error());
			}   

	echo "<script>alert('Los Datos Fueron Guardados');</script>";	  
	echo "<script languaje='javascript' type='text/javascript'>window.close();</script>";
	  
	  
}


?>
 
 <?php
/*
$result= mysql_query('SELECT id,actuaciones,fecha,funcionario,codigo_funcionario FROM actuaciones_consultorio_bono_pensional WHERE cedula = "'.$_GET["cedula"].'" order by id ');
			if (!$result) {
				die('Error de consulta: ' . mysql_error());
			}
if(mysql_num_rows($result) != 0)
{
   echo "<table width=750 border=16 align=center cellpadding=1 cellspacing=1>
 
  <tr align=center>
    <td width='400' class=polici>Actuaci&oacute;n</td>
    <td width='75' class=polici>Fecha</td>
    <td width='65' class=polici>Funcionario</td>
	<td width='65' class=polici>Codigo Funcionario</td>
  </tr>";

   while(list($id, $actuacion, $fecha, $funcionario, $codigofun) = mysql_fetch_row($result))
   {
       
		echo  "<tr class=lista><td align=center>$actuacion</td>
		<td align=center>$fecha</td>
		<td align=center>$funcionario</td>
		<td align=center>$codigofun</td></tr>";
   }
} */
?>