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/info_bogota.php
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;

 require_once("Conectarse.php");
	
$dia = date("d");
$mes = date("m"); 
$ano = date("Y");

//$misql = mysql_query("select codigo from Usuarios where Cedula = $cf", $dbi);
   $misql = mysql_query('SELECT codigo FROM Usuarios WHERE Cedula = "' ."$cf". '" ');
		  if (!$misql) {
				die('Invalid query 4 aqui: ' . mysql_error());
			}

if($misql){list($codigo_funcionario) = mysql_fetch_row($misql);}



$control= mysql_query('SELECT cedula, nombre,grado, numerocontrato, tipocontrato, tipo_afiliado, codigo_sucursal, direccion, telefono, celular, ciudad, email,fecha_nacimiento FROM cartera_serviasjudinet  WHERE cedula = "' . $_GET["id"]  . '" ');
		  if (!$control) {
				die('Invalid query 4 aqui: ' . mysql_error());
			}	 
if ((mysql_num_rows($control)!=0)) 
{	 
     list($ced, $nom,$grado,$contrato, $tipo, $tipo_afiliado, $codsuc, $direccion, $telefono, $celular, $ciudad, $email,$fecha_nacimiento) = mysql_fetch_row($control);
	 
	 
        $nc2 = $contrato;
		$tc2 = $tipo;
	// $suc = mysql_query("select nombre from sucursal where codigo =  '$codsuc'", $dbi);
	  $suc = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "' ."$codsuc". '" ');
		  if (!$suc) {
				die('Invalid query 4 aqui: ' . mysql_error());
			}
     if($suc){list($sucursal) = mysql_fetch_row($suc);}

     $tres=substr($fecha_actuacion, 0, 2);
     $dos=substr($fecha_actuacion, 3, 2);
     $uno=substr($fecha_actuacion, 6, 4);
     $fecha_actuacion = ($uno."-".$dos."-".$tres);	
	 
//////DIVISION DE LA FECHA 

$separarfinicio = explode('-',$fecha_nacimiento);
 
 $separarfinicio[0];
 $separarfinicio[1];
	 
	$dianacimi=$separarfinicio[0];
	$mesnacimi=$separarfinicio[1];
	 
/////FINALIZA DIVISION FECHA	 
	  
}


if(isset($_POST["guardar"]))

{
	
$fechasnacim = $_POST[dia].'-'.$_POST[mes] ;
	

	   $msql = mysql_query("UPDATE  cartera_serviasjudinet   set grado = '". $_POST[grado]."',direccion = '". $_POST[direccionc]."',telefono = '". $_POST[telefonoc]. "',celular = '". $_POST[celularc]."',ciudad='".$_POST[ciudadc]."',email = '".$_POST[emailc]."',fecha_nacimiento = '".$fechasnacim."' WHERE cedula = '" . $_GET["id"]  . "' "); 
		 
		  if (!$msql) {
				die('Invalid query  1 update: ' . mysql_error());
			}

	     $misql = mysql_query('SELECT cedula, nombre, direccion, telefono, celular, ciudad, email FROM cartera_serviasjudinet  WHERE cedula = "' . $_GET["id"]  . '" ');
		  if (!$misql) {
				die('Invalid query 4 aqui: ' . mysql_error());
			}

	  list($ced, $nom, $direccion, $telefono, $celular, $ciudad, $email) = mysql_fetch_row($misql);


					 $id = $_GET[id] ;
					 $numcon = $_GET[numcon] ;
	echo "<script>alert('Los datos fueron modificados correctamente');</script>"; 
	  
/* echo "<script>alert('La información se ha enviado correctamente ');</script>";*/
}	  


?>
<html>
<head>
<title>VENTANA PARA MODIFICAR DATOS DEL USUARIO</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
<!--
.titulos {font: 16px; color: red; font-family:Arial; font-weight:bold}
.boton {  background-color: #FFCCCC; color:#FFFFFF; width:150px; border: 4px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 13px; font-family: Arial; color:#0000CC; display: block;}
.fecha {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #000099; width:10px display: block;}
.campo {background-color: #FFFFCC; border:1px solid #990000; font-family:Arial;  font-size:11px; height: inherit}
.lista { background-color:#99FFFF; font-family: Arial; font-size: 11px;	color: #990000;}
.label {background-color: #00CCFF ; font-size: 14px; font-family: Arial; color:#0000CC; display: block;}
.area {background-color: #CCFFCC; font-size: 13px; width:40px font-family: Arial; color:#0000CC; display: block;}
.variables {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #003333 ; width:10px display: block; border: 2px solid #006633;}
.sel { background-color:#DDFFFF; width:400px; border: 1px solid #0099FF; font-family:Arial; font-style:italic; color:#990000 }
.sel2{ background-color:#DDFFFF; border: 1px solid #0099FF; font-family:Arial; font-style:italic; font-weight:bold; color:#990000 }
.seleccion { background-color: #CCFFCC; width:340px; border: 1px solid #0099FF; font-family:Arial; color:#990000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; }
.letras {background-color: #99CCFF; font-size: 10px; font-family: Arial; color:#0000CC; display: block;}
.campo2 {background-color: #99CCCC; border:1px solid #0066FF; font-family:Arial; font-size:10px; height: inherit}
.sel3{ background-color:#DDFFFF; font-family:Arial; font-size:10px; color: #000066 }
body{
				background:#333 url(images_pagina_nueva/fondocoa2.jpg) repeat top left;
				font-family:Arial;
			}
.Estilo10 {font-size: 11px; font-family: Arial, Helvetica, sans-serif; }
.Estilo11 {
	font-size: 14px;
	color: #0066FF;
	font-weight: bold;
	font-family: "Times New Roman", Times, serif;
}
.Estilo12 {
	font-size: 14px;
	color: red;
	font-weight: bold;
	font-family: "Times New Roman", Times, serif;
}
-->
</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()
{

  if (formulario.folio2.value == "")
  {
    alert("Falta ingresar el Folio2");
    formulario.folio2.focus();
    return (false);
  }   

	if(formulario.folio2.value < pf)
	{	 
     	   alert('El folio2 no debe ser menor que el folio1');
           formulario.folio2.focus();
           return (false);	
	}	

  if (formulario.actuacion.value == "")
  {
    alert("Falta ingresar la actuación");
    formulario.actuacion.focus();
    return (false);
  }

  if (formulario.codigo_funcionario.value == "")
  {
    alert("Falta seleccionar el nombre del funcionario");
    formulario.codigo_funcionario.focus();
    return (false);
  }

return (true);
}
//--></script>

<SCRIPT LANGUAGE='JavaScript'>
var default1 = "VENTANA PARA EL INGRESO DE ACTUACIONES"; // only shown once at page load
var text1 = "El primer encabezado muestra en detalle los datos del proceso seleccionado";
var text2 = "la segunda parte muestra el formulario para el ingreso de revistas";
var text3 = "No se le olvide tener en cuenta el número del folio que se entrega en el juzgado";
var changeRate = 3000; // 1000 = 1 second
var messageNumber = 0;

function changeStatus()
{
  if (messageNumber == 0) {
     window.status=default1;
     document.title=default1;
    }
  else if (messageNumber == 1) {
     window.status=text1;
    }
  else if (messageNumber == 2) {
     window.status=text2;
     }
  else if (messageNumber == 3) {
     window.status=text3;
     messageNumber = 0;
     }
  messageNumber++;
  setTimeout("changeStatus();",changeRate);
}
changeStatus(); // leave here to run right away
// -->
</SCRIPT>

</head>


  <tr>   
    <td bgcolor="#FFFFFF">
    <table width="800" border="10" cellspacing="0" cellpadding="0">
     
    
<td width="707"  background="coas_nueva/html/images/top-bg.gif">

<CENTER><img src="coas_nueva/html/images/coas.jpg" width="711" height="100" /> </center></td>


 
<table width="707" border="5" align="center" cellpadding="2" cellspacing="2">
 <br>

  <tr bgcolor="#FFCC99">
    <td height="20" bgcolor="#FFFFFF"><fieldset>


   <table width="691" border="10" align="center" cellpadding="2" cellspacing="4" bordercolor="silver">
    <tr bgcolor="#FFFFFF">  
       <td width="204" colspan="1"><span class="Estilo11"><CENTER>DIRECTOR DE SERVICIO:</CENTER></span></td>
       <td width="443" colspan="1"><span class="Estilo11"><CENTER>INFORMACION SUCURSAL:</CENTER></span></td>

  <tr class="Estilo3">  
    <td bgcolor="#FFFFFF"><div align="center"><img src="ELEMENTOS/hernando_hernandez_bogota.jpg" alt="PANTOJA RODRIGUEZ JAIME MIGUEL"width="86" height="111" border="0"><BR>
      <strong>HERNANDEZ HERNANDEZ HERNANDO</span></strong></div></td>

    <td><table width="448" height="154" cellpadding="0" cellspacing="0">
      <tr bgcolor="#FFFFFF">
        <td><table width="448"cellspacing="3" cellpadding="3" bgcolor="#CCCCCC">
          <tr></tr>
          <tr bgcolor="#FFFFFF">
            <td width="100"><span class="Estilo11"><CENTER>Direccion:</CENTER></span></td>
            <td colspan="4"><strong><CENTER>Calle 19 6-68 Piso 9 Edificio Angel.</CENTER></strong></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td><span class="Estilo11"><CENTER>Telefonos:</CENTER></span></td>
            <td colspan="4"><strong><CENTER>2438820-2438870</CENTER></strong></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td><span class="Estilo11"><CENTER>Celular:</CENTER></span></td>
            <td colspan="4"><strong><CENTER>3168320893-3123861084</CENTER></strong></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td><span class="Estilo11"><CENTER>Ciudad:</CENTER></span></td>
            <td colspan="4"><strong><CENTER>BOGOTA</CENTER></strong></td>
          </tr>
        </table>          <span class="Estilo11"></span></td>
      </tr>
    </table></tr>
</table>
</form>
</body>
</html>