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/asunto_verifi_control_juridica_interno.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;
}
-->
</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["ced2"]  . '" 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.'" and numero_atencion  =  "' . $_GET["atencion"]  . '"');
		  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;
	
	
	
	
	
?>
<body onLoad="document.formulario.ciudad.focus();startclock()">

<form method="post" name="formulario" onSubmit="return validar(this)">
<table width="859" border="2" align="center" cellpadding="3" cellspacing="3" bgcolor="#FAFAF5">
      <tr valign="baseline" bgcolor="#FF6600">
        <td height="28" colspan="4" align="right" nowrap bgcolor="#FFFFCC"><div align="center"><span class="Estilo2 Estilo59">JURIDICO</span></div></td>
      </tr>
      <tr valign="baseline" bgcolor="#FAFAF5">
        <td colspan="4" align="right" nowrap bgcolor="#CCFFFF"><div align="center" class="Estilo2">
          <script languaje="JavaScript">Mostrar_Fecha()</script>
        </div></td>
      </tr>
      <tr valign="baseline" bgcolor="#F2F2E6">
        <td colspan="4" bgcolor="#FFFFCC"><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="#FFFFCC"><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="#FFFFCC"><div align="right" class="Estilo60">
          <div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Direccion:</span></strong></div>
        </div></td>
        <td bgcolor="#FFFFCC" colspan="2"><input name="dir" type="text" id="dir" value="<?php echo $direccion ?>" size="45" maxlength="45" ></td>
        <td bgcolor="#FFFFCC"><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 valign="baseline" bgcolor="#F2F2E6">
        <td bgcolor="#FFFFCC"><div align="right" class="Estilo60">
          <div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Celular:</span></strong></div>
        </div></td>
        <td bgcolor="#FFFFCC"><input name="celular" type="text" id="celular" value="<?php echo $celular ?>" size="30" maxlength="30" ></td>
        <td bgcolor="#FFFFCC"><strong><span class="Estilo5 Estilo1 Estilo45 Estilo60">Ciudad:</span></strong></td>
        <td bgcolor="#FFFFCC"><input name="ciu" type="text" id="ciu" value="<?php echo $ciudad ?>" size="30" maxlength="30"></td>
      </tr>
      <tr valign="baseline" bgcolor="#F2F2E6">
        <td width="140" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#FFFFCC"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Email:</span></strong></div></td>
        <td  bgcolor="#FFFFCC"><input name="mail" type="text" id="mail" value="<?php echo $email ?>" size="50" maxlength="50" ></td>
        <td colspan="2" bgcolor="#FFFFCC"> 
          <span class="Estilo45">Fecha de Servicio:</span>
        <input name="fechaser" type="text" id="fechaser"  size="12" maxlength="12" value="<?php echo $fechaser ?>" ></td>
      </tr>
      <tr>
        <td width="140" bgcolor="#FFFFCC" align="right" class="Estilo48"><strong><span class="Estilo45">Sucursal:</span></strong></td>
        <td width="300" bgcolor="#FFFFCC"><input name="sucursal" type="text" id="sucursal" value="<?php echo $sucur ?>" size="50" maxlength="50" ></td>
        <td bgcolor="#FFFFCC" class="Estilo48" colspan="2"><span class="Estilo45">Proceso:</span>
          <input name="numpro" type="text" id="numpro"  size="12" maxlength="12" value="<?php echo $numpro ?>" >
         
          </td>
      </tr>
      <tr>
        <td width="140" bgcolor="#FFFFCC" align="right" class="Estilo48"><strong><span class="Estilo45">No Trabajo:</span></strong></td>
        <td width="300" bgcolor="#FFFFCC"><input name="numtraba" type="text" id="numtraba" value="<?php echo $numtraba ?>" size="50" maxlength="50" ></td>
        <td bgcolor="#FFFFCC" class="Estilo48" colspan="2"><span class="Estilo45">No Atención:</span>
          <input name="numaten" type="text" id="numaten"  size="12" maxlength="12" value="<?php echo $numaten ?>" ></td>
      
      </tr>
      
      <tr>
        <td width="140" bgcolor="#FFFFCC" align="right" class="Estilo48"><strong><span class="Estilo45">Lugar Hechos:</span></strong></td>
        <td width="300" bgcolor="#FFFFCC"> <input name="lugar" type="text" id="lugar" value="<?php echo $lugar ?>" size="50" maxlength="50" ></td>
          <td bgcolor="#FFFFCC" class="Estilo48" colspan="2"><span class="Estilo45">Fecha Hechos:</span></strong>
  Año-Mes-Día
          <input name="fecha" type="text" id="fecha"  size="12" maxlength="12" value="<?php echo $fechahe ?>" ></td>
      </tr>
   
         <tr>
        <td  colspan="4" bgcolor="#FFFFCC" align="left" class="Estilo48"><strong><span class="Estilo45">Asesoria Solicitada :</span></strong></td>
      </tr>
      <tr>
        <td colspan="4" align="center" bgcolor="#FFFFCC"><textarea name="asesoria" cols="70" rows="5" id="textarea7"><?php echo $asesoria?></textarea></td>
      </tr>
      
      
      <tr>
        <td  colspan="4" bgcolor="#FFFFCC" align="left" class="Estilo48"><strong><span class="Estilo45">Solucion Dada:</span></strong></td>
      </tr>
      
          <tr>
        <td colspan="4" align="center" bgcolor="#FFFFCC"><textarea name="solucion" cols="70" rows="5" id="textarea7"><?php echo $solucion?></textarea></td>
      </tr>
      
     </table></td>
  </tr>
    </table></td>
      </tr>
      <tr valign="baseline" bgcolor="#009999">
        <td colspan="4" align="right" nowrap bgcolor="#FFFFCC"><div align="center" class="Estilo20">
    
        </div></td>
  </tr>
  </table>
  <div align="center">
    <input type="hidden" name="MM_insert" value="formulario">
  </div>
</form>  
</body>
</html>