<?
session_start();

if ($_SESSION['estado'] != "ON")
		{
		?>
		<script>
			parent.location.href = '../index.php';
		</script>
		<? 
		exit();
		}
$id_empresa = $_SESSION['ss_empresa'];
$id_user = $_SESSION['ss_user'];
?>
<!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=utf-8" />
<title>Centraliza Libro de Ventas</title>
</head>
<body>
<?
include("../../conex.php");
$sql="select * from empresa where id='".$id_empresa."'";
//echo $sql;
$resfs = mysql_query($sql,$enlace);	
$res = mysql_fetch_array($resfs);

	

?>
<form name="form"  action="clasificacion.php" target="mainFrame">
<table width="57%" height="80" border="1" align="center"  cellpadding="1" style="border:0px Double #000080;">
<tr>
<td colspan="2" bgcolor="#358391" style="color:#FFFFFF">CENTRALIZACION LIBRO DE VENTAS</td>
<td width="23%"
rowspan="3" align="center" valign="middle" 
 style="border-color:#CCCCCC; border:solid; border-width:2px; border-right-width:1px"><input name="b" type="button" value="Aceptar" 
onclick="document.form.submit();" /></td>
</tr>
<tr ><td width="35%"  style="border-color:#CCCCCC; border:solid; border-width:2px; border-right-width:1px" >EMPRESA</td>
<td width="42%"  align="center"  style="border-color:#CCCCCC; border:solid; border-width:2px; border-right-width:1px">
<?=$res['nombre']?></td>
</tr>
<tr>
<td height="10" colspan="2" align="center"  style="border-color:#CCCCCC; border:solid; border-width:2px; border-right-width:1px">
MES
<select name="mes2"  id="mes2" >
  <?
   $ddd = 1;
   while($ddd < 13 ){
   ?>
  	<option value="<? if($ddd <= 9 ){echo "0".$ddd;} else {echo $ddd;};?>" >
  	<? if($ddd <= 9 ){echo "0".$ddd;} else {echo $ddd;};?>
  	</option>
  	<?
	$ddd++;
	}; 
	?>
</select>

A&Ntilde;O
<select name="ano"  id="ano" >

  <?
   $ddd = 2010;
   while($ddd < 2020 ){
   ?>
  	<option value="<? if($ddd <= 9 ){echo "0".$ddd;} else {echo $ddd;};?>" >
  	<? if($ddd <= 9 ){echo "0".$ddd;} else {echo $ddd;};?>
  	</option>
  <?
	$ddd++;
     }; 
	?>
</select>

</td></tr>
</table>
</form>
</body>
</html>
