<style type="text/css">

.table {
 border:2px black solid;
 border-radius:10px;
 min-width:100px;
 min-height:100px;
 font-family: Helvetica,Arial;
}


body {
  background-image: url("../../../assets/img/background.jpg");
}
</style>



<? 
require_once('../../conf/connection.php');
$hoy=date("d-m-Y");

$idpedido =$_GET["idpedido"];
$rut =$_GET["rut"];
$query="SELECT * FROM pedido WHERE idpedido='$idpedido'";
$rs_query=mysql_query($query);
$numero=mysql_result($rs_query,0,"idpedido");
$mesas=mysql_result($rs_query,0,"idmesa");
$subtotal=mysql_result($rs_query,0,"total_venta");
$propina=0;
$total=$subtotal+$propina;


?>



    <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" />  
  <script>
    function rut(){			
			window.location.href="rut.php?idpedido=<? echo $idpedido ?>&idplatos=<? echo $idplatos ?>";
	}
    function cerrar(){ window.close(); }
  </script>

        <h3><font color="#FFFFFF">Pagos de clientes</font></h3>
     <table width="514" class="table" >
     <tr>
       <td height="16">Tipo de documento:</td>
       <td>
       <input name="doc" id="doc" type="radio" value="1" />Boleta <input onclick="rut()" name="doc" id="doc" type="radio" value="2" />Factura
       
       </td>
     </tr>

     </table>
       <form id="frm_add" name="frm_add" method="post" action="add_reg.php" >
         <table width="514" class="table">
         <tr>
           <td height="2" colspan="2"></td>
         </tr>
         <tr>
           <td width="194" height="32">Numero de pedido:</td>
           <td><input name="numero" type="text" id="numero" value="<? echo $numero; ?>" readonly="readonly"  /></td>
         </tr>
         <tr>
           <td height="6"><label>Numero de mesa:</label></td>
           <td><input name="mesa" type="text" id="mesa" value="<? echo $mesas ?>" readonly="readonly" /></td>
         </tr>
         <tr>
           <td height="7" colspan="2">&nbsp;</td>
           </tr>
         <tr>
           <td height="32" align="right"><strong>
             <label>Subtotal: </label>
           </strong></td>
           <td><input name="subtotal" type="text" id="subtotal" value="<? echo $subtotal; ?>" readonly="readonly" /></td>
         </tr>
         <tr>
           <td height="13" align="right"><strong>efectivo: </strong></td>
           <td>&nbsp;</td>
         </tr>
         <tr>
           <td height="2" align="right"><strong>Vuelto: </strong></td>
           <td>&nbsp;</td>
         </tr>
         <tr>
           <td colspan="2" align="right">
           <input type="hidden" name="total" id="total" value="<? echo $total; ?> " />
           <input name="propina" type="hidden" id="propina" value="<? echo $propina; ?>" readonly="readonly" />
           <input type="hidden"  name="rut" id="rut" value="<? echo $rut; ?> " />
             
             
             <input type="submit" style="border: #000 2px solid; background-color: #D6F888" id="enviar" name="enviar" value="Guardar" />
             <input type="button" style="border: #000 2px solid; background-color: #D6F888" value="Cerrar ventana" onclick="cerrar()" /></td>
         </tr>
         </table>
       </form>
   <div id="resultado">
     </div>
     