|
@@ -15,12 +15,12 @@ class Route_TableMsgs extends RouteBase {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function defaultAction() {
|
|
public function defaultAction() {
|
|
|
- SE_Layout::gora();
|
|
|
|
|
- SE_Layout::menu();
|
|
|
|
|
|
|
+ UI::gora();
|
|
|
|
|
+ UI::menu();
|
|
|
|
|
|
|
|
$this->menu();
|
|
$this->menu();
|
|
|
|
|
|
|
|
- SE_Layout::dol();
|
|
|
|
|
|
|
+ UI::dol();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function menu() {
|
|
public function menu() {
|
|
@@ -38,16 +38,16 @@ class Route_TableMsgs extends RouteBase {
|
|
|
if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
|
|
if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
|
|
|
if ($idRow <= 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();
|
|
|
|
|
|
|
+ UI::gora();
|
|
|
|
|
+ UI::menu();
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
$this->tableRowMsgs($idTable, $idRow);
|
|
$this->tableRowMsgs($idTable, $idRow);
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
- SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
|
|
|
|
+ UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- SE_Layout::dol();
|
|
|
|
|
|
|
+ UI::dol();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function tableRowMsgs($idTable, $idRow) {
|
|
public function tableRowMsgs($idTable, $idRow) {
|
|
@@ -97,7 +97,7 @@ class Route_TableMsgs extends RouteBase {
|
|
|
</small>
|
|
</small>
|
|
|
</h3>
|
|
</h3>
|
|
|
<?php if ($createdId > 0) : ?>
|
|
<?php if ($createdId > 0) : ?>
|
|
|
- <?php echo SE_Layout::alert('info', "Wysłano wiadomość nr '{$createdId}'"); ?>
|
|
|
|
|
|
|
+ <?php echo UI::alert('info', "Wysłano wiadomość nr '{$createdId}'"); ?>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<div>
|
|
<div>
|
|
@@ -609,18 +609,18 @@ function tblMsgsLoadMoreRows(n) {
|
|
|
if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
|
|
if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
|
|
|
if ($idRow <= 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();
|
|
|
|
|
|
|
+ UI::gora();
|
|
|
|
|
+ UI::menu();
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
$msg = $this->_getMsg($idMsg, $idTable, $idRow);
|
|
$msg = $this->_getMsg($idMsg, $idTable, $idRow);
|
|
|
$this->_markAsRead($msg);
|
|
$this->_markAsRead($msg);
|
|
|
$this->viewMsg($msg);
|
|
$this->viewMsg($msg);
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
- SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
|
|
|
|
+ UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- SE_Layout::dol();
|
|
|
|
|
|
|
+ UI::dol();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function viewAction() {
|
|
public function viewAction() {
|
|
@@ -631,17 +631,17 @@ function tblMsgsLoadMoreRows(n) {
|
|
|
if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
|
|
if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
|
|
|
if ($idRow <= 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();
|
|
|
|
|
|
|
+ UI::gora();
|
|
|
|
|
+ UI::menu();
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
$msg = $this->_getMsg($idMsg, $idTable, $idRow);
|
|
$msg = $this->_getMsg($idMsg, $idTable, $idRow);
|
|
|
$this->viewMsg($msg);
|
|
$this->viewMsg($msg);
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
- SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
|
|
|
|
+ UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- SE_Layout::dol();
|
|
|
|
|
|
|
+ UI::dol();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function _getMsg($idMsg, $idTable, $idRow) {
|
|
public function _getMsg($idMsg, $idTable, $idRow) {
|
|
@@ -741,16 +741,16 @@ function tblMsgsLoadMoreRows(n) {
|
|
|
if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
|
|
if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
|
|
|
if ($idRow <= 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();
|
|
|
|
|
|
|
+ UI::gora();
|
|
|
|
|
+ UI::menu();
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
$msg = $this->_getMsg($idMsg, $idTable, $idRow);
|
|
$msg = $this->_getMsg($idMsg, $idTable, $idRow);
|
|
|
$msgsRoute = Router::getRoute('Msgs');
|
|
$msgsRoute = Router::getRoute('Msgs');
|
|
|
$msgsRoute->removeTableRecordMsg($idMsg);
|
|
$msgsRoute->removeTableRecordMsg($idMsg);
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
- SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
|
|
- SE_Layout::dol();
|
|
|
|
|
|
|
+ UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
|
|
+ UI::dol();
|
|
|
exit;
|
|
exit;
|
|
|
}
|
|
}
|
|
|
?>
|
|
?>
|
|
@@ -760,7 +760,7 @@ function tblMsgsLoadMoreRows(n) {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<?php
|
|
<?php
|
|
|
- SE_Layout::dol();
|
|
|
|
|
|
|
+ UI::dol();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|