updates and restart camps

This commit is contained in:
Tóth Richárd
2018-05-03 20:27:35 +02:00
parent 392b484666
commit a249c20433
38 changed files with 1153 additions and 235 deletions

81
_class/class_page.php Executable file → Normal file
View File

@@ -9,10 +9,10 @@
class page {
private $page = null;
private $subpage = null;
private $id = null;
private $id = null;
function __construct() {
if (isset($_GET['page'])) $this->set_page($_GET['page']);
@@ -48,7 +48,7 @@ class page {
$menu_assoc_array = $sql->assoc_array($menus_query);
$smarty->assign('menus', $menu_assoc_array);
}
$smarty->assign('page', $this->get_page());
$smarty->display('nav.tpl');
}
@@ -142,16 +142,16 @@ class page {
break;
case 'log':
# NAPLÓ
include('include_log.php');
include('include_log.php');
break;
case 'money_deposit':
# BEFIZETÉSEK
include('include_money_deposit.php');
include('include_money_deposit.php');
break;
case 'lock_training':
# EDZÉS ZÁROLÁS, FELOLDÁS
include('include_lock_training.php');
break;
break;
case 'view_deposit':
# BEFIZETÉSEK / USER
include('include_view_deposit.php');
@@ -164,6 +164,14 @@ class page {
# KIADÁS KATEGÓRIÁK
include('include_money_expense_category.php');
break;
case 'money_income_category':
# BEVÉTEL KATEGÓRIÁK
include('include_money_income_category.php');
break;
case 'money_income':
# BEVÉTELEK
include('include_money_income.php');
break;
case 'money_update':
# FRISSÍTÉS
include('include_money_update.php');
@@ -181,15 +189,15 @@ class page {
break;
case 'download_backup':
# BIZTONSÁGI MENTÉS LETÖLTÉS
include('include_download_backup.php');
include('include_download_backup.php');
break;
case 'camps':
# TÁBOROK
include('include_camps.php');
include('include_camps.php');
break;
case 'camp_types':
# TÁBOR TÍPUSOK
include('include_camp_types.php');
include('include_camp_types.php');
break;
case 'camp_shirt_type':
# TÁBOR PÓLÓ TÍPUSOK
@@ -201,27 +209,27 @@ class page {
break;
case 'deny_apply':
# TÁBOR JELENTKEZÉS ELUTASÍTÁSA
include('include_deny_apply.php');
include('include_deny_apply.php');
break;
case 'remove_apply':
# TÁBOR JELENTKEZÉS ELTÁVOLÍTÁSA A LISTÁBÓL
include('include_remove_apply.php');
include('include_remove_apply.php');
break;
case 'apply':
# TÁBORI JELENTKEZŐ ADATAINAK MEGTEKINTÉSE
include('include_apply.php');
include('include_apply.php');
break;
case 'camp_user':
# táborvezetők
include('include_user_camp_leader.php');
include('include_user_camp_leader.php');
break;
case 'camp_details':
# turnusok
include('include_camp_details.php');
include('include_camp_details.php');
break;
case 'user_groups':
# csoportok
include('include_user_groups.php');
include('include_user_groups.php');
break;
case 'delete_training_type':
# EDZÉS TÍPUS TÖRLÉS
@@ -259,6 +267,14 @@ class page {
# BEFIZETÉS TÖRLÉS
include('include_delete_money_expense.php');
break;
case 'delete_money_income_category':
# BEVÉTEL KATEGÓRIA TÖRLÉS
include('include_delete_money_income_category.php');
break;
case 'delete_money_income':
# BEVÉTEL TÖRLÉS
include('include_delete_money_income.php');
break;
case 'delete_backup':
# MENTÉS TÖRLÉS
include('include_delete_backup.php');
@@ -283,6 +299,9 @@ class page {
# CSOPORT TÖRLÉS
include('include_delete_user_group.php');
break;
case 'diary_report':
include('include_diary_report.php');
break;
case 'logout':
# kijelentkezés
$from = "admin";
@@ -304,15 +323,15 @@ class page {
case 'logout':
# kijelentkezés
$from = "view";
include('include_logout.php');
include('include_logout.php');
break;
case 'overview':
# áttekintő oldal adatokkal
include('include_overview.php');
include('include_overview.php');
break;
case 'diary':
# napló, edzéslista
include('include_diary.php');
include('include_diary.php');
break;
case 'information':
# információk
@@ -328,11 +347,11 @@ class page {
switch ($this->get_subpage()) {
case 'overview':
# áttekintő oldal adatokkal
include('include_overview.php');
include('include_overview.php');
break;
case 'diary':
# napló, edzéslista
include('include_diary.php');
include('include_diary.php');
break;
case 'information':
# információk
@@ -348,12 +367,12 @@ class page {
switch ($this->get_subpage()) {
case 'diary':
# napló, edzéslista
include('include_coach_diary.php');
include('include_coach_diary.php');
break;
case 'logout':
# kijelentkezés
$from = "coach";
include('include_logout.php');
include('include_logout.php');
break;
default:
include('include_coach_diary.php');
@@ -365,7 +384,7 @@ class page {
switch ($this->get_subpage()) {
case 'diary':
# napló, edzéslista
include('include_coach_diary.php');
include('include_coach_diary.php');
break;
default:
include('include_coach_diary.php');
@@ -377,15 +396,15 @@ class page {
switch ($this->get_subpage()) {
case 'informaciok':
# tábori információk
include('include_camp_information.php');
include('include_camp_information.php');
break;
case 'jelentkezes':
# jelentkezés
include('include_camp_apply.php');
include('include_camp_apply.php');
break;
case 'jelentkezesek':
# jelentkezések
include('include_camp_applies.php');
include('include_camp_applies.php');
break;
case 'move_next':
# továbblépés mentés nélkül
@@ -394,11 +413,11 @@ class page {
case 'logout':
# kijelentkezés
$from = "tabor";
include('include_logout.php');
include('include_logout.php');
break;
case 'delete_apply':
# jelentkezés törlése
include('include_delete_apply.php');
include('include_delete_apply.php');
break;
default:
include('include_camp_information.php');
@@ -410,11 +429,11 @@ class page {
switch ($this->get_subpage()) {
case 'taborok':
# turnusok
include('include_camp_details.php');
include('include_camp_details.php');
break;
case 'jelentkezes':
# turnusok
include('include_apply.php');
include('include_apply.php');
break;
case 'logout':
# kijelentkezés
@@ -494,4 +513,4 @@ class page {
?>
?>