File: /home/asjudine/public_html/consultar_asignacion_control.php
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
require_once("Conectarse.php");
$resultar = mysql_query('SELECT codigo, apellidos_y_nombres, sucursal, nombre_abogado,tipo_proceso FROM INICIOS_PROCESOS_JURIDICOS WHERE codigo = "' . $_GET["cedula"] . '" and orden_de_trabajo = "' . $_GET["numpro"] . '" and (estado="1" || estado="0")');
if (!$resultar) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($resultar) != 0))
{
list($identificacion, $nombre_completo, $ciudad, $nombre_elabora,$asunto) = mysql_fetch_row($resultar);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Consulta Asignacion</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;
}
.Estilo10 {font-weight: bold}
.Estilo17 {font-size: 14}
.Estilo18 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; }
.Estilo19 {font-family: "Arial Narrow"; font-weight: bold; }
.Estilo20 {font-family: "Arial Narrow"; font-size: 11; color: #000000; background-color: #FFFFCC;}
.Estilo21 {font-family: "Arial Narrow"; font-weight: bold; font-size: 11; color: #000000; background-color: #99FFFF;}
.Estilo24 {color: #FF0000}
.fecha {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #000099; width:10px display: block;}
.lista { background-color:#99FFFF; font-family: Arial; font-size: 11px; color: #990000;}
-->
</style>
<script Language="JavaScript"><!--
function validar(formulario)
{
if (formulario.dia_act.value > 31)
{
alert("El número de día no se debe exceder de 31");
formulario.dia_act.focus();
return (false);
}
if (formulario.mes_act.value > 12)
{
alert("El número del mes no se debe exceder de 12");
formulario.mes_act.focus();
return (false);
}
return (true);
}
//--></script>
<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>
</head>
<body onload="document.formulario.cedula.focus()">
<form method="post" name="formulario" action="" onSubmit="return validar(this)">
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=90% > </center>
<table width="745" border="0" align="center" cellpadding="3" cellspacing="3">
<br></br>
<tr valign="baseline" bgcolor="#0099FF">
<td colspan="6" align="right" nowrap><div align="center"><span class="Estilo2">CONSULTA ASIGNACION</span></div></td>
</tr>
<tr valign="baseline" bgcolor="#0099FF">
<td colspan="6" align="right" nowrap><div align="center" class="Estilo2"><script languaje="JavaScript">Mostrar_Fecha()</script></div></td>
</tr>
<tr valign="baseline" bgcolor="#0099FF">
<td width="192" align="right" nowrap><span class="Estilo18">CEDULA</span></td>
<td colspan="5"><input name="identi" type="text" id="identi" value="<?php echo $identificacion; ?>" size="11" maxlength="8" readonly=""></td>
</tr>
<tr valign="baseline" bgcolor="#0099FF">
<td width="198"><div align="right" class="Estilo18">NOMBRES Y APELLIDOS:</div></td>
<td colspan="5"><input name="nombre_completo" type="text" id="nombre_completo3" value="<?php echo $nombre_completo; ?>" size="50" maxlength="50" readonly=""></td>
</tr>
<tr valign="baseline" bgcolor="#0099FF">
<td><div align="left" class="Estilo4 Estilo10 Estilo17 Estilo1">
<div align="right"><span class="Estilo5">SUCURSAL:</span></div>
</div></td>
<td width="101"><input name="numero" type="text" id="numero" value="<?php echo $ciudad; ?>" size="25" maxlength="25" readonly=""></td>
</tr>
<tr valign="baseline" bgcolor="#0099FF">
<td><div align="left" class="Estilo4 Estilo10 Estilo17 Estilo1">
<div align="right"><span class="Estilo5">TIPO PROCESO:</span></div>
</div></td>
<td width="101"><input name="numero" type="text" id="numero" value="<?php echo $asunto; ?>" size="25" maxlength="25" readonly=""></td>
</tr>
</table>
</form>
<br></br>
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
$i=0;
echo "<table width=750 border=1 align=center cellpadding=1 cellspacing=1>
<tr align=center>
<td width='400' class=Estilo21>CLASE DE NEGOCIO</td>
<td width='70' class=Estilo21>FECHA ASIGNACION</td>
<td width='200' class=Estilo21>NOMBRE DEL FUNCIONARIO</td>
<td width='34' class=Estilo21>SUCURSAL</td>
</tr>";
$result = mysql_query('SELECT codigo, clase_de_negocio ,fecha_asignacion, sucursal, nombre_abogado,tipo_proceso FROM INICIOS_PROCESOS_JURIDICOS WHERE codigo = "' . $_GET["cedula"] . '" and orden_de_trabajo = "' . $_GET["numpro"] . '" and (estado="1" || estado="0")');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if($result)
{
while(list($cedula,$clasneg,$fechas, $ciudad,$codielab,$Dia_envio,$Mes_envio,$Ano_envio,$Mensaje,$accioncontacto) = mysql_fetch_row($result))
{
$consabog = mysql_query('SELECT nombre_completo FROM asjudinet_abogados WHERE codigo_abogado = "'.$codielab.'" ');
if (!$consabog) {
die('Invalid query: ' . mysql_error());
}
list($nomabogado) = mysql_fetch_row($consabog);
echo "<tr class=Estilo20>
<td><a top=50,left=100,toolbar=no,scrollbars=no,width=790,height=521,status=yes>$clasneg</a></td>
<td align=center>$fechas</td>
<td align=center>$nomabogado</td>
<td align=center>$ciudad</td></tr>";
} //Terminación del ciclo while
echo "</tr></table>";
}
?>
<table width="663" align="center">
<tr>
<td><div align="center">
<input name="button" type="button" style="font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid" onClick="javascript:window.close()" value="Cerrar Ventana">
</div></td>
</tr>
<tr>
<td><div align="center">
<h3><center><div id="colorsh" style="cursor:hand"></div></center></h3>
<script>
background_color= "3a6ca3" // use capital letters
text_color= "99FFFF" // use capital letters
mesf[0]= "PARA SALIR HACER CLICK EN EL BOTON CERRAR VENTANA"
shape()
</script>
</div>
</td>
</tr>
</table>
<p> </p><p> </font></p>
</body>
</html>