Exemplo n.º 1
0
    echo 'selected="true"';
}
?>
>
                            <?php 
echo getTextoFormaDePago(1);
?>
                        </option>
                        <option value="2" <?php 
if ($restaurante->formaPago == 2) {
    echo 'selected="true"';
}
?>
>
                            <?php 
echo getTextoFormaDePago(2);
?>
                        </option>
                    </select>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Método de entrega</label>
                <div class="controls">
                    <select class="span11" name="metodoEntrega">
                        <option value="0" <?php 
if ($restaurante->metodoEntrega == 0) {
    echo 'selected="true"';
}
?>
>
Exemplo n.º 2
0
 $aux = $platillos[0];
 ?>
         <div class="row-fluid">
             <div class="span4">
                 <strong>Id Pedido: </strong> <?php 
 echo $aux['idPedido'];
 ?>
             </div>
             <div class="span4">
                 <strong>Método de entrega: </strong> <?php 
 echo getTextoMetodoEntrega($aux['idMetodoEntrega']);
 ?>
             </div>
             <div class="span4">
                 <strong>Tipo de pago: </strong> <?php 
 echo getTextoFormaDePago($aux['idTipoPago']);
 ?>
             </div>
         </div>
         <div class="row-fluid">
             <div class="span4">
                 <strong>Gastos de Envío: </strong> <?php 
 echo $aux['gastoDeEnvio'];
 ?>
 
             </div>
             <div class="span4">
                 <strong>Total: </strong> <?php 
 echo $aux['total'];
 ?>
             </div>
Exemplo n.º 3
0
                    <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>
Exemplo n.º 4
0
 function printRestaurantePedido()
 {
     echo '<tr>';
     echo '<td><img src="' . $this->logo . '" alt="logo" width="150" height="100"></td>';
     echo '<td>' . $this->nombre . '</td>';
     echo '<td><a href="pedidos.php?a=menu&i=' . $this->idRestaurante . '">Ver Menú</a></td>';
     echo '<td><a href="restaurantes.php?a=horario&i=' . $this->idRestaurante . '">Horario</a></td>';
     echo '<td><a href="restaurantes.php?a=tipoComida&i=' . $this->idRestaurante . '">Tipo de Comida</a></td>';
     echo '<td>' . $this->descripcion . '</td>';
     echo '<td>' . $this->pedidoMinimo . '</td>';
     echo '<td>' . $this->gastoEnvio . '</td>';
     echo '<td>' . getTextoFormaDePago($this->formaPago) . '</td>';
     echo '<td>' . $this->paginaWeb . '</td>';
     echo '<td>' . $this->telefono . '</td>';
     echo '<td>' . $this->email . '</td>';
     echo '<td>' . getTextoMetodoEntrega($this->metodoEntrega) . '</td>';
     echo '</tr>';
 }