Advertisement
Guest User

Untitled

a guest
Aug 15th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <?php
  2. ob_start();
  3.  
  4. class PedidosController {
  5.  
  6. public function getPedidosController(){
  7. $respuesta = PedidosModel::getPedidosModel('pedidos');
  8.  
  9. foreach ($respuesta as $row) {
  10. echo '<tr>
  11. <td align="center"> '. $row['mesa'].'</td>
  12. <td align="center"> '. $row['nombreproducto'].'</td>
  13. <td align="center"> '. $row['cantidad'].'</td>
  14. <td align="center"> '. $row['estadopedido'].'</td>
  15. <td align="center">
  16. <form method="post">
  17. <select name="cambia_estado" onchange="this.form.submit();">
  18. <option value="0">PENDIENTE</option>
  19. <option value="1">PROCESANDO</option>
  20. <option value="2">LISTO</option>
  21. </select>
  22. </form>
  23.  
  24. </td>
  25.  
  26.  
  27.  
  28. </tr>';
  29.  
  30.  
  31. }
  32. }
  33.  
  34.  
  35.  
  36. /*public function deletePedidosController(){
  37.  
  38. if (isset($_GET['idBorrar'])) {
  39. $datosController = $_GET['idBorrar'];
  40.  
  41. #pedir la informacion al modelo.
  42. $respuesta = PedidosModel::deletePedidosModel($datosController,'pedidos');
  43. if ($respuesta == 'success') {
  44. header('location:borrarPedidos');
  45. }
  46. }
  47. }*/
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement