File: /home/asjudine/public_html/mostrar_cargos.php
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
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);
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_array($con);
$tres=substr($fecha, 0, 4);
$dos=substr($fecha, 5, 2);
$uno=substr($fecha, 8, 2);
$fecha = ($uno."-".$dos."-".$tres);
$tres=substr($fechanoti, 0, 4);
$dos=substr($fechanoti, 5, 2);
$uno=substr($fechanoti, 8, 2);
$fechanoti = ($uno."-".$dos."-".$tres);
}
?>
<html>
<head>
<title>Documento sin título</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}
.Estilo18 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; }
.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: #990000;
font-size: 14px;
font-style: italic;
}
.Estilo23 {color: #990000; font-family: "Arial Narrow";}
.Estilo13 {font-size: 12px; font-weight: bold; }
.Estilo26 {font-size: 14; color: #990000; font-family: "Arial Narrow";}
.Estilo27 {font-size: 12px}
.Estilo29 {font-size: 14px}
.Estilo30 {font-family: "Arial Narrow"; font-size: 14px; font-weight: bold; }
.Estilo33 {font-family: "Arial Narrow"; font-size: 14px; font-weight: bold; font-style: italic; }
.Estilo34 {font-style: italic}
-->
</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>
</head>
<body>
<form method="post" name="formulario" action="imprimir_texto_asunto.php">
<table width="788" border="2" align="center" cellpadding="3" cellspacing="3" bgcolor="#FAFAF5">
<tr valign="baseline" bgcolor="#0099FF">
<td colspan="4" align="right" nowrap><div align="center"><span class="Estilo2">VISUALIZACION CARGOS DISCIPLINARIOS </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="#F2F2E6">
<td colspan="4"><table width="720">
<tr>
<td width="253"><div align="center" class="Estilo27"><span class="Estilo23">Ciudad:</span><span class="Estilo20"><strong>
<input name="ciudad" type="text" value="<?php echo $ciudad; ?>" size="30" maxlength="30" readonly="">
</strong></span></div></td>
<td width="207"><div align="center" class="Estilo27"><span class="Estilo23">Fecha dd-mm/aaaa:
<input name="fecha" type="text" value="<?php echo $fecha; ?>" size="10" maxlength="10" readonly="">
</span></div></td>
<td width="244"><div align="center" class="Estilo27"><span class="Estilo23">Hora:
<input name="hora" type="text" value="<?php echo $hora; ?>" size="11" maxlength="11" readonly="">
</span></div></td>
</tr>
</table></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td width="172" align="right" nowrap class="Estilo29 Estilo21 Estilo1"><em><span class="Estilo1 Estilo21 Estilo29">Apellidos y Nombres: </span></em></td>
<td width="300"><input name="nombre_completo" type="text" value="<?php echo $nombre_completo; ?>" size="50" maxlength="50" readonly=""></td>
<td><div align="right" class="Estilo30"><em><span class="Estilo5 Estilo1 Estilo20">Edad:</span></em></div></td>
<td width="169"><input name="edad" type="text" value="<?php echo $edad; ?>" size="2" maxlength="2" readonly=""></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td><div align="right" class="Estilo29 Estilo1 Estilo20"><em><strong><span class="Estilo5 Estilo1">Cédula:</span></strong></em></div></td>
<td><input name="cedula" type="text" value="<?php echo $cedula; ?>" size="15" maxlength="15" readonly=""></td>
<td width="108"><div align="right" class="Estilo30"><em><span class="Estilo20"><span class="Estilo5 Estilo1">Expedida en: </span></span></em></div></td>
<td><span class="Estilo33">
<input name="expedicion_cedula" type="text" value="<?php echo $expedicion_cedula; ?>" size="25" maxlength="25" readonly="">
</span></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td><div align="left" class="Estilo4 Estilo20 Estilo1 Estilo10 Estilo29 Estilo34">
<div align="right"><span class="Estilo5">Estado civil :</span></div>
</div></td>
<td><input name="estado_civil" type="text" class="Estilo1" value="<?php echo $estado_civil; ?>" size="15" maxlength="15" readonly=""></td>
<td><div align="right" class="Estilo33"><span class="Estilo20"><span class="Estilo5 Estilo1">Natural de: </span></span></div></td>
<td><input name="natural_de" type="text" class="Estilo1" value="<?php echo $natural_de; ?>" size="30" maxlength="30" readonly=""></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><div align="left" class="Estilo4 Estilo20 Estilo1 Estilo10 Estilo29 Estilo34">
<div align="right"><span class="Estilo5">Residente en: </span></div>
</div></td>
<td><span class="Estilo29 Estilo1 Estilo20"><em><strong>
<input name="residente_en" type="text" value="<?php echo $residente_en; ?>" size="30" maxlength="30" readonly="">
</strong></em></span> <div align="right" class="Estilo29 Estilo1 Estilo21"></div> </td>
<td><div align="right" class="Estilo33"><span class="Estilo20"><span class="Estilo5 Estilo1">Ciudad: </span></span></div></td>
<td><input name="ciudad_reside" type="text" class="Estilo1" value="<?php echo $ciudad_reside; ?>" size="30" maxlength="30" readonly=""></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo29 Estilo21 Estilo1"><em><span class="Estilo1 Estilo21 Estilo29">Teléfono fijo: </span></em></span></td>
<td><input name="telefono_fijo" type="text" class="Estilo1" value="<?php echo $telefono_fijo; ?>" size="15" maxlength="15" readonly=""></td>
<td><div align="right" class="Estilo33"><span class="Estilo20"><span class="Estilo5 Estilo1">Celular: </span></span></div></td>
<td><span class="Estilo33">
<input name="celular" type="text" value="<?php echo $celular; ?>" size="11" maxlength="11" readonly="">
</span></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo18"><span class="Estilo29 Estilo1 Estilo20 Estilo5"><em>Grado:</em></span></span></td>
<td><input name="grado" type="text" class="Estilo1" value="<?php echo $grado; ?>" size="3" maxlength="3" readonly="" ></td>
<td><div align="right" class="Estilo33"><span class="Estilo20"><span class="Estilo5 Estilo1">Cargo: </span></span></div></td>
<td><input name="cargo" type="text" class="Estilo1" value="<?php echo $cargo; ?>" size="30" maxlength="30" readonly=""></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo18"><span class="Estilo29 Estilo1 Estilo20 Estilo5"><em>Email:</em></span></span></td>
<td colspan="3"><input name="email" type="text" class="Estilo1" value="<?php echo $email; ?>" size="50" maxlength="50" readonly=""></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><div align="right" class="Estilo33"><span class="Estilo1"><span class="Estilo20"><span class="Estilo5">HECHOS:</span></span></span></div></td>
<td colspan="3" align="right" nowrap>
<div align="left" class="Estilo33"><span class="Estilo20">
<?php
echo "<textarea name='hechos' cols='50' rows='4' title='HECHOS' readonly>\n";
echo htmlspecialchars($hechos)."\n";
echo "</textarea>"; ?>
</span></div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo20"><span class="Estilo29 Estilo18 Estilo1"><em><span class="Estilo1 Estilo18 Estilo29">TESTIMONIOS RECIBIDOS:</span></em></span></span></td>
<td colspan="3" align="right" nowrap>
<div align="left" class="Estilo33"><span class="Estilo20">
<?php
echo "<textarea name='testimonios_recibidos' cols='50' rows='4' title='TESTIMONIOS RECIBIDOS' readonly>\n";
echo htmlspecialchars($testimonios_recibidos)."\n";
echo "</textarea>"; ?>
</span></div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><div align="right" class="Estilo33"><span class="Estilo20"><span class="Estilo1">PRUEBAS A SOLICITAR:</span></span></div></td>
<td colspan="3" align="right" nowrap>
<div align="left" class="Estilo33"><span class="Estilo20">
<?php
echo "<textarea name='pruebas_solicitar' cols='50' rows='4' title='PRUEBAS A SOLICITAR' readonly>\n";
echo htmlspecialchars($pruebas_solicitar)."\n";
echo "</textarea>"; ?>
</span></div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><div align="right" class="Estilo29 Estilo1 Estilo20"><em><strong><span class="Estilo1">Nombre Investigador: </span></strong></em></div></td>
<td colspan="3"><span class="Estilo33">
<input name="nombre_func_invest" type="text" value="<?php echo $nombre_func_invest; ?>" size="50" maxlength="50" readonly="">
</span></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo29 Estilo21 Estilo1"><em><span class="Estilo1 Estilo21 Estilo29">Cargo Investigador: </span></em></span></td>
<td colspan="3"><span class="Estilo33">
<input name="cargo_func_invest" type="text" value="<?php echo $cargo_func_invest; ?>" size="50" maxlength="50" readonly="">
</span></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><p class="Estilo27 Estilo1 Estilo22">Fecha notificación:</p> </td>
<td colspan="3"><span class="Estilo21"><span class="Estilo13"><span class="Estilo26"><span class="Estilo27"><span class="Estilo29 Estilo1 Estilo23"><em>
<input name="fecha_notificacion" type="text" value="<?php echo $fechanoti; ?>" size="10" maxlength="10" readonly="">
(Formato dd-mm-aaaa) </em></span></span></span></span></span></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="4" align="right" nowrap><div align="left" class="Estilo33"><span class="Estilo23"><span class="Estilo23">Nombre del Funcionario de Serviasjudinet que atiende:</span>
<input name="funcionario_atiende" type="text" value="<?php echo $funcionario_atiende; ?>" size="50" maxlength="50" readonly="">
</span></div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="4" align="right" nowrap><div align="left" class="Estilo33"><span class="Estilo20"><span class="Estilo1">Cómo recibió la Información:</span></span> <span class="Estilo20"><span class="Estilo23">
<input name="informacion_recibida" type="text" value="<?php echo $informacion_recibida; ?>" size="25" maxlength="25" readonly="">
</span></span></div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="4" align="right" nowrap><div align="center" class="Estilo20">
<input name="submit" type="submit" value="IMPRIMIR" style="font-family: Verdana; font-size: 8 pt; background-color: #C0C0C0; border-style: solid">
<input name="button" type="button" style="font-family: Verdana; font-size: 8 pt; background-color: #C0C0C0; border-style: solid" onclick="window.location.href='index.php'" value="IR A LA PAGINA PRINCIPAL">
<input name="button" type="button" style="font-family: Verdana; font-size: 8 pt; background-color: #C0C0C0; border-style: solid" onclick="window.location.reload()" value="Actualizar">
</div></td>
</tr>
</table>
</form>
</body>
</html>