Commit f332e9ec0dc2f80edd8d65c4884b319f4f7fe4ae

Authored by Michael Joseph
1 parent 3edba33a

- moved dashboard to presentation/dashboardBL.php

- created look and feel directory for kt dms (presentation/knowledgeTree)
- created html building ui functions for dashboard
- added owl_ui_directory to $default
- added generic html building functions


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@398 c91229c3-7414-0410-bfa2-8a42b809f60b
config/dmsDefaults.php
@@ -14,6 +14,8 @@ require_once("environment.php"); @@ -14,6 +14,8 @@ require_once("environment.php");
14 14
15 $default->owl_graphics_url = $default->owl_root_url . "/graphics"; 15 $default->owl_graphics_url = $default->owl_root_url . "/graphics";
16 $default->owl_LangDir = $default->owl_fs_root . "/locale"; 16 $default->owl_LangDir = $default->owl_fs_root . "/locale";
  17 +// change this to reflect a directory with a different look and feel
  18 +$default->owl_ui_directory = $default->owl_fs_root . "/presentation/knowledgeTree";
17 19
18 // Set to true to use the file system to store documents, false only uses the database 20 // Set to true to use the file system to store documents, false only uses the database
19 $default->owl_use_fs = true; 21 $default->owl_use_fs = true;
@@ -133,7 +135,7 @@ $default->siteMap = new SiteMap(); @@ -133,7 +135,7 @@ $default->siteMap = new SiteMap();
133 $default->siteMap->addPage("login", "/login.php?loginAction=login", "General", "Anonymous"); 135 $default->siteMap->addPage("login", "/login.php?loginAction=login", "General", "Anonymous");
134 $default->siteMap->addPage("loginForm", "/login.php?loginAction=loginForm", "General", "Anonymous"); 136 $default->siteMap->addPage("loginForm", "/login.php?loginAction=loginForm", "General", "Anonymous");
135 $default->siteMap->addPage("logout", "/logout.php", "General", "Anonymous"); 137 $default->siteMap->addPage("logout", "/logout.php", "General", "Anonymous");
136 -$default->siteMap->addPage("dashboard", "/dashboard.php", "General", "Unit Administrators"); 138 +$default->siteMap->addPage("dashboard", "/presentation/dashboardBL.php", "General", "Unit Administrators");
137 $default->siteMap->addPage("browse", "/browse.php", "Browse Collections", "Anonymous"); 139 $default->siteMap->addPage("browse", "/browse.php", "Browse Collections", "Anonymous");
138 $default->siteMap->addPage("addFolder", "/addFolder.php", "Browse Collections", "Unit Administrators"); 140 $default->siteMap->addPage("addFolder", "/addFolder.php", "Browse Collections", "Unit Administrators");
139 $default->siteMap->addPage("addUser", "/addUser.php", "Administration", "Unit Administrators"); 141 $default->siteMap->addPage("addUser", "/addUser.php", "Administration", "Unit Administrators");
presentation/Html.inc 0 → 100644
  1 +<?php
  2 +/**
  3 + * $Id$
  4 + *
  5 + * Generic html building functions.
  6 + *
  7 + * Licensed under the GNU GPL. For full terms see the file COPYING.
  8 + *
  9 + * @version $Revision$
  10 + * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
  11 + * @package presentation
  12 + */
  13 +
  14 +function startTable($border, $width) {
  15 + return "<table border=\"$border\" width=\"$width\">";
  16 +}
  17 +
  18 +function stopTable() {
  19 + return "</table>";
  20 +}
  21 +
  22 +function tableRow($align, $bgcolor, $html) {
  23 + return "<tr align=\"$align\" bgcolor=\"$bgcolor\">$html</tr>";
  24 +}
  25 +
  26 +function tableData($html) {
  27 + return "<td>$html</td>";
  28 +}
  29 +
  30 +function startTableRowCell() {
  31 + return "<tr><td>";
  32 +}
  33 +
  34 +function endTableRowCell() {
  35 + return "</td></tr>";
  36 +}
  37 +
  38 +?>
dashboard.php renamed to presentation/dashboardBL.php
1 <?php 1 <?php
2 2
3 // main library routines and defaults 3 // main library routines and defaults
4 -require_once("./config/dmsDefaults.php");  
5 -require_once("$default->owl_fs_root/presentation/DashboardUI.inc"); 4 +require_once("../config/dmsDefaults.php");
  5 +require_once("$default->owl_ui_directory/dashboardUI.inc");
6 require_once("$default->owl_fs_root/lib/visualpatterns/PatternMainPage.inc"); 6 require_once("$default->owl_fs_root/lib/visualpatterns/PatternMainPage.inc");
7 require_once("$default->owl_fs_root/lib/visualpatterns/PatternImage.inc"); 7 require_once("$default->owl_fs_root/lib/visualpatterns/PatternImage.inc");
8 require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableLinks.inc"); 8 require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableLinks.inc");