Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ob_start();
- class PedidosController {
- public function getPedidosController(){
- $respuesta = PedidosModel::getPedidosModel('pedidos');
- foreach ($respuesta as $row) {
- echo '<tr>
- <td align="center"> '. $row['mesa'].'</td>
- <td align="center"> '. $row['nombreproducto'].'</td>
- <td align="center"> '. $row['cantidad'].'</td>
- <td align="center"> '. $row['estadopedido'].'</td>
- <td align="center">
- <form method="post">
- <select name="cambia_estado" onchange="this.form.submit();">
- <option value="0">PENDIENTE</option>
- <option value="1">PROCESANDO</option>
- <option value="2">LISTO</option>
- </select>
- </form>
- </td>
- </tr>';
- }
- }
- /*public function deletePedidosController(){
- if (isset($_GET['idBorrar'])) {
- $datosController = $_GET['idBorrar'];
- #pedir la informacion al modelo.
- $respuesta = PedidosModel::deletePedidosModel($datosController,'pedidos');
- if ($respuesta == 'success') {
- header('location:borrarPedidos');
- }
- }
- }*/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement