| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- Lib::loadClass('RouteBase');
- class Route_TableMsgs extends RouteBase {
- public function handleAuth() {
- if (!User::logged()) {
- User::authByRequest();
- }
- }
- public function defaultAction() {
- SE_Layout::gora();
- SE_Layout::menu();
- $this->menu();
- SE_Layout::dol();
- }
- public function menu() {
- $usrLogin = User::getLogin();
- ?>
- <ul>
- <li>TODO: ...</li>
- </ul>
- <?php
- }
- public function tableRowAction() {
- $idTable = V::get('idTable', 0, $_REQUEST, 'int');
- $idRow = V::get('idRow', 0, $_REQUEST, 'int');
- if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
- if ($idRow <= 0) throw new HttpException("Błęny numer tabeli", 400);
- SE_Layout::gora();
- SE_Layout::menu();
- $this->tableRowMsgs();
- SE_Layout::dol();
- }
- public function tableRowMsgs($idTable, $idRow) {
- ?>
- <div class="container">
- <h3>Wiadomości powiązane z rekordem [<?php echo $idRow; ?>] z tabeli [<?php echo $idTable; ?>]</h3>
- </div>
- <?php
- }
- }
|