* @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2012 Uwe Steinmann * @version Release: @package_version@ */ /** * Include parent class */ require_once("class.Bootstrap.php"); /** * Class which outputs the html page for Charts view * * @category DMS * @package SeedDMS * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann * @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2012 Uwe Steinmann * @version Release: @package_version@ */ class SeedDMS_View_Charts extends SeedDMS_Bootstrap_Style { var $dms; var $folder_count; var $document_count; var $file_count; var $storage_size; function show() { /* {{{ */ $this->dms = $this->params['dms']; $user = $this->params['user']; $rootfolder = $this->params['rootfolder']; $data = $this->params['data']; $type = $this->params['type']; $this->htmlAddHeader( ''."\n". ''."\n". ''."\n". ''."\n"); $this->htmlStartPage(getMLText("folders_and_documents_statistic")); $this->globalNavigation(); $this->contentStart(); $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); ?> \n"; echo "
\n"; $this->contentHeading(getMLText("chart_selection")); echo "
\n"; foreach(array('docsperuser', 'sizeperuser', 'docspermimetype', 'docspercategory', 'docsperstatus', 'docspermonth', 'docsaccumulated') as $atype) { echo "
".getMLText('chart_'.$atype.'_title')."
\n"; } echo "
\n"; echo "
\n"; if(in_array($type, array('docspermonth', 'docsaccumulated'))) { echo "
\n"; } else { echo "
\n"; } $this->contentHeading(getMLText('chart_'.$type.'_title')); echo "
\n"; ?>
\n"; echo "
\n"; if(!in_array($type, array('docspermonth', 'docsaccumulated'))) { echo "
\n"; $this->contentHeading(getMLText('legend')); echo "
\n"; echo "
\n"; echo "
\n"; } echo "
\n"; ?> contentContainerEnd(); $this->htmlEndPage(); } /* }}} */ } ?>