<? 
require_once('../../conf/connection.php');

 $fecha = date("Y-m-d");
 $hora =  date("H:i:s");
 $nombreuser =$_GET["nombreuser"];
 $sucu =$_GET["sucu"];

 $query_sucu="SELECT * FROM sucu WHERE codsucu='$sucu' ";
	   $res_sucu=mysql_query($query_sucu);
	   $nom_sucu=mysql_result($res_sucu,0,"nombre");


?>
<!DOCTYPE html>
<html dir="ltr" lang="en-US"><head>
    <meta charset="utf-8">
    <title>mod_venta</title>
    <meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width">
    <script type='text/javascript' src='../jquery-1.7.1.min.js'></script>
    <!--[if lt IE 9]><script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <link rel="stylesheet" href="../../style.css" media="screen">
    <!--[if lte IE 7]><link rel="stylesheet" href="style.ie7.css" media="screen" /><![endif]-->
    <link rel="stylesheet" href="../../style.responsive.css" media="all">

    <script src="../../jquery.js"></script>
    <script src="../../script.js"></script>
    <script src="../../script.responsive.js"></script>



<style>.art-content .art-postcontent-0 .layout-item-0 { border-top-width:1px;border-top-style:solid;border-top-color:#B1C9C7;margin-top: 10px;margin-bottom: 10px;  }
.art-content .art-postcontent-0 .layout-item-1 { border-right-style:solid;border-right-width:1px;border-right-color:#B1C9C7; padding-right: 10px;padding-left: 10px;  }
.ie7 .art-post .art-layout-cell {border:none !important; padding:0 !important; }
.ie6 .art-post .art-layout-cell {border:none !important; padding:0 !important; }

</style>
<script>

function info (elEvento) { 
         evento = elEvento || window.event;
         k=evento.keyCode; //número de código de la tecla.
        
		       //finalizar con boleta 
          if (k==119){
			   
			    miPopup = window.open("boleta.php?num=<? echo $numero ?>","cant_","width=900,height=500,top=80,left=200,status=no, scrollbars=no, toolbars=no, menubar=no,resizable=yes,directories=no");
			miPopup.focus();
			  
			  }
			  
		  //finalizar con factura 
          if (k==120){
			   
			    miPopup = window.open("rut.php?num=<? echo $numero ?>","cant_","width=900,height=500,top=80,left=200,status=no, scrollbars=no, toolbars=no, menubar=no,resizable=yes,directories=no");
			miPopup.focus();
			  
			  }
		 
		 		 
		 }
window.onload = function() {
document.onkeydown = info;
}
</script>

</head>
<body>
<div id="art-main">

<div class="art-sheet clearfix">
            <div class="art-layout-wrapper">
                <div class="art-content-layout">
                    <div class="art-content-layout-row">
                        <div class="art-layout-cell art-content"><article class="art-post art-article">
                                
                                                
                                <div class="art-postcontent art-postcontent-0 clearfix"><div class="art-content-layout">
    <div class="art-content-layout-row">
    <div class="art-layout-cell layout-item-1" style="width: 100%" >
       
        <p>
       <h3>CIERRE DE CAJAS   </h3>
        <form id="formulario" name="formulario" method="post" action="resultado.php" >
         <input type="hidden" id="sucu" name="sucu" value="<? echo $sucu ?>" > 
         <input type="hidden" id="nombreuser" name="nombreuser" value="<? echo $nombreuser ?>" >   
       
					<table width="449" class="table">
					  <tr>
					    <td width="61" >FECHA:</td>
					    <td width="246" >
                        <input id="fecha" type="text" NAME="fecha" value="<? echo $fecha ?>" >
			    
					    <td width="126" rowspan="3" >                        
					  <tr>
					    <td >&nbsp;</td>
					    <td width="246" >                        
					    <tr>
					    <td >SUCURSAL: </td>
					    <td width="246" ><? echo $nom_sucu ?>                        
					    <tr>
					    <td colspan="3" align="right">
                     <input name="submit" type="submit" class="art-button" id="submit" value="Buscar">
                     <input name="button" type="reset" class="art-button" id="button" value="Limpiar">
                     </td>
				      </tr>
					</table>
         </form> 
        </p>
    </div>
    </div>
</div>
<div class="art-content-layout-br layout-item-0">
</div></div>


</article></div>
                    </div>
                </div>
            </div>

    </div>
    
</div>


</body></html>
