small edits

This commit is contained in:
Tóth Richárd
2019-07-30 13:54:27 +02:00
parent 27522d0053
commit e0e887542b
5 changed files with 5 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ class page {
OR ua_authority_a_id = 1)
WHERE
spage_page_id = 1
AND ua_user_kid_uk_id = " . $user->get_ua_id() .";
AND ua_user_kid_uk_id = " . $user->get_ua_id() ." ORDER BY spage_id ASC;
";
}
else {

View File

@@ -13,7 +13,7 @@ if ($this->is_id()) {
//smarty thingz
$a_assoc_array = $sql->assoc_array('SELECT * FROM authority');
$a_assoc_array = $sql->assoc_array('SELECT * FROM authority ORDER BY a_title ASC;');
$a_array = array();
foreach ($a_assoc_array as $key => $a) {

View File

@@ -155,6 +155,7 @@ $structure = array(
'money_income'
),
'settings' => array(),
'news' => array(),
'exception' => array(
'logout'
),

View File

@@ -28,4 +28,5 @@ INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('coaches', 'Edzők');
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('money_deposit', 'Befizetések');
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('money_expense', 'Kiadások');
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('money_income', 'Bevételek');
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('news', 'Hírek');
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('settings', 'Beállítások');

View File

@@ -7,7 +7,7 @@ CREATE TABLE `news` (
`n_deleted` INT NULL DEFAULT 0,
PRIMARY KEY (`n_id`));
INSERT INTO `subpage` (`spage_url`, `spage_title`, `spage_page_id`) VALUES ('news', 'Információk', '1');
INSERT INTO `subpage` (`spage_url`, `spage_title`, `spage_page_id`) VALUES ('news', 'Hírek', '1');
INSERT INTO `log_category` (`logc_name`, `logc_title`, `logc_type`, `logc_table`, `logc_field`, `logc_selector`) VALUES ('new_news', 'Új hír', '1', 'news', 'n_title', 'n_id');
INSERT INTO `log_category` (`logc_name`, `logc_title`, `logc_type`, `logc_table`, `logc_field`, `logc_selector`) VALUES ('update_news', 'Hír módosítása', '1', 'news', 'n_title', 'n_id');