Sfoglia il codice sorgente

Merge branch 'feature-tbl-more-functions'

Piotr Labudda 10 anni fa
parent
commit
10877f2ee6
2 ha cambiato i file con 350 aggiunte e 108 eliminazioni
  1. 53 0
      SE/se-lib/Route/TableMsgs.php
  2. 297 108
      SE/se-lib/TableAjax.php

+ 53 - 0
SE/se-lib/Route/TableMsgs.php

@@ -0,0 +1,53 @@
+<?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
+	}
+
+}

File diff suppressed because it is too large
+ 297 - 108
SE/se-lib/TableAjax.php


Some files were not shown because too many files changed in this diff