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

$Recordset1 = mysql_query('SELECT * FROM Usuarios WHERE (codigo = 660 || codigo = 714 || codigo = 727 || codigo= 729 || codigo= 730 || codigo= 732 || codigo= 751) ORDER BY Nombre_Completo '); 
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1); 

		
$control = mysql_query('SELECT apellidos,nombres,cedula,lugar_expedicion,celular,celular_personal,email,grado,
estado_civil,unidad,direccion_residencia,ciudad_residencia,actuaciones,correo_alterno,esposa,hijos,hijastros FROM 
control_reliquidacion WHERE cedula = "'.$_GET["cedula"].'"');    
		  if (!$control) {
				die('Invalid query 1: ' . mysql_error()); 
			}
		$num=mysql_num_rows($control);   
		list($ape, $nom, $cedu,$expedicion,$celular,$celularalt,$email, $grado,$ecivil, $unidad, $dirresidencia,$ciuresidencia,$actuaciones,$correoalt,$esposa,$hijos,$hijastros) = mysql_fetch_row($control);
		
	
$controlcar = mysql_query('SELECT celular,email,direccion,ciudad,telefono FROM cartera_serviasjudinet WHERE cedula = "'.$_GET["cedula"].'"');
		  if (!$controlcar) {
				die('Invalid query 1: ' . mysql_error());  
			}
		$num=mysql_num_rows($controlcar); 
		list($celularalt,$correoalt,$dirresidencia,$ciuresidencia,$telefonofijo) = mysql_fetch_row($controlcar);	

?>

<html>
<head>
<title>Formulario Consulta</title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<meta http-equiv="X-UA-Compatible" content="IE=8; IE=9; IE=edge" />
	
<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;}
	.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>

<script>
function Verificar() {
	
	
if(document.frm.funcionario.value == "") {
  alert("Por Favor Seleccione Funcionario");
  document.frm.funcionario.focus();
  return false;
 }	

 if(document.frm.nombre.value == "") {
  alert("Por Favor Escriba El Nombre");
  document.frm.nombre.focus();
  return false;
 }
 


 
 return true;
}
</script>
 


</head>
 
<body bgcolor="#EFEFEF" text="#000000" topmargin="0" leftmargin="0">
<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">CONSULTA GESTION</h3>
	
<table width="100%" height="75%"  border="0" cellspacing="0" cellpadding="0">
         
 	<tr>
    	<td align="center">
 			<table align="center" border="1" cellspacing="2" cellpadding="6">
	<tr>
   		<td align="center" colspan="2">
 
<script>
function Verificar() {
	
	
if(document.frm.apellidos.value == "") {
  alert("Por Favor Escriba Los Apellidos");
  document.frm.apellidos.focus();
  return false;
 }	

 if(document.frm.nombre.value == "") {
  alert("Por Favor Escriba El Nombre");
  document.frm.nombre.focus();
  return false;
 }
 
 if(document.frm.ced.value == "") {
  alert("Por Favor Escriba El Numero De Cedula");
  document.frm.ced.focus();
  return false;
 }
 
 if(document.frm.ecivil.value == "") {
  alert("Por Favor Escriba El Estado Civil");
  document.frm.ecivil.focus();
  return false;
 } 
 
  if(document.frm.funcionario.value == "") {
  alert("Por Favor Seleccione El Funcionario");
  document.frm.funcionario.focus();
  return false;
 } 


 
 return true;
}
</script>
 
     <form method="post" name="frm" onSubmit="return Verificar()">
       <table border="0" cellspacing="5">
 <!--<td><div align="right"><strong> Fecha Registro</strong></div></td>
    <td><div align="left">
      <input name="dia2" type="text" id="dia2" value="<?php echo date("d"); ?>" size="2" maxlength="2" readonly>
      <input name="mes2" type="text" id="mes2" value="<?php echo date("m"); ?>" size="2" maxlength="2" readonly>
      <input name="ano2" type="text" id="ano2" value="<?php echo date("Y"); ?>" size="4" maxlength="4" readonly>
    </div></td> 
  </tr>  -->
 
<form method="post" name="frm" onSubmit="return Verificar()">
<table border="0" 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">Lugar De Expedicion:</td>
  	<td class="tdizq"><input type="text" name="expedicion" value="<? echo $expedicion ?>"size="50" maxlength="40"></td>
</tr>
  
<tr>
   	<td class="tdder">Celular Institucional:</td>
  	<td class="tdizq"><input type="text" name="celu" value="<? echo $celular?>"size="15" maxlength="15" ></td>
</tr>
 
<tr>
   	<td class="tdder">Celular Personal:</td>
  	<td class="tdizq"><input type="text" name="celular" value="<? echo $celularalt ?>"size="15" maxlength="15" readonly></td>
</tr>
  
<tr>
  	<td class="tdder">Telefono Fijo:</td>
  	<td class="tdizq"><input type="text" name="fijo" value="<? echo $telefonofijo ?>"size="15" maxlength="15" ></td>
</tr>
 
<tr>
	<td class="tdder">Correo Institucional:</td>
  	<td class="tdizq"><input type="text" name="email"  value="<? echo $email?>"size="50" ></td>
</tr>
       
<tr>
   <td class="tdder">Correo Personal:</td>
  <td class="tdizq"><input type="text" name="emailalt"  value="<? echo $correoalt?>"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">Estado Civil:</td>
 	<td class="tdizq"><input type="text" name="ecivil"   value="<? echo $ecivil?> "size="10" readonly></td>
</tr>
             
<tr>
   	<td class="tdder">Unidad:</td>
  	<td class="tdizq"><input type="text" name="unidad"  value="<? echo $unidad ?>"size="10" 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">Direccion Residencia:</td>
	<td class="tdizq"><input type="text" name="dirresidencia"  value="<? echo $dirresidencia ?>"size="50" readonly></td>
</tr> 
	
 <tr>
  	<td class="tdder">Ciudad Residencia:</td>
 	<td class="tdizq"><input type="text" name="ciuresidencia"  value="<? echo $ciuresidencia ?>"size="50" readonly></td>
 </tr>      
       
 <tr>
  	<td class="tdder">Esposa:</td>
 	<td class="tdizq"><input type="text" name="esposa"  value="<? echo $esposa ?>"size="5" readonly></td>
 </tr>  
       
<tr>
   <td class="tdder">Hijos:</td><td class="tdizq"><input type="text" name="hijos"  value="<? echo $hijos ?>"size="5" readonly></td>
</tr>  
       
<tr>
   <td class="tdder">Hijastros:</td><td class="tdizq"><input type="text" name="hijastros"  value="<? echo $hijastros ?>"size="5" readonly></td>
</tr>   
              
</table>
   
   <br>
     
     </form> 
 
</td>
</tr>
</table><br>
     
</td>
</tr>
 
 
  <td height="22" colspan="2" bgcolor="#EFEFEF" class="fecha"><div align="center">
  <input name="button" type="button" class="boton1" id="guardar5" onClick="javascript:window.close()" value="REGRESAR AL LISTADO">
  </div></td> 
 <br>
    <tr>
    <td height="60" align="center" bgcolor="#000052"><b style="font-size:7.5p;color:#FFFFFF">VERIFICACION ACTUACIONES</b></td>
  </tr>
</table>

</body> 
</html>


<?php


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

   while(list($id, $actuacion, $fecha, $funcionario, $codigofun) = mysql_fetch_row($result))
   {
       
		echo  "<tr>
		<td class='tdfull'>$actuacion</td>
		<td class='tdfull'>$fecha</td>
		<td class='tdfull'>$funcionario</td>
		<td class='tdfull'>$codigofun</td></tr>";
   }
}
?>
</table>