Commit 8ddc155e4d73268b8401f7ed8230d948aeb70186
1 parent
9daf24eb
updated to use webpage template
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@497 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
32 deletions
presentation/dashboardBL.php
| @@ -3,11 +3,6 @@ | @@ -3,11 +3,6 @@ | ||
| 3 | // main library routines and defaults | 3 | // main library routines and defaults |
| 4 | require_once("../config/dmsDefaults.php"); | 4 | require_once("../config/dmsDefaults.php"); |
| 5 | require_once("$default->owl_ui_directory/dashboardUI.inc"); | 5 | require_once("$default->owl_ui_directory/dashboardUI.inc"); |
| 6 | -require_once("$default->owl_fs_root/lib/visualpatterns/PatternMainPage.inc"); | ||
| 7 | -require_once("$default->owl_fs_root/lib/visualpatterns/PatternImage.inc"); | ||
| 8 | -require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableLinks.inc"); | ||
| 9 | -require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableSqlQuery.inc"); | ||
| 10 | -require_once("$default->owl_fs_root/lib/visualpatterns/PatternCustom.inc"); | ||
| 11 | 6 | ||
| 12 | /** | 7 | /** |
| 13 | * $Id$ | 8 | * $Id$ |
| @@ -28,25 +23,9 @@ require_once("$default->owl_fs_root/lib/visualpatterns/PatternCustom.inc"); | @@ -28,25 +23,9 @@ require_once("$default->owl_fs_root/lib/visualpatterns/PatternCustom.inc"); | ||
| 28 | // ------------------------------- | 23 | // ------------------------------- |
| 29 | 24 | ||
| 30 | if (checkSession()) { | 25 | if (checkSession()) { |
| 31 | - // create a page | 26 | + // include the page template (with navbar) |
| 27 | + require_once("webpageTemplate.inc"); | ||
| 32 | 28 | ||
| 33 | - // logo | ||
| 34 | - $img = new PatternImage("$default->owl_root_url/locale/$default->owl_lang/graphics/$default->logo"); | ||
| 35 | - $img->setImgSize(238, 178); | ||
| 36 | - | ||
| 37 | - // build the top menu of links | ||
| 38 | - // TODO: this is a function of the sitemap | ||
| 39 | - // get list of sections | ||
| 40 | - $aTopMenuLinks = array(generateControllerUrl("dashboard"), generateControllerUrl("browse"), generateControllerUrl("subscriptions"), | ||
| 41 | - generateControllerUrl("search"), generateControllerUrl("administration"), generateControllerUrl("preferences"), | ||
| 42 | - generateControllerUrl("documentBrowserTest"), generateControllerUrl("logout")); | ||
| 43 | - $aTopMenuText = array("Dashboard", "Browse Documents", "Subscriptions", "Advanced Search", "Administration", "Preferences", "Help", "Logout"); | ||
| 44 | - $aTopMenuImages = array("$default->owl_graphics_url/dashboard.jpg", "$default->owl_graphics_url/browse.jpg", | ||
| 45 | - "$default->owl_graphics_url/subscriptions.jpg", "$default->owl_graphics_url/search.jpg", | ||
| 46 | - "$default->owl_graphics_url/administration.jpg", "$default->owl_graphics_url/preferences.jpg", | ||
| 47 | - "$default->owl_graphics_url/help.jpg", "$default->owl_graphics_url/logout.jpg"); | ||
| 48 | - | ||
| 49 | - $oPatternTableLinks = new PatternTableLinks($aTopMenuLinks, null, 1, 8, 2, $aTopMenuImages); | ||
| 50 | 29 | ||
| 51 | $sHtml = startTable("0", "100%") . | 30 | $sHtml = startTable("0", "100%") . |
| 52 | // pending documents | 31 | // pending documents |
| @@ -109,15 +88,8 @@ if (checkSession()) { | @@ -109,15 +88,8 @@ if (checkSession()) { | ||
| 109 | $oContent = new PatternCustom(); | 88 | $oContent = new PatternCustom(); |
| 110 | $oContent->setHtml($sHtml); | 89 | $oContent->setHtml($sHtml); |
| 111 | 90 | ||
| 112 | - /* get a page */ | ||
| 113 | - $tmp = new PatternMainPage(); | ||
| 114 | - | ||
| 115 | - /* put the page together */ | ||
| 116 | - $tmp->setNorthWestPayload($img); | ||
| 117 | - $tmp->setNorthPayload($oPatternTableLinks); | ||
| 118 | - $tmp->setCentralPayload($oContent); | ||
| 119 | - $tmp->setFormAction("dashboard.php"); | ||
| 120 | - $tmp->render(); | 91 | + $main->setCentralPayload($oContent); |
| 92 | + $main->render(); | ||
| 121 | 93 | ||
| 122 | } else { | 94 | } else { |
| 123 | // redirect to no permission page | 95 | // redirect to no permission page |