From e0e887542b66e12bcd6236762b9773943f6d4311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3th=20Rich=C3=A1rd?= Date: Tue, 30 Jul 2019 13:54:27 +0200 Subject: [PATCH] small edits --- _class/class_page.php | 2 +- _include/include_coaches.php | 2 +- common.php | 1 + queries/authority_20190725.sql | 1 + queries/news_20190729.sql | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/_class/class_page.php b/_class/class_page.php index c1a0221..f571675 100644 --- a/_class/class_page.php +++ b/_class/class_page.php @@ -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 { diff --git a/_include/include_coaches.php b/_include/include_coaches.php index eca9a02..7aa4abe 100644 --- a/_include/include_coaches.php +++ b/_include/include_coaches.php @@ -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) { diff --git a/common.php b/common.php index b665863..0daabf5 100644 --- a/common.php +++ b/common.php @@ -155,6 +155,7 @@ $structure = array( 'money_income' ), 'settings' => array(), + 'news' => array(), 'exception' => array( 'logout' ), diff --git a/queries/authority_20190725.sql b/queries/authority_20190725.sql index 69ab02b..c33df1c 100644 --- a/queries/authority_20190725.sql +++ b/queries/authority_20190725.sql @@ -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'); diff --git a/queries/news_20190729.sql b/queries/news_20190729.sql index bb0c04a..71f10df 100644 --- a/queries/news_20190729.sql +++ b/queries/news_20190729.sql @@ -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');