parent preview

This commit is contained in:
Ricsi
2017-02-21 18:56:24 +01:00
parent 5cf5c7f540
commit 803936e551
9 changed files with 60 additions and 45 deletions

View File

@@ -28,7 +28,7 @@ class page {
$menu_assoc_array = $sql->assoc_array($menus_query);
$smarty->assign('menus', $menu_assoc_array);
}
elseif ($this->get_page() == 'view') {
elseif ($this->get_page() == 'view' || $this->get_page() == 'preview') {
$menus_query = "SELECT * FROM subpage WHERE spage_page_id = 2;";
$menu_assoc_array = $sql->assoc_array($menus_query);
$smarty->assign('menus', $menu_assoc_array);
@@ -240,6 +240,26 @@ class page {
break;
}
break;
case 'preview':
# SZÜLŐI OLDAL ELŐNÉZET
switch ($this->get_subpage()) {
case 'overview':
# áttekintő oldal adatokkal
include('include_overview.php');
break;
case 'diary':
# napló, edzéslista
include('include_diary.php');
break;
case 'information':
# információk
include('include_information.php');
break;
default:
include('include_diary.php');
break;
}
break;
default:
# code...
break;