Esempio n. 1
0
 /**
  * Controller-Processing
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $fileList = new \fpcm\model\files\imagelist();
     $page = $this->getRequestVar('page', array(9));
     $list = $fileList->getDatabaseList($this->config->file_list_limit, \fpcm\classes\tools::getPageOffset($page, $this->config->file_list_limit));
     $pagerData = \fpcm\classes\tools::calcPagination($this->config->file_list_limit, $page, $fileList->getDatabaseFileCount(), count($list));
     $list = $this->events->runEvent('reloadFileList', $list);
     $userList = new \fpcm\model\users\userList();
     $this->initViewAssigns($list, $userList->getUsersAll(), $pagerData);
     $this->initPermissions();
     $this->view->initAssigns();
     $this->view->render();
 }
Esempio n. 2
0
 /**
  * Seitenvaigation erzeugen
  */
 protected function initPagination()
 {
     $this->view->assign('backBtn', false);
     $this->view->assign('nextBtn', false);
     $this->view->assign('listActionLimit', '');
     $page = $this->getRequestVar('page', array(9));
     $pagerData = \fpcm\classes\tools::calcPagination($this->listShowLimit, $page, $this->articleCount, count($this->articleItems));
     $this->listShowStart = \fpcm\classes\tools::getPageOffset($page, $this->listShowLimit);
     $this->view->assign('showPager', true);
     foreach ($pagerData as $key => $value) {
         $this->view->assign($key, $value);
     }
     $this->view->addJsVars(array('fpcmCurrentModule' => $this->getRequestVar('module')));
 }
Esempio n. 3
0
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $loadAjax = $this->fileList->getDatabaseFileCount() >= 1 ? true : false;
     $this->view->assign('loadAjax', $loadAjax);
     $this->view->addJsVars(array('fpcmBaseUrl' => \fpcm\classes\baseconfig::$rootPath, 'fpcmFmgrMode' => $this->mode, 'fpcmEditorType' => $this->config->system_editor, 'fpcmJqUploadInit' => $this->config->file_uploader_new));
     $this->view->addJsLangVars(array('newNameMsg' => $this->lang->translate('FILE_LIST_RENAME_NEWNAME')));
     $this->view->assign('newUploader', $this->config->file_uploader_new);
     $this->view->assign('jquploadPath', \fpcm\classes\loader::libGetFileUrl('jqupload'));
     $this->view->setViewJsFiles(array(\fpcm\classes\baseconfig::$jsPath . 'filemanager.js'));
     if ($this->config->file_uploader_new) {
         $this->view->assign('actionPath', \fpcm\classes\baseconfig::$rootPath . $this->getControllerLink('ajax/jqupload'));
     } else {
         $this->view->assign('actionPath', \fpcm\classes\baseconfig::$rootPath . $this->getControllerLink('files/list', array('mode' => $this->mode)));
         $translInfo = array('{{filecount}}' => ini_get("max_file_uploads"), '{{filesize}}' => \fpcm\classes\tools::calcSize(\fpcm\classes\baseconfig::uploadFilesizeLimit(true), 0));
         $this->view->assign('maxFilesInfo', $this->lang->translate('FILE_LIST_PHPMAXINFO', $translInfo));
     }
     $this->initViewAssigns(array(), array(), \fpcm\classes\tools::calcPagination(1, 1, 0, 0));
     $this->initPermissions();
     $this->view->render();
 }