TableMsgs.php 731 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. Lib::loadClass('RouteBase');
  3. class Route_TableMsgs extends RouteBase {
  4. public function handleAuth() {
  5. if (!User::logged()) {
  6. User::authByRequest();
  7. }
  8. }
  9. public function defaultAction() {
  10. SE_Layout::gora();
  11. SE_Layout::menu();
  12. $this->menu();
  13. SE_Layout::dol();
  14. }
  15. public function menu() {
  16. $usrLogin = User::getLogin();
  17. $selectedLogin = $this->getSelectedLogin();
  18. ?>
  19. <ul>
  20. <li>TODO: ...</li>
  21. </ul>
  22. <?php
  23. }
  24. public function tableRowAction() {
  25. $idTable = V::get('idTable', 0, $_REQUEST, 'int');
  26. $idRow = V::get('idRow', 0, $_REQUEST, 'int');
  27. if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
  28. if ($idRow <= 0) throw new HttpException("Błęny numer tabeli", 400);
  29. }
  30. }