
<?php
include_once '../php/config.php';
?>
<table class="table table-hover table-striped tabla_comanda">
								<tr><th>ITEM</th><th>CANTIDAD</th><th>TOTAL</th></tr>
								<?php 
								$sql_detalle_pedido = mysql_query("select * from detalle_pedido where mesa='".$_GET['txt-mesa']."' order by id desc") or die(mysql_error());
								while($r004 = mysql_fetch_array($sql_detalle_pedido)){
								$sub_pedido+=$r004["sub_precio"];
								$id2 = $r004["id"];
								$ca = $r004["cantidad"];
								?>
								<tr>
									<td><?php echo $r004["descripcion"]?><br>
									 <a class="text-danger ml-2" href='#' onClick='del_item(<?php echo $id2?>)'><i class="fa fa-trash"></i> Borrar</a>
									</td>
									<td><input style="width:60px;" class="" type="number" id="<?php echo $id2?>" value="<?php echo $r004["cantidad"]?>" readonly>
									
									
									<a style="font-size:30px; font-weight:bolder;" class="btn btn-default" href='#' onClick='mas0(<?php echo $id2?>)'> + </a>
									<a style="font-size:30px; font-weight:bolder;" class="btn btn-default" href='#' onClick='menos0(<?php echo $id2?>)'> - </a>
									
									</td>
									<td><?php echo @decimal($r004["sub_precio"])?></td>
								</tr>
								<?php }?>
								
							<tfoot>
							<th><input type="hidden" name="txt_total_comanda" id="txt_total_comanda" value="<?php echo $sub_pedido?>"></th></th>
</table>