CAMP part 1, registration, apply, new login screen, wide layout
This commit is contained in:
@@ -38,6 +38,11 @@ class page {
|
||||
$menu_assoc_array = $sql->assoc_array($menus_query);
|
||||
$smarty->assign('menus', $menu_assoc_array);
|
||||
}
|
||||
elseif ($this->get_page() == 'tabor') {
|
||||
$menus_query = "SELECT * FROM subpage WHERE spage_page_id = 4;";
|
||||
$menu_assoc_array = $sql->assoc_array($menus_query);
|
||||
$smarty->assign('menus', $menu_assoc_array);
|
||||
}
|
||||
|
||||
$smarty->assign('page', $this->get_page());
|
||||
$smarty->display('nav.tpl');
|
||||
@@ -173,6 +178,30 @@ class page {
|
||||
# BIZTONSÁGI MENTÉS LETÖLTÉS
|
||||
include('include_download_backup.php');
|
||||
break;
|
||||
case 'camps':
|
||||
# TÁBOROK
|
||||
include('include_camps.php');
|
||||
break;
|
||||
case 'camp_types':
|
||||
# TÁBOR TÍPUSOK
|
||||
include('include_camp_types.php');
|
||||
break;
|
||||
case 'camp_shirt_type':
|
||||
# TÁBOR PÓLÓ TÍPUSOK
|
||||
include('include_camp_shirt_types.php');
|
||||
break;
|
||||
case 'accept_apply':
|
||||
# TÁBOR JELENTKEZÉS ELFOGADÁSA
|
||||
include('include_accept_apply.php');
|
||||
break;
|
||||
case 'deny_apply':
|
||||
# TÁBOR JELENTKEZÉS ELUTASÍTÁSA
|
||||
include('include_deny_apply.php');
|
||||
break;
|
||||
case 'apply':
|
||||
# TÁBORI JELENTKEZŐ ADATAINAK MEGTEKINTÉSE
|
||||
include('include_apply.php');
|
||||
break;
|
||||
case 'delete_training_type':
|
||||
# EDZÉS TÍPUS TÖRLÉS
|
||||
include('include_delete_training_type.php');
|
||||
@@ -213,10 +242,22 @@ class page {
|
||||
# MENTÉS TÖRLÉS
|
||||
include('include_delete_backup.php');
|
||||
break;
|
||||
case 'delete_camp_type':
|
||||
# TÁBOR TÍPUS TÖRLÉS
|
||||
include('include_delete_camp_type.php');
|
||||
break;
|
||||
case 'delete_camp':
|
||||
# TÁBOR TÖRLÉS
|
||||
include('include_delete_camp.php');
|
||||
break;
|
||||
case 'delete_camp_shirt':
|
||||
# TÁBORI PÓLÓ TÖRLÉS
|
||||
include('include_delete_camp_shirt.php');
|
||||
break;
|
||||
case 'logout':
|
||||
# kijelentkezés
|
||||
$from = "admin";
|
||||
include('include_logout.php');
|
||||
include('include_logout.php');
|
||||
break;
|
||||
default:
|
||||
# code...
|
||||
@@ -302,8 +343,32 @@ class page {
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'tabor':
|
||||
# TÁBOR OLDALAK
|
||||
switch ($this->get_subpage()) {
|
||||
case 'informaciok':
|
||||
# tábori információk
|
||||
include('include_camp_information.php');
|
||||
break;
|
||||
case 'jelentkezes':
|
||||
# jelentkezés
|
||||
include('include_camp_apply.php');
|
||||
break;
|
||||
case 'jelentkezesek':
|
||||
# jelentkezés
|
||||
include('include_camp_applies.php');
|
||||
break;
|
||||
case 'logout':
|
||||
# kijelentkezés
|
||||
$from = "tabor";
|
||||
include('include_logout.php');
|
||||
break;
|
||||
default:
|
||||
include('include_camp_information.php');
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
# code...
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -311,7 +376,16 @@ class page {
|
||||
else {
|
||||
//nincs bejelentkezve
|
||||
$smarty->assign("page", $this->get_page());
|
||||
$smarty->display("login.tpl");
|
||||
if ('tabor' == $this->get_page() && $this->is_subpage() && 'regisztracio' == $this->get_subpage()) {
|
||||
if (isset($_COOKIE['bc_reg_error'])) {
|
||||
$smarty->assign('error_code', $_COOKIE['bc_reg_error']);
|
||||
setcookie('bc_reg_error', null, time()-60*60);
|
||||
}
|
||||
$smarty->display("register.tpl");
|
||||
}
|
||||
else {
|
||||
$smarty->display("login.tpl");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user