File: /home/asjudine/public_html/descarga_anulacion_contrato.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: #000099; }
.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;
}
.Estilo43 {color: #000099}
.Estilo44 {font-family: "Arial Narrow"}
.Estilo45 {font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #000099; font-weight: bold; }
.Estilo46 {font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #0000CC; font-weight: bold; }
body {
background-image: url(ELEMENTOS/gri06.jpg );
}
-->
</style>
</head>
<body>
<p>
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
require_once("Conectarse.php");
$con = mysql_query('SELECT id,ciudad,fecha_actual,hora,cedula,nombre_completo,expedicion_cedula,residente_en,
ciudad_reside,telefono_fijo,celular,email,hechos,testimonios_recibidos,pruebas_solicitar,informacion_recibida FROM anulacion_contratos WHERE id = "'.$_GET["id"].'" ');
if (!$con) {
die('Invalid query: ' . mysql_error());
}
list($id,$ciudad,$fecha,$hora,$cedula,$nombre_completo,$expedicion_cedula,$residente_en,$ciudad_reside,$telefono_fijo,$celular,$email,$hechos,$testimonios_recibidos,$pruebas_solicitar,$informacion_recibida) = 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]); */
?>
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=60% > </center>
<table align="center" width="660" border="3" 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 ANULACION CONTRATO</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" bgcolor="#FFFFFF"><div align="right" class="Estilo29 Estilo27 Estilo19 Estilo43"><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 bgcolor="#FFFFFF"><span class="Estilo29 Estilo27 Estilo20 Estilo19"><strong><span class="Estilo19 Estilo27 Estilo29 Estilo40"><span class="Estilo19 Estilo27 Estilo29 Estilo43"><span class="Estilo44">Fecha dd-mm/aaaa:</span></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 bgcolor="#FFFFFF"><span class="Estilo21 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo43"><span class="Estilo44">Hora:</span></span></span></td>
<td colspan="3"><span class="Estilo41"><?php echo $hora; ?></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap bgcolor="#FFFFFF"><span class="Estilo21 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo43"><span class="Estilo44">Apellidos y Nombres: </span></span></span></td>
<td width="234"><span class="Estilo41"><?php echo $nombre_completo; ?></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF"><div align="right" class="Estilo29 Estilo27 Estilo43"><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="Estilo46"><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 align="right" nowrap bgcolor="#FFFFFF"><div align="left" class="Estilo4 Estilo17 Estilo1 Estilo10 Estilo27 Estilo29 Estilo38 Estilo43">
<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="Estilo46"><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 bgcolor="#FFFFFF"><span class="Estilo21 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo43"><span class="Estilo44">Teléfono fijo: </span></span></span></td>
<td><span class="Estilo41"><?php echo $telefono_fijo; ?></span></td>
<td><div align="right" class="Estilo46"><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 bgcolor="#FFFFFF"><span class="Estilo18"><span class="Estilo5 Estilo27 Estilo29 Estilo43">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 bgcolor="#FFFFFF"><div align="right" class="Estilo45"><span class="Estilo5">HECHOS:</span></div></td>
<td colspan="3" align="right" nowrap>
<div align="left" class="Estilo41">
<?php
$result = mysql_query('SELECT hechos FROM cargos_disciplinarios WHERE id = "'.$_GET["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'>" .$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 bgcolor="#FFFFFF"><span class="Estilo20"><span class="Estilo18 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo43"><span class="Estilo44">EMPRESA CON CONTRATO VIGENTE:</span></span></span></span></td>
<td colspan="3"><span class="Estilo41"><?php echo $testimonios_recibidos; ?></span></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFFF">
<td align="right" nowrap bgcolor="#FFFFFF"><div align="right" class="Estilo45">PRETENCIONES 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 = "' . $_GET["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'>" .$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>
<td align="right" bgcolor="#FFFFFF" class="Estilo45"><b>Descargar Archivo Del Contrato:</b></td>
<td colspan="3" bgcolor="#EFEFEF" align="left"><center><span class="label2"><?php
echo "<a href='descargar_archivos_anulacion.php?id=$id'>Realizar Descarga</a>"?></span></center></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF" class="Estilo45"><b>Descargar Desprendible:</b></td>
<td colspan="3" bgcolor="#EFEFEF" align="left"><center><span class="label2"><?php
echo "<a href='descargar_archivos_anulacion_dos.php?id=$id'>Realizar Descarga</a>"?></span></center></td>
</tr>
</table>
<p align="center"> </p>
<SCRIPT LANGUAGE="JavaScript">
<!--
function imprimir()
{
if (window.print)
window.print()
else
alert("Disculpe, su navegador no soporta esta opción.");
}
// -->
</SCRIPT>
<tr bgcolor="#FFCC99">
<td colspan="2"><div align="center" class="Estilo51">
<input name="menu2" type="button" class="Estilo50" id="menu2" onClick="window.location.href='descarga_anulacion_contratos.php'" value="IR AL MENU">
</div></td>
</tr>
</body>
</html>