MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/public_html/adirectoress/recepcion_cargos_soli.php
<?php
require_once("../Conectarse.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="X-UA-Compatible" content="IE=8; IE=9; IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
<style type="text/css">
	*{margin: 0;padding: 0;}
    body{background-color:#FFFFFF;font-family:Verdana, Geneva, sans-serif}
    header {background-color: #B7271F; text-align: center;}
    .cerrarsesion{width: auto;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
    .cerrarsesion:hover{background-color: #ffffff;color: #000;}
    .titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
	.subtitulos{width: 100%;text-align: left;color: #b20606;padding: 2px 0;font-size: 13px;}
    table{margin: 0 auto;border: 1px solid #bebebe; text-align: center; }
	
    .irmenu{width:200px; background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;}
    .irmenu:hover{background-color: #67a0d9; color: #000;}
    
    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
    td{border: #D7D7D7 solid 0.2px; height:28px;}
    .tdizq{background-color: #EEE; color: #C70000;font-size: 12px;font-weight: 400; text-align: left;}
    .tdcen{background-color: #EEE; color: #00135F;font-size: 13px;font-weight: 600; text-align: center;}
    .tdder{background-color: #EEE; color: #630000;font-size: 13px;font-weight: 600; text-align: right;}
	.tdroja{background-color: #EEE; color: #CC0005;font-size: 13px;font-weight: 400; text-align: right;}
	.tdi{background-color: #FDF7D5; color: #00135F;font-size: 13px;font-weight: 200; text-align: left;}
    .tdc{background-color: #FDF7D5; color: #00135F;font-size: 13px;font-weight: 200; text-align: center;}
    .tdd{background-color: #FDF7D5; color: #00135F;font-size: 13px;font-weight: 200; text-align: right;}
	.exp{color:#C22529; font-size:14px;}
    .boton1{width:150px;background-color: #ffffff;color: #000;padding: 4px;border:1px solid #580000;border-radius:2px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
	.direcciona{width:200px; background-color: #640001;color: #fff; padding: 4px;border-radius: 3px;}
	.direcciona:hover{background-color: #67a0d9; color: #000;}
    input[type=text]{height: 24px; font-size: 13px; padding:0 0 0 1px;}
	select{color:#C7292E; height: 24px; font-size: 13px; padding:0 0 0 1px;}
	/*select{border:solid #191919 0.5px; border-radius: 3px; padding: 1px;background-color: #FFFFFF; font-weight:600px; }*/
	
	.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 12px; font-weight: 900}
    .tdfull{background-color: #fff; color: #000; padding: 5px; text-align: center; font-size: 12px; font-family:Verdana, Geneva, sans-serif;}
	.tdjustify{background-color: #fff; color: #000; padding: 5px; text-align: justify; font-size: 12px; font-family:Verdana, Geneva, sans-serif;}
    .botonnew{width: 25px; background-color: #C0292E;color: #FFFFFF;padding: 1px;border-radius:5px;}
    .botonnew:hover{background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
	
	.roja{color:#DC181E; text-align:center;}
	.texto{ color:#001900;text-align:justify; padding:8px; font-size:13px; }
	.explica{background-color:#FEFEED; color:#001900;text-align:justify; padding:8px; font-size:14px; }
	.explicar{background-color:#F5EBAD; color:#001900;text-align:justify; padding:8px; font-size:14px;}
</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()">
<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">CAPTURA DATOS CARGOS DISCIPLINARIOS</h3>

<form method="post" name="formulario" action="<?php echo $editFormAction; ?>" onSubmit="return validar(this)">
<table width="956" border="0" align="center" cellpadding="3" cellspacing="3">    
<!--<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>
	<td colspan="6" class="fecha"><div align="center" class="Estilo2">
      <script languaje="JavaScript">Mostrar_Fecha()</script></div></td>
</tr>

<tr>
    <td colspan="6" class="texto">SE&Ntilde;OR AFILIADO DILIGENCIE TODOS LOS CAMPOS Y SUMINISTRE TODA LA INFORMACON NECESARIA PARA PODER ELABORAR LOS DESCARGOS DE UNA MANERA T&Eacute;CNICA Y PROFESIONAL, LOS CUALES SER&Aacute;N ENVIADOS VIA EMAIL DENTRO DE LOS T&Eacute;RMINOS QUE ESTIPULA LA LEY. IGUALMENTE USTED DEBERA COMUNICARSE CON NUESTRO ESPECIALISTA DR ZAMBRANO RAMIREZ PEDRO PABLO  AL CELULAR <span class="exp">3166905354</span> Y A SU VEZ ENVIAR VIA FAX AL NUMERO <span class="exp">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="exp">Copia de auto de cargos y cualquier otro documento que requiera nuestro funcionario defensor.</p>
	</td>
</tr>


<tr>
	<td colspan="6">
    
	<tr>
	<td width="128" class="fecha">Id:<input name="contador" type="text" value="<?php echo $conta ?>" size="3" maxlength="3" readonly="" ></td>
  	<td width="320" class="fecha">Ciudad:<input name="ciudad" type="text" id="cedula4" value="" size="30" maxlength="30" ></td>
    <td width="268" class="fecha">Fecha <br>dd-mm/aaaa:<br>
      	<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="">
  	</td>
    <td width="199" class="fecha">Hora:<input name="hora" type="text" size="11" maxlength="11" readonly=""></td>
</tr>




<tr>
	<td colspan="6"></td>
</tr>

<tr>
	<td class="tdder">Apellidos y Nombres:</td>
    <td class="tdizq" colspan="5"><input name="nombre_completo" type="text" value="<?php echo $nombre ?>" size="50" maxlength="50" ></td>
</tr>

<tr>
	<td class="tdder">C&eacute;dula:</td>
    <td class="tdizq"><input name="cedula" type="text" value="<?php echo $cedula ?>" size="15" maxlength="15" ></td>
    <td class="tdder">Expedida en: </td>
    <td class="tdizq"><input name="expedicion_cedula" type="text" value="" size="25" maxlength="25" ></td>
</tr>


<tr>
	<td class="tdder">Estado civil :</td>
    <td class="tdizq"><input name="estado_civil" type="text" id="estado_civil" value="" size="15" maxlength="15"></td>
    <td class="tdder">Natural de:</td>
    <td class="tdizq" colspan="3"><input name="natural_de" type="text" id="natural_de" size="30" maxlength="30" ></td>
</tr>


<tr>
	<td class="tdder">Direcci&oacute;n de residencia:</td>
    <td class="tdizq"><input name="residente_en" type="text" value="" size="30" maxlength="30" ></td>
   	<td class="tdder">Ciudad:</td>
    <td class="tdizq" colspan="3"><input name="ciudad_reside" type="text" value="" size="30" maxlength="30" ></td>
</tr>


<tr>
	<td class="tdder">Tel&eacute;fono fijo: </td>
    <td class="tdizq"><input name="telefono_fijo" type="text" id="telefono_fijo2" value="" size="15" maxlength="15" ></td>
    <td class="tdder">Celular: </td>
    <td class="tdizq"><input name="celular" type="text" id="celular" value="" size="11" maxlength="11" ></td>
</tr>


<tr >
	<td class="tdder">Grado:</td>
    <td class="tdizq"><input name="grado" type="text" id="grado2" value="" size="3" maxlength="3" ></td>
    <td class="tdder">Cargo: </td>
    <td class="tdizq" colspan="3"><input name="cargo" type="text" id="cargo2" value="" size="30" maxlength="30" ></td>
</tr>


<tr>
	<td class="tdder">Email:</td>
    <td class="tdizq"><input name="email" type="text" id="email" size="50" maxlength="50"></td>
    <td class="tdder">Edad:</td>
    <td class="tdizq"><input name="edad" type="text" id="edad" value="" size="2" maxlength="2" ></td>
</tr>

<tr>
	<td class="tdder">HECHOS</td>
 	<td colspan="5" align="right" nowrap><div align="center">
    
   	<table>
  	<tr>
   		<td>
            <p class="explica">Relacione de manera clara y detallada, indicando fechas, horas y dem&aacute;s aspectos sobre la ocurrencia de un asunto por el cual, se imputan cargos disciplinarios. </p>
      	</td>
  	</tr>
   	</table>


<table >
<tr>
 	<td ><textarea name="hechos" cols="100" rows="4" id="hechos"></textarea></td>
</tr>
</table>
 </div></td>
</tr>


<tr>
  	<td class="tdder">TESTIMONIOS A RECIBIR</td>
    <td colspan="5">
    <table>
    <tr>
     	<td class="explica">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>


<tr>
	<td><textarea name="testimonios_recibidos" cols="100" rows="4" id="textarea7">NOMBRES COMPLETOS:
DIRECCION:
TELEFONOS:
</textarea>
	</td>
</tr>
</table>
</td>
</tr>



<tr>
	<td class="tdder">PRUEBAS A SOLICITAR </td>
   	<td colspan="5" >
    <table>
    <tr>
   		<td class="explica">Relacione las pruebas que Usted considere importantes para demostrar su inocencia y que deben ser solicitadas al funcionario investigador tales como: Inspecci&oacute;n judicial a los libros, pruebas de peritazgo, an&aacute;lisis t&eacute;cnico de documentos, de elementos, aportes de videos, fotograf&iacute;as, casettes de audio y en fin todas aquellas pruebas que sean importantes para demostrar su inocencia.
    	</td>
	</tr>
  	</table>
    
    <table>
  	<tr>
      	<td ><textarea name="pruebas_solicitar" cols="100" rows="4" id="textarea9">LISTA DE PRUEBAS:</textarea></td>
   	</tr>
    </table>
   	</td>
    </tr>
    
    
	<tr>
   		<td class="tdder">Nombre del Investigador: </td>
      	<td class="tdizq" colspan="5"><input name="nom_funcionario" type="text" size="50" maxlength="50"><br>
      	Indique el nombre del funcionario que adelanta la investigaci&oacute;n en su contra. </td>
    </tr>
    
    <tr>
		<td class="tdder">Cargo Funcionario Investigador:</td>
      	<td class="tdizq" colspan="5"><input name="cargo_funcionario" type="text" size="50" maxlength="50"><br>
        Indique el cargo del funcionario que adelanta la investigaci&oacute;n en su contra. </td>
    </tr>
    <tr>
		<td class="tdder">Fecha notificaci&oacute;n:</p>
      	<p class="exp">(Formato dd-mm-aaaa)</p></td>
		<td>
        <table>
       	<tr>
            <td class="explicar">Usted deber&aacute; indicar con precisi&oacute;n y exactitud la fecha en que le fue notificado el pliego de cargos con el fin de establecer los t&eacute;rminos para responder el auto de cargo. </td>
   		</tr>
        <tr>
       		<td class="explicar">
            <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>
     		</td>
    	</tr>
        </table>
        </td>
      
      	<td class="explicar" colspan="4">
        <table>
        <tr>
         	<td class="texto">Nombre del Funcionario de Serviasjudinet que atiende:</td>
        </tr>
        <tr>
     		<td ><input name="button2" type="button" class="boton1" onClick="window.location.reload()" value="Actualizar">
                <input name="funcionario_atiende" type="text" id="funcionario_atiende2" size="50" maxlength="50">
           	</td>
     	</tr>
        </table>       
 	</td>
</tr>


<tr >
<td colspan="6">
<input  name="submit" type="submit" class="direcciona" value="ENVIAR" > 
<input name="button" type="button" class="irmenu" onClick="window.location.href='../index.php'" value="IR A LA PAGINA PRINCIPAL">
</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>";
 		 
}
?>