<tr> <th style="width:1%">Id Pedido</th> <th style="width:1%">Estado del Pedido</th> <th style="width:1%">Metodo entrega</th> <th style="width:1%">Tipo pago</th> <th style="width:1%">Número de referencia</th> <th style="width:1%">Total</th> <th style="width:1%">Gasto de envío</th> <th style="width:1%">Comisión</th> <th style="width:1%">Ver detalles del pedido</th> </tr> <?php foreach ($pedidos as $pedido) { echo '<tr>'; echo '<td>' . $pedido['idPedido'] . '</td>'; echo '<td>' . getTextoEstadoPedido($pedido['idEstadoPedido']) . '</td>'; echo '<td>' . getTextoMetodoEntrega($pedido['idMetodoEntrega']) . '</td>'; echo '<td>' . getTextoFormaDePago($pedido['idTipoPago']) . '</td>'; echo '<td>' . $pedido['numReferencia'] . '</td>'; echo '<td>' . $pedido['total'] . '</td>'; echo '<td>' . $pedido['gastoDeEnvio'] . '</td>'; echo '<td>' . $pedido['comision'] . '</td>'; echo '<td><a href="/adminRestaurante.php?a=detallesDePedido&t=' . $t . '&i=' . $pedido['idPedido'] . '" class="btn">Ver detalles del pedido</a></td>'; echo '</tr>'; } ?> </table> <?php } else { echo '<h3>No hay pedidos</h3>'; }
</div> <div class="span4"> <strong>Comisión: </strong> <?php echo $aux['comision']; ?> </div> </div> <div class="row-fluid"> <div class="span8"> <strong>Número de referencia: </strong> <?php echo $aux['numReferencia']; ?> </div> <div class="span4"> <strong>Estado del pedido: </strong> <?php echo getTextoEstadoPedido($aux['idEstadoPedido']); ?> </div> </div> <div class="row-fluid"> <div class="span12"> <legend>Platillos del pedido</legend> </div> </div> <?php $platillosImpresos = array(); foreach ($platillos as $platillo) { $idPlatillo = $platillo['idPlatillo']; in_array($idPlatillo, $platillosImpresos); ?> <div class="row-fluid">