File: /home/asjudine/public_html/comercial/gestiones_consultorio_policia.php
<?php
require_once("../Conectarse.php");
/*
$Recordset1 = mysql_query('SELECT * FROM Usuarios WHERE (Cargo!="ABOGADO" and Cargo!="ABOGADA" and Cargo!= "MANTENIMIENTO ELECTRONICO" and Cargo!= "SECRETARIA TESORERIA" and Cargo!="Ingeniero de sistemas" and Cargo!="ARCHIVO Y CORRESPONDENCIA" and Cargo!="ASISTENTE COBRANZAS" and Cargo!="ASISTENTE COBRANZAS DOS" and Cargo!="ASISTENTE DE PRESIDENCIA" and Cargo!="ASISTENTE DIRECTOR DE SERVICIOS" and Cargo!="BANCOS" and Cargo!="CARTERA NOMINAS" and Cargo!="COBRANZAS" and Cargo!="CONSULTORIO JURIDICO" and Cargo!="CONTADOR" and Cargo!="CONTROL INTERNO" and Cargo!="DIRECTOR COMERCIAL" and Cargo!="DIRECTORA ACTUACIONES JURIDICAS" and Cargo!= "GERENTE ADMINISTRATIVA" and Cargo!= "Gerente Control de Calidad" and Cargo!= "GERENTE GENERAL" and Cargo!= "HISTOSER" and Cargo!= "JEFE COBRANZAS" and Cargo!="FINANCIERA" and Cargo!="JEFE MANTENIMIENTO LOCATIVO" and Cargo!="MENSAJES DE TEXTO" and Cargo!="POSTVENTA" and Cargo!="PRESIDENTE SERVIASJUDINET" and Cargo!="ASISTENTE COBRANZAS" and Cargo!="RECEPCION" and Cargo!= "DIRECTOR REGIONAL" and codigo!="472" and codigo!="547" and codigo!="555" and codigo!="570" and codigo!="499" and codigo!="564") order by Nombre_Completo');
*/
$Recordset1 = mysql_query('SELECT * FROM Usuarios WHERE (codigo="555" || codigo="558" || codigo="559" || codigo="563" || codigo="565" || codigo="554" || codigo="546" || codigo="569" || codigo="558" || codigo="580" || codigo="608" || codigo="552" || codigo="540" || codigo="619" || codigo="614" || codigo="615" || codigo="703" || codigo="744" || codigo="745" || codigo="753") 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 FROM consultorio_policia 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,$expedicion,$celular,$celularalt,$email,$grado,$ecivil,$unidad,$dirresidencia,$ciuresidencia,$actuaciones,$correoalt) = mysql_fetch_row($control);
?>
<!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:#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;}
.direcciona{width: 200px;background-color: #D4090C;color: #fff; padding: 4px;border-radius: 3px;}
.direcciona:hover{background-color: #67a0d9; color: #000;}
.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]{border-radius: 5px; padding: 3px;background-color: #FFFFF4;}
.tdder{background-color: #e5e5e5; 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;}
.tdizq{background-color: #e5e5e5; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: left;}
</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>
<table width="100%" height="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<tr>
<td align="center" class="titulo">INGRESAR CONSULTA JURIDICA</td>
</tr>
<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" bgcolor="#EFEFEF" cellspacing="5">
<form method="post" name="frm" onSubmit="return Verificar()">
<table border="0" 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"></td>
</tr>
<tr>
<td class="tdder">Nombres:</td>
<td class="tdizq"><input type="text" name="nombre" value="<? echo $nom?>"size="50" maxlength="40"></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"></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:</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"></td>
</tr>
<tr>
<td class="tdder">Correo Electronico:</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"></td>
</tr>
<tr>
<td class="tdder">Grado:</td>
<td class="tdizq"><input type="text" name="grado" value="<? echo $grado?> "size="10"></td>
</tr>
<tr>
<td class="tdder">Estado Civil:</td>
<td class="tdizq"><input type="text" name="ecivil" value="<? echo $ecivil?> "size="10"></td>
</tr>
<tr>
<td class="tdder">Unidad:</td>
<td class="tdizq"><input type="text" name="unidad" value="<? echo $unidad ?>"size="10"></td>
</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>
<td class="tdder">Direccion Residencia:</td>
<td class="tdizq"><input type="text" name="dirresidencia" value="<? echo $dirresidencia ?>"size="50"></td>
</tr>
<tr>
<td class="tdder">Ciudad Residencia:</td>
<td class="tdizq"><input type="text" name="ciuresidencia" value="<? echo $ciuresidencia ?>"size="50"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
<center>
<tr>
<td height="22" colspan="2">
<input name="button" type="button" class="irmenu" onClick="javascript:window.close()" value="REGRESAR AL LISTADO">
</td>
</tr></center>
<center><tr>
<td height="60" class='tdtitulo' align="center" >VERIFICACION ACTUACIONES</td>
</tr>
</center>
</body>
</html>
<?php
$result= mysql_query('SELECT id,actuaciones,fecha,funcionario,hora FROM actuaciones_consultorio_policia WHERE cedula = "'.$_GET["cedula"].'" order by fecha ');
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='tdtitulo'>Actuación</td>
<td width='75' class='tdtitulo'>Fecha</td>
<td width='65' class='tdtitulo'>Funcionario</td>
<td width='65' class='tdtitulo'>Hora Registro</td>
</tr>";
while(list($id,$actuacion,$fecha,$funcionario,$hora) = mysql_fetch_row($result))
{
echo "<tr class=tdfull><td class='tdfull'>$actuacion</td>
<td class='tdfull'>$fecha</td>
<td class='tdfull'>$funcionario</td>
<td class='tdfull'>$hora</td></tr>";
}
}
?>
</table>