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/accion_tomada_consulta_histoser.php
<html>
<head>
<title>Juridica</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;
}
.Estilo19 {font-family: "Arial Narrow"; font-weight: bold; }
.Estilo20 {color: #990000}
.Estilo21 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; color: #990000; }
.Estilo13 {font-size: 12px; font-weight: bold; }
.Estilo45 {
	color: #009;
	font-size: 16px;
	font-weight: bold;
}
.Estilo48 {
	color: #CC3333;
	font-weight: bold;
}

body {
	background-image: url(ELEMENTOS/gris13.jpg);
}

-->
</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.testimonio.value == "")
  {
    alert("Falta Ingresar Diligenciar Acción de revisión");
    formulario.testimonio.focus();
    return (false);
  }
  



  

  

  /*  if (formulario.sir.checked == "" )
  {
	   if (formulario.nor.checked == "" )
  {
    alert("Falta Seleccionar consulta procesos");
    formulario.sir.focus();
    return (false);
  }
  }*/
   
    if (formulario.ced_funcionario.value == "" )
  {
    alert("Falta Seleccionar Tipo de servicio");
    formulario.ced_funcionario.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>
<link href="file:///C|/Documents%20and%20Settings/web%20master/Mis%20documentos/job9.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Estilo59 {
	color: #CC0000;
	font-size: 16px;
}
.Estilo60 {color: #006600}
.Estilo61 {font-size: 16px}
.Estilo62 {
	color: #FF0000;
	font-weight: bold;
}
.Estilo65 {color: #FF3300}
.Estilo66 {
	color: #000000;
	font-style: italic;
}
td {
	font-size: 12px;
}
td {
	color: #FC0;
}
td {
	color: #930;
}
body form table tr td table tr td {
	color: #C00;
}
body form table tr td table tr td {
	color: #C00;
}
-->
</style>
</head>
<?php 
  require_once("mainfile.php");
   include ("config.php");
   global $dbi;
   
   require_once("Conectarse.php");


$control = mysql_query('SELECT cedula, nombre, direccion, telefono, celular, ciudad, email, sucursal, fecha_solicitud, lugar_hechos, fecha_hechos, relacion_hechos, orden_trabajo, num_proceso, num_atencion, acta_numero, fecha_notificacion, accion_revision FROM control_inicios_procesos  WHERE cedula =  "' . $_GET["cedula"]  . '" and num_atencion  =  "' . $_GET["atencion"]  . '"');
			if (!$control) {
				die('Error de consulta: ' . mysql_error());
			}
     list($cedula_c,$nombre_completo, $direccion, $telefono, $celular, $ciudad, $email, $sucursal, $fechaser, $lugar, $fechahe, $hechos, $numtraba, $numpro, $numaten, $actanum, $fechanot, $accionrevi) = mysql_fetch_row($control);
	 
	 
	 
		$sucrusa = mysql_query('SELECT nombre FROM sucursal  WHERE codigo  = "'.$sucursal.'" ');
		  if (!$sucrusa) {
				die('Invalid query 2: ' . mysql_error());
			} 	
			  list($sucur) = mysql_fetch_row($sucrusa);
			  
			  
			  
	$aseso = mysql_query('SELECT asesoria,solucion FROM actuaciones_servicios  WHERE cedula  = "'.$cedula_c.'" ');
		  if (!$aseso) {
				die('Invalid query 2: ' . mysql_error());
			} 	
			  list($asesoria, $solucion) = mysql_fetch_row($aseso);		  
	 
	//$query_sql = "SELECT * FROM sucursal order by nombre";
	//$sql = mysql_query($query_sql, $dbi) or die(mysql_error());
	   $sql = mysql_query('SELECT * FROM sucursal order by nombre');
			if (!$sql) {
				die('Invalid query: ' . mysql_error());
			}
	$row_sql = mysql_fetch_assoc($sql);
	$totalRows_sql = mysql_num_rows($sql); 

	
	$sql2 = mysql_query('SELECT * FROM asjudinet_abogados  WHERE vigentes = "1" order by nombre_completo');
			if (!$sql2) {
				die('Invalid query: ' . mysql_error());
			}
	$row_sql2 = mysql_fetch_assoc($sql2);
	$totalRows_sql2 = mysql_num_rows($sql2); 
	 
	$cedulafun = $cedu;

///////////////////////////


	
if ((isset($_POST["cargar"])))
{
	
	$mssql = mysql_query("UPDATE  atenciones_sin_proceso  set accion_tomada ='" . $_POST["asesoria"]  . "'  WHERE id = '" . $_GET["id"]  . "' and cedula =  '" . $_GET["cedula"] . "' and atencion =  '" . $_GET["atencion"] . "' ");	
		if (!$mssql) {
				die('Invalid query primer UPDATE: ' . mysql_error());
			}
			
			
echo "<script>alert('Se envia la Accion ')</script>"; 	 
echo "<script languaje='javascript' type='text/javascript'>window.close();</script>";
			
}
	
	
	
	
?>
<body onLoad="document.formulario.ciudad.focus();startclock()">

<form method="post" name="formulario" onSubmit="return validar(this)">
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=90% > </center>
<br></br>
<table width="600" border="2" align="center" cellpadding="3" cellspacing="3" bgcolor="#FAFAF5">
      <tr valign="baseline" bgcolor="#FF6600">
        <td height="28" colspan="4" align="right" nowrap bgcolor="#FFFF99"><div align="center"><span class="Estilo2 Estilo59">ACCION TOMADA HISTOSER</span></div></td>
    </tr>
      <tr valign="baseline" bgcolor="#FAFAF5">
        <td colspan="4" align="right" nowrap bgcolor="#009966"><div align="center" class="Estilo2">
          <script languaje="JavaScript">Mostrar_Fecha()</script>
        </div></td>
      </tr>
      <tr valign="baseline" bgcolor="#F2F2E6">
        <td colspan="4" bgcolor="#FFFF99"><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>
      </tr>
      <tr valign="baseline" bgcolor="#F2F2E6">
        <td width="140" bgcolor="#FFFF99"><strong><span class="Estilo5 Estilo1 Estilo45 Estilo60">Nombre:</span></strong></td>
        <td width="300" bgcolor="#FFFFCC"><input name="name_full" type="text" id="name_full" value="<?php echo $nombre_completo ?>" size="50" maxlength="50" readonly=""></td>
        <td bgcolor="#FFFFCC"><div align="right" class="Estilo60">
          <div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Cedula:</span></strong></div>
        </div></td>
        <td width="267" bgcolor="#FFFFCC"><input name="ced3" type="text" value="<?php echo $cedula_c ?>" size="30" maxlength="30" readonly=""></td>
      
      </tr>
      <tr valign="baseline" bgcolor="#F2F2E6">
        <td bgcolor="#FFFF99"><div align="right" class="Estilo60">
          <div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Direccion:</span></strong></div>
        </div></td>
        <td bgcolor="#FFFF99" colspan="2"><input name="dir" type="text" id="dir" value="<?php echo $direccion ?>" size="45" maxlength="45" ></td>
        <td bgcolor="#FFFF99"><strong><span class="Estilo5 Estilo1 Estilo45 Estilo60">Telefono:</span></strong>
          <input name="tel" type="text" id="tel" value="<?php echo $telefono ?>" size="30" maxlength="30" ></td>
      </tr>
   
         <tr>
        <td  colspan="4" bgcolor="#FFFF99" align="left" class="Estilo48"><strong><span class="Estilo45">Motivo Justificacion :</span></strong></td>
      </tr>
      <tr>
        <td colspan="4" align="center" bgcolor="#FFFF99"><textarea name="asesoria" cols="70" rows="5" id="textarea7"></textarea></td>
      </tr>
          
     </table></td>
  </tr>
    <td colspan="5" bgcolor="#DFDFDF"><div align="center">
          <input name="cargar" type="submit" class="Estilo4" id="cargar" value="Enviar" />
        </div></td>
    </table></td>
    
      </tr>
      
    
  </table>
  
  
</form>  
</body>
</html>

<?

if ((isset($_POST["cargar"])))
{
	
	$mssql = mysql_query("UPDATE  atenciones_sin_proceso  set accion_tomada ='8000'  WHERE id = '" . $_GET["id"]  . "' and cedula =  '" . $_GET["ced"] . "' and atencion =  '" . $_GET["atencion"] . "' ");	
		if (!$mssql) {
				die('Invalid query primer UPDATE: ' . mysql_error());
			}
}

?>