<? 
$nivel = $_GET["nivel"];
$hoy=date("Y-m-d");
require_once('../../../../conf/connection.php');
$nombreuser =$_GET["nombreuser"];
//extraer sucursal
     //  $query_sucu="SELECT * FROM user_sistem WHERE nombre='$nombreuser'";
	  // $res_sucu=mysql_query($query_sucu);
	  // $sucu=mysql_result($res_sucu,0,"sucursal");
//nombre suscursal
	   // $query_nom="SELECT * FROM sucu WHERE codsucu='$sucu'";
	   // $res_nom=mysql_query($query_nom);
	   // $nom_sucu=mysql_result($res_nom,0,"nombre");
            
?>
<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
  

    <meta charset="utf-8">
    <title>INVENTARIO</title>
    <meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width">

    <!--[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>
$(document).ready(function(){
// Demo 5
$('#identidad').Rut({
  on_error: function(){ alert('Rut incorrecto'); },
  format_on: 'keyup' 
});
$("#content > ul").tabs();
});

function cerrar() {
			window.close();
		}
		
</script>  
 <script type="text/javascript" src="../../js/jquery-1.6.2.js"></script>
   <script src="../../js/jquery.Rut.js" type="text/javascript"></script>
  <script type="text/javascript" src="../../../../funciones/scripts.js"></script>
  <script type="text/javascript">

function enviar_formulario(){ 
   document.formulario.submit() 
} 
 </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%" >
        <h3>ajustes:  entrada de inventario | Sucursal: <? echo $nom_sucu ?></h3>
     <p >
       <form id="formulario" name="formulario" method="post" action="add_reg.php">
        <input type="hidden" name="sucu" id="sucu" value="<? echo $sucu ?>"  />
         <table width="514">
           <tr>
             <td height="6" colspan="2"><strong>FORMULARIO</strong></td>
           </tr>
           <tr>
             <td width="168" height="32" align="right">FECHA DEL AJUSTE</td>
             <td width="334"><input type="text" name="fecha" id="fecha" value="<? echo $hoy ?>"  /></td>
           </tr>
           <tr>
             <td height="14" align="right">CODIGO DEL PRODUCTO</td>
             <td><input type="text" name="codigo" id="codigo" autofocus  /></td>
           </tr>
           <tr>
             <td height="6" align="right">CANTIDAD </td>
             <td><input type="text" name="cantidad" id="cantidad"  /></td>
           </tr>
           <tr>
             <td height="2" align="right">COMENTARIO </td>
             <td><label for="descrip"></label>
               <textarea name="descrip" id="descrip"></textarea></td>
           </tr>
          
           <tr>
             <td colspan="2" align="right">
              </form>
                <a href="javascript:enviar_formulario()" class="art-button">Ajustar</a>
                  <a href="#" onClick="cerrar()" class="art-button">Cerrar</a> 
            </td>
           </tr>
         </table>
      </p>
     <p align="left">  
     <div id="resultado">
     </div></p>
    
    </div>
    </div>
</div>
<div class="art-content-layout-br layout-item-0">
</div></div>


</article></div>
                    </div>
                </div>
            </div><footer class="art-footer">


</footer>

    </div>
    <p class="art-page-footer">
        <span id="art-footnote-links">Informatica Francisco Arias E.I.R.L.</span>
    </p>
</div>


</body></html>