File: /home/asjudine/public_html/asunto_verifi_control_libre.php
<html>
<head>
<title>Proceso Administrativo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Estilo1 {font-family: "Arial Narrow"}
.Estilo2 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.Estilo19 {font-family: "Arial Narrow"; font-weight: bold; }
.Estilo20 {color: #990000}
.Estilo21 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; color: #990000; }
.Estilo13 {font-size: 12px; font-weight: bold; }
.Estilo45 {
color: #009;
font-size: 16px;
font-weight: bold;
}
.Estilo48 {
color: #CC3333;
font-weight: bold;
}
-->
</style>
<script languaje="JavaScript">
function Mostrar_Fecha()
{
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
document.write("<b><font face='Arial, Helvetica, sans-serif'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></b>")
}
</script>
<script Language="JavaScript"><!--
function validar(formulario)
{
if (formulario.testimonio.value == "")
{
alert("Falta Ingresar Diligenciar Acción de revisión");
formulario.testimonio.focus();
return (false);
}
/* if (formulario.sir.checked == "" )
{
if (formulario.nor.checked == "" )
{
alert("Falta Seleccionar consulta procesos");
formulario.sir.focus();
return (false);
}
}*/
if (formulario.ced_funcionario.value == "" )
{
alert("Falta Seleccionar Tipo de servicio");
formulario.ced_funcionario.focus();
return (false);
}
return (true);
}
//--></script>
<script Language="JavaScript"><!--
var timerID = null;
var timerRunning = false;
var id,pause=0,position=0;
function stopclock ()
{
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime ()
{
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " p.m." : " a.m."
document.formulario.hora.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock ()
{
stopclock ();
showtime ();
}
//--></script>
<link href="file:///C|/Documents%20and%20Settings/web%20master/Mis%20documentos/job9.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Estilo59 {
color: #CC0000;
font-size: 16px;
}
.Estilo60 {color: #006600}
.Estilo61 {font-size: 16px}
.Estilo62 {
color: #FF0000;
font-weight: bold;
}
.Estilo65 {color: #FF3300}
.Estilo66 {
color: #000000;
font-style: italic;
}
td {
font-size: 12px;
}
td {
color: #FC0;
}
td {
color: #930;
}
body form table tr td table tr td {
color: #C00;
}
body form table tr td table tr td {
color: #C00;
}
-->
</style>
</head>
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
require_once("Conectarse.php");
$control = mysql_query('SELECT cedula, nombre, direccion, telefono, celular, ciudad, email, sucursal,fecha_solicitud, lugar_hechos, fecha_hechos, relacion_hechos,hora, despacho_judicial, orden_trabajo, num_proceso, num_atencion, accion_revision FROM control_inicios_procesos WHERE cedula = "' . $HTTP_GET_VARS["ced2"] . '" and id = "' . $HTTP_GET_VARS["id"] . '" ');
if (!$control) {
die('Error de consulta: ' . mysql_error());
}
list($cedula_c,$nombre_completo, $direccion, $telefono, $celular, $ciudad, $email, $sucursal, $fechaser, $lugar, $fechahe, $hechos, $hora, $depejudi, $numtraba, $numpro, $numaten, $accionrevi) = mysql_fetch_row($control);
$sucrusa = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "'.$sucursal.'" ');
if (!$sucrusa) {
die('Invalid query 2: ' . mysql_error());
}
list($sucur) = mysql_fetch_row($sucrusa);
//$query_sql = "SELECT * FROM sucursal order by nombre";
//$sql = mysql_query($query_sql, $dbi) or die(mysql_error());
$sql = mysql_query('SELECT * FROM sucursal order by nombre');
if (!$sql) {
die('Invalid query: ' . mysql_error());
}
$row_sql = mysql_fetch_assoc($sql);
$totalRows_sql = mysql_num_rows($sql);
$sql2 = mysql_query('SELECT * FROM asjudinet_abogados WHERE vigentes = "1" order by nombre_completo');
if (!$sql2) {
die('Invalid query: ' . mysql_error());
}
$row_sql2 = mysql_fetch_assoc($sql2);
$totalRows_sql2 = mysql_num_rows($sql2);
$cedulafun = $cedu;
?>
<body onLoad="document.formulario.ciudad.focus();startclock()">
<form method="post" name="formulario" onSubmit="return validar(this)">
<table width="780" border="2" align="center" cellpadding="3" cellspacing="3" bgcolor="#FAFAF5">
<tr></tr>
<tr valign="baseline" bgcolor="#FF6600">
<td height="28" colspan="4" align="right" nowrap bgcolor="#FFFFCC"><div align="center"><span class="Estilo2 Estilo59">PROCESO ADMINISTRATIVO</span></div></td>
</tr>
<tr valign="baseline" bgcolor="#FAFAF5">
<td colspan="4" align="right" nowrap bgcolor="#CCFFFF"><div align="center" class="Estilo2">
<script languaje="JavaScript">Mostrar_Fecha()</script>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="4" bgcolor="#F4FFFF"><div align="center"><span class="Estilo19 Estilo20">Fecha dd-mm/aaaa:</span><span class="Estilo21"> <span class="Estilo13">
<input name="dia" type="text" id="dia2" value="<?php echo date("d"); ?>" size="2" maxlength="2" readonly="">
<input name="mes" type="text" id="mes2" value="<?php echo date("m"); ?>" size="2" maxlength="2" readonly="">
<input name="ano" type="text" id="ano2" value="<?php echo date("Y"); ?>" size="4" maxlength="4" readonly="">
</span></span></div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td width="81" bgcolor="#F4FFFF"><strong><span class="Estilo5 Estilo1 Estilo45 Estilo60">Nombre:</span></strong></td>
<td width="336" bgcolor="#F4FFFF"><input name="name_full" type="text" id="name_full" value="<?php echo $nombre_completo ?>" size="50" maxlength="50" readonly=""></td>
<td width="54" bgcolor="#F4FFFF"><div align="right" class="Estilo60">
<div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Cedula:</span></strong></div>
</div></td>
<td width="258" bgcolor="#F4FFFF"><input name="ced3" type="text" value="<?php echo $cedula_c ?>" size="30" maxlength="30" readonly=""></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td bgcolor="#F4FFFF"><div align="right" class="Estilo60">
<div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Direccion:</span></strong></div>
</div></td>
<td bgcolor="#F4FFFF" colspan="2"><input name="dir" type="text" id="dir" value="<?php echo $direccion ?>" size="45" maxlength="45" ></td>
<td bgcolor="#F4FFFF"><strong><span class="Estilo5 Estilo1 Estilo45 Estilo60">Telefono:</span></strong>
<input name="tel" type="text" id="tel" value="<?php echo $telefono ?>" size="30" maxlength="30" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td bgcolor="#F4FFFF"><div align="right" class="Estilo60">
<div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Celular:</span></strong></div>
</div></td>
<td bgcolor="#F4FFFF"><input name="celular" type="text" id="celular" value="<?php echo $celular ?>" size="30" maxlength="30" ></td>
<td bgcolor="#F4FFFF"><strong><span class="Estilo5 Estilo1 Estilo45 Estilo60">Ciudad:</span></strong></td>
<td bgcolor="#F4FFFF"><input name="ciu" type="text" id="ciu" value="<?php echo $ciudad ?>" size="30" maxlength="30"></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td width="81" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#F4FFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Email:</span></strong></div></td>
<td bgcolor="#F4FFFF"><input name="mail" type="text" id="mail" value="<?php echo $email ?>" size="50" maxlength="50" ></td>
<td colspan="2" bgcolor="#F4FFFF">
<span class="Estilo45">Fecha de Servicio:</span>
<input name="fechaser" type="text" id="fechaser" size="12" maxlength="12" value="<?php echo $fechaser ?>" ></td>
</tr>
<tr>
<td width="81" bgcolor="#F4FFFF" align="right" class="Estilo48"><strong><span class="Estilo45">Sucursal:</span></strong></td>
<td width="336" bgcolor="#F4FFFF"><input name="sucursal" type="text" id="sucursal" value="<?php echo $sucur ?>" size="50" maxlength="50" ></td>
<td bgcolor="#F4FFFF" class="Estilo48" colspan="2"><span class="Estilo45">Proceso:</span>
<input name="numpro" type="text" id="numpro" size="12" maxlength="12" value="<?php echo $numpro ?>" ></td>
</tr>
<tr>
<td width="81" bgcolor="#F4FFFF" align="right" class="Estilo48"><strong><span class="Estilo45">No Trabajo:</span></strong></td>
<td width="336" bgcolor="#F4FFFF"><input name="numtraba" type="text" id="numtraba" value="<?php echo $numtraba ?>" size="50" maxlength="50" ></td>
<td bgcolor="#F4FFFF" class="Estilo48" colspan="2"><span class="Estilo45">No Atención:</span> <input name="numaten" type="text" id="numaten" size="12" maxlength="12" value="<?php echo $numaten ?>" ></td>
</tr>
<tr>
<td width="81" bgcolor="#F4FFFF" align="right" class="Estilo48"><strong><span class="Estilo45">Despacho Judicial:</span></strong></td>
<td width="336" bgcolor="#F4FFFF"><input name="depejudi" type="text" id="depejudi" value="<?php echo $depejudi ?>" size="50" maxlength="50" ></td>
<td bgcolor="#F4FFFF" class="Estilo48" colspan="2"><span class="Estilo45">Lugar Diligencia:</span>
<input name="lugar" type="text" id="lugar" size="12" maxlength="12" value="<?php echo $lugar ?>" ></td>
</tr>
<tr>
<td width="81" bgcolor="#F4FFFF" align="right" class="Estilo48"><strong><span class="Estilo45">Hora Diligencia:</span></strong></td>
<td width="336" bgcolor="#F4FFFF"><input name="hora" type="text" id="hora" value="<?php echo $hora ?>" size="5" maxlength="50" ></td>
<td bgcolor="#F4FFFF" class="Estilo48" colspan="2"><span class="Estilo45">Fecha Diligencia:</span>
<input name="fecha" type="text" id="fecha" size="12" maxlength="12" value="<?php echo $fechahe ?>" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6"></tr>
<tr>
<td colspan="4" bgcolor="#F4FFFF" align="left" class="Estilo48"><strong><span class="Estilo45">Relación Hechos:</span></strong></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="center" bgcolor="#F4FFFF" colspan="4"><?php echo "<textarea name='testimonios_recibidos' cols='70' style='color:#003399' rows='4' title='TESTIMONIOS RECIBIDOS' readonly>\n";
echo htmlspecialchars($hechos)."\n";
echo "</textarea>";
?></td>
</tr>
<tr>
<td colspan="4" bgcolor="#F4FFFF" align="left" class="Estilo48"><strong><span class="Estilo45">Accion Revisión :</span></strong></td>
</tr>
<tr>
<td colspan="4" align="center" bgcolor="#F4FFFF"><textarea name="testimonio" cols="70" rows="5" id="textarea7"><?php echo $accionrevi ?></textarea></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
<tr valign="baseline" bgcolor="#009999">
<td colspan="4" align="right" nowrap bgcolor="#FFFFCC"><div align="center" class="Estilo20">
<p>
<input name="guard" type="submit" class="Estilo48" id="guard" value="GUARDAR">
<input size="40" type="button" value='Requerimiento Abogado' name=boton class='Estilo60' onClick =window.open('requerimientos_admins_abogados.php?','','top=10,left=50,toolbar=no,scrollbars=yes,width=850,height=650,status=yes')>
<input size="40" type="button" value='Requerimiento Directores' name=boton class='Estilo60' onClick =window.open('requerimiento_admins_directores.php?','','top=10,left=50,toolbar=no,scrollbars=yes,width=850,height=650,status=yes')>
<input name="guardar" type="submit" class="Estilo48" id="guardar" value="REVISADO">
</p>
</div></td>
</tr>
</table>
<div align="center">
<input type="hidden" name="MM_insert" value="formulario">
</div>
</form>
</body>
</html>
<?php
if(isset($_POST["guardar"]))
{
$fechaac = date("Y").'-'.date("m").'-'.date("d");
$mssql2 = mysql_query("UPDATE control_inicios_procesos set accion_revision = '" . $_POST[testimonio] . "', fecha_revision = '" .$fechaac. "', estado = '4' WHERE cedula = '" . $HTTP_GET_VARS["ced2"] . "'and id = '" . $HTTP_GET_VARS["id"] . "' and estado = '3' ");
if (!$mssql2) {
die('Invalid query update 174: ' . mysql_error());
}
echo "<script>alert('Informacion Fue Guardada Correctamente ');</script>";
echo "<script languaje='javascript' >window.close();</script>";
}
if(isset($_POST["guard"]))
{
$fechaac = date("Y").'-'.date("m").'-'.date("d");
$mssql2 = mysql_query("UPDATE control_inicios_procesos set accion_revision = '" . $_POST[testimonio] . "', fecha_revision = '" .$fechaac. "' WHERE cedula = '" . $HTTP_GET_VARS["ced2"] . "'and id = '" . $HTTP_GET_VARS["id"] . "' and estado = '3' ");
if (!$mssql2) {
die('Invalid query update 174: ' . mysql_error());
}
echo "<script>alert('Informacion Fue Guardada Correctamente ');</script>";
echo "<script languaje='javascript' >window.close();</script>";
}
?>