File: /home/asjudine/public_html/informe_diagnostico.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Estilo13 {font-size: 12px; font-weight: bold; }
.Estilo18 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; }
.Estilo19 {font-family: "Arial Narrow"; font-weight: bold; }
.Estilo2 { font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.Estilo20 {color: #990000}
.Estilo21 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; color: #990000; }
.Estilo22 {font-family: "Arial Narrow"; font-weight: bold; color: #000000; }
.Estilo26 {font-size: 14; color: #990000; font-family: "Arial Narrow";}
.Estilo27 {font-size: 12px}
.Estilo29 {font-family: Arial, Helvetica, sans-serif}
.Estilo38 {font-weight: bold}
.Estilo39 {font-family: Arial, Helvetica, sans-serif; color: #000000;}
.Estilo40 {color: #000000}
.Estilo41 {
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
color: #000000;
font-weight: bold;
}
.Estilo42 {font-family: "Arial Narrow"; color: #000000; }
-->
</style>
</head>
<body>
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
require_once("Conectarse.php");
if($id)
{
// $sql = "select ciudad, fecha_actual, hora,cedula, nombre_completo, expedicion_cedula, edad,estado_civil ,natural_de, residente_en, ciudad_reside, telefono_fijo, celular,grado,cargo,email,hechos,testimonios_recibidos, pruebas_solicitar, nombre_func_invest, cargo_func_invest, fecha_notificacion, informacion_recibida,funcionario_atiende from cargos_disciplinarios where id = $id";
// $con = mysql_query($sql, $dbi);
$con = mysql_query('SELECT ciudad, fecha_actual, hora,cedula, nombre_completo, expedicion_cedula, edad,estado_civil ,natural_de, residente_en, ciudad_reside, telefono_fijo, celular,grado,cargo,email,hechos,testimonios_recibidos, pruebas_solicitar, nombre_func_invest, cargo_func_invest, fecha_notificacion, informacion_recibida,funcionario_atiende FROM cargos_disciplinarios WHERE id = "' . $HTTP_GET_VARS["id"] . '" ');
if (!$con) {
die('Invalid query: ' . mysql_error());
}
list($ciudad, $fecha, $hora, $cedula, $nombre_completo, $expedicion_cedula, $edad, $estado_civil, $natural_de, $residente_en, $ciudad_reside, $telefono_fijo, $celular, $grado, $cargo, $email, $hechos, $testimonios_recibidos, $pruebas_solicitar, $nombre_func_invest, $cargo_func_invest, $fechanoti, $informacion_recibida, $funcionario_atiende) = mysql_fetch_row($con);
$tres=substr($fecha, 0, 4);
$dos=substr($fecha, 5, 2);
$uno=substr($fecha, 8, 2);
$fecha = ($uno."-".$dos."-".$tres);
/* $eldia = $_POST[dia_act];
$elmes = $_POST[mes_act];
$elano = $_POST[ano_act];
$fecha = ($_POST[eldia]."-".$_POST[elmes]."-".$_POST[elano]); */
$tres=substr($fechanoti, 0, 4);
$dos=substr($fechanoti, 5, 2);
$uno=substr($fechanoti, 8, 2);
$fechanoti = ($uno."-".$dos."-".$tres); /*$eldia = $_POST[dia_act];
$elmes = $_POST[mes_act];
$elano = $_POST[ano_act];
$fechanoti = ($_POST[eldia]."-".$_POST[elmes]."-".$_POST[elano]); */
}
?>
<table width="660" border="3" align="left" cellpadding="3" cellspacing="3" bordercolor="#666666" bgcolor="#FAFAF5">
<tr valign="baseline" bgcolor="#0099FF">
<td colspan="4" align="right" nowrap><div align="center"><span class="Estilo2"> DATOS DE CARGOS DISCIPLINARIOS RECIBIDOS </span></div></td>
</tr>
<tr valign="baseline" bgcolor="#FAFAF5">
<td colspan="4" align="right" nowrap><div align="center" class="Estilo2">
<script languaje="JavaScript">Mostrar_Fecha()</script>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td width="167"><div align="right" class="Estilo29 Estilo27 Estilo19 Estilo40"><strong>Ciudad:</strong></div></td>
<td colspan="3"><div align="left" class="Estilo41"><?php echo $ciudad; ?>
</div>
<div align="right" class="Estilo29 Estilo27 Estilo40"></div> <div align="left" class="Estilo40"> </div></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><span class="Estilo29 Estilo27 Estilo20 Estilo19"><strong><span class="Estilo19 Estilo27 Estilo29 Estilo40"><span class="Estilo19 Estilo20 Estilo27 Estilo29 Estilo40">Fecha dd-mm/aaaa:</span></span></strong></span> </td>
<td colspan="3"><span class="Estilo21 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo40">
<?php echo $fecha; ?> </span></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><span class="Estilo21 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo40">Hora:</span></span></td>
<td colspan="3"><span class="Estilo41"><?php echo $hora; ?></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><span class="Estilo21 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo40">Apellidos y Nombres: </span></span></td>
<td width="234"><span class="Estilo41"><?php echo $nombre_completo; ?></span></td>
<td><div align="right" class="Estilo41"><span class="Estilo5 Estilo1 ">Edad:</span></div></td>
<td width="108"><span class="Estilo41"><?php echo $edad; ?></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td><div align="right" class="Estilo29 Estilo27 Estilo40"><strong><span class="Estilo5 Estilo1">Cédula:</span></strong></div></td>
<td><span class="Estilo41"><?php echo $cedula; ?></span></td>
<td width="98"><div align="right" class="Estilo41"><span class="Estilo5 Estilo1">Expedida en: </span></div></td>
<td><span class="Estilo41"><?php echo $expedicion_cedula; ?>
</span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td><div align="left" class="Estilo4 Estilo17 Estilo1 Estilo10 Estilo27 Estilo29 Estilo38 Estilo40">
<div align="right"><span class="Estilo5">Estado civil :</span></div>
</div></td>
<td><span class="Estilo41"><?php echo $estado_civil; ?></span></td>
<td><div align="right" class="Estilo41"><span class="Estilo5 Estilo1">Natural de: </span></div></td>
<td><span class="Estilo41"><?php echo $natural_de; ?></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><div align="left" class="Estilo4 Estilo17 Estilo1 Estilo10 Estilo27 Estilo29 Estilo38 Estilo40">
<div align="right"><span class="Estilo5">Residente en: </span></div>
</div></td>
<td><span class="Estilo29 Estilo27 Estilo40"><strong><?php echo $residente_en; ?></strong></span>
<div align="right" class="Estilo29 Estilo27 Estilo21 Estilo40"></div></td>
<td><div align="right" class="Estilo41"><span class="Estilo5 Estilo1">Ciudad: </span></div></td>
<td><span class="Estilo41"><?php echo $ciudad_reside; ?></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><span class="Estilo21 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo40">Teléfono fijo: </span></span></td>
<td><span class="Estilo41"><?php echo $telefono_fijo; ?></span></td>
<td><div align="right" class="Estilo41"><span class="Estilo5 Estilo1">Celular: </span></div></td>
<td><span class="Estilo41"><?php echo $celular; ?></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><span class="Estilo18"><span class="Estilo5 Estilo27 Estilo29 Estilo40">Grado:</span></span></td>
<td><span class="Estilo41"><?php echo $grado; ?></span></td>
<td><div align="right" class="Estilo41"><span class="Estilo5 Estilo1">Cargo: </span></div></td>
<td><span class="Estilo41"><?php echo $cargo; ?></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><span class="Estilo18"><span class="Estilo5 Estilo27 Estilo29 Estilo40">Email:</span></span></td>
<td colspan="3"><span class="Estilo41"><?php echo $email; ?></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><div align="right" class="Estilo41"><span class="Estilo5">HECHOS:</span></div></td>
<td colspan="3" align="right" nowrap>
<div align="left" class="Estilo41">
<?php
/* echo "<textarea name='hechos' cols='50' rows='4' title='HECHOS' readonly>\n";
echo htmlspecialchars($hechos)."\n";
echo "</textarea>";
*/
// $msmsql="select hechos from cargos_disciplinarios where id = $id";
// $result = mysql_query($msmsql, $dbi);
$result = mysql_query('SELECT hechos FROM cargos_disciplinarios WHERE id = "' . $HTTP_GET_VARS["id"] . '" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
$num_rows = mysql_num_rows($result);
echo "<TABLE BORDER=\"0\">\n";
for($i = 0; $i < $num_rows; $i++)
{
$row = mysql_fetch_row($result);
if($i % $columns == 0)
{
//SI NO HAY RESTO SIGNIFICA QUE INICIAMOS UNA NUEVA FILA
echo "<TR>\n";
}
echo "<TD width=520><div align='justify'>" . $row['hechos'] . "</div></TD>\n";
if(($i % $columns) == ($columns - 1) || ($i + 1) == $num_rows)
{
//SI EL RESTO ES UNO
//O SI NO HAY NADA MAS A LA IZQUIERDA
//ES EL FINAL DE LA TABLA
echo "</TR>\n";
}
}
echo "</TABLE>\n";
?>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><span class="Estilo20"><span class="Estilo18 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo40">TESTIMONIOS RECIBIDOS:</span></span></span></td>
<td colspan="3" align="right" nowrap>
<div align="left" class="Estilo41">
<?php
/*echo "<textarea name='testimonios_recibidos' cols='50' rows='4' title='TESTIMONIOS RECIBIDOS' readonly>\n";
echo htmlspecialchars($testimonios_recibidos)."\n";
echo "</textarea>";
*/
// $msmsql1="select testimonios_recibidos from cargos_disciplinarios where id = $id";
// $result = mysql_query($msmsql1, $dbi);
$result = mysql_query('SELECT testimonios_recibidos FROM cargos_disciplinarios WHERE id = "' . $HTTP_GET_VARS["id"] . '" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
$num_rows = mysql_num_rows($result);
echo "<TABLE BORDER=\"0\">\n";
for($i = 0; $i < $num_rows; $i++)
{
$row = mysql_fetch_row($result);
if($i % $columns == 0)
{
//SI NO HAY RESTO SIGNIFICA QUE INICIAMOS UNA NUEVA FILA
echo "<TR>\n";
}
echo "<TD width=520><div align='justify'>".$row['testimonios_recibidos']."</div></TD>\n";
if(($i % $columns) == ($columns - 1) || ($i + 1) == $num_rows)
{
//SI EL RESTO ES UNO
//O SI NO HAY NADA MAS A LA IZQUIERDA
//ES EL FINAL DE LA TABLA
echo "</TR>\n";
}
}
echo "</TABLE>\n";
?>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><div align="right" class="Estilo41">PRUEBAS A SOLICITAR:</div></td>
<td colspan="3" align="right" nowrap>
<div align="left" class="Estilo41">
<?php
/* echo "<textarea name='pruebas_solicitar' cols='50' rows='4' title='PRUEBAS A SOLICITAR' readonly>\n";
echo htmlspecialchars($pruebas_solicitar)."\n";
echo "</textarea>";
*/
// $msmsql2="select pruebas_solicitar from cargos_disciplinarios where id = $id";
// $result = mysql_query($msmsql2, $dbi);
$result = mysql_query('SELECT pruebas_solicitar FROM cargos_disciplinarios WHERE id = "' . $HTTP_GET_VARS["id"] . '" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
$num_rows = mysql_num_rows($result);
echo "<TABLE BORDER=\"0\">\n";
for($i = 0; $i < $num_rows; $i++)
{
$row = mysql_fetch_row($result);
if($i % $columns == 0)
{
//SI NO HAY RESTO SIGNIFICA QUE INICIAMOS UNA NUEVA FILA
echo "<TR>\n";
}
echo "<TD width=520><div align='justify'>" . $row['pruebas_solicitar'] . "</div></TD>\n";
if(($i % $columns) == ($columns - 1) || ($i + 1) == $num_rows)
{
//SI EL RESTO ES UNO
//O SI NO HAY NADA MAS A LA IZQUIERDA
//ES EL FINAL DE LA TABLA
echo "</TR>\n";
}
}
echo "</TABLE>\n";
?>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><div align="right" class="Estilo29 Estilo27 Estilo40"><strong>Nombre Investigador: </strong></div></td>
<td colspan="3"><span class="Estilo41"><?php echo $nombre_func_invest; ?>
</span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><span class="Estilo21 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo40">Cargo Func. Investigador: </span></span></td>
<td colspan="3"><span class="Estilo41"><?php echo $cargo_func_invest; ?></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap><p class="Estilo22 Estilo27 Estilo29">Fecha notificación:</p></td>
<td colspan="3"><span class="Estilo21"><span class="Estilo13"><span class="Estilo26"><span class="Estilo27"><span class="Estilo39">
<?php echo $fechanoti; ?>
(Formato dd-mm-aaaa) </span></span></span></span></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td colspan="4" align="right" nowrap><div align="left" class="Estilo41">Nombre del Funcionario de Serviasjudinet que atiende:
<?php echo $funcionario_atiende; ?>
</div></td>
</tr>
</table>
<p align="center"> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<SCRIPT LANGUAGE="JavaScript">
<!--
function imprimir()
{
if (window.print)
window.print()
else
alert("Disculpe, su navegador no soporta esta opción.");
}
// -->
</SCRIPT>
<p> </p>
<p> </p>
</body>
</html>