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/consulta_accion_tomada_supervisora.php
<?

require_once("mainfile.php");
require_once("Conectarse.php");
include ("config.php");
global $dbi;

$controla = mysql_query('SELECT accion FROM accion_tomada_sucursales WHERE sucursal = "'.$_GET["sucursal"].'" and id = "'.$_GET["id"]. '" ');
		  if (!$controla) {
				die('Invalid query 2: ' . mysql_error());
			} 
list($accion) = mysql_fetch_row($controla);


?>

<html>
<head>
<title>Consulta Accion Tomada</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; }
.Estilo41 {font-family: "Times New Roman", Times, serif}
.Estilo42 {color: #009933}
.Estilo45 {
	color: #0066FF;
	font-size: 16px;
}
-->
</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.existepro.value == "")
	  {
		alert("Falta Seleccionar existe proceso Juridico");
		formulario.existepro.focus();
		return (false);
	}

  if (formulario.existepro.value == "SI")
  {
	  if (formulario.numpro.value == "")
	  {
		alert("Falta Ingresar Número de Proceso");
		formulario.numpro.focus();
		return (false);
	}
  }
  
   if (formulario.documento.value == "")
	  {
		alert("Falta Seleccionar Si recibieron Documentos");
		formulario.documento.focus();
		return (false);
	}
  
    if (formulario.documento.value == "SI")
  {
	  if (formulario.docul.value == "")
	  {
		alert("Falta Ingresar N° de orden de trabajo o No proceso");
		formulario.docul.focus();
		return (false);
	}
  }
  
  
    if (formulario.poder.value == "")
	  {
		alert("Falta Seleccionar Si se elaboro poder");
		formulario.poder.focus();
		return (false);
	}
  
      if (formulario.poder.value == "SI")
  {
	  if (formulario.podel.value == "")
	  {
		alert("Falta Ingresar Número orden de trabajo");
		formulario.podel.focus();
		return (false);
	}
  }
  


if (formulario.gestionre.value == "")
	  {
		alert("Falta digitar que diligencia ha efectuado");
		formulario.gestionre.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">
<!--
.sel3 {background-color:#DDFFFF; font-family:Arial; font-size:10px; color: #000066 }
.Estilo58 {color: #000033}
.Estilo59 {font-size: 16px}
.Estilo60 {color: #000066}
-->
</style>
</head>

<body onLoad="document.formulario.ciudad.focus();startclock()">

<form method="post" name="formulario" action="<?php echo $editFormAction; ?>" onSubmit="return validar(this)">
  <table width="662" border="0" align="center" cellpadding="3" cellspacing="3" >
    <tr >
      <td colspan="6" align="right" nowrap><div align="center"><span class="Estilo2">CONSULTA ACCION TOMADA </span></div></td>
    </tr>
    <tr  bgcolor="#FAFAF5">
  
    </tr>
    <tr  bgcolor="#F2F2E6">
      <td colspan="6"><table width="646">
          <tr>
            <td width="125"><div align="center"></div></td>
            <td width="320"><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="185"><div align="center"></div></td>
          </tr>
      </table></td>
    </tr>
   
   
    
  
   
    
     
	
  <tr bgcolor="#ECE9D8">

    <td width="650" colspan="3" bordercolordark="#000000" bgcolor="#0000FF"><p align="center">
       <textarea name="gestionre" cols="80"  rows="5"><? echo $accion?></textarea> 
      
       
</p>      </td>
    </tr>
	

    <tr valign="baseline" bgcolor="#009999">
      <td colspan="6" align="right" nowrap bgcolor="#3399FF"><div align="center" class="Estilo20">
          <p class="Estilo60">
            <input  name="submit" type="submit" value="CERRAR" style="font-family: Verdana; font-size: 8 pt; background-color: #C0C0C0; border-style: solid">
          </p>
      </div></td>
    </tr>
  </table>
  <div align="center">
      <input type="hidden" name="MM_insert" value="formulario">
  </div>
</form>  
</body>
</html>

<?php

require_once("mainfile.php");
require_once("Conectarse.php");
include ("config.php");
global $dbi;

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING']))
{
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "formulario"))
{
   require_once("mainfile.php");
   include ("config.php");
   global $dbi;
   
   $lafecha = $_POST["ano"] . "-" . $_POST["mes"] . "-" . $_POST["dia"];
   


				
				
				

 
        		
				 
				 echo "<SCRIPT LANGUAGE='javascript'>   window.close();</SCRIPT>";
					}

?>