File: /home/asjudine/public_html/recepcion_cargos_soli.php
<?php
require_once("Conectarse.php");
require_once("mainfile.php");
include ("config.php");
global $dbi;
$datosconsecutivo = mysql_query('SELECT id FROM cargos_disciplinarios ORDER BY Id DESC LIMIT 1');
if (!$datosconsecutivo) {
die('Invalid query: ' . mysql_error());
}
list($elId) = mysql_fetch_row($datosconsecutivo);
$conta = $elId + 1 ;
?>
<html>
<head>
<title>Ingreso Cargos Disciplinarios</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 {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; }
.Estilo23 {color: #990000; font-family: "Arial Narrow";}
.Estilo13 {font-size: 12px; font-weight: bold; }
.Estilo25 {font-family: "Arial Narrow"; font-size: 12px; }
.Estilo26 {font-size: 14; color: #990000; font-family: "Arial Narrow";}
.Estilo27 {font-size: 12px}
.Estilo30 {font-family: "Arial Narrow"; font-weight: bold; color: #FF0000; }
.Estilo31 {color: #FF0000}
.Estilo33 {
font-family: "Arial Narrow";
font-size: 16px;
color: #FF0000;
}
.Estilo35 {
font-family: "Arial Narrow";
color: #FF0000;
font-size: 13px;
}
.Estilo37 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14px; color: #990000; }
.Estilo38 {font-size: 14px}
.Estilo39 {
font-size: 16px;
font-weight: bold;
}
.Estilo41 {font-size: 14px; 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.ciudad.value == "")
{
alert("Ingrese el nombre de la ciudad");
formulario.ciudad.focus();
return (false);
}
if (formulario.cedula.value == "")
{
alert("Ingrese el número de la cédula");
formulario.cedula.focus();
return (false);
}
if (formulario.nombre_completo.value == "")
{
alert("Ingrese apellidos y nombres");
formulario.nombre_completo.focus();
return (false);
}
if (formulario.expedicion_cedula.value == "")
{
alert("Ingrese la ciudad donde expidió su cédula");
formulario.expedicion_cedula.focus();
return (false);
}
if (formulario.edad.value == "")
{
alert("Ingrese su edad");
formulario.edad.focus();
return (false);
}
if (formulario.estado_civil.value == "")
{
alert("Ingrese su estado civil");
formulario.estado_civil.focus();
return (false);
}
if (formulario.ciudad.value == "")
{
alert("Ingrese el nombre de la ciudad");
formulario.ciudad.focus();
return (false);
}
if (formulario.natural_de.value == "")
{
alert("Ingrese de donde es usted");
formulario.natural_de.focus();
return (false);
}
if (formulario.residente_en.value == "")
{
alert("Ingrese la dirección de residencia");
formulario.residente_en.focus();
return (false);
}
if (formulario.ciudad_reside.value == "")
{
alert("Ingrese la ciudad donde reside");
formulario.ciudad_reside.focus();
return (false);
}
if (formulario.telefono_fijo.value == "")
{
alert("Ingrese el su número de teléfono fijo");
formulario.telefono_fijo.focus();
return (false);
}
if (formulario.celular.value == "")
{
alert("Ingrese el número de su celular");
formulario.celular.focus();
return (false);
}
if (formulario.grado.value == "")
{
alert("Ingrese su grado militar");
formulario.grado.focus();
return (false);
}
if (formulario.cargo.value == "")
{
alert("Ingrese su cargo actual");
formulario.cargo.focus();
return (false);
}
if (formulario.hechos.value == "")
{
alert("Redacte los hechos por el cual se le imputan los cargos");
formulario.hechos.focus();
return (false);
}
if (formulario.nom_funcionario.value == "")
{
alert("Escriba el nombre del funcionario investigador");
formulario.nom_funcionario.focus();
return (false);
}
if (formulario.cargo_funcionario.value == "")
{
alert("Escriba el cargo del funcionario investigador");
formulario.cargo_funcionario.focus();
return (false);
}
if (formulario.dia_noti.value == "")
{
alert("Escriba el día de la notificación");
formulario.dia_noti.focus();
return (false);
}
if (formulario.mes_noti.value == "")
{
alert("Escriba el mes de la notificación");
formulario.mes_noti.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>
</head>
<body onLoad="document.formulario.cedula.focus()">
<form method="post" name="formulario" action="<?php echo $editFormAction; ?>" onSubmit="return validar(this)">
<table width="956" border="0" align="center" cellpadding="3" cellspacing="3" bgcolor="#FAFAF5">
<tr valign="baseline" bgcolor="#0099FF">
<td colspan="6" align="right" nowrap><div align="center"><span class="Estilo2">CAPTURA DATOS CARGOS DISCIPLINARIOS </span></div></td>
</tr>
<tr valign="baseline" bgcolor="#FAFAF5">
<td colspan="6" align="right" nowrap><div align="center" class="Estilo2">
<script languaje="JavaScript">Mostrar_Fecha()</script></div></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFCC">
<td colspan="6"><div align="justify">
<p class="Estilo35">SEÑOR AFILIADO DILIGENCIE TODOS LOS CAMPOS Y SUMINISTRE TODA LA INFORMACON NECESARIA PARA PODER ELABORAR LOS DESCARGOS DE UNA MANERA TÉCNICA Y PROFESIONAL, LOS CUALES SERÁN ENVIADOS VIA EMAIL DENTRO DE LOS TÉRMINOS QUE ESTIPULA LA LEY. IGUALMENTE USTED DEBERA COMUNICARSE CON NUESTRO ESPECIALISTA DR ZAMBRANO RAMIREZ PEDRO PABLO AL CELULAR <span class="Estilo39">3166905354</span> Y A SU VEZ ENVIAR VIA FAX AL NUMERO <span class="Estilo41">091-2438820</span> EN LA CIUDAD DE BOGOTA UBICADA EN LA CLL 19 NO 6-68 PISO 9 EDIFICIO ANGEL Y ALLEGUE LOS SIGUIENTES DOCUMENTOS: </p>
<p class="Estilo30">Copia de auto de cargos y cualquier otro documento que requiera nuestro funcionario defensor.</p>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="6"><table width="955">
<tr>
<td width="86">
<span class="Estilo19">Id:</span><span class="Estilo20">
<input name="contador" type="text" value="<?php echo $conta ?>" size="3" maxlength="3" readonly="" ></span>
</td>
<td width="316"><div align="center"><span class="Estilo19">Ciudad:</span><span class="Estilo20"><strong>
<input name="ciudad" type="text" id="cedula4" value="" size="30" maxlength="30" >
</strong></span></div></td>
<td width="260"><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>
<td width="270"><div align="center"><span class="Estilo21">Hora:</span>
<input name="hora" type="text" size="11" maxlength="11" readonly="">
</div></td>
</tr>
</table></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="6"><div align="right" class="Estilo19 Estilo20">
<div align="left"></div>
</div>
</td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td width="204" align="right" nowrap><span class="Estilo21">Apellidos y Nombres: </span></td>
<td colspan="5"><input name="nombre_completo" type="text" value="<?php echo $nombre ?>" size="50" maxlength="50" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td><div align="right" class="Estilo20"><strong><span class="Estilo5 Estilo1">Cédula:</span></strong></div></td>
<td width="348"><input name="cedula" type="text" value="<?php echo $cedula ?>" size="15" maxlength="15" ></td>
<td width="188"><div align="right"><span class="Estilo20"><strong><span class="Estilo5 Estilo1">Expedida en: </span></strong></span></div></td>
<td width="180"><input name="expedicion_cedula" type="text" value="" size="25" maxlength="25" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td><div align="left" class="Estilo4 Estilo17 Estilo1 Estilo10 Estilo20">
<div align="right"><span class="Estilo5">Estado civil :</span></div>
</div></td>
<td><input name="estado_civil" type="text" id="estado_civil" value="" size="15" maxlength="15"></td>
<td><div align="right"><span class="Estilo20"><strong><span class="Estilo5 Estilo1">Natural de: </span></strong></span></div></td>
<td colspan="3"><input name="natural_de" type="text" id="natural_de" size="30" maxlength="30" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><div align="left" class="Estilo4 Estilo17 Estilo1 Estilo10 Estilo20">
<div align="right"><span class="Estilo5">Dirección de residencia: </span></div>
</div></td>
<td><span class="Estilo20">
<input name="residente_en" type="text" value="" size="30" maxlength="30" >
</span> <div align="right" class="Estilo21"></div> </td>
<td><div align="right"><span class="Estilo20"><strong><span class="Estilo5 Estilo1">Ciudad: </span></strong></span></div></td>
<td colspan="3"><input name="ciudad_reside" type="text" value="" size="30" maxlength="30" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo21">Teléfono fijo: </span></td>
<td><input name="telefono_fijo" type="text" id="telefono_fijo2" value="" size="15" maxlength="15" ></td>
<td><div align="right"><span class="Estilo20"><strong><span class="Estilo5 Estilo1">Celular: </span></strong></span></div></td>
<td><input name="celular" type="text" id="celular" value="" size="11" maxlength="11" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo18"><span class="Estilo5 Estilo20">Grado:</span></span></td>
<td><input name="grado" type="text" id="grado2" value="" size="3" maxlength="3" ></td>
<td><div align="right"><span class="Estilo20"><strong><span class="Estilo5 Estilo1">Cargo: </span></strong></span></div></td>
<td colspan="3"><input name="cargo" type="text" id="cargo2" value="" size="30" maxlength="30" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo18"><span class="Estilo5 Estilo20">Email:</span></span></td>
<td colspan=""><input name="email" type="text" id="email" size="50" maxlength="50"></td>
<td width="188"><strong><span class="Estilo5 Estilo1 Estilo20">Edad:</span></strong></td>
<td width="180"><input name="edad" type="text" id="edad" value="" size="2" maxlength="2" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><div align="center"><span class="Estilo18"><span class="Estilo20"><span class="Estilo5">HECHOS</span></span></span></div></td>
<td colspan="5" align="right" nowrap><div align="center">
<table width="584" align="center">
<tr>
<td width="576" bgcolor="#CCCCCC"><div align="justify" class="Estilo23">
<p>Relacione de manera clara y detallada, indicando fechas, horas y demás aspectos sobre la ocurrencia de un asunto por el cual, se imputan cargos disciplinarios. </p>
</div></td>
</tr>
</table>
<table width="508" align="center">
<tr>
<td width="500"><div align="justify" class="Estilo23">
<div align="center"><span class="Estilo20">
<textarea name="hechos" cols="100" rows="4" id="hechos"></textarea>
</span></div>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo20"><span class="Estilo18">TESTIMONIOS A RECIBIR</span></span></td>
<td colspan="5" align="right" nowrap><div align="center">
<table width="508" align="center">
<tr>
<td width="500" bgcolor="#CCCCCC"><div align="justify" class="Estilo23">Indique el nombre de las personas que Usted considera que pueden dar un testimonio para esclarecer los hechos y que demuestren su inocencia. </div></td>
</tr>
</table>
<table width="508" align="center">
<tr>
<td width="500"><div align="justify" class="Estilo23">
<div align="center"><span class="Estilo20">
<textarea name="testimonios_recibidos" cols="90" rows="4" id="textarea7">NOMBRES COMPLETOS:
DIRECCION:
TELEFONOS:
</textarea>
</span></div>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><div align="center"><span class="Estilo20"><span class="Estilo18">PRUEBAS A SOLICITAR </span></span></div></td>
<td colspan="5" align="right" nowrap><div align="center">
<table width="508" align="center">
<tr>
<td width="500" bgcolor="#CCCCCC"><div align="justify" class="Estilo23"><span class="Estilo1">Relacione las pruebas que Usted considere importantes para demostrar su inocencia y que deben ser solicitadas al funcionario investigador tales como: Inspección judicial a los libros, pruebas de peritazgo, análisis técnico de documentos, de elementos, aportes de videos, fotografías, casettes de audio y en fin todas aquellas pruebas que sean importantes para demostrar su inocencia.</span></div></td>
</tr>
</table>
<table width="508" align="center">
<tr>
<td width="500"><div align="justify" class="Estilo23">
<div align="center"><span class="Estilo20">
<textarea name="pruebas_solicitar" cols="100" rows="4" id="textarea9">LISTA DE PRUEBAS:
</textarea>
</span></div>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><div align="right" class="Estilo20"><span class="Estilo18 Estilo38">Nombre del Investigador: </span></div></td>
<td colspan="5"><input name="nom_funcionario" type="text" size="50" maxlength="50">
<span class="Estilo23"><span class="Estilo25">Indique el nombre del funcionario que adelanta la investigación en su contra. </span></span></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo37">Cargo Funcionario Investigador: </span></td>
<td colspan="5"><input name="cargo_funcionario" type="text" size="50" maxlength="50">
<span class="Estilo23"><span class="Estilo25">Indique el cargo del funcionario que adelanta la investigación en su contra. </span></span></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><p class="Estilo22">Fecha notificación:</p>
<p class="Estilo22 Estilo31">(Formato dd-mm-aaaa)</p></td>
<td bgcolor="#FFFFCC"> <div align="justify">
<table width="298">
<tr>
<td><div align="justify"><span class="Estilo26"><span class="Estilo27"><span class="Estilo23"><span class="Estilo33">Usted deberá indicar con precisión y exactitud la fecha en que le fue notificado el pliego de cargos con el fin de establecer los términos para responder el auto de cargo. </span></span></span></span></div></td>
</tr>
<tr>
<td><span class="Estilo26"><span class="Estilo27"><span class="Estilo23"><span class="Estilo33"><span class="Estilo21"><span class="Estilo13">
<select name="dia_noti" >
<option value="">00</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="mes_noti" >
<option value="">00</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
<select name="ano_noti" >
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
<option value="2015">2015</option>
<option value="2016">2016</option>
<option value="2017">2017</option>
<option value="2018">2018</option>
<option value="2019">2019</option>
<option value="2020">2020</option>
</select>
</span></span></span></span></span></span></td>
</tr>
</table>
</div></td>
<td colspan="4"><div align="right" class="Estilo20">
<div align="center">
<p> </p>
<table width="352">
<tr>
<td><span class="Estilo22">Nombre del Funcionario de Serviasjudinet que atiende:</span> </td>
</tr>
<tr>
<td width="344"><span class="Estilo21">
<input name="button2" type="button" style="font-family: Verdana; font-size: 8 pt; background-color: #C0C0C0; border-style: solid" onClick="window.location.reload()" value="Actualizar">
<input name="funcionario_atiende" type="text" id="funcionario_atiende2" size="50" maxlength="50">
</span></td>
</tr>
</table>
</div>
</div> </td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="6" align="right" nowrap><div align="center" class="Estilo20">
<input name="submit" type="submit" value="ENVIAR" 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">
</div></td>
</tr>
</table>
<div align="center">
<input type="hidden" name="MM_insert" value="formulario">
</div>
</form>
</body>
<body >
<form enctype="multipart/form-data" action="guardar_diagnostico.php" method="post" name="envio" onSubmit="return update(this)">
<table width="518" border="0" align="center" cellpadding="3" cellspacing="3">
<tr bgcolor="#0099FF">
<th colspan="2" scope="row">FORMULARIO PARA SUBIR EL ARCHIVO A ENVIAR </th>
</tr>
<tr bgcolor="#FFFFCC">
<th colspan="2" scope="row"><div align="right"></div></th>
</tr>
<tr bgcolor="#FFFFCC">
<td><input name="contador" type="hidden" size="15" maxlength="15" value="<?php echo $contador; ?>">
<input name="identificacion" type="hidden" size="15" maxlength="15" value="<?php echo $cedula; ?>">
</td>
<input name="nombrejur" type="hidden" size="11" maxlength="11" value="<?php echo $nombre; ?>"></td>
</tr>
<tr bgcolor="#FFFFCC">
<th width="248" scope="row"><div align="right"><span class="Estilo1">UBICACION DEL ARCHIVO : </span></div></th>
<td width="249"><input type="file" name="archivito" size="35" maxlength="35"></td>
</tr>
<tr bgcolor="#FFFFCC">
<th colspan="2" scope="row"><input name="submit" type="submit" value="Adjuntar archivo" onClick="update(this.form)"></th>
</tr>
</table>
</form>
</body>
</html>
<?php
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING']))
{
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "formulario"))
{
$dia = date("d");
$mes = date("m");
$ano = date("Y");
$fecha = $ano."-".$mes."-".$dia;
$fechanoti = $_POST[ano_noti]."-".$_POST[mes_noti]."-".$_POST[dia_noti];
$subir = mysql_query('SELECT id FROM cargos_disciplinarios WHERE id = "'.$_POST[contador].'" ');
if (!$subir) {
die('Invalid query: ' . mysql_error());
}
list($elId) = mysql_fetch_row($subir);
if ((mysql_num_rows($subir)==0))
{
$control = mysql_query("INSERT INTO cargos_disciplinarios (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) VALUES ('" . $_POST["ciudad"] . "', '$fecha', '" . $_POST["hora"] . "', '" . $_POST["cedula"] . "', '" . $_POST["nombre_completo"] . "', '" . $_POST["expedicion_cedula"] . "', '" . $_POST["edad"] . "', '" . $_POST["estado_civil"] . "', '" . $_POST["natural_de"] . "', '" . $_POST["residente_en"] . "', '" . $_POST["ciudad_reside"] . "', '" . $_POST["telefono_fijo"] . "', '" . $_POST["celular"] . "', '" . $_POST["grado"] . "', '" . $_POST["cargo"] . "', '" . $_POST["email"] . "', '" . $_POST["hechos"] . "', '" . $_POST["testimonios_recibidos"] . "', '" . $_POST["pruebas_solicitar"] . "', '" . $_POST["nom_funcionario"] . "', '" . $_POST["cargo_funcionario"] . "', '$fechanoti', '" . $_POST["informacion_recibida"] . "', '" . $_POST["funcionario_atiende"] . "')");
if (!$control) {
die('Invalid query cargos_disciplinarios: ' . mysql_error());
}
}else
{
$mss = mysql_query("UPDATE cargos_disciplinarios set ciudad= '" . $_POST[ciudad] . "',fecha_actual= '" . $fecha. "', hora= '" . $_POST[hora] . "',cedula = '" . $_POST[cedula] . "',nombre_completo= '" . $_POST[nombre_completo] . "',expedicion_cedula= '" . $_POST[expedicion_cedula] . "',edad= '" . $_POST[edad] . "',estado_civil= '" . $_POST[estado_civil] . "',natural_de= '" . $_POST[natural_de] . "',residente_en= '" . $_POST[residente_en] . "',ciudad_reside= '" . $_POST[ciudad_reside] . "',telefono_fijo= '" . $_POST[telefono_fijo] . "',celular= '" . $_POST[celular] . "',grado= '" . $_POST[grado] . "',cargo= '" . $_POST[cargo] . "',email= '" . $_POST[email] . "',hechos='" . $_POST[hechos] . "',testimonios_recibidos= '" . $_POST[testimonios_recibidos] . "',pruebas_solicitar= '" . $_POST[pruebas_solicitar] . "',nombre_func_invest= '" . $_POST[nom_funcionario] . "',cargo_func_invest = '" . $_POST[cargo_funcionario] . "',fecha_notificacion= '" .$fechanoti. "',informacion_recibida = '" . $_POST[informacion_recibida] . "',funcionario_atiende = '" . $_POST[funcionario_atiende] . "' WHERE id = '" .$_POST[contador]. "' ");
if (!$mss) {
die('Invalid query cartera_serviasjudinet MODIFICAR: ' . mysql_error());
}
}
if ($busque == '3')
{
$mssql2 = mysql_query("UPDATE control_inicios_procesos set estado = '4' WHERE cedula = '" . $_GET["ced2"] . "' and id = '" . $_GET["id"] . "' and estado = '2' ");
if (!$mssql2) {
die('Invalid query update 174: ' . mysql_error());
}
$mss = mysql_query("UPDATE solicitud_citas set estado = '2' WHERE cedula = '" . $_GET[ced2] . "' and id = '" . $_GET[id] . "' ");
if (!$mss) {
die('Invalid query update 174: ' . mysql_error());
}
$forr = mysql_query("UPDATE record_servicios set estado = '4' WHERE cedula = '" . $_GET[ced2] . "' and estado = '10'");
if (!$forr) {
die('Invalid query update 174: ' . mysql_error());
}
}
/* $sql = "INSERT INTO cargos_disciplinarios (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)
VALUES ('$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','$nom_funcionario','$cargo_funcionario',
'$fechanoti', '$informacion_recibida', '$funcionario_atiende')";
mysql_query($sql, $dbi) or die(mysql_error()); */
echo "<script>alert('La información se ha enviado correctamente a nuestro funcionario especializado en asuntos disciplinarios. favor comunicarse al celular 312-3861084 Bogotá');</script>";
}
?>