mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
162 lines
7.0 KiB
PHP
162 lines
7.0 KiB
PHP
<?php
|
|
/**
|
|
* Implementation of AdminTools view
|
|
*
|
|
* @category DMS
|
|
* @package SeedDMS
|
|
* @license GPL 2
|
|
* @version @version@
|
|
* @author Uwe Steinmann <uwe@steinmann.cx>
|
|
* @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 AdminTools view
|
|
*
|
|
* @category DMS
|
|
* @package SeedDMS
|
|
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
|
* @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_AdminTools extends SeedDMS_Bootstrap_Style {
|
|
|
|
static function wrapRow($content) { /* {{{ */
|
|
return '<div class="row-fluid">'.$content.'</div>';
|
|
} /* }}} */
|
|
|
|
static function rowButton($link, $icon, $label) { /* {{{ */
|
|
return '<a href="'.$link.'" class="span3 btn btn-medium"><i class="icon-'.$icon.'"></i><br />'.getMLText($label).'</a>';
|
|
} /* }}} */
|
|
|
|
function show() { /* {{{ */
|
|
$dms = $this->params['dms'];
|
|
$user = $this->params['user'];
|
|
$logfileenable = $this->params['logfileenable'];
|
|
$enablefullsearch = $this->params['enablefullsearch'];
|
|
$accessop = $this->params['accessobject'];
|
|
|
|
$this->htmlStartPage(getMLText("admin_tools"));
|
|
$this->globalNavigation();
|
|
$this->contentStart();
|
|
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
|
// $this->contentHeading(getMLText("admin_tools"));
|
|
$this->contentContainerStart();
|
|
?>
|
|
<div id="admin-tools">
|
|
<?php echo $this->callHook('beforeRows'); ?>
|
|
<div class="row-fluid">
|
|
<?php if($accessop->check_view_access('UsrMgr')) { ?>
|
|
<a href="../out/out.UsrMgr.php" class="span3 btn btn-medium"><i class="icon-user"></i><br /><?php echo getMLText("user_management")?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('GroupMgr')) { ?>
|
|
<a href="../out/out.GroupMgr.php" class="span3 btn btn-medium"><i class="icon-group"></i><br /><?php echo getMLText("group_management")?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('RoleMgr')) { ?>
|
|
<a href="../out/out.RoleMgr.php" class="span3 btn btn-medium"><i class="icon-bullseye"></i><br /><?php echo getMLText("role_management")?></a>
|
|
<?php } ?>
|
|
<?php echo $this->callHook('endOfRow', 1); ?>
|
|
</div>
|
|
<div class="row-fluid">
|
|
<?php if($accessop->check_view_access('BackupTools')) { ?>
|
|
<a href="../out/out.BackupTools.php" class="span3 btn btn-medium"><i class="icon-hdd"></i><br /><?php echo getMLText("backup_tools")?></a>
|
|
<?php } ?>
|
|
<?php
|
|
if ($logfileenable && ($accessop->check_view_access('LogManagement')))
|
|
echo "<a href=\"../out/out.LogManagement.php\" class=\"span3 btn btn-medium\"><i class=\"icon-list\"></i><br />".getMLText("log_management")."</a>";
|
|
?>
|
|
<?php echo $this->callHook('endOfRow', 2); ?>
|
|
</div>
|
|
<div class="row-fluid">
|
|
<?php if($accessop->check_view_access('DefaultKeywords')) { ?>
|
|
<a href="../out/out.DefaultKeywords.php" class="span3 btn btn-medium"><i class="icon-reorder"></i><br /><?php echo getMLText("global_default_keywords")?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('Categories')) { ?>
|
|
<a href="../out/out.Categories.php" class="span3 btn btn-medium"><i class="icon-columns"></i><br /><?php echo getMLText("global_document_categories")?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('AttributeMgr')) { ?>
|
|
<a href="../out/out.AttributeMgr.php" class="span3 btn btn-medium"><i class="icon-tags"></i><br /><?php echo getMLText("global_attributedefinitions")?></a>
|
|
<?php } ?>
|
|
<?php echo $this->callHook('endOfRow', 3); ?>
|
|
</div>
|
|
<?php
|
|
if($this->params['workflowmode'] == 'advanced') {
|
|
?>
|
|
<div class="row-fluid">
|
|
<?php if($accessop->check_view_access('WorkflowMgr')) { ?>
|
|
<a href="../out/out.WorkflowMgr.php" class="span3 btn btn-medium"><i class="icon-sitemap"></i><br /><?php echo getMLText("global_workflows"); ?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('WorkflowStatesMgr')) { ?>
|
|
<a href="../out/out.WorkflowStatesMgr.php" class="span3 btn btn-medium"><i class="icon-star"></i><br /><?php echo getMLText("global_workflow_states"); ?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('WorkflowActionsMgr')) { ?>
|
|
<a href="../out/out.WorkflowActionsMgr.php" class="span3 btn btn-medium"><i class="icon-bolt"></i><br /><?php echo getMLText("global_workflow_actions"); ?></a>
|
|
<?php } ?>
|
|
<?php echo $this->callHook('endOfRow', 4); ?>
|
|
</div>
|
|
<?php
|
|
}
|
|
if($enablefullsearch) {
|
|
?>
|
|
<div class="row-fluid">
|
|
<?php if($accessop->check_view_access('Indexer')) { ?>
|
|
<a href="../out/out.Indexer.php" class="span3 btn btn-medium"><i class="icon-refresh"></i><br /><?php echo getMLText("update_fulltext_index")?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('CreateIndex')) { ?>
|
|
<a href="../out/out.CreateIndex.php" class="span3 btn btn-medium"><i class="icon-search"></i><br /><?php echo getMLText("create_fulltext_index")?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('IndexInfo')) { ?>
|
|
<a href="../out/out.IndexInfo.php" class="span3 btn btn-medium"><i class="icon-info-sign"></i><br /><?php echo getMLText("fulltext_info")?></a>
|
|
<?php } ?>
|
|
<?php echo $this->callHook('endOfRow', 5); ?>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
<div class="row-fluid">
|
|
<?php if($accessop->check_view_access('Statistic')) { ?>
|
|
<a href="../out/out.Statistic.php" class="span3 btn btn-medium"><i class="icon-tasks"></i><br /><?php echo getMLText("folders_and_documents_statistic")?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('Charts')) { ?>
|
|
<a href="../out/out.Charts.php" class="span3 btn btn-medium"><i class="icon-bar-chart"></i><br /><?php echo getMLText("charts")?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('ObjectCheck')) { ?>
|
|
<a href="../out/out.ObjectCheck.php" class="span3 btn btn-medium"><i class="icon-check"></i><br /><?php echo getMLText("objectcheck")?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('Timeline')) { ?>
|
|
<a href="../out/out.Timeline.php" class="span3 btn btn-medium"><i class="icon-time"></i><br /><?php echo getMLText("timeline")?></a>
|
|
<?php } ?>
|
|
<?php echo $this->callHook('endOfRow', 6); ?>
|
|
</div>
|
|
<div class="row-fluid">
|
|
<?php if($accessop->check_view_access('Settings')) { ?>
|
|
<a href="../out/out.Settings.php" class="span3 btn btn-medium"><i class="icon-wrench"></i><br /><?php echo getMLText("settings")?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('ExtensionMgr')) { ?>
|
|
<a href="../out/out.ExtensionMgr.php" class="span3 btn btn-medium"><i class="icon-cogs"></i><br /><?php echo getMLText("extension_manager")?></a>
|
|
<?php } ?>
|
|
<?php if($accessop->check_view_access('Info')) { ?>
|
|
<a href="../out/out.Info.php" class="span3 btn btn-medium"><i class="icon-info-sign"></i><br /><?php echo getMLText("version_info")?></a>
|
|
<?php } ?>
|
|
<?php echo $this->callHook('endOfRow', 7); ?>
|
|
</div>
|
|
<?php echo $this->callHook('afterRows'); ?>
|
|
</div>
|
|
<?php
|
|
$this->contentContainerEnd();
|
|
$this->contentEnd();
|
|
$this->htmlEndPage();
|
|
} /* }}} */
|
|
}
|
|
?>
|