<?
session_start();
if ($_SESSION['estado'] != "ON")
		{
		?>
		<script>
			parent.location.href = '../index.php';
		</script>
		<? 
		exit();
		}
$id_empresa = $_SESSION['ss_empresa'];
$id_user = $_SESSION['ss_user'];
$id_autoriza=93;
?>
<?
/*Sesiones*/
include("../conex.php");
//include("../autoriza.php");

$txtfecha = date('d')."/".date('m')."/".date('Y');
?>
<!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>Resumen Ventas</title>
<script language="JavaScript" src="../css/cal.js" type="text/JavaScript"></script>
<style type="text/css">
<!--
body {
	background-color: #CCCCCC;
	margin-left: 0px;
	margin-top: 3px;
	margin-right: 0px;
	margin-bottom: 0px;
}
select {
	clear: right;
	float: left;
	height: auto;
	width: 267px;
}
-->
</style></head>
</head>
<body>
<div align="center">

<form id="form1" name="form1" method="post" action="muestra.php" target="mainFrame">
<div align="center">

<table width="274" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td width="100%" align="center">Seleccione mes del Resumen</td>
	</tr>
    </table>
    <table width="320" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td width="100%" align="center">
			<input name="txtfecha" id="txtfecha" type="text" style="border-width:0; background-color:#CCCCCC; text-align:right" align="right" value="<?=$txtfecha?>" size="7" readonly="1">
		  <a  href="javascript:show_calendar('form1.txtfecha');"><img name="foto2" id="foto2" align="top" border="0" src="../Images/CALENDAR.gif" style="cursor:pointer" title="Presione aqui y seleccione la fecha" />		</a></td>
 <td>
       <?
			$sql_umed ="SELECT bodega.id, descripcion  FROM bodega ORDER BY descripcion ASC";
			$res_umed = mysql_query($sql_umed,$enlace);
			$contb=0;
			?>
<select name="lstbodega" id="lstbodega" style="width:200px"  > 
			  <option value="0" selected="selected">Bodega (Todos)</option>
			  <?
			  while (mysql_fetch_object ($res_umed))
				{
				$sql_umed_cod = mysql_result($res_umed, $contb, "bodega.id");
				$sql_umed_nom = mysql_result($res_umed, $contb, "descripcion");
				
			?>
                <option value="<?=$sql_umed_cod?>"><? echo $sql_umed_nom;?></option>
			<?
				$contb = $contb+1;
			}
			?>
      </select>	 
        
        </td>
	</tr>
</table>
<table width="150" border="0" align="center">
	<tr>
		<td width="65%" align="right">
			<input type="submit" name="Submit" value="Ver Resumen"/>
		</td>
		<td width="35%" align="left">
			<input type="submit" name="Submit" value="Salir" onClick="fun_salir();"/>
		</td>
	</tr>
</table>
	</div>
</form>
  </div>
</body>
</html>

<script language="javascript">
function fun_salir()
	{
	window.top.open('','_parent','');window.top.close();
	}
</script>
			

