<meta chartset="utf-8" />
<?php 
require_once('../../../../conf/connection.php');

$nombrevar =$_GET["nombreuser"];
$fechahoy=date("Y-m-d");
$ano=date("Y");
$guia="admin";
$producto=$_GET["producto"];

$query_user="SELECT * FROM user_system WHERE pass='$guia'";
$rs_user=mysql_query($query_user);

if (mysql_num_rows($rs_user) <> 0)
 {  
   $nom_user=mysql_result($rs_user,0,"nombre_user"); 
 } 
else 
 { 
     $nom_user="";
 }

?>
<script>

function cerrar(){ window.close();  }

function buscar(){
	
	 window.location.href = "buscar.php";
	}
</script>
<!DOCTYPE html>
<html dir="ltr" lang="en-US"><head><!-- Created by Artisteer v4.3.0.60745 -->
    <meta charset="utf-8">
    <title>Home</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 href="../../../../style.css" rel="stylesheet" type="text/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 { margin-bottom: 10px;  }
.art-content .art-postcontent-0 .layout-item-1 { border-right-style:solid;border-right-width:1px;border-right-color:#C4C6BD; 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 src="../../jquery.js"></script>
<script type="text/javascript" src="../js/jquery-1.6.2.js"></script>
<script type="text/javascript" src="../js/funciones/scripts.js"></script>
<link rel="stylesheet" href="../menu/styles.css" />  
<meta chartset="utf-8" /> 
 <script type="text/javascript">
  
  $(document).ready(function(){
	
	  $("#pat").keyup(function(){
	
		  $.post("search.php", {patron:frm_sch.pat.value, opcion:$("input[@name='rd1']:checked").val()}, function(result) {
			  
			  $("#resultado").html(result).show();
		  });
	  });
  });
  
  var miPopup
		function agregar(){
			miPopup = window.open("add.php","miwin","width=700,height=650,scrollbars=yes");
			miPopup.focus();
		}
		function entrada(){
			miPopup = window.open("entradas/index.php","miwin","width=700,height=650,scrollbars=yes");
			miPopup.focus();
		}
		function salida(){
			miPopup = window.open("salidas/index.php","miwin","width=700,height=650,scrollbars=yes");
			miPopup.focus();
		}
		
		function cartola(){
			miPopup = window.open("cartola/index.php","miwin","width=700,height=650,scrollbars=yes");
			miPopup.focus();
		}
		function grupos(){
			
	         window.location.href = "../grupos/index.php";
					}
		
		function mesas(){
			
			
			miPopup = window.open("../mesas/add.php","miwin","width=700,height=650,scrollbars=yes");
			miPopup.focus();
			}
</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-wrapper layout-item-0">
<div class="art-content-layout">
    <div class="art-content-layout-row">
    <div class="art-layout-cell layout-item-1" style="width: 100%" >
 <fieldset><legend>Agregar entrada</legend>
  <form id="formulario" name="formulario" method="post" action="guardar.php">
				  <table class="fuente8" width="98%" cellspacing=0 cellpadding=3 border=0>
						<tr>
							<td width="12%">Usuario</td>
					      <td colspan="2"> <? echo $nom_user ?>
                          <input NAME="usuario" type="hidden" id="usuario" value="<? echo $nom_user ?>" ></td>					
						</tr>
						
						<tr>
						  <td valign="top">Fecha:</td>
						  <td width="88%" align="left" valign="top">
						  <? echo $fechahoy ?>
						  <input name="fecha" type="hidden" id="fecha" value="<? echo $fechahoy ?>">
                          <input type="hidden" name="tipo" id="tipo" value="7">
		               </td>
						  
					  </tr>
						
						<tr>
						  <td colspan="3" valign="top"><hr></td>
				    </tr>
						
					</table>										
		
	
				
				<table class="fuente8" width="98%" cellspacing=0 cellpadding=3 border=0>
				  <tr>
					<td width="12%" align="left" valign="top">codigo producto</td>
					<td valign="top"><input NAME="idplatos" type="text"id="idplatos"value="<? echo $producto ?>">					 
                    <a href="#"> <img src="../../../images/searchicon.png" width="24" height="22" onclick="buscar()" /></a></td>
				  </tr>
				  <tr>
					<td>Cantidad </td>
					<td><label for="cantidad"></label>
				    <input name="cantidad" type="text" class="cajaPequena" id="cantidad"></td>
				  </tr>
				  <tr>
				    <td colspan="2"><hr></td>
			      </tr>
				  <tr>
				    <td colspan="2" align="right" valign="top">
				      <input name="button" type="submit" id="button" value="Guardar" class="art-button" >
				      <input name="button3" type="button" id="button3" value="Cerrar ventana" onClick="cerrar()" 
                      class="art-button">
				      </td>
				    </tr>
				  <tr>
				    <td colspan="2" valign="top"><hr></td>
			      </tr>
				  </table>	
				</form>
            </fieldset>
                                  <div id="resultado"></div>
    </div>
    </div>
</div>
</div>
</div>


</article></div>
                    </div>
                </div>
            </div><footer class="art-footer">
<p><br></p>
<p>Copyright © <? echo $ano ?>. All Rights Reserved.</p>
</footer>

    </div>
    <p class="art-page-footer"><a href="http://www.virtualsurchile.cl" target="_blank">Informatica Francisco Arias E.I.R.L.</a></p>
</div>


</body></html>