Example #1
0
    echo 'selected="true"';
}
?>
>
                            <?php 
echo getTextoMetodoEntrega(1);
?>
                        </option>
                        <option value="2" <?php 
if ($restaurante->metodoEntrega == 2) {
    echo 'selected="true"';
}
?>
>
                            <?php 
echo getTextoMetodoEntrega(2);
?>
                        </option>
                    </select>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Pedido Mínimo a domicilio</label>
                <div class="controls">
                    <input class="span11" type="text" name="pedidoMinimo" value="<?php 
echo $restaurante->pedidoMinimo;
?>
">
                </div>
            </div>
            <div class="control-group">
Example #2
0
<div style="margin-left: 15px;">
    <div class="row-fluid">
        <legend>Detalles del pedido</legend>
        <?php 
if (isset($platillos)) {
    $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>
Example #3
0
                    <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>';
}
?>
Example #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>';
 }