mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
call various new hooks, add method to output button and wrap buttons in row
This commit is contained in:
parent
41f58c3ee4
commit
14d861dfda
|
@ -31,6 +31,14 @@ require_once("class.Bootstrap.php");
|
|||
*/
|
||||
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'];
|
||||
|
@ -45,9 +53,11 @@ class SeedDMS_View_AdminTools extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentContainerStart();
|
||||
?>
|
||||
<div id="admin-tools">
|
||||
<?php echo $this->callHook('beforeRows'); ?>
|
||||
<div class="row-fluid">
|
||||
<a href="../out/out.UsrMgr.php" class="span3 btn btn-medium"><i class="icon-user"></i><br /><?php echo getMLText("user_management")?></a>
|
||||
<a href="../out/out.GroupMgr.php" class="span3 btn btn-medium"><i class="icon-group"></i><br /><?php echo getMLText("group_management")?></a>
|
||||
<?php echo $this->callHook('endOfRow', 1); ?>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<a href="../out/out.BackupTools.php" class="span3 btn btn-medium"><i class="icon-hdd"></i><br /><?php echo getMLText("backup_tools")?></a>
|
||||
|
@ -55,11 +65,13 @@ class SeedDMS_View_AdminTools extends SeedDMS_Bootstrap_Style {
|
|||
if ($logfileenable)
|
||||
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">
|
||||
<a href="../out/out.DefaultKeywords.php" class="span3 btn btn-medium"><i class="icon-reorder"></i><br /><?php echo getMLText("global_default_keywords")?></a>
|
||||
<a href="../out/out.Categories.php" class="span3 btn btn-medium"><i class="icon-columns"></i><br /><?php echo getMLText("global_document_categories")?></a>
|
||||
<a href="../out/out.AttributeMgr.php" class="span3 btn btn-medium"><i class="icon-tags"></i><br /><?php echo getMLText("global_attributedefinitions")?></a>
|
||||
<?php echo $this->callHook('endOfRow', 3); ?>
|
||||
</div>
|
||||
<?php
|
||||
if($this->params['workflowmode'] == 'advanced') {
|
||||
|
@ -68,6 +80,7 @@ class SeedDMS_View_AdminTools extends SeedDMS_Bootstrap_Style {
|
|||
<a href="../out/out.WorkflowMgr.php" class="span3 btn btn-medium"><i class="icon-sitemap"></i><br /><?php echo getMLText("global_workflows"); ?></a>
|
||||
<a href="../out/out.WorkflowStatesMgr.php" class="span3 btn btn-medium"><i class="icon-star"></i><br /><?php echo getMLText("global_workflow_states"); ?></a>
|
||||
<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 echo $this->callHook('endOfRow', 4); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
@ -77,6 +90,7 @@ class SeedDMS_View_AdminTools extends SeedDMS_Bootstrap_Style {
|
|||
<a href="../out/out.Indexer.php" class="span3 btn btn-medium"><i class="icon-refresh"></i><br /><?php echo getMLText("update_fulltext_index")?></a>
|
||||
<a href="../out/out.CreateIndex.php" class="span3 btn btn-medium"><i class="icon-search"></i><br /><?php echo getMLText("create_fulltext_index")?></a>
|
||||
<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 echo $this->callHook('endOfRow', 5); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
@ -86,12 +100,15 @@ class SeedDMS_View_AdminTools extends SeedDMS_Bootstrap_Style {
|
|||
<a href="../out/out.Charts.php" class="span3 btn btn-medium"><i class="icon-bar-chart"></i><br /><?php echo getMLText("charts")?></a>
|
||||
<a href="../out/out.ObjectCheck.php" class="span3 btn btn-medium"><i class="icon-check"></i><br /><?php echo getMLText("objectcheck")?></a>
|
||||
<a href="../out/out.Timeline.php" class="span3 btn btn-medium"><i class="icon-time"></i><br /><?php echo getMLText("timeline")?></a>
|
||||
<?php echo $this->callHook('endOfRow', 6); ?>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<a href="../out/out.Settings.php" class="span3 btn btn-medium"><i class="icon-wrench"></i><br /><?php echo getMLText("settings")?></a>
|
||||
<a href="../out/out.ExtensionMgr.php" class="span3 btn btn-medium"><i class="icon-cogs"></i><br /><?php echo getMLText("extension_manager")?></a>
|
||||
<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 echo $this->callHook('endOfRow', 7); ?>
|
||||
</div>
|
||||
<?php echo $this->callHook('afterRows'); ?>
|
||||
</div>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
|
|
Loading…
Reference in New Issue
Block a user