diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index bca6911b5..1ab32dbd0 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -94,12 +94,11 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common { } /* }}} */ function globalBanner() { /* {{{ */ - global $settings; echo "
\n"; echo "
\n"; echo "
\n"; echo " \n"; echo "
\n"; echo "
\n"; @@ -108,7 +107,7 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common { echo "
\n"; echo "
\n"; echo "
". - (strlen($settings->_siteName)>0 ? $settings->_siteName : "LetoDMS"). + (strlen($this->param['sitename'])>0 ? $this->params['sitename'] : "LetoDMS"). "
\n"; echo "
 
\n". "\n"; @@ -117,49 +116,49 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common { } /* }}} */ function globalNavigation($folder=null) { /* {{{ */ - global $settings, $user, $session; - echo "
\n"; echo "
\n"; echo "
\n"; echo "
\n"; - echo " _rootFolderID."\">".(strlen($settings->_siteName)>0 ? $settings->_siteName : "LetoDMS")."\n"; - if($user) { + echo " params['rootfolderid']."\">".(strlen($this->params['sitename'])>0 ? $this->params['sitename'] : "LetoDMS")."\n"; + if($this->params['user']) { echo "
\n"; echo " \n"; echo " \n"; echo "
"; @@ -171,7 +170,7 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common { echo " "; echo " "; echo " "; - if($settings->_enableFullSearch) { + if($this->params['enablefullsearch']) { echo " "; } // echo " "; @@ -245,33 +244,30 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common { return; } /* }}} */ - function folderNavigationBar($folder) { /* {{{ */ - - global $user, $settings; - + private function folderNavigationBar($folder) { /* {{{ */ if (!is_object($folder) || strcasecmp(get_class($folder), "LetoDMS_Core_Folder")) { echo "
    \n"; echo "
\n"; return; } - $accessMode = $folder->getAccessMode($user); + $accessMode = $folder->getAccessMode($this->params['user']); $folderID = $folder->getID(); echo "
    \n"; echo "
  • ".getMLText("folder")."
  • \n"; - if ($accessMode == M_READ && !$user->isGuest()) { + if ($accessMode == M_READ && !$this->params['user']->isGuest()) { echo "
  • ".getMLText("edit_folder_notify")."
  • \n"; } else if ($accessMode >= M_READWRITE) { echo "
  • ".getMLText("add_subfolder")."
  • \n"; echo "
  • ".getMLText("add_document")."
  • \n"; - if($settings->_enableLargeFileUpload) + if($this->params['enablelargefileupload']) echo "
  • ".getMLText("add_multiple_documents")."
  • \n"; echo "
  • ".getMLText("edit_folder_props")."
  • \n"; - if ($folderID != $settings->_rootFolderID && $folder->getParent()) + if ($folderID != $this->params['rootfolderid'] && $folder->getParent()) echo "
  • ".getMLText("move_folder")."
  • \n"; if ($accessMode == M_ALL) { - if ($folderID != $settings->_rootFolderID && $folder->getParent()) + if ($folderID != $this->params['rootfolderid'] && $folder->getParent()) echo "
  • ".getMLText("rm_folder")."
  • \n"; } if ($accessMode == M_ALL) { @@ -283,11 +279,10 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common { return; } /* }}} */ - function documentNavigationBar() { /* {{{ */ - - global $user, $document; + private function documentNavigationBar() { /* {{{ */ + global $document; - $accessMode = $document->getAccessMode($user); + $accessMode = $document->getAccessMode($this->params['user']); $docid=".php?documentid=" . $document->getID(); echo "\n"; return; } /* }}} */ - function accountNavigationBar() { /* {{{ */ - - global $settings, $user; - + private function accountNavigationBar() { /* {{{ */ echo "
      \n"; - if (!$settings->_disableSelfEdit) echo "
    • ".getMLText("edit_user_details")."
    • \n"; + if (!$this->params['disableselfedit']) echo "
    • ".getMLText("edit_user_details")."
    • \n"; - if (!$user->isAdmin()) + if (!$this->params['user']->isAdmin()) echo "
    • ".getMLText("edit_default_keywords")."
    • \n"; echo "
    • ".getMLText("edit_existing_notify")."
    • \n"; - if ($settings->_enableUsersView){ + if ($this->params['enableusersview']){ echo "
    • ".getMLText("users")."
    • \n"; echo "
    • ".getMLText("groups")."
    • \n"; } @@ -341,7 +333,7 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common { return; } /* }}} */ - function myDocumentsNavigationBar() { /* {{{ */ + private function myDocumentsNavigationBar() { /* {{{ */ echo "
        \n"; echo "
      • ".getMLText("documents_in_process")."
      • \n"; @@ -352,10 +344,7 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common { return; } /* }}} */ - function adminToolsNavigationBar() { /* {{{ */ - - global $settings; - + private function adminToolsNavigationBar() { /* {{{ */ echo " \n"; - if($settings->_enableFullSearch) { + if($this->params['enablefullsearch']) { echo "
          \n"; echo "
        • \n"; echo " ".getMLText("fullsearch")."\n"; @@ -398,7 +387,7 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common { echo " ".getMLText("backup_log_management")."\n"; echo " \n"; echo "
        • \n"; @@ -420,17 +409,14 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common { return; } /* }}} */ - function calendarNavigationBar($d){ /* {{{ */ - - global $user; - + private function calendarNavigationBar($d){ /* {{{ */ $ds="&day=".$d[0]."&month=".$d[1]."&year=".$d[2]; echo "\n"; return; @@ -660,20 +646,19 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common { } /* }}} */ function printDocumentChooser($formName) { /* {{{ */ - global $settings; - ?> +?> "; + print ""; print "\n"; ?>