Example #1
0
						</th>
						<th>
							CP
						</th>
                                                <th>
							DIRECCIÓN
						</th>
                                                <th>
							COMENSALES
						</th>
					</tr>
				</thead>
				<tbody>
                                    <?php 
$id_cliente = $_SESSION["cliente"]->getValue("id_cliente");
list($pedidos) = Pedidos::getByCliente($id_cliente);
foreach ($pedidos as $pedido) {
    echo "<tr>";
    echo "<td><a href='facturas/" . $pedido->getValueEncoded("id_pedido") . ".pdf'>Ver Pedido</a></td>";
    echo "<td>" . $pedido->getValueEncoded("fecha") . "</td>";
    echo "<td>" . $pedido->getValueEncoded("hora") . "</td>";
    echo "<td>" . $pedido->getValueEncoded("cp") . "</td>";
    echo "<td>" . $pedido->getValueEncoded("direccion") . "</td>";
    echo "<td>" . $pedido->getValueEncoded("comensales") . "</td>";
    echo "</tr>";
}
?>
				</tbody>
			</table>
		</div>
	</div>