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/www/accion_tomada_supervisora_rango1.php
<?php
$ced = $_GET["ced"];
$nom = $_GET["nom"];
$cod = $_GET["cod"];

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Consulta Accion Tomada Por Fecha</title>
<style type="text/css">
<!--
.titulos {font: 16px; color: red; font-family:Arial; font-weight:bold}
.boton {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 11px; font-family: Arial; color:#0000CC; display: block;}
.fecha {font-size: 12px; font-family: Arial; color:#990000; display: block; }
.campo {background-color:#FFFFAA; width: 100px; border:2px solid #990000;}
.lista {font-family: Arial; font-size: 11px;	color: #000066;}
.lista2 {font-family: Arial; font-size: 16px;	color: #FF6600;}
.boton2 {
	font-family: Verdana;
	font-size: 8 pt;
	color: #000080;
	background-color: #C0C0C0;
	border-style: solid;
	width:90px;
	height:22px;
}
body {
	background-image: url();
}
.Estilo50 {color: #CC3333;
	font-family: "Arial Narrow";
	font-weight: bold;
}
.boton1 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.boton11 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.Estilo54 {color: #333399; font-family: "Arial Narrow"; font-weight: bold; }
.Estilo57 {color: #006600}
.Estilo58 {
	color: #000099;
	font-weight: bold;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body>
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=60% > </center>
<form action="" method="post" name="form1" class="provd" id="form1">
  <div align="center">
    <table width="471" border="3" cellpadding="3" cellspacing="3" bgcolor="#FFFFFF">
      <tr>
        <td colspan="3" bgcolor="#CCCCCC"><div align="center" class="Estilo58">CONSULTA ACCION TOMADA POR FECHA</div></td>
      </tr>
     
	  <tr>
	  <td bgcolor="#CCCCCC" colspan="2"  align="center"><span class="Estilo58">Fecha Desde:
	      <input name="fecha1" type="text" class="Estilo21" id="fecha1" value="0000-00-00" size="13" maxlength="13" >
	    Hasta:
	    <input name="fecha2" type="text" class="Estilo21" id="fecha2" value="0000-00-00" size="13" maxlength="13">
	  </span> </td>
	  </tr>
    </table>
  
    <p>
  <!--<input name="menu2" type="button" class="Estilo58" id="menu2" onclick="window.location.href='menu_novedades_supervisora.php'" value="IR AL MENU" />-->
  
	   <input name="consultar" id="consultar" type="submit" class="Estilo58" value="CONSULTAR">
       <?php 

		echo"<div class='divirmenu'>
<input type='button' name='menu' id='menu' class='Estilo50' onClick='window.location.href=\"menu_novedades_supervisora.php?ced=$ced&nom=$nom&cod=$cod\"' value='IR AL MENU'></div>";
    
?>
	  
	  
    </p>  

  </div>
</form>
</body>
</html>

<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
$espacio = ' '; 
$linea = '-';
require_once("Conectarse.php");

   
if(isset($_POST["consultar"]))
{
	/*
	if( $cod == "1" || $cod == "980")
	{
		$control = mysql_query('SELECT id,sucursal,director,fecha_novedad,fecha_ingreso,id_novedad FROM accion_tomada_sucursales WHERE (fecha_ingreso >= "'.$_POST["fecha1"].'" and fecha_ingreso <= "'. $_POST["fecha2"].'") AND (sucursal = "BOGOTA" || sucursal = "MEDELLIN" || sucursal = "CALI" || sucursal = "PEREIRA" || sucursal = "MANIZALES" || sucursal = "IBAGUE" || sucursal = "BARRANQUILLA" || sucursal = "NEIVA" || sucursal = "BUCARAMANGA" || sucursal = "PASTO" || sucursal = "FLORENCIA" || sucursal = "VILLAVICENCIO" || sucursal = "MONTERIA" || sucursal = "VALLEDUPAR" || sucursal = "CARTAGENA" || sucursal = "TUNJA" || sucursal = "MOCOA" || sucursal = "ARAUCA" || sucursal = "MELGAR" || sucursal = "CUCUTA" || sucursal = "POPAYAN" || sucursal = "SANTA_MARTHA" || sucursal = "LETICIA" || sucursal = "YOPAL") order by sucursal ');
	}
	
	
	
	if($cod == "355")
	{*/
		$control = mysql_query('SELECT id,sucursal,director,fecha_novedad,fecha_ingreso,id_novedad FROM accion_tomada_sucursales WHERE (fecha_ingreso >= "'.$_POST["fecha1"].'" and fecha_ingreso <= "'. $_POST["fecha2"].'") AND (sucursal = "VALLEDUPAR" || sucursal = "SANTA_MARTA" || sucursal = "BARRANQUILLA" || sucursal = "CARTAGENA" || sucursal = "MONTERIA" || sucursal = "MEDELLIN" || sucursal = "PEREIRA" || sucursal = "CALI" || sucursal = "POPAYAN" || sucursal = "PASTO") order by sucursal ');
	/*}
	
	if($cod == "807")
	{
		$control = mysql_query('SELECT id,sucursal,director,fecha_novedad,fecha_ingreso,id_novedad FROM accion_tomada_sucursales WHERE (fecha_ingreso >= "'.$_POST["fecha1"].'" and fecha_ingreso <= "'. $_POST["fecha2"].'") AND (sucursal = "MONTERIA" || sucursal = "CARTAGENA" || sucursal = "BARANQUILLA" || sucursal = "SANTA_MARTHA" || sucursal = "VALLEDUPAR" || sucursal = "CUCUTA" || sucursal = "BUCARAMANGA") order by sucursal ');
	}
	
	if($cod == "753")
	{
		$control = mysql_query('SELECT id,sucursal,director,fecha_novedad,fecha_ingreso,id_novedad FROM accion_tomada_sucursales WHERE (fecha_ingreso >= "'.$_POST["fecha1"].'" and fecha_ingreso <= "'. $_POST["fecha2"].'") AND (sucursal = "YOPAL" || sucursal = "TUNJA" || sucursal = "VILLAVICENCIO" || sucursal = "MELGAR" || sucursal = "NEIVA" || sucursal = "FLORENCIA" || sucursal = "MOCOA") order by sucursal ');
	}
	*/
	/*$control = mysql_query('SELECT id,sucursal,director,fecha_novedad,fecha_ingreso,id_novedad FROM accion_tomada_sucursales WHERE fecha_ingreso >= "'.$_POST["fecha1"].'" and fecha_ingreso <= "'. $_POST["fecha2"].'" order by sucursal ');
		  
	if (!$control) {
		die('Invalid query 2: ' . mysql_error());  
	} 
	*/
  	
	if ((mysql_num_rows($control)!=0)) 
	{	 
       	echo "<TABLE width='600' border='2' align='center' cellpadding='2' cellspacing='1'>
        <TR>
		<TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>Fecha Novedad</span></div></TD>
        <TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>Director</span></div></TD>
		<TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>Sucursal</span></div></TD>
		<TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>Fecha Ingreso Accion</span>
		<TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>Consulta Accion</span></div></TD>
		</div></TD>";		  
                           							  
                        
  		while(list($ids,$sucursal,$director,$fecha_novedad, $fecha,$id) = mysql_fetch_row($control)) 
     	{
			$sum = $sum + 1;
			printf("<tr>    
								   
			<td bgcolor='#C5D6FC'><div align='center' class='lista'><input type='button' value=$fecha_novedad name='id' class=Estilo51 onClick =window.open('nove_consultas.php?id=$id&sucursal=$sucursal','','top=20,left=100,toolbar=no,scrollbars=yes,width=1300,height=800,status=yes')></a></span></div></td>
				    
			<td bgcolor='#C5D6FC'><div align='center' class='lista'>".$director."</span></div></td>
            <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$sucursal."</span></div></td>
			<td bgcolor='#C5D6FC'><div align='center' class='lista'>".$fecha."</span></div></td></td>
			
			<td bgcolor='#C5D6FC'><div align='center' class='lista'><input type='button' value=CONSULTA name='id' class=Estilo51 onClick =window.open('consulta_accion_tomada_supervisora.php?id=$ids&sucursal=$sucursal','','top=20,left=100,toolbar=no,scrollbars=yes,width=800,height=300,status=yes')></a></span></div></td>");  
								   
		}            								   
 	}
	echo "</table>";		  
	echo "<TABLE width='200' border='0' align='center' cellpadding='0' cellspacing='1'>
    <TR>
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>TOTAL REGISTROS</span></div></TD></TD>";	
							  
	printf("<tr>
    <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$sum."</span></div></td></td>"); 
	echo "</table>";	


	echo "</form>";

}
?>