mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
2c2d1e4dd8
31
Gruntfile.js
31
Gruntfile.js
|
@ -1,7 +1,7 @@
|
|||
module.exports = function (grunt) {
|
||||
'use strict';
|
||||
|
||||
var bootstrapDir = 'views/bootstrap/vendors',
|
||||
var bootstrapDir = 'views/bootstrap4/vendors',
|
||||
tdkDir = 'views/tdk/vendors',
|
||||
nodeDir = 'node_modules';
|
||||
|
||||
|
@ -78,6 +78,20 @@ module.exports = function (grunt) {
|
|||
],
|
||||
dest: bootstrapDir + '/select2/css',
|
||||
flatten: true
|
||||
},{
|
||||
expand: true,
|
||||
src: [
|
||||
nodeDir + '/@ttskch/select2-bootstrap4-theme/dist/*'
|
||||
],
|
||||
dest: bootstrapDir + '/select2-bootstrap4-theme',
|
||||
flatten: true
|
||||
},{
|
||||
expand: true,
|
||||
src: [
|
||||
nodeDir + '/vis-timeline/dist/*'
|
||||
],
|
||||
dest: bootstrapDir + '/vis-timeline',
|
||||
flatten: true
|
||||
},{
|
||||
expand: true,
|
||||
src: [
|
||||
|
@ -145,6 +159,13 @@ module.exports = function (grunt) {
|
|||
],
|
||||
dest: bootstrapDir + '/moment/locale',
|
||||
flatten: true
|
||||
},{
|
||||
expand: true,
|
||||
src: [
|
||||
nodeDir + '/popper.js/dist/umd/*'
|
||||
],
|
||||
dest: bootstrapDir + '/popper',
|
||||
flatten: true
|
||||
},{
|
||||
expand: true,
|
||||
src: [
|
||||
|
@ -152,6 +173,14 @@ module.exports = function (grunt) {
|
|||
],
|
||||
dest: bootstrapDir + '/perfect-scrollbar',
|
||||
flatten: true
|
||||
},{
|
||||
expand: true,
|
||||
src: [
|
||||
nodeDir + '/bootstrap/dist/js/bootstrap.min.js',
|
||||
nodeDir + '/bootstrap/dist/css/bootstrap.min.css'
|
||||
],
|
||||
dest: bootstrapDir + '/bootstrap',
|
||||
flatten: true
|
||||
},{
|
||||
expand: true,
|
||||
src: [
|
||||
|
|
|
@ -95,6 +95,12 @@ class UI extends UI_Default {
|
|||
if(file_exists($filename)) {
|
||||
$httpbasedir = 'ext/'.$extname.'/';
|
||||
break;
|
||||
} else {
|
||||
$filename = $settings->_rootDir.'ext/'.$extname.'/views/bootstrap/class.'.$class.".php";
|
||||
if(file_exists($filename)) {
|
||||
$httpbasedir = 'ext/'.$extname.'/';
|
||||
break;
|
||||
}
|
||||
}
|
||||
$filename = '';
|
||||
}
|
||||
|
@ -102,15 +108,21 @@ class UI extends UI_Default {
|
|||
}
|
||||
if(!$filename)
|
||||
$filename = $settings->_rootDir."views/".$theme."/class.".$class.".php";
|
||||
/* Fall back onto the view class in bootstrap theme */
|
||||
if(!file_exists($filename))
|
||||
$filename = $settings->_rootDir."views/bootstrap/class.".$class.".php";
|
||||
if(!file_exists($filename))
|
||||
$filename = '';
|
||||
if($filename) {
|
||||
require($filename);
|
||||
/* Always include the base class which defines class SeedDMS_Theme_Style */
|
||||
require_once($settings->_rootDir."views/".$theme."/class.".ucfirst($theme).".php");
|
||||
require_once($filename);
|
||||
$view = new $classname($params, $theme);
|
||||
/* Set some configuration parameters */
|
||||
$view->setParam('accessobject', new SeedDMS_AccessOperation($dms, $user, $settings));
|
||||
$view->setParam('refferer', $_SERVER['REQUEST_URI']);
|
||||
$view->setParam('absbaseprefix', $settings->_httpRoot.$httpbasedir);
|
||||
$view->setParam('theme', $theme);
|
||||
$view->setParam('class', $class);
|
||||
$view->setParam('session', $session);
|
||||
$view->setParam('settings', $settings);
|
||||
|
|
|
@ -478,10 +478,10 @@ function showtree() { /* {{{ */
|
|||
function createFormKey($formid='') { /* {{{ */
|
||||
global $settings, $session;
|
||||
|
||||
if($id = $session->getId()) {
|
||||
if($session && $id = $session->getId()) {
|
||||
return md5($id.$settings->_encryptionKey.$formid);
|
||||
} else {
|
||||
return false;
|
||||
return md5($settings->_encryptionKey.$formid);
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
if(!isset($settings))
|
||||
require_once("../inc/inc.Settings.php");
|
||||
require_once("inc/inc.LogInit.php");
|
||||
require_once("inc/inc.Utils.php");
|
||||
require_once("inc/inc.Language.php");
|
||||
require_once("inc/inc.Init.php");
|
||||
require_once("inc/inc.Extension.php");
|
||||
|
|
|
@ -27,6 +27,7 @@ require_once("inc/inc.Language.php");
|
|||
require_once("inc/inc.Init.php");
|
||||
require_once("inc/inc.Extension.php");
|
||||
require_once("inc/inc.ClassAccessOperation.php");
|
||||
require_once("inc/inc.DBInit.php");
|
||||
require_once("inc/inc.ClassUI.php");
|
||||
|
||||
include $settings->_rootDir . "languages/" . $settings->_language . "/lang.inc";
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@coreui/coreui": "^3.3.0",
|
||||
"@coreui/icons": "^1.0.1",
|
||||
"@popperjs/core": "^2.5.3",
|
||||
"@ttskch/select2-bootstrap4-theme": "^1.5.2",
|
||||
"bootstrap": "^4.5.2",
|
||||
"bootstrap-datepicker": "^1.9.0",
|
||||
"chartjs": "^0.3.24",
|
||||
|
@ -34,6 +33,6 @@
|
|||
"perfect-scrollbar": "^1.5.0",
|
||||
"popper.js": "^1.16.1",
|
||||
"select2": "^4.0.13",
|
||||
"simple-line-icons": "^2.5.5"
|
||||
"vis-timeline": "^7.4.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for AddDocument view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_AddDocument extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_AddDocument extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$libraryfolder = $this->params['libraryfolder'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for AddEvent view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_AddEvent extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_AddEvent extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$strictformcheck = $this->params['strictformcheck'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for AddFile view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_AddFile extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_AddFile extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$enablelargefileupload = $this->params['enablelargefileupload'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for AddSubFolder view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_AddSubFolder extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_AddSubFolder extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$strictformcheck = $this->params['strictformcheck'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for AdminTools view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_AdminTools extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_AdminTools extends SeedDMS_Theme_Style {
|
||||
|
||||
static function wrapRow($content) { /* {{{ */
|
||||
return self::startRow().$content.self::endRow();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ApprovalSummary extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ApprovalSummary extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for ApproveDocument view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ApproveDocument extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ApproveDocument extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
@ -111,8 +111,6 @@ $(document).ready(function() {
|
|||
$this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
|
||||
$this->contentHeading(getMLText("add_approval"));
|
||||
|
||||
$this->contentContainerStart();
|
||||
|
||||
// Display the Approval form.
|
||||
$approvaltype = ($approvalStatus['type'] == 0) ? 'ind' : 'grp';
|
||||
if($approvalStatus["status"]!=0) {
|
||||
|
@ -134,6 +132,8 @@ $(document).ready(function() {
|
|||
<form class="form-horizontal" method="post" action="../op/op.ApproveDocument.php" id="form<?= $approvaltype ?>" name="form<?= $approvaltype ?>" enctype="multipart/form-data">
|
||||
<?php echo createHiddenFieldWithKey('approvedocument'); ?>
|
||||
<?php
|
||||
$this->contentContainerStart();
|
||||
|
||||
$this->formField(
|
||||
getMLText("comment"),
|
||||
array(
|
||||
|
@ -160,6 +160,7 @@ $(document).ready(function() {
|
|||
'options'=>$options,
|
||||
)
|
||||
);
|
||||
$this->contentContainerEnd();
|
||||
$this->formSubmit(getMLText('submit_approval'), $approvaltype.'Approval');
|
||||
?>
|
||||
<input type='hidden' name='approvalType' value='<?= $approvaltype ?>'/>
|
||||
|
@ -170,7 +171,6 @@ $(document).ready(function() {
|
|||
<input type='hidden' name='version' value='<?php echo $content->getVersion(); ?>'/>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_AttributeMgr extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_AttributeMgr extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$selattrdef = $this->params['selattrdef'];
|
||||
|
@ -172,7 +172,7 @@ $(document).ready( function() {
|
|||
<?php echo createHiddenFieldWithKey('removeattrdef'); ?>
|
||||
<input type="hidden" name="attrdefid" value="<?php echo $selattrdef->getID()?>">
|
||||
<input type="hidden" name="action" value="removeattrdef">
|
||||
<button type="submit" class="btn"><i class="fa fa-remove"></i> <?php echo getMLText("rm_attrdef")?></button>
|
||||
<button type="submit" class="btn btn-secondary"><i class="fa fa-remove"></i> <?php echo getMLText("rm_attrdef")?></button>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for BackupTools view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_BackupTools extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_BackupTools extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
@ -68,7 +68,7 @@ class SeedDMS_View_BackupTools extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentContainerStart();
|
||||
print "<form class=\"form-inline\" action=\"../op/op.CreateVersioningFiles.php\" name=\"form1\">";
|
||||
$this->printFolderChooserHtml("form1",M_READWRITE);
|
||||
print "<input type='submit' class='btn' name='' value='".getMLText("versioning_file_creation")."'/>";
|
||||
print "<input type='submit' class='btn btn-primary' name='' value='".getMLText("versioning_file_creation")."'/>";
|
||||
print "</form>\n";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
|
@ -83,7 +83,7 @@ class SeedDMS_View_BackupTools extends SeedDMS_Bootstrap_Style {
|
|||
print "<form action=\"../op/op.CreateFolderArchive.php\" name=\"form2\">";
|
||||
$this->printFolderChooserHtml("form2",M_READWRITE);
|
||||
print "<label class=\"checkbox\"><input type=\"checkbox\" name=\"human_readable\" value=\"1\">".getMLText("human_readable")."</label>";
|
||||
print "<input type='submit' class='btn' name='' value='".getMLText("archive_creation")."'/>";
|
||||
print "<input type='submit' class='btn btn-primary' name='' value='".getMLText("archive_creation")."'/>";
|
||||
print "</form>\n";
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,7 @@ class SeedDMS_View_BackupTools extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
if($accessop->check_controller_access('CreateDump', array('action'=>'run'))) {
|
||||
print "<form action=\"../op/op.CreateDump.php\" name=\"form4\">";
|
||||
print "<input type='submit' class='btn' name='' value='".getMLText("dump_creation")."'/>";
|
||||
print "<input type='submit' class='btn btn-primary' name='' value='".getMLText("dump_creation")."'/>";
|
||||
print "</form>\n";
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
|
||||
class SeedDMS_Bootstrap_Style extends SeedDMS_View_Common {
|
||||
class SeedDMS_Theme_Style extends SeedDMS_View_Common {
|
||||
/**
|
||||
* @var string $extraheader extra html code inserted in the html header
|
||||
* of the page
|
||||
|
@ -103,8 +103,8 @@ class SeedDMS_Bootstrap_Style extends SeedDMS_View_Common {
|
|||
echo '<link href="../styles/'.$this->theme.'/chosen/css/chosen.css" rel="stylesheet">'."\n";
|
||||
echo '<link href="../views/'.$this->theme.'/vendors/select2/css/select2.min.css" rel="stylesheet">'."\n";
|
||||
echo '<link href="../styles/'.$this->theme.'/select2/css/select2-bootstrap.css" rel="stylesheet">'."\n";
|
||||
echo '<link href="../styles/'.$this->theme.'/jqtree/jqtree.css" rel="stylesheet">'."\n";
|
||||
echo '<link href="../styles/'.$this->theme.'/application.css" rel="stylesheet">'."\n";
|
||||
echo '<link href="../views/'.$this->theme.'/vendors/jqtree/jqtree.css" rel="stylesheet">'."\n";
|
||||
echo '<link href="../views/'.$this->theme.'/styles/application.css" rel="stylesheet">'."\n";
|
||||
if($this->extraheader['css'])
|
||||
echo $this->extraheader['css'];
|
||||
if(method_exists($this, 'css'))
|
||||
|
@ -118,8 +118,10 @@ class SeedDMS_Bootstrap_Style extends SeedDMS_View_Common {
|
|||
echo '<script type="text/javascript" src="../views/'.$this->theme.'/vendors/noty/layouts/topRight.js"></script>'."\n";
|
||||
echo '<script type="text/javascript" src="../views/'.$this->theme.'/vendors/noty/layouts/topCenter.js"></script>'."\n";
|
||||
echo '<script type="text/javascript" src="../views/'.$this->theme.'/vendors/noty/themes/default.js"></script>'."\n";
|
||||
echo '<script type="text/javascript" src="../styles/'.$this->theme.'/jqtree/tree.jquery.js"></script>'."\n";
|
||||
// echo '<script type="text/javascript" src="../styles/'.$this->theme.'/jquery-cookie/jquery.cookie.js"></script>'."\n";
|
||||
echo '<script type="text/javascript" src="../views/'.$this->theme.'/vendors/jqtree/tree.jquery.js"></script>'."\n";
|
||||
echo '<script type="text/javascript" src="../views/'.$this->theme.'/vendors/bootbox/bootbox.min.js"></script>'."\n";
|
||||
// echo '<script type="text/javascript" src="../views/'.$this->theme.'/vendors/bootbox/bootbox.min.js"></script>'."\n";
|
||||
// echo '<script type="text/javascript" src="../views/'.$this->theme.'/vendors/bootbox/bootbox.locales.js"></script>'."\n";
|
||||
if(!empty($this->extraheader['favicon']))
|
||||
echo $this->extraheader['favicon'];
|
||||
else {
|
||||
|
@ -182,13 +184,13 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
foreach(array('de', 'es', 'ar', 'el', 'bg', 'ru', 'hr', 'hu', 'ko', 'pl', 'ro', 'sk', 'tr', 'uk', 'ca', 'nl', 'fi', 'cs', 'it', 'fr', 'sv', 'sl', 'pt-BR', 'zh-CN', 'zh-TW') as $lang)
|
||||
echo '<script src="../views/'.$this->theme.'/vendors/bootstrap-datepicker/locales/bootstrap-datepicker.'.$lang.'.min.js"></script>'."\n";
|
||||
echo '<script src="../styles/'.$this->theme.'/chosen/js/chosen.jquery.min.js"></script>'."\n";
|
||||
echo '<script src="../styles/'.$this->theme.'/select2/js/select2.min.js"></script>'."\n";
|
||||
echo '<script src="../views/'.$this->theme.'/vendors/select2/js/select2.min.js"></script>'."\n";
|
||||
parse_str($_SERVER['QUERY_STRING'], $tmp);
|
||||
$tmp['action'] = 'webrootjs';
|
||||
if(isset($tmp['formtoken']))
|
||||
unset($tmp['formtoken']);
|
||||
echo '<script src="'.$this->params['absbaseprefix'].'out/out.'.$this->params['class'].'.php?'.http_build_query($tmp).'"></script>'."\n";
|
||||
echo '<script src="../styles/'.$this->theme.'/application.js"></script>'."\n";
|
||||
echo '<script src="../views/'.$this->theme.'/styles/application.js"></script>'."\n";
|
||||
if($this->params['enablemenutasks'] && isset($this->params['user']) && $this->params['user']) {
|
||||
$this->addFooterJS('SeedDMSTask.run();');
|
||||
}
|
||||
|
@ -603,66 +605,152 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
return;
|
||||
} /* }}} */
|
||||
|
||||
protected function showNavigationBar($menuitems) { /* {{{ */
|
||||
protected function showNavigationBar($menuitems, $options = array()) { /* {{{ */
|
||||
$content = '';
|
||||
$content .= "<ul".(isset($options['id']) ? ' id="'.$options['id'].'"' : '')." class=\"nav".(isset($options['right']) ? ' pull-right' : '')."\">\n";
|
||||
foreach($menuitems as $menuitem) {
|
||||
if(!empty($menuitem['children'])) {
|
||||
echo " <li class=\"dropdown\">\n";
|
||||
echo " <a class=\"dropdown-toggle\" data-toggle=\"dropdown\">".getMLText($menuitem['label'])." <i class=\"fa fa-caret-down\"></i></a>\n";
|
||||
echo " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
$content .= " <li class=\"dropdown\">\n";
|
||||
$content .= " <a class=\"dropdown-toggle\" data-toggle=\"dropdown\">".$menuitem['label']." <i class=\"fa fa-caret-down\"></i></a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
foreach($menuitem['children'] as $submenuitem) {
|
||||
echo " <li><a href=\"".$submenuitem['link']."\"".(isset($submenuitem['target']) ? ' target="'.$submenuitem['target'].'"' : '').">".getMLText($submenuitem['label'])."</a></li>\n";
|
||||
}
|
||||
echo " </ul>\n";
|
||||
if(!empty($submenuitem['children'])) {
|
||||
$content .= " <li class=\"dropdown-submenu\">\n";
|
||||
$content .= " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">".$submenuitem['label']."</a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
foreach($submenuitem['children'] as $subsubmenuitem) {
|
||||
if(!empty($submenuitem['divider'])) {
|
||||
$content .= " <li class=\"divider\"></li>\n";
|
||||
} else {
|
||||
echo "<li><a href=\"".$menuitem['link']."\"".(isset($menuitem['target']) ? ' target="'.$menuitem['target'].'"' : '').">".getMLText($menuitem['label'])."</a></li>";
|
||||
$content .= " <li><a href=\"".$subsubmenuitem['link']."\"".(isset($subsubmenuitem['class']) ? " class=\"".$subsubmenuitem['class']."\"" : "").(isset($subsubmenuitem['rel']) ? " rel=\"".$subsubmenuitem['rel']."\"" : "");
|
||||
if(!empty($subsubmenuitem['attributes']))
|
||||
foreach($subsubmenuitem['attributes'] as $attr)
|
||||
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
||||
$content .= ">".$subsubmenuitem['label']."</a></li>";
|
||||
}
|
||||
}
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
} else {
|
||||
if(!empty($submenuitem['divider'])) {
|
||||
$content .= " <li class=\"divider\"></li>\n";
|
||||
} else {
|
||||
$content .= " <li><a".(isset($submenuitem['link']) ? " href=\"".$submenuitem['link']."\"" : "").(isset($submenuitem['class']) ? " class=\"".$submenuitem['class']."\"" : "").(isset($submenuitem['target']) ? ' target="'.$submenuitem['target'].'"' : '');
|
||||
if(!empty($submenuitem['attributes']))
|
||||
foreach($submenuitem['attributes'] as $attr)
|
||||
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
||||
$content .= ">".$submenuitem['label']."</a></li>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
$content .= " </ul>\n";
|
||||
} else {
|
||||
if(!empty($submenuitem['divider'])) {
|
||||
$content .= " <li class=\"divider\"></li>\n";
|
||||
} else {
|
||||
$content .= "<li><a".(isset($menuitem['link']) ? " href=\"".$menuitem['link']."\"" : "").(isset($menuitem['target']) ? ' target="'.$menuitem['target'].'"' : '').">";
|
||||
if(!empty($menuitem['attributes']))
|
||||
foreach($menuitem['attributes'] as $attr)
|
||||
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
||||
$content .= $menuitem['label']."</a></li>";
|
||||
}
|
||||
}
|
||||
}
|
||||
$content .= "</ul>\n";
|
||||
echo $content;
|
||||
} /* }}} */
|
||||
|
||||
protected function showNavigationListWithBadges($menuitems, $options=array()) { /* {{{ */
|
||||
$content = '';
|
||||
$content .= "<ul".(isset($options['id']) ? ' id="'.$options['id'].'"' : '')." class=\"nav nav-list sidenav bs-docs-sidenav\">\n";
|
||||
foreach($menuitems as $menuitem) {
|
||||
$content .= " <li class=\"\">\n";
|
||||
$content .= ' <a';
|
||||
$content .= !empty($menuitem['link']) ? 'href="'.$menuitem['link'].'"' : '';
|
||||
if(!empty($menuitem['attributes']))
|
||||
foreach($menuitem['attributes'] as $attr)
|
||||
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
||||
$content .= '>';
|
||||
$content .= $menuitem['label'];
|
||||
$content .= '<span class="badge badge-right">'.$menuitem['badge']."</span>";
|
||||
$content .= ' </a>'."\n";
|
||||
$content .= " </li>\n";
|
||||
}
|
||||
|
||||
$content .= "</ul>\n";
|
||||
echo $content;
|
||||
} /* }}} */
|
||||
|
||||
protected function showButtonwithMenu($button, $options=array()) { /* {{{ */
|
||||
$content = '';
|
||||
$content .= '
|
||||
<div class="btn-group">
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
'.$button['label'].'
|
||||
<span class="caret"></span>
|
||||
</a>
|
||||
';
|
||||
if($button['menuitems']) {
|
||||
$content .= '
|
||||
<ul class="dropdown-menu">
|
||||
';
|
||||
foreach($button['menuitems'] as $menuitem) {
|
||||
$content .= '
|
||||
<li><a href="'.$menuitem['link'].'">'.$menuitem['label'].'</a><li>
|
||||
';
|
||||
}
|
||||
$content .= '
|
||||
</ul>
|
||||
';
|
||||
}
|
||||
$content .= '
|
||||
</div>
|
||||
';
|
||||
echo $content;
|
||||
} /* }}} */
|
||||
|
||||
private function folderNavigationBar($folder) { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
$accessobject = $this->params['accessobject'];
|
||||
if (!is_object($folder) || !$folder->isType('folder')) {
|
||||
echo "<ul class=\"nav\">\n";
|
||||
echo "</ul>\n";
|
||||
self::showNavigationBar(array());
|
||||
return;
|
||||
}
|
||||
$accessMode = $folder->getAccessMode($this->params['user']);
|
||||
$folderID = $folder->getID();
|
||||
echo "<id=\"first\"><a href=\"../out/out.ViewFolder.php?folderid=". $folderID ."&showtree=".showtree()."\" class=\"brand\">".getMLText("folder")."</a>\n";
|
||||
echo "<div class=\"nav-collapse col2\">\n";
|
||||
echo "<ul class=\"nav\">\n";
|
||||
$menuitems = array();
|
||||
|
||||
if ($accessMode == M_READ) {
|
||||
if ($accessobject->check_view_access('FolderNotify'))
|
||||
$menuitems['edit_folder_notify'] = array('link'=>"../out/out.FolderNotify.php?folderid=".$folderID."&showtree=".showtree(), 'label'=>'edit_folder_notify');
|
||||
$menuitems['edit_folder_notify'] = array('link'=>"../out/out.FolderNotify.php?folderid=".$folderID."&showtree=".showtree(), 'label'=>getMLText('edit_folder_notify'));
|
||||
}
|
||||
else if ($accessMode >= M_READWRITE) {
|
||||
if ($accessobject->check_view_access('AddSubFolder'))
|
||||
$menuitems['add_subfolder'] = array('link'=>"../out/out.AddSubFolder.php?folderid=". $folderID ."&showtree=".showtree(), 'label'=>'add_subfolder');
|
||||
$menuitems['add_subfolder'] = array('link'=>"../out/out.AddSubFolder.php?folderid=". $folderID ."&showtree=".showtree(), 'label'=>getMLText('add_subfolder'));
|
||||
if ($accessobject->check_view_access('AddDocument'))
|
||||
$menuitems['add_document'] = array('link'=>"../out/out.AddDocument.php?folderid=". $folderID ."&showtree=".showtree(), 'label'=>'add_document');
|
||||
$menuitems['add_document'] = array('link'=>"../out/out.AddDocument.php?folderid=". $folderID ."&showtree=".showtree(), 'label'=>getMLText('add_document'));
|
||||
if(0 && $this->params['enablelargefileupload'])
|
||||
$menuitems['add_multiple_documents'] = array('link'=>"../out/out.AddMultiDocument.php?folderid=". $folderID ."&showtree=".showtree(), 'label'=>'add_multiple_documents');
|
||||
$menuitems['edit_folder_props'] = array('link'=>"../out/out.EditFolder.php?folderid=". $folderID ."&showtree=".showtree(), 'label'=>'edit_folder_props');
|
||||
$menuitems['add_multiple_documents'] = array('link'=>"../out/out.AddMultiDocument.php?folderid=". $folderID ."&showtree=".showtree(), 'label'=>getMLText('add_multiple_documents'));
|
||||
$menuitems['edit_folder_props'] = array('link'=>"../out/out.EditFolder.php?folderid=". $folderID ."&showtree=".showtree(), 'label'=>getMLText('edit_folder_props'));
|
||||
if ($folderID != $this->params['rootfolderid'] && $folder->getParent())
|
||||
$menuitems['move_folder'] = array('link'=>"../out/out.MoveFolder.php?folderid=". $folderID ."&showtree=".showtree(), 'label'=>'move_folder');
|
||||
$menuitems['move_folder'] = array('link'=>"../out/out.MoveFolder.php?folderid=". $folderID ."&showtree=".showtree(), 'label'=>getMLText('move_folder'));
|
||||
|
||||
if ($accessMode == M_ALL) {
|
||||
if ($folderID != $this->params['rootfolderid'] && $folder->getParent())
|
||||
if ($accessobject->check_view_access('RemoveFolder'))
|
||||
$menuitems['rm_folder'] = array('link'=>"../out/out.RemoveFolder.php?folderid=". $folderID ."&showtree=".showtree(), 'label'=>'rm_folder');
|
||||
$menuitems['rm_folder'] = array('link'=>"../out/out.RemoveFolder.php?folderid=". $folderID ."&showtree=".showtree(), 'label'=>getMLText('rm_folder'));
|
||||
}
|
||||
if ($accessMode == M_ALL) {
|
||||
if ($accessobject->check_view_access('FolderAccess'))
|
||||
$menuitems['edit_folder_access'] = array('link'=>"../out/out.FolderAccess.php?folderid=".$folderID."&showtree=".showtree(), 'label'=>'edit_folder_access');
|
||||
$menuitems['edit_folder_access'] = array('link'=>"../out/out.FolderAccess.php?folderid=".$folderID."&showtree=".showtree(), 'label'=>getMLText('edit_folder_access'));
|
||||
}
|
||||
if ($accessobject->check_view_access('FolderNotify'))
|
||||
$menuitems['edit_existing_notify'] = array('link'=>"../out/out.FolderNotify.php?folderid=". $folderID ."&showtree=". showtree(), 'label'=>'edit_existing_notify');
|
||||
$menuitems['edit_existing_notify'] = array('link'=>"../out/out.FolderNotify.php?folderid=". $folderID ."&showtree=". showtree(), 'label'=>getMLText('edit_existing_notify'));
|
||||
}
|
||||
if ($accessobject->check_view_access('Indexer') && $this->params['enablefullsearch']) {
|
||||
$menuitems['index_folder'] = array('link'=>"../out/out.Indexer.php?folderid=". $folderID."&showtree=".showtree(), 'label'=>'index_folder');
|
||||
$menuitems['index_folder'] = array('link'=>"../out/out.Indexer.php?folderid=". $folderID."&showtree=".showtree(), 'label'=>getMLText('index_folder'));
|
||||
}
|
||||
|
||||
/* Check if hook exists because otherwise callHook() will override $menuitems */
|
||||
|
@ -671,7 +759,6 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
|
||||
self::showNavigationBar($menuitems);
|
||||
|
||||
echo "</ul>\n";
|
||||
echo "</div>\n";
|
||||
return;
|
||||
} /* }}} */
|
||||
|
@ -682,62 +769,61 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$docid=".php?documentid=" . $document->getID();
|
||||
echo "<id=\"first\"><a href=\"../out/out.ViewDocument". $docid ."\" class=\"brand\">".getMLText("document")."</a>\n";
|
||||
echo "<div class=\"nav-collapse col2\">\n";
|
||||
echo "<ul class=\"nav\">\n";
|
||||
$menuitems = array();
|
||||
|
||||
if ($accessMode >= M_READWRITE) {
|
||||
if (!$document->isLocked()) {
|
||||
if($accessobject->check_controller_access('UpdateDocument'))
|
||||
$menuitems['update_document'] = array('link'=>"../out/out.UpdateDocument".$docid, 'label'=>'update_document');
|
||||
$menuitems['update_document'] = array('link'=>"../out/out.UpdateDocument".$docid, 'label'=>getMLText('update_document'));
|
||||
if($accessobject->check_controller_access('LockDocument'))
|
||||
$menuitems['lock_document'] = array('link'=>"../op/op.LockDocument".$docid, 'label'=>'lock_document');
|
||||
$menuitems['lock_document'] = array('link'=>"../op/op.LockDocument".$docid, 'label'=>getMLText('lock_document'));
|
||||
if($document->isCheckedOut())
|
||||
$menuitems['checkin_document'] = array('link'=>"../out/out.CheckInDocument".$docid, 'label'=>'checkin_document');
|
||||
$menuitems['checkin_document'] = array('link'=>"../out/out.CheckInDocument".$docid, 'label'=>getMLText('checkin_document'));
|
||||
else {
|
||||
if($this->params['checkoutdir']) {
|
||||
$menuitems['checkout_document'] = array('link'=>"../op/op.CheckOutDocument".$docid, 'label'=>'checkout_document');
|
||||
$menuitems['checkout_document'] = array('link'=>"../op/op.CheckOutDocument".$docid, 'label'=>getMLText('checkout_document'));
|
||||
}
|
||||
}
|
||||
if($accessobject->check_controller_access('EditDocument'))
|
||||
$menuitems['edit_document_props'] = array('link'=>"../out/out.EditDocument".$docid , 'label'=>'edit_document_props');
|
||||
$menuitems['move_document'] = array('link'=>"../out/out.MoveDocument".$docid, 'label'=>'move_document');
|
||||
$menuitems['edit_document_props'] = array('link'=>"../out/out.EditDocument".$docid , 'label'=>getMLText('edit_document_props'));
|
||||
$menuitems['move_document'] = array('link'=>"../out/out.MoveDocument".$docid, 'label'=>getMLText('move_document'));
|
||||
}
|
||||
else {
|
||||
$lockingUser = $document->getLockingUser();
|
||||
if (($lockingUser->getID() == $this->params['user']->getID()) || ($document->getAccessMode($this->params['user']) == M_ALL)) {
|
||||
if($accessobject->check_controller_access('UpdateDocument'))
|
||||
$menuitems['update_document'] = array('link'=>"../out/out.UpdateDocument".$docid, 'label'=>'update_document');
|
||||
$menuitems['update_document'] = array('link'=>"../out/out.UpdateDocument".$docid, 'label'=>getMLText('update_document'));
|
||||
if($accessobject->check_controller_access('UnlockDocument'))
|
||||
$menuitems['unlock_document'] = array('link'=>"../op/op.UnlockDocument".$docid, 'label'=>'unlock_document');
|
||||
$menuitems['unlock_document'] = array('link'=>"../op/op.UnlockDocument".$docid, 'label'=>getMLText('unlock_document'));
|
||||
if($document->isCheckedOut()) {
|
||||
$menuitems['checkin_document'] = array('link'=>"../out/out.CheckInDocument".$docid, 'label'=>'checkin_document');
|
||||
$menuitems['checkin_document'] = array('link'=>"../out/out.CheckInDocument".$docid, 'label'=>getMLText('checkin_document'));
|
||||
} else {
|
||||
if($this->params['checkoutdir']) {
|
||||
$menuitems['checkout_document'] = array('link'=>"../op/op.CheckOutDocument".$docid, 'label'=>'checkout_document');
|
||||
$menuitems['checkout_document'] = array('link'=>"../op/op.CheckOutDocument".$docid, 'label'=>getMLText('checkout_document'));
|
||||
}
|
||||
}
|
||||
if($accessobject->check_controller_access('EditDocument'))
|
||||
$menuitems['edit_document_props'] = array('link'=>"../out/out.EditDocument".$docid, 'label'=>'edit_document_props');
|
||||
$menuitems['move_document'] = array('link'=>"../out/out.MoveDocument".$docid, 'label'=>'move_document');
|
||||
$menuitems['edit_document_props'] = array('link'=>"../out/out.EditDocument".$docid, 'label'=>getMLText('edit_document_props'));
|
||||
$menuitems['move_document'] = array('link'=>"../out/out.MoveDocument".$docid, 'label'=>getMLText('move_document'));
|
||||
}
|
||||
}
|
||||
if($accessobject->maySetExpires($document)) {
|
||||
if ($accessobject->check_view_access('SetExpires'))
|
||||
$menuitems['expires'] = array('link'=>"../out/out.SetExpires".$docid, 'label'=>'expires');
|
||||
$menuitems['expires'] = array('link'=>"../out/out.SetExpires".$docid, 'label'=>getMLText('expires'));
|
||||
}
|
||||
}
|
||||
if ($accessMode == M_ALL) {
|
||||
if ($accessobject->check_view_access('RemoveDocument'))
|
||||
$menuitems['rm_document'] = array('link'=>"../out/out.RemoveDocument".$docid, 'label'=>'rm_document');
|
||||
$menuitems['rm_document'] = array('link'=>"../out/out.RemoveDocument".$docid, 'label'=>getMLText('rm_document'));
|
||||
if ($accessobject->check_view_access('DocumentAccess'))
|
||||
$menuitems['edit_document_access'] = array('link'=>"../out/out.DocumentAccess". $docid, 'label'=>'edit_document_access');
|
||||
$menuitems['edit_document_access'] = array('link'=>"../out/out.DocumentAccess". $docid, 'label'=>getMLText('edit_document_access'));
|
||||
}
|
||||
if ($accessMode >= M_READ) {
|
||||
if ($accessobject->check_view_access('DocumentNotify'))
|
||||
$menuitems['edit_existing_notify'] = array('link'=>"../out/out.DocumentNotify". $docid, 'label'=>'edit_existing_notify');
|
||||
$menuitems['edit_existing_notify'] = array('link'=>"../out/out.DocumentNotify". $docid, 'label'=>getMLText('edit_existing_notify'));
|
||||
}
|
||||
if ($accessobject->check_view_access('TransferDocument')) {
|
||||
$menuitems['transfer_document'] = array('link'=>"../out/out.TransferDocument". $docid, 'label'=>'transfer_document');
|
||||
$menuitems['transfer_document'] = array('link'=>"../out/out.TransferDocument". $docid, 'label'=>getMLText('transfer_document'));
|
||||
}
|
||||
|
||||
/* Check if hook exists because otherwise callHook() will override $menuitems */
|
||||
|
@ -758,7 +844,6 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
|
||||
self::showNavigationBar($menuitems);
|
||||
|
||||
echo "</ul>\n";
|
||||
echo "</div>\n";
|
||||
return;
|
||||
} /* }}} */
|
||||
|
@ -767,24 +852,23 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$accessobject = $this->params['accessobject'];
|
||||
echo "<id=\"first\"><a href=\"../out/out.MyAccount.php\" class=\"brand\">".getMLText("my_account")."</a>\n";
|
||||
echo "<div class=\"nav-collapse col2\">\n";
|
||||
echo "<ul class=\"nav\">\n";
|
||||
|
||||
$menuitems = array();
|
||||
if ($accessobject->check_view_access('EditUserData') || !$this->params['disableselfedit'])
|
||||
$menuitems['edit_user_details'] = array('link'=>"../out/out.EditUserData.php", 'label'=>'edit_user_details');
|
||||
$menuitems['edit_user_details'] = array('link'=>"../out/out.EditUserData.php", 'label'=>getMLText('edit_user_details'));
|
||||
|
||||
if (!$this->params['user']->isAdmin())
|
||||
$menuitems['edit_default_keywords'] = array('link'=>"../out/out.UserDefaultKeywords.php", 'label'=>'edit_default_keywords');
|
||||
$menuitems['edit_default_keywords'] = array('link'=>"../out/out.UserDefaultKeywords.php", 'label'=>getMLText('edit_default_keywords'));
|
||||
|
||||
$menuitems['edit_notify'] = array('link'=>"../out/out.ManageNotify.php", 'label'=>'edit_existing_notify');
|
||||
$menuitems['edit_notify'] = array('link'=>"../out/out.ManageNotify.php", 'label'=>getMLText('edit_existing_notify'));
|
||||
|
||||
$menuitems['2_factor_auth'] = array('link'=>"../out/out.Setup2Factor.php", 'label'=>'2_factor_auth');
|
||||
|
||||
if ($this->params['enableusersview']){
|
||||
if ($accessobject->check_view_access('UsrView'))
|
||||
$menuitems['users'] = array('link'=>"../out/out.UsrView.php", 'label'=>'users');
|
||||
$menuitems['users'] = array('link'=>"../out/out.UsrView.php", 'label'=>getMLText('users'));
|
||||
if ($accessobject->check_view_access('GroupView'))
|
||||
$menuitems['groups'] = array('link'=>"../out/out.GroupView.php", 'label'=>'groups');
|
||||
$menuitems['groups'] = array('link'=>"../out/out.GroupView.php", 'label'=>getMLText('groups'));
|
||||
}
|
||||
|
||||
/* Check if hook exists because otherwise callHook() will override $menuitems */
|
||||
|
@ -793,7 +877,6 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
|
||||
self::showNavigationBar($menuitems);
|
||||
|
||||
echo "</ul>\n";
|
||||
echo "</div>\n";
|
||||
return;
|
||||
} /* }}} */
|
||||
|
@ -803,24 +886,23 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
|
||||
echo "<id=\"first\"><a href=\"../out/out.MyDocuments.php\" class=\"brand\">".getMLText("my_documents")."</a>\n";
|
||||
echo "<div class=\"nav-collapse col2\">\n";
|
||||
echo "<ul class=\"nav\">\n";
|
||||
|
||||
$menuitems = array();
|
||||
$menuitems['inprocess'] = array('link'=>"../out/out.MyDocuments.php?inProcess=1", 'label'=>'documents_in_process');
|
||||
$menuitems['all_documents'] = array('link'=>"../out/out.MyDocuments.php", 'label'=>'all_documents');
|
||||
$menuitems['inprocess'] = array('link'=>"../out/out.MyDocuments.php?inProcess=1", 'label'=>getMLText('documents_in_process'));
|
||||
$menuitems['all_documents'] = array('link'=>"../out/out.MyDocuments.php", 'label'=>getMLText('all_documents'));
|
||||
if($this->params['workflowmode'] == 'traditional' || $this->params['workflowmode'] == 'traditional_only_approval') {
|
||||
if ($accessobject->check_view_access('ReviewSummary'))
|
||||
$menuitems['review_summary'] = array('link'=>"../out/out.ReviewSummary.php", 'label'=>'review_summary');
|
||||
$menuitems['review_summary'] = array('link'=>"../out/out.ReviewSummary.php", 'label'=>getMLText('review_summary'));
|
||||
if ($accessobject->check_view_access('ApprovalSummary'))
|
||||
$menuitems['approval_summary'] = array('link'=>"../out/out.ApprovalSummary.php", 'label'=>'approval_summary');
|
||||
$menuitems['approval_summary'] = array('link'=>"../out/out.ApprovalSummary.php", 'label'=>getMLText('approval_summary'));
|
||||
} else {
|
||||
if ($accessobject->check_view_access('WorkflowSummary'))
|
||||
$menuitems['workflow_summary'] = array('link'=>"../out/out.WorkflowSummary.php", 'label'=>'workflow_summary');
|
||||
$menuitems['workflow_summary'] = array('link'=>"../out/out.WorkflowSummary.php", 'label'=>getMLText('workflow_summary'));
|
||||
}
|
||||
if ($accessobject->check_view_access('ReceiptSummary'))
|
||||
$menuitems['receipt_summary'] = array('link'=>"../out/out.ReceiptSummary.php", 'label'=>'receipt_summary');
|
||||
$menuitems['receipt_summary'] = array('link'=>"../out/out.ReceiptSummary.php", 'label'=>getMLText('receipt_summary'));
|
||||
if ($accessobject->check_view_access('RevisionSummary'))
|
||||
$menuitems['revision_summary'] = array('link'=>"../out/out.RevisionSummary.php", 'label'=>'revision_summary');
|
||||
$menuitems['revision_summary'] = array('link'=>"../out/out.RevisionSummary.php", 'label'=>getMLText('revision_summary'));
|
||||
|
||||
/* Check if hook exists because otherwise callHook() will override $menuitems */
|
||||
if($this->hasHook('mydocumentsNavigationBar'))
|
||||
|
@ -828,7 +910,6 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
|
||||
self::showNavigationBar($menuitems);
|
||||
|
||||
echo "</ul>\n";
|
||||
echo "</div>\n";
|
||||
return;
|
||||
} /* }}} */
|
||||
|
@ -838,92 +919,91 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$settings = $this->params['settings'];
|
||||
echo " <id=\"first\"><a href=\"../out/out.AdminTools.php\" class=\"brand\">".getMLText("admin_tools")."</a>\n";
|
||||
echo "<div class=\"nav-collapse col2\">\n";
|
||||
echo " <ul class=\"nav\">\n";
|
||||
|
||||
$menuitems = array();
|
||||
if($accessobject->check_view_access(array('UsrMgr', 'RoleMgr', 'GroupMgr', 'UserList', 'Acl'))) {
|
||||
$menuitems['user_group_management'] = array('link'=>"#", 'label'=>'user_group_management');
|
||||
$menuitems['user_group_management'] = array('link'=>"#", 'label'=>getMLText('user_group_management'));
|
||||
if ($accessobject->check_view_access('UsrMgr'))
|
||||
$menuitems['user_group_management']['children']['user_management'] = array('link'=>"../out/out.UsrMgr.php", 'label'=>'user_management');
|
||||
$menuitems['user_group_management']['children']['user_management'] = array('link'=>"../out/out.UsrMgr.php", 'label'=>getMLText('user_management'));
|
||||
if ($accessobject->check_view_access('RoleMgr'))
|
||||
$menuitems['user_group_management']['children']['role_management'] = array('link'=>"../out/out.RoleMgr.php", 'label'=>'role_management');
|
||||
$menuitems['user_group_management']['children']['role_management'] = array('link'=>"../out/out.RoleMgr.php", 'label'=>getMLText('role_management'));
|
||||
if ($accessobject->check_view_access('GroupMgr'))
|
||||
$menuitems['user_group_management']['children']['group_management'] = array('link'=>"../out/out.GroupMgr.php", 'label'=>'group_management');
|
||||
$menuitems['user_group_management']['children']['group_management'] = array('link'=>"../out/out.GroupMgr.php", 'label'=>getMLText('group_management'));
|
||||
if ($accessobject->check_view_access('UserList'))
|
||||
$menuitems['user_group_management']['children']['user_list'] = array('link'=>"../out/out.UserList.php", 'label'=>'user_list');
|
||||
$menuitems['user_group_management']['children']['user_list'] = array('link'=>"../out/out.UserList.php", 'label'=>getMLText('user_list'));
|
||||
if ($accessobject->check_view_access('Acl'))
|
||||
$menuitems['user_group_management']['children']['access_control'] = array('link'=>"../out/out.Acl.php", 'label'=>'access_control');
|
||||
$menuitems['user_group_management']['children']['access_control'] = array('link'=>"../out/out.Acl.php", 'label'=>getMLText('access_control'));
|
||||
}
|
||||
|
||||
if($accessobject->check_view_access(array('DefaultKeywords', 'Categories', 'AttributeMgr', 'WorkflowMgr', 'WorkflowStatesMgr', 'WorkflowActionsMgr'))) {
|
||||
$menuitems['definitions'] = array('link'=>"#", 'label'=>'definitions');
|
||||
$menuitems['definitions'] = array('link'=>"#", 'label'=>getMLText('definitions'));
|
||||
if ($accessobject->check_view_access('DefaultKeywords'))
|
||||
$menuitems['definitions']['children']['default_keywords'] = array('link'=>"../out/out.DefaultKeywords.php", 'label'=>'global_default_keywords');
|
||||
$menuitems['definitions']['children']['default_keywords'] = array('link'=>"../out/out.DefaultKeywords.php", 'label'=>getMLText('global_default_keywords'));
|
||||
if ($accessobject->check_view_access('Categories'))
|
||||
$menuitems['definitions']['children']['document_categories'] = array('link'=>"../out/out.Categories.php", 'label'=>'global_document_categories');
|
||||
$menuitems['definitions']['children']['document_categories'] = array('link'=>"../out/out.Categories.php", 'label'=>getMLText('global_document_categories'));
|
||||
if ($accessobject->check_view_access('AttributeMgr'))
|
||||
$menuitems['definitions']['children']['attribute_definitions'] = array('link'=>"../out/out.AttributeMgr.php", 'label'=>'global_attributedefinitions');
|
||||
$menuitems['definitions']['children']['attribute_definitions'] = array('link'=>"../out/out.AttributeMgr.php", 'label'=>getMLText('global_attributedefinitions'));
|
||||
if($this->params['workflowmode'] == 'advanced') {
|
||||
if ($accessobject->check_view_access('WorkflowMgr'))
|
||||
$menuitems['definitions']['children']['workflows'] = array('link'=>"../out/out.WorkflowMgr.php", 'label'=>'global_workflows');
|
||||
$menuitems['definitions']['children']['workflows'] = array('link'=>"../out/out.WorkflowMgr.php", 'label'=>getMLText('global_workflows'));
|
||||
if ($accessobject->check_view_access('WorkflowStatesMgr'))
|
||||
$menuitems['definitions']['children']['workflow_states'] = array('link'=>"../out/out.WorkflowStatesMgr.php", 'label'=>'global_workflow_states');
|
||||
$menuitems['definitions']['children']['workflow_states'] = array('link'=>"../out/out.WorkflowStatesMgr.php", 'label'=>getMLText('global_workflow_states'));
|
||||
if ($accessobject->check_view_access('WorkflowActionsMgr'))
|
||||
$menuitems['definitions']['children']['workflow_actions'] = array('link'=>"../out/out.WorkflowActionsMgr.php", 'label'=>'global_workflow_actions');
|
||||
$menuitems['definitions']['children']['workflow_actions'] = array('link'=>"../out/out.WorkflowActionsMgr.php", 'label'=>getMLText('global_workflow_actions'));
|
||||
}
|
||||
}
|
||||
|
||||
if($this->params['enablefullsearch']) {
|
||||
if($accessobject->check_view_access(array('Indexer', 'CreateIndex', 'IndexInfo'))) {
|
||||
$menuitems['fulltext'] = array('link'=>"#", 'label'=>'fullsearch');
|
||||
$menuitems['fulltext'] = array('link'=>"#", 'label'=>getMLText('fullsearch'));
|
||||
if ($accessobject->check_view_access('Indexer'))
|
||||
$menuitems['fulltext']['children']['update_fulltext_index'] = array('link'=>"../out/out.Indexer.php", 'label'=>'update_fulltext_index');
|
||||
$menuitems['fulltext']['children']['update_fulltext_index'] = array('link'=>"../out/out.Indexer.php", 'label'=>getMLText('update_fulltext_index'));
|
||||
if ($accessobject->check_view_access('CreateIndex'))
|
||||
$menuitems['fulltext']['children']['create_fulltext_index'] = array('link'=>"../out/out.CreateIndex.php", 'label'=>'create_fulltext_index');
|
||||
$menuitems['fulltext']['children']['create_fulltext_index'] = array('link'=>"../out/out.CreateIndex.php", 'label'=>getMLText('create_fulltext_index'));
|
||||
if ($accessobject->check_view_access('IndexInfo'))
|
||||
$menuitems['fulltext']['children']['fulltext_info'] = array('link'=>"../out/out.IndexInfo.php", 'label'=>'fulltext_info');
|
||||
$menuitems['fulltext']['children']['fulltext_info'] = array('link'=>"../out/out.IndexInfo.php", 'label'=>getMLText('fulltext_info'));
|
||||
}
|
||||
}
|
||||
|
||||
if($accessobject->check_view_access(array('BackupTools', 'LogManagement'))) {
|
||||
$menuitems['backup_log_management'] = array('link'=>"#", 'label'=>'backup_log_management');
|
||||
$menuitems['backup_log_management'] = array('link'=>"#", 'label'=>getMLText('backup_log_management'));
|
||||
if ($accessobject->check_view_access('BackupTools'))
|
||||
$menuitems['backup_log_management']['children'][] = array('link'=>"../out/out.BackupTools.php", 'label'=>'backup_tools');
|
||||
$menuitems['backup_log_management']['children'][] = array('link'=>"../out/out.BackupTools.php", 'label'=>getMLText('backup_tools'));
|
||||
if ($this->params['logfileenable'])
|
||||
if ($accessobject->check_view_access('LogManagement'))
|
||||
$menuitems['backup_log_management']['children'][] = array('link'=>"../out/out.LogManagement.php", 'label'=>'log_management');
|
||||
$menuitems['backup_log_management']['children'][] = array('link'=>"../out/out.LogManagement.php", 'label'=>getMLText('log_management'));
|
||||
}
|
||||
|
||||
if($accessobject->check_view_access(array('ImportFS', 'ImportUsers', 'Statistic', 'Charts', 'Timeline', 'ObjectCheck', 'ExtensionMgr', 'Info'))) {
|
||||
$menuitems['misc'] = array('link'=>"#", 'label'=>'misc');
|
||||
$menuitems['misc'] = array('link'=>"#", 'label'=>getMLText('misc'));
|
||||
if ($accessobject->check_view_access('ImportFS'))
|
||||
$menuitems['misc']['children']['import_fs'] = array('link'=>"../out/out.ImportFS.php", 'label'=>'import_fs');
|
||||
$menuitems['misc']['children']['import_fs'] = array('link'=>"../out/out.ImportFS.php", 'label'=>getMLText('import_fs'));
|
||||
if ($accessobject->check_view_access('ImportUsers'))
|
||||
$menuitems['misc']['children']['import_users'] = array('link'=>"../out/out.ImportUsers.php", 'label'=>'import_users');
|
||||
$menuitems['misc']['children']['import_users'] = array('link'=>"../out/out.ImportUsers.php", 'label'=>getMLText('import_users'));
|
||||
if ($accessobject->check_view_access('Statistic'))
|
||||
$menuitems['misc']['children']['folders_and_documents_statistic'] = array('link'=>"../out/out.Statistic.php", 'label'=>'folders_and_documents_statistic');
|
||||
$menuitems['misc']['children']['folders_and_documents_statistic'] = array('link'=>"../out/out.Statistic.php", 'label'=>getMLText('folders_and_documents_statistic'));
|
||||
if ($accessobject->check_view_access('Charts'))
|
||||
$menuitems['misc']['children']['charts'] = array('link'=>"../out/out.Charts.php", 'label'=>'charts');
|
||||
$menuitems['misc']['children']['charts'] = array('link'=>"../out/out.Charts.php", 'label'=>getMLText('charts'));
|
||||
if ($accessobject->check_view_access('Timeline'))
|
||||
$menuitems['misc']['children']['timeline'] = array('link'=>"../out/out.Timeline.php", 'label'=>'timeline');
|
||||
$menuitems['misc']['children']['timeline'] = array('link'=>"../out/out.Timeline.php", 'label'=>getMLText('timeline'));
|
||||
if ($accessobject->check_view_access('SchedulerTaskMgr'))
|
||||
$menuitems['misc']['children']['schedulertaskmgr'] = array('link'=>"../out/out.SchedulerTaskMgr.php", 'label'=>'scheduler_task_mgr');
|
||||
$menuitems['misc']['children']['schedulertaskmgr'] = array('link'=>"../out/out.SchedulerTaskMgr.php", 'label'=>getMLText('scheduler_task_mgr'));
|
||||
if ($accessobject->check_view_access('ObjectCheck'))
|
||||
$menuitems['misc']['children']['objectcheck'] = array('link'=>"../out/out.ObjectCheck.php", 'label'=>'objectcheck');
|
||||
$menuitems['misc']['children']['objectcheck'] = array('link'=>"../out/out.ObjectCheck.php", 'label'=>getMLText('objectcheck'));
|
||||
if ($accessobject->check_view_access('ExpiredDocuments'))
|
||||
$menuitems['misc']['children']['documents_expired'] = array('link'=>"../out/out.ExpiredDocuments.php", 'label'=>'documents_expired');
|
||||
$menuitems['misc']['children']['documents_expired'] = array('link'=>"../out/out.ExpiredDocuments.php", 'label'=>getMLText('documents_expired'));
|
||||
if ($accessobject->check_view_access('ExtensionMgr'))
|
||||
$menuitems['misc']['children']['extension_manager'] = array('link'=>"../out/out.ExtensionMgr.php", 'label'=>'extension_manager');
|
||||
$menuitems['misc']['children']['extension_manager'] = array('link'=>"../out/out.ExtensionMgr.php", 'label'=>getMLText('extension_manager'));
|
||||
if ($accessobject->check_view_access('ClearCache'))
|
||||
$menuitems['misc']['children']['clear_cache'] = array('link'=>"../out/out.ClearCache.php", 'label'=>'clear_cache');
|
||||
$menuitems['misc']['children']['clear_cache'] = array('link'=>"../out/out.ClearCache.php", 'label'=>getMLText('clear_cache'));
|
||||
if ($accessobject->check_view_access('Info'))
|
||||
$menuitems['misc']['children']['version_info'] = array('link'=>"../out/out.Info.php", 'label'=>'version_info');
|
||||
$menuitems['misc']['children']['version_info'] = array('link'=>"../out/out.Info.php", 'label'=>getMLText('version_info'));
|
||||
}
|
||||
|
||||
if ($settings->_enableDebugMode) {
|
||||
$menuitems['debug'] = array('link'=>"#", 'label'=>'debug');
|
||||
$menuitems['debug'] = array('link'=>"#", 'label'=>getMLText('debug'));
|
||||
if ($accessobject->check_view_access('Hooks'))
|
||||
$menuitems['debug']['children']['hooks'] = array('link'=>"../out/out.Hooks.php", 'label'=>'list_hooks');
|
||||
$menuitems['debug']['children']['hooks'] = array('link'=>"../out/out.Hooks.php", 'label'=>getMLText('list_hooks'));
|
||||
}
|
||||
|
||||
/* Check if hook exists because otherwise callHook() will override $menuitems */
|
||||
|
@ -932,7 +1012,6 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
|
||||
self::showNavigationBar($menuitems);
|
||||
|
||||
echo " </ul>\n";
|
||||
echo "</div>\n";
|
||||
return;
|
||||
} /* }}} */
|
||||
|
@ -959,11 +1038,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$accessobject = $this->params['accessobject'];
|
||||
echo "<id=\"first\"><a href=\"../out/out.Calendar.php\" class=\"brand\">".getMLText("calendar")."</a>\n";
|
||||
echo "<div class=\"nav-collapse col2\">\n";
|
||||
echo "<ul class=\"nav\">\n";
|
||||
|
||||
$menuitems = array();
|
||||
if($accessobject->check_view_access(array('AddEvent')))
|
||||
$menuitems['addevent'] = array('link'=>"../out/out.AddEvent.php", 'label'=>'add_event');
|
||||
$menuitems['addevent'] = array('link'=>"../out/out.AddEvent.php", 'label'=>getMLText('add_event'));
|
||||
|
||||
/* Check if hook exists because otherwise callHook() will override $menuitems */
|
||||
if($this->hasHook('calendarNavigationBar'))
|
||||
|
@ -971,7 +1049,6 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
|
||||
self::showNavigationBar($menuitems);
|
||||
|
||||
echo "</ul>\n";
|
||||
echo "</div>\n";
|
||||
return;
|
||||
|
||||
|
@ -3534,3 +3611,5 @@ $("body").on("click", "span.openpopupbox", function(e) {
|
|||
<?php
|
||||
} /* }}} */
|
||||
}
|
||||
|
||||
class_alias('SeedDMS_Theme_Style', 'SeedDMS_Bootstrap_Style');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Calendar extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Calendar extends SeedDMS_Theme_Style {
|
||||
|
||||
function iteminfo() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Categories extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Categories extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$selcat = $this->params['selcategory'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for CategoryChooser view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_CategoryChooser extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_CategoryChooser extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for ChangePassword view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ChangePassword extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ChangePassword extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
@ -48,7 +48,6 @@ document.form1.newpassword.focus();
|
|||
$this->globalBanner();
|
||||
$this->contentStart();
|
||||
$this->pageNavigation(getMLText("change_password"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<form class="form-horizontal" action="../op/op.ChangePassword.php" method="post" name="form1">
|
||||
<?php echo createHiddenFieldWithKey('changepassword'); ?>
|
||||
|
@ -59,6 +58,7 @@ document.form1.newpassword.focus();
|
|||
if ($hash) {
|
||||
echo "<input type='hidden' name='hash' value='".$hash."'/>";
|
||||
}
|
||||
$this->contentContainerStart();
|
||||
$this->formField(
|
||||
getMLText("password"),
|
||||
'<input class="pwd" type="password" rel="strengthbar" name="newpassword" id="password">'
|
||||
|
@ -83,11 +83,10 @@ document.form1.newpassword.focus();
|
|||
'autocomplete'=>'off',
|
||||
)
|
||||
);
|
||||
$this->contentContainerEnd();
|
||||
$this->formSubmit(getMLText('submit_password'));
|
||||
?>
|
||||
|
||||
</form>
|
||||
<?php $this->contentContainerEnd(); ?>
|
||||
<p><a href="../out/out.Login.php"><?php echo getMLText("login"); ?></a></p>
|
||||
<?php
|
||||
$this->contentEnd();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for Charts view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Charts extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Charts extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$data = $this->params['data'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for ClearCache view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ClearCache extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ClearCache extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Clipboard extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Clipboard extends SeedDMS_Theme_Style {
|
||||
/**
|
||||
* Returns the html needed for the clipboard list in the menu
|
||||
*
|
||||
|
@ -50,29 +50,38 @@ class SeedDMS_View_Clipboard extends SeedDMS_Bootstrap_Style {
|
|||
if ($this->params['user']->isGuest() || (count($clipboard['docs']) + count($clipboard['folders'])) == 0) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$menuitems = [];
|
||||
|
||||
$content = '';
|
||||
$content .= " <ul id=\"main-menu-clipboard\" class=\"nav pull-right\">\n";
|
||||
$content .= " <li class=\"dropdown add-clipboard-area\">\n";
|
||||
$content .= " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" class=\"add-clipboard-area\">".getMLText('clipboard')." (".count($clipboard['folders'])."/".count($clipboard['docs']).") <i class=\"fa fa-caret-down\"></i></a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
$subitems = [];
|
||||
foreach($clipboard['folders'] as $folderid) {
|
||||
if($folder = $this->params['dms']->getFolder($folderid))
|
||||
if($folder = $this->params['dms']->getFolder($folderid)) {
|
||||
$content .= " <li><a href=\"../out/out.ViewFolder.php?folderid=".$folder->getID()."\" class=\"table-row-folder droptarget\" data-droptarget=\"folder_".$folder->getID()."\" rel=\"folder_".$folder->getID()."\" data-name=\"".htmlspecialchars($folder->getName(), ENT_QUOTES)."\" data-uploadformtoken=\"".createFormKey('')."\" formtoken=\"".createFormKey('')."\"><i class=\"fa fa-folder-o\"></i> ".htmlspecialchars($folder->getName())."</a></li>\n";
|
||||
$subitems[] = array('label'=>'<i class="fa fa-folder-o"></i> '.$folder->getName(), 'link'=>"../out/out.ViewFolder.php?folderid=".$folder->getID(), 'class'=>"table-row-folder droptarget", 'rel'=>"folder_".$folder->getID(), 'attributes'=>array(array('data-droptarget', "folder_".$folder->getID()), array('data-name', htmlspecialchars($folder->getName(), ENT_QUOTES))));
|
||||
}
|
||||
}
|
||||
foreach($clipboard['docs'] as $docid) {
|
||||
if($document = $this->params['dms']->getDocument($docid))
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$document->getID()."\" class=\"table-row-document droptarget\" data-droptarget=\"document_".$document->getID()."\" rel=\"document_".$document->getID()."\" data-name=\"".htmlspecialchars($document->getName(), ENT_QUOTES)."\" formtoken=\"".createFormKey('')."\"><i class=\"fa fa-file\"></i> ".htmlspecialchars($document->getName())."</a></li>\n";
|
||||
$subitems[] = array('label'=>'<i class="fa fa-file"></i> '.$document->getName(), 'link'=>"../out/out.ViewDocument.php?documentid=".$document->getID(), 'class'=>"table-row-document droptarget", 'rel'=>"document_".$document->getID(), 'attributes'=>array(array('data-droptarget', "document_".$document->getID()), array('data-name', htmlspecialchars($document->getName(), ENT_QUOTES))));
|
||||
}
|
||||
$content .= " <li class=\"divider\"></li>\n";
|
||||
$subitems[] = array('divider'=>true);
|
||||
if(isset($this->params['folder']) && $this->params['folder']->getAccessMode($this->params['user']) >= M_READWRITE) {
|
||||
$content .= " <li><a href=\"../op/op.MoveClipboard.php?targetid=".$this->params['folder']->getID()."&refferer=".urlencode('../out/out.ViewFolder.php?folderid='.$this->params['folder']->getID())."\">".getMLText("move_clipboard")."</a></li>\n";
|
||||
$subitems[] = array('label'=>getMLText("move_clipboard"), 'link'=>"../op/op.MoveClipboard.php?targetid=".$this->params['folder']->getID()."&refferer=".urlencode('../out/out.ViewFolder.php?folderid='.$this->params['folder']->getID()));
|
||||
}
|
||||
// $content .= " <li><a href=\"../op/op.ClearClipboard.php?refferer=".urlencode($this->params['refferer'])."\">".getMLText("clear_clipboard")."</a><a class=\"ajax-click\" data-href=\"../op/op.Ajax.php\" data-param1=\"command=clearclipboard\">kkk</a> </li>\n";
|
||||
// $content .= " <li><a class=\"ajax-click\" data-href=\"../op/op.Ajax.php\" data-param1=\"command=clearclipboard\">".getMLText("clear_clipboard")."</a></li>\n";
|
||||
$menuitems = array();
|
||||
$menuitems['clear_clipboard'] = array('label'=>'clear_clipboard', 'attributes'=>array(array('class', 'ajax-click'), array('data-href', '../op/op.Ajax.php'), array('data-param1', 'command=clearclipboard')));
|
||||
$subitems[] = array('label'=>getMLText('clear_clipboard'), 'attributes'=>array(array('class', 'ajax-click'), array('data-href', '../op/op.Ajax.php'), array('data-param1', 'command=clearclipboard')));
|
||||
if($this->hasHook('clipboardMenuItems'))
|
||||
$menuitems = $this->callHook('clipboardMenuItems', $clipboard, $menuitems);
|
||||
$subitems = $this->callHook('clipboardMenuItems', $clipboard, $subitems);
|
||||
/*
|
||||
foreach($menuitems as $menuitem) {
|
||||
$content .= "<li>";
|
||||
$content .= "<a";
|
||||
|
@ -85,10 +94,13 @@ class SeedDMS_View_Clipboard extends SeedDMS_Bootstrap_Style {
|
|||
$content .= getMLText($menuitem['label']);
|
||||
$content .= "</a></li>";
|
||||
}
|
||||
*/
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
$content .= " </ul>\n";
|
||||
echo $content;
|
||||
$menuitems['clipboard'] = array('label'=>getMLText('clipboard')." (".count($clipboard['folders'])."/". count($clipboard['docs']).")", 'children'=>$subitems);
|
||||
self::showNavigationBar($menuitems, array('right'=>true));
|
||||
// echo $content;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for CreateIndex view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_CreateIndex extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_CreateIndex extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
@ -41,12 +41,10 @@ class SeedDMS_View_CreateIndex extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentStart();
|
||||
$this->pageNavigation(getMLText('admin_tools'), 'admin_tools');
|
||||
$this->contentHeading(getMLText("create_fulltext_index"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
echo '<p>'.getMLText('create_fulltext_index_warning').'</p>';
|
||||
echo '<a href="out.Indexer.php?create=1&confirm=1" class="btn">'.getMLText('confirm_create_fulltext_index').'</a>';
|
||||
$this->warningMsg(getMLText('create_fulltext_index_warning'));
|
||||
echo '<p><a href="out.Indexer.php?create=1&confirm=1" class="btn btn-primary">'.getMLText('confirm_create_fulltext_index').'</a></p>';
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for DefaultKeywords view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_DefaultKeywords extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_DefaultKeywords extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for DocumentAccess view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_DocumentAccess extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_DocumentAccess extends SeedDMS_Theme_Style {
|
||||
function printAccessModeSelection($defMode) { /* {{{ */
|
||||
echo self::getAccessModeSelection($defMode);
|
||||
} /* }}} */
|
||||
|
@ -137,14 +137,14 @@ $(document).ready( function() {
|
|||
<input type="hidden" name="documentid" value="<?php print $document->getId();?>">
|
||||
<input type="hidden" name="action" value="notinherit">
|
||||
<input type="hidden" name="mode" value="copy">
|
||||
<input type="submit" class="btn" value="<?php printMLText("inherits_access_copy_msg")?>">
|
||||
<input type="submit" class="btn btn-primary" value="<?php printMLText("inherits_access_copy_msg")?>">
|
||||
</form>
|
||||
<form action="../op/op.DocumentAccess.php" style="display: inline-block;">
|
||||
<?php echo createHiddenFieldWithKey('documentaccess'); ?>
|
||||
<input type="hidden" name="documentid" value="<?php print $document->getId();?>">
|
||||
<input type="hidden" name="action" value="notinherit">
|
||||
<input type="hidden" name="mode" value="empty">
|
||||
<input type="submit" class="btn" value="<?php printMLText("inherits_access_empty_msg")?>">
|
||||
<input type="submit" class="btn btn-primary" value="<?php printMLText("inherits_access_empty_msg")?>">
|
||||
</form>
|
||||
</p>
|
||||
<?php
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for DocumentChooser view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_DocumentChooser extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_DocumentChooser extends SeedDMS_Theme_Style {
|
||||
|
||||
public function subtree() { /* {{{ */
|
||||
$user = $this->params['user'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for DocumentNotify view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_DocumentNotify extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_DocumentNotify extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Theme_Style {
|
||||
|
||||
/**
|
||||
* Output a single attribute in the document info section
|
||||
|
@ -162,9 +162,9 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style {
|
|||
$this->rowStart();
|
||||
$this->columnStart(4);
|
||||
$this->contentHeading(getMLText("document_infos"));
|
||||
$this->contentContainerStart();
|
||||
// $this->contentContainerStart();
|
||||
?>
|
||||
<table class="table-condensed">
|
||||
<table class="table table-condensed table-sm">
|
||||
<tr>
|
||||
<td><?php printMLText("owner");?>:</td>
|
||||
<td>
|
||||
|
@ -241,7 +241,7 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style {
|
|||
?>
|
||||
</table>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
// $this->contentContainerEnd();
|
||||
$this->preview();
|
||||
$this->columnEnd();
|
||||
$this->columnStart(8);
|
||||
|
@ -265,8 +265,20 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style {
|
|||
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidthdetail, $timeout, $xsendfile);
|
||||
$previewer->setConverters($previewconverters);
|
||||
$previewer->createPreview($version);
|
||||
if ($file_exists) {
|
||||
if ($viewonlinefiletypes && (in_array(strtolower($version->getFileType()), $viewonlinefiletypes) || in_array(strtolower($version->getMimeType()), $viewonlinefiletypes))) {
|
||||
print "<a target=\"_blank\" href=\"../op/op.ViewOnline.php?documentid=".$version->getDocument()->getId()."&version=". $version->getVersion()."\">";
|
||||
} else {
|
||||
print "<a href=\"../op/op.Download.php?documentid=".$version->getDocument()->getId()."&version=".$version->getVersion()."\">";
|
||||
}
|
||||
}
|
||||
if($previewer->hasPreview($version)) {
|
||||
print("<img class=\"mimeicon\" width=\"".$previewwidthdetail."\" src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$version->getVersion()."&width=".$previewwidthdetail."\" title=\"".htmlspecialchars($version->getMimeType())."\">");
|
||||
} else {
|
||||
print "<img class=\"mimeicon\" width=\"".$previewwidthdetail."\" src=\"".$this->getMimeIcon($version->getFileType())."\" title=\"".htmlspecialchars($version->getMimeType())."\">";
|
||||
}
|
||||
if ($file_exists) {
|
||||
print "</a>";
|
||||
}
|
||||
print "</td>\n";
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_DropFolderChooser extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_DropFolderChooser extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
@ -66,7 +66,7 @@ $('.folderselect').click(function(ev) {
|
|||
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout, $xsendfile);
|
||||
|
||||
$c = 0; // count files
|
||||
$filecontent = '';
|
||||
$menuitems['dropfolder'] = array('label'=>'', 'children'=>array());
|
||||
$dir = rtrim($dropfolderdir, '/').'/'.$user->getLogin();
|
||||
/* Check if we are still looking in the configured directory and
|
||||
* not somewhere else, e.g. if the login was '../test'
|
||||
|
@ -80,36 +80,32 @@ $('.folderselect').click(function(ev) {
|
|||
if($entry != '..' && $entry != '.') {
|
||||
if($showfolders == 0 && !is_dir($dir.'/'.$entry)) {
|
||||
$c++;
|
||||
$subitem = array('label'=>'', 'attributes'=>array(array('title', getMLText('menu_upload_from_dropfolder'))));
|
||||
if($folder)
|
||||
$subitem['link'] = '../out/out.AddDocument.php?folderid='.$folder->getId()."&dropfolderfileform1=".urldecode($entry);
|
||||
$mimetype = finfo_file($finfo, $dir.'/'.$entry);
|
||||
if(file_exists($dir.'/'.$entry)) {
|
||||
$filecontent .= "<li><a".($folder ? " href=\"../out/out.AddDocument.php?folderid=".$folder->getId()."&dropfolderfileform1=".urldecode($entry)."\" title=\"".getMLText('menu_upload_from_dropfolder')."\"" : "").">";
|
||||
if($previewwidth) {
|
||||
$previewer->createRawPreview($dir.'/'.$entry, 'dropfolder/', $mimetype);
|
||||
if($previewer->hasRawPreview($dir.'/'.$entry, 'dropfolder/')) {
|
||||
$filecontent .= "<div class=\"dropfolder-menu-img\" style=\"display: none; overflow:hidden; position: absolute; left:-".($previewwidth+10)."px; border: 1px solid #888;background: white;\"><img filename=\"".$entry."\" width=\"".$previewwidth."\" src=\"../op/op.DropFolderPreview.php?filename=".$entry."&width=".$previewwidth."\" title=\"".htmlspecialchars($mimetype)."\"></div>";
|
||||
$subitem['label'] .= "<div class=\"dropfolder-menu-img\" style=\"display: none; overflow:hidden; position: absolute; left:-".($previewwidth+10)."px; border: 1px solid #888;background: white;\"><img filename=\"".$entry."\" width=\"".$previewwidth."\" src=\"../op/op.DropFolderPreview.php?filename=".$entry."&width=".$previewwidth."\" title=\"".htmlspecialchars($mimetype)."\"></div>";
|
||||
}
|
||||
}
|
||||
$filecontent .= "<div class=\"dropfolder-menu-text\" style=\"margin-left:10px; margin-right: 10px; display:inline-block;\">".$entry."<br /><span style=\"font-size: 85%;\">".SeedDMS_Core_File::format_filesize(filesize($dir.'/'.$entry)).", ".date('Y-m-d H:i:s', filectime($dir.'/'.$entry))."</span></div></a></li>\n";
|
||||
$subitem['label'] .= "<div class=\"dropfolder-menu-text\" style=\"margin-left:10px; margin-right: 10px; display:inline-block;\">".$entry."<br /><span style=\"font-size: 85%;\">".SeedDMS_Core_File::format_filesize(filesize($dir.'/'.$entry)).", ".date('Y-m-d H:i:s', filectime($dir.'/'.$entry))."</span></div>";
|
||||
$menuitems['dropfolder']['children'][] = $subitem;
|
||||
}
|
||||
} elseif($showfolders && is_dir($dir.'/'.$entry)) {
|
||||
$filecontent .= "<li><a _href=\"\">".$entry."</a></li>";
|
||||
$subitem = array('label'=>$entry);
|
||||
$menuitems['dropfolder']['children'][] = $subitem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$content = '';
|
||||
if($c) {
|
||||
$content .= " <ul id=\"main-menu-dropfolderlist\" class=\"nav pull-right\">\n";
|
||||
$content .= " <li class=\"dropdown add-dropfolderlist-area\">\n";
|
||||
$content .= " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" class=\"add-dropfolderlist-area\">".getMLText('menu_dropfolder')." (".$c.") <i class=\"fa fa-caret-down\"></i></a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\" style=\"width: 400px;\">\n";
|
||||
$content .= $filecontent;
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
$content .= " </ul>\n";
|
||||
$menuitems['dropfolder']['label'] = getMLText('menu_dropfolder')." (".$c.")";
|
||||
self::showNavigationBar($menuitems, array('id'=>'main-menu-dropfolderlist', 'right'=>true));
|
||||
}
|
||||
echo $content;
|
||||
} /* }}} */
|
||||
|
||||
function show() { /* {{{ */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for EditAttributes view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_EditAttributes extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_EditAttributes extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for EditComment view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_EditComment extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_EditComment extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$strictformcheck = $this->params['strictformcheck'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for EditDocument view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_EditDocument extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_EditDocument extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$strictformcheck = $this->params['strictformcheck'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for EditDocumentFile view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_EditDocumentFile extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_EditDocumentFile extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -43,7 +43,6 @@ class SeedDMS_View_EditDocumentFile extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentStart();
|
||||
$this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
|
||||
$this->contentHeading(getMLText("edit"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
?>
|
||||
<form action="../op/op.EditDocumentFile.php" class="form-horizontal" name="form1" method="post">
|
||||
|
@ -51,6 +50,7 @@ class SeedDMS_View_EditDocumentFile extends SeedDMS_Bootstrap_Style {
|
|||
<input type="hidden" name="documentid" value="<?php echo $document->getID()?>">
|
||||
<input type="hidden" name="fileid" value="<?php echo $file->getID()?>">
|
||||
<?php
|
||||
$this->contentContainerStart();
|
||||
$options = array();
|
||||
$options[] = array("", getMLText('document'));
|
||||
$versions = $document->getContent();
|
||||
|
@ -94,13 +94,11 @@ class SeedDMS_View_EditDocumentFile extends SeedDMS_Bootstrap_Style {
|
|||
'checked'=>$file->isPublic()
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('save'));
|
||||
?>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for EditFolder view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_EditFolder extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_EditFolder extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$strictformcheck = $this->params['strictformcheck'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for EditOnline view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_EditOnline extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_EditOnline extends SeedDMS_Theme_Style {
|
||||
var $dms;
|
||||
var $folder_count;
|
||||
var $document_count;
|
||||
|
@ -128,10 +128,10 @@ $(document).ready(function() {
|
|||
|
||||
$set = 'markdown'; //default or markdown
|
||||
$skin = 'simple'; // simple or markitup
|
||||
$this->htmlAddHeader('<link href="../styles/'.$this->theme.'/markitup/skins/'.$skin.'/style.css" rel="stylesheet">'."\n", 'css');
|
||||
$this->htmlAddHeader('<link href="../styles/'.$this->theme.'/markitup/sets/'.$set.'/style.css" rel="stylesheet">'."\n", 'css');
|
||||
$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/markitup/jquery.markitup.js"></script>'."\n", 'js');
|
||||
$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/markitup/sets/'.$set.'/set.js"></script>'."\n", 'js');
|
||||
$this->htmlAddHeader('<link href="../styles/bootstrap/markitup/skins/'.$skin.'/style.css" rel="stylesheet">'."\n", 'css');
|
||||
$this->htmlAddHeader('<link href="../styles/bootstrap/markitup/sets/'.$set.'/style.css" rel="stylesheet">'."\n", 'css');
|
||||
$this->htmlAddHeader('<script type="text/javascript" src="../styles/bootstrap/markitup/jquery.markitup.js"></script>'."\n", 'js');
|
||||
$this->htmlAddHeader('<script type="text/javascript" src="../styles/bootstrap/markitup/sets/'.$set.'/set.js"></script>'."\n", 'js');
|
||||
|
||||
$this->htmlStartPage(getMLText("edit_online"));
|
||||
$this->globalNavigation();
|
||||
|
@ -144,7 +144,7 @@ $(document).ready(function() {
|
|||
?>
|
||||
<form action="../op/op.EditOnline.php" id="form1" method="post">
|
||||
<input type="hidden" name="documentid" value="<?php echo $document->getId(); ?>" />
|
||||
<textarea id="markdown" name="data" width="100%" rows="20">
|
||||
<textarea id="markdown" name="data" style="width: 100%;" rows="15">
|
||||
<?php
|
||||
$luser = $document->getLatestContent()->getUser();
|
||||
echo htmlspecialchars(file_get_contents($dms->contentDir . $version->getPath()), ENT_SUBSTITUTE);
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for EditUserData view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_EditUserData extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_EditUserData extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for ErrorDlg view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ErrorDlg extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ErrorDlg extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -45,12 +45,10 @@ class SeedDMS_View_ErrorDlg extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentStart();
|
||||
}
|
||||
|
||||
print "<div class=\"alert alert-error\">";
|
||||
print "<h4>".getMLText('error')."!</h4>";
|
||||
print htmlspecialchars($errormsg);
|
||||
print "</div>";
|
||||
$this->errorMsg(htmlspecialchars($errormsg));
|
||||
if($showbutton)
|
||||
print "<div><button class=\"btn history-back\">".getMLText('back')."</button></div>";
|
||||
print "<div><button class=\"btn btn-primary history-back\">".getMLText('back')."</button></div>";
|
||||
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ExpiredDocuments extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ExpiredDocuments extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for ExtensionMgr view
|
||||
|
@ -25,7 +25,7 @@ require_once("class.Bootstrap.php");
|
|||
* @copyright Copyright (C) 2013 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
@ -272,8 +272,8 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style {
|
|||
$this->columnStart(8);
|
||||
?>
|
||||
<ul class="nav nav-tabs" id="extensionstab">
|
||||
<li class="<?php if(!$currenttab || $currenttab == 'installed') echo 'active'; ?>"><a data-target="#installed" data-toggle="tab"><?= getMLText('extension_mgr_installed'); ?></a></li>
|
||||
<li class="<?php if($currenttab == 'repository') echo 'active'; ?>"><a data-target="#repository" data-toggle="tab"><?= getMLText('extension_mgr_repository'); ?></a></li>
|
||||
<li class="nav-item <?php if(!$currenttab || $currenttab == 'installed') echo 'active'; ?>"><a class="nav-link <?php if(!$currenttab || $currenttab == 'installed') echo 'active'; ?>" data-target="#installed" data-toggle="tab"><?= getMLText('extension_mgr_installed'); ?></a></li>
|
||||
<li class="nav-item <?php if($currenttab == 'repository') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'repository') echo 'active'; ?>" data-target="#repository" data-toggle="tab"><?= getMLText('extension_mgr_repository'); ?></a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane <?php if(!$currenttab || $currenttab == 'installed') echo 'active'; ?>" id="installed">
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for FolderAccess view
|
||||
|
@ -29,13 +29,13 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_FolderAccess extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_FolderAccess extends SeedDMS_Theme_Style {
|
||||
function printAccessModeSelection($defMode) { /* {{{ */
|
||||
echo self::getAccessModeSelection($defMode);
|
||||
} /* }}} */
|
||||
|
||||
function getAccessModeSelection($defMode) { /* {{{ */
|
||||
$content = "<select name=\"mode\">\n";
|
||||
$content = "<select name=\"mode\" class=\"form-control\">\n";
|
||||
$content .= "\t<option value=\"".M_NONE."\"" . (($defMode == M_NONE) ? " selected" : "") . ">" . getMLText("access_mode_none") . "\n";
|
||||
$content .= "\t<option value=\"".M_READ."\"" . (($defMode == M_READ) ? " selected" : "") . ">" . getMLText("access_mode_read") . "\n";
|
||||
$content .= "\t<option value=\"".M_READWRITE."\"" . (($defMode == M_READWRITE) ? " selected" : "") . ">" . getMLText("access_mode_readwrite") . "\n";
|
||||
|
@ -183,7 +183,10 @@ $(document).ready(function() {
|
|||
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('save'));
|
||||
?>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<form class="form-horizontal" action="../op/op.FolderAccess.php" id="form1" name="form1">
|
||||
<?php echo createHiddenFieldWithKey('folderaccess'); ?>
|
||||
<input type="hidden" name="folderid" value="<?php print $folder->getID()?>">
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for FolderChooser view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_FolderChooser extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_FolderChooser extends SeedDMS_Theme_Style {
|
||||
|
||||
public function subtree() { /* {{{ */
|
||||
$user = $this->params['user'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for FolderNotify view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_FolderNotify extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_FolderNotify extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for ForcePasswordChange view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ForcePasswordChange extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ForcePasswordChange extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
@ -74,7 +74,7 @@ $(document).ready( function() {
|
|||
$this->globalBanner();
|
||||
$this->contentStart();
|
||||
$this->contentHeading(getMLText('password_expiration'));
|
||||
echo "<div class=\"alert\">".getMLText('password_expiration_text')."</div>";
|
||||
$this->warningMsg(getMLText('password_expiration_text'));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<form class="form-horizontal" action="../op/op.EditUserData.php" method="post" id="form" name="form1">
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_GroupMgr extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_GroupMgr extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$selgroup = $this->params['selgroup'];
|
||||
|
@ -155,21 +155,15 @@ $(document).ready( function() {
|
|||
$selgroup = $this->params['selgroup'];
|
||||
|
||||
if($selgroup) {
|
||||
?>
|
||||
<div class="btn-group">
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
<?php echo getMLText('action'); ?>
|
||||
<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<?php
|
||||
echo '<li><a href="../out/out.RemoveGroup.php?groupid='.$selgroup->getID().'"><i class="fa fa-remove"></i> '.getMLText("rm_group").'</a><li>';
|
||||
$button = array(
|
||||
'label'=>getMLText('action'),
|
||||
'menuitems'=>array(
|
||||
)
|
||||
);
|
||||
$button['menuitems'][] = array('label'=>'<i class="fa fa-remove"></i> '.getMLText("rm_group"), 'link'=>'../out/out.RemoveGroup.php?groupid='.$selgroup->getID());
|
||||
if($selgroup->getUsers())
|
||||
echo '<li><a href="../op/op.UserListCsv.php?groupid='.$selgroup->getID().'"><i class="fa fa-download"></i> '.getMLText("export_user_list_csv").'</a><li>';
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
$button['menuitems'][] = array('label'=>'<i class="fa fa-download"></i> '.getMLText("export_user_list_csv"), 'link'=>'../op/op.UserListCsv.php?groupid='.$selgroup->getID());
|
||||
self::showButtonwithMenu($button);
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for GroupView view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_GroupView extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_GroupView extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for Help view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Help extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Help extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for Hooks view
|
||||
|
@ -27,7 +27,7 @@ require_once("class.Bootstrap.php");
|
|||
* @copyright Copyright (C) 2016 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Hooks extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Hooks extends SeedDMS_Theme_Style {
|
||||
|
||||
/**
|
||||
* List all registered hooks
|
||||
|
@ -37,7 +37,7 @@ class SeedDMS_View_Hooks extends SeedDMS_Bootstrap_Style {
|
|||
if(!isset($GLOBALS['SEEDDMS_HOOKS']))
|
||||
return;
|
||||
|
||||
echo "<table class=\"table\">\n";
|
||||
echo "<table class=\"table table-condensed table-sm\">\n";
|
||||
echo "<thead>";
|
||||
echo "<tr><th>".getMLText('type_of_hook')."</th><th>".getMLText('hook_name')."</th><th>".getMLText('class_name')."</th><th>".getMLText('file')."</th></tr>\n";
|
||||
echo "</thead>";
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for ImportFS view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ImportFS extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ImportFS extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for ImportUsers view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ImportUsers extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ImportUsers extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for IndexInfo view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_IndexInfo extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_IndexInfo extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class for processing a single folder
|
||||
|
@ -105,7 +105,7 @@ class SeedDMS_View_Indexer_Process_Folder { /* {{{ */
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Indexer extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Indexer extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -223,13 +223,9 @@ $(document).ready( function() {
|
|||
$index = $fulltextservice->Indexer();
|
||||
?>
|
||||
<style type="text/css">
|
||||
li {line-height: 20px;}
|
||||
div.document {line-height: 20px;}
|
||||
div.document:hover {background-color: #eee;}
|
||||
div.folder {font-weight: bold; line-height: 20px; margin-top: 10px;}
|
||||
.nav-header {line-height: 19px; margin-bottom: 0px;}
|
||||
.nav-list {padding-right: 0px;}
|
||||
.nav-list>li.document:hover {background-color: #eee;}
|
||||
.indexstatus {font-weight: bold; float: right;}
|
||||
.progress {margin-bottom: 2px;}
|
||||
.bar-legend {text-align: right; font-size: 85%; margin-bottom: 15px;}
|
||||
|
@ -237,13 +233,13 @@ div.folder {font-weight: bold; line-height: 20px; margin-top: 10px;}
|
|||
<div style="max-width: 900px;">
|
||||
<div>
|
||||
<div class="progress">
|
||||
<div class="bar total-bar" role="progressbar" style="width: 100%;"></div>
|
||||
<div class="progress-bar bar total-bar" role="progressbar" style="width: 100%;"></div>
|
||||
</div>
|
||||
<div class="bar-legend"><?php printMLText('overall_indexing_progress'); ?></div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="progress">
|
||||
<div class="bar queue-bar" role="progressbar" style="width: 100%;"></div>
|
||||
<div class="progress-bar bar queue-bar" role="progressbar" style="width: 100%;"></div>
|
||||
</div>
|
||||
<div class="bar-legend"><?php printMLText('indexing_tasks_in_queue'); ?></div>
|
||||
</div>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for Info view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Info extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Info extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for KeywordChooser view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_KeywordChooser extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_KeywordChooser extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$form = $this->params['form'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for LogManagement view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_LogManagement extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_LogManagement extends SeedDMS_Theme_Style {
|
||||
|
||||
function filelist($entries, $mode) { /* {{{ */
|
||||
$accessop = $this->params['accessobject'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for Login view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Login extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Login extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
@ -164,7 +164,7 @@ $(document).ready( function() {
|
|||
);
|
||||
}
|
||||
if($enableLanguageSelector) {
|
||||
$html = "<select id=\"languageselector\" name=\"lang\">";
|
||||
$html = "<select id=\"languageselector\" class=\"form-control\" name=\"lang\">";
|
||||
$html .= "<option value=\"\">-";
|
||||
foreach ($languages as $currLang) {
|
||||
$html .= "<option value=\"".$currLang."\">".getMLText($currLang)."</option>";
|
||||
|
@ -176,7 +176,7 @@ $(document).ready( function() {
|
|||
);
|
||||
}
|
||||
if($enableThemeSelector) {
|
||||
$html = "<select id=\"themeselector\" name=\"sesstheme\">";
|
||||
$html = "<select id=\"themeselector\" class=\"form-control\" name=\"sesstheme\">";
|
||||
$html .= "<option value=\"\">-";
|
||||
foreach ($themes as $currTheme) {
|
||||
$html .= "<option value=\"".$currTheme."\">".$currTheme;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ManageNotify extends SeedDMS_Theme_Style {
|
||||
|
||||
// Get list of subscriptions for documents or folders for user or groups
|
||||
function getNotificationList($as_group, $folders) { /* {{{ */
|
||||
|
@ -82,8 +82,8 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style {
|
|||
echo $this->folderListRow($fld, true);
|
||||
}
|
||||
print "<td>";
|
||||
if ($deleteaction) print "<a href='../op/op.ManageNotify.php?id=".$fld->getID()."&type=folder&action=del' class=\"btn btn-mini\"><i class=\"fa fa-remove\"></i> ".getMLText("delete")."</a>";
|
||||
else print "<a href='../out/out.FolderNotify.php?folderid=".$fld->getID()."' class=\"btn btn-mini\">".getMLText("edit")."</a>";
|
||||
if ($deleteaction) print "<a href='../op/op.ManageNotify.php?id=".$fld->getID()."&type=folder&action=del' class=\"btn btn-danger btn-mini btn-sm\"><i class=\"fa fa-remove\"></i> ".getMLText("delete")."</a>";
|
||||
else print "<a href='../out/out.FolderNotify.php?folderid=".$fld->getID()."' class=\"btn btn-danger btn-mini btn-sm\">".getMLText("edit")."</a>";
|
||||
print "</td>";
|
||||
echo $this->folderListRowEnd($fld);
|
||||
}
|
||||
|
@ -121,8 +121,8 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style {
|
|||
echo $this->documentListRow($doc, $previewer, true);
|
||||
}
|
||||
print "<td>";
|
||||
if ($deleteaction) print "<a href='../op/op.ManageNotify.php?id=".$doc->getID()."&type=document&action=del' class=\"btn btn-mini\"><i class=\"fa fa-remove\"></i> ".getMLText("delete")."</a>";
|
||||
else print "<a href='../out/out.DocumentNotify.php?documentid=".$doc->getID()."' class=\"btn btn-mini\">".getMLText("edit")."</a>";
|
||||
if ($deleteaction) print "<a href='../op/op.ManageNotify.php?id=".$doc->getID()."&type=document&action=del' class=\"btn btn-danger btn-mini btn-sm\"><i class=\"fa fa-remove\"></i> ".getMLText("delete")."</a>";
|
||||
else print "<a href='../out/out.DocumentNotify.php?documentid=".$doc->getID()."' class=\"btn btn-danger btn-mini btn-sm\">".getMLText("edit")."</a>";
|
||||
print "</td>\n";
|
||||
echo $this->documentListRowEnd($doc);
|
||||
}
|
||||
|
@ -158,9 +158,9 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style {
|
|||
$this->rowStart();
|
||||
$this->columnStart(6);
|
||||
$this->contentHeading(getMLText("edit_folder_notify"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
print "<form class=\"form-horizontal\" method=\"post\" action=\"../op/op.ManageNotify.php?type=folder&action=add\" name=\"form1\">";
|
||||
$this->contentContainerStart();
|
||||
$this->formField(getMLText("choose_target_folder"), $this->getFolderChooserHtml("form1", M_READ));
|
||||
$this->formField(
|
||||
getMLText("include_subdirectories"),
|
||||
|
@ -180,21 +180,21 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style {
|
|||
'value'=>1
|
||||
)
|
||||
);
|
||||
$this->contentContainerEnd();
|
||||
$this->formSubmit("<i class=\"fa fa-plus\"></i> ".getMLText('add'));
|
||||
print "</form>";
|
||||
$this->contentContainerEnd();
|
||||
$this->columnEnd();
|
||||
$this->columnStart(6);
|
||||
$this->contentHeading(getMLText("edit_document_notify"));
|
||||
$this->contentContainerStart();
|
||||
print "<form method=\"post\" action=\"../op/op.ManageNotify.php?type=document&action=add\" name=\"form2\">";
|
||||
/* 'form1' must be passed to printDocumentChooser() because the typeahead
|
||||
* function is currently hardcoded on this value */
|
||||
$this->contentContainerStart();
|
||||
$this->formField(getMLText("choose_target_document"), $this->getDocumentChooserHtml("form2"));
|
||||
$this->contentContainerEnd();
|
||||
$this->formSubmit("<i class=\"fa fa-plus\"></i> ".getMLText('add'));
|
||||
print "</form>";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->columnEnd();
|
||||
$this->rowEnd();
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for MoveDocument view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_MoveDocument extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_MoveDocument extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for MoveFolder view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_MoveFolder extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_MoveFolder extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for MyAccount view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_MyAccount extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_MyAccount extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_MyDocuments extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ObjectCheck extends SeedDMS_Theme_Style {
|
||||
|
||||
protected function printListHeader($resArr, $previewer, $order=false) { /* {{{ */
|
||||
print "<table class=\"table table-condensed\">";
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for OpensearchDesc view
|
||||
|
@ -27,7 +27,7 @@ require_once("class.Bootstrap.php");
|
|||
* @copyright Copyright (C) 2010-2018 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_OpensearchDesc extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_OpensearchDesc extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for OverrideContentStatus view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_OverrideContentStatus extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_OverrideContentStatus extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for PasswordForgotten view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_PasswordForgotten extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_PasswordForgotten extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
@ -72,15 +72,13 @@ document.form1.email.focus();
|
|||
$this->pageNavigation(getMLText("password_forgotten"));
|
||||
?>
|
||||
|
||||
<?php $this->contentContainerStart(); ?>
|
||||
<form class="form-horizontal" action="../op/op.PasswordForgotten.php" method="post" id="form1" name="form1">
|
||||
<?php
|
||||
if ($referrer) {
|
||||
echo "<input type='hidden' name='referuri' value='".$referrer."'/>";
|
||||
}
|
||||
?>
|
||||
<p><?php printMLText("password_forgotten_text"); ?></p>
|
||||
<?php
|
||||
$this->infoMsg(getMLText("password_forgotten_text"));
|
||||
$this->contentContainerStart();
|
||||
$this->formField(
|
||||
getMLText("user_login"),
|
||||
array(
|
||||
|
@ -105,10 +103,10 @@ document.form1.email.focus();
|
|||
'required'=>true
|
||||
)
|
||||
);
|
||||
$this->contentContainerEnd();
|
||||
$this->formSubmit(getMLText('submit_password_forgotten'));
|
||||
?>
|
||||
</form>
|
||||
<?php $this->contentContainerEnd(); ?>
|
||||
<p><a href="../out/out.Login.php"><?php echo getMLText("login"); ?></a></p>
|
||||
<?php
|
||||
$this->contentEnd();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for PasswordSend view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_PasswordSend extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_PasswordSend extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$referrer = $this->params['referrer'];
|
||||
|
@ -38,12 +38,10 @@ class SeedDMS_View_PasswordSend extends SeedDMS_Bootstrap_Style {
|
|||
$this->globalBanner();
|
||||
$this->contentStart();
|
||||
$this->pageNavigation(getMLText("password_send"));
|
||||
?>
|
||||
|
||||
<?php $this->contentContainerStart(); ?>
|
||||
<?php printMLText('password_send_text'); ?>
|
||||
<?php $this->contentContainerEnd(); ?>
|
||||
<p><a href="../out/out.Login.php"><?php echo getMLText("login"); ?></a></p>
|
||||
$this->infoMsg(getMLText('password_send_text'));
|
||||
?>
|
||||
<p><a class="btn btn-primary" href="../out/out.Login.php"><?php echo getMLText("login"); ?></a></p>
|
||||
<?php
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for RemoveArchive view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RemoveArchive extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RemoveArchive extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -41,17 +41,15 @@ class SeedDMS_View_RemoveArchive extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentStart();
|
||||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
||||
$this->contentHeading(getMLText("backup_remove"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
$this->warningMsg(getMLText("confirm_rm_backup", array ("arkname" => htmlspecialchars($arkname))));
|
||||
?>
|
||||
<form action="../op/op.RemoveArchive.php" name="form1" method="post">
|
||||
<input type="hidden" name="arkname" value="<?php echo htmlspecialchars($arkname); ?>">
|
||||
<?php echo createHiddenFieldWithKey('removearchive'); ?>
|
||||
<p><?php printMLText("confirm_rm_backup", array ("arkname" => htmlspecialchars($arkname)));?></p>
|
||||
<p><button type="submit" class="btn"><i class="fa fa-remove"></i> <?php printMLText("backup_remove");?></button></p>
|
||||
<p><button type="submit" class="btn btn-danger"><i class="fa fa-remove"></i> <?php printMLText("backup_remove");?></button></p>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for RemoveDocument view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RemoveDocument extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RemoveDocument extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
parent::show();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for RemoveDocumentFile view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RemoveDocumentFile extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RemoveDocumentFile extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -43,18 +43,15 @@ class SeedDMS_View_RemoveDocumentFile extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentStart();
|
||||
$this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
|
||||
$this->contentHeading(getMLText("rm_file"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
$this->warningMsg(getMLText("confirm_rm_file", array ("documentname" => htmlspecialchars($document->getName()), "name" => htmlspecialchars($file->getName()))));
|
||||
?>
|
||||
<form action="../op/op.RemoveDocumentFile.php" name="form1" method="post">
|
||||
<?php echo createHiddenFieldWithKey('removedocumentfile'); ?>
|
||||
<input type="Hidden" name="documentid" value="<?php echo $document->getID()?>">
|
||||
<input type="Hidden" name="fileid" value="<?php echo $file->getID()?>">
|
||||
<p><?php printMLText("confirm_rm_file", array ("documentname" => htmlspecialchars($document->getName()), "name" => htmlspecialchars($file->getName())));?></p>
|
||||
<button type="submit" class="btn"><i class="fa fa-remove"></i> <?php printMLText("rm_file");?></button>
|
||||
<button type="submit" class="btn btn-danger"><i class="fa fa-remove"></i> <?php printMLText("rm_file");?></button>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for RemoveDump view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RemoveDump extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RemoveDump extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -41,16 +41,16 @@ class SeedDMS_View_RemoveDump extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentStart();
|
||||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
||||
$this->contentHeading(getMLText("dump_remove"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<form action="../op/op.RemoveDump.php" name="form1" method="post">
|
||||
<input type="Hidden" name="dumpname" value="<?php echo htmlspecialchars($dumpname); ?>">
|
||||
<?php echo createHiddenFieldWithKey('removedump'); ?>
|
||||
<p><?php printMLText("confirm_rm_dump", array ("dumpname" => htmlspecialchars($dumpname)));?></p>
|
||||
<p><button type="submit" class="btn"><i class="fa fa-remove"></i> <?php printMLText("dump_remove");?></button></p>
|
||||
<?php
|
||||
echo createHiddenFieldWithKey('removedump');
|
||||
$this->warningMsg(getMLText("confirm_rm_dump", array ("dumpname" => htmlspecialchars($dumpname))));
|
||||
?>
|
||||
<p><button type="submit" class="btn btn-danger"><i class="fa fa-remove"></i> <?php printMLText("dump_remove");?></button></p>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for RemoveFolder view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RemoveFolder extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RemoveFolder extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for RemoveGroup view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RemoveGroup extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RemoveGroup extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -41,20 +41,17 @@ class SeedDMS_View_RemoveGroup extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentStart();
|
||||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
||||
$this->contentHeading(getMLText("rm_group"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
?>
|
||||
<form action="../op/op.GroupMgr.php" name="form1" method="post">
|
||||
<input type="hidden" name="groupid" value="<?php print $group->getID();?>">
|
||||
<input type="hidden" name="action" value="removegroup">
|
||||
<?php echo createHiddenFieldWithKey('removegroup'); ?>
|
||||
<p>
|
||||
<?php printMLText("confirm_rm_group", array ("groupname" => htmlspecialchars($group->getName())));?>
|
||||
</p>
|
||||
<p><button type="submit" class="btn"><i class="fa fa-remove"></i> <?php printMLText("rm_group");?></button></p>
|
||||
<?php
|
||||
$this->warningMsg(getMLText("confirm_rm_group", array ("groupname" => htmlspecialchars($group->getName()))));
|
||||
?>
|
||||
<p><button type="submit" class="btn btn-danger"><i class="fa fa-remove"></i> <?php printMLText("rm_group");?></button></p>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for RemoveLog view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RemoveLog extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RemoveLog extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -42,7 +42,6 @@ class SeedDMS_View_RemoveLog extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentStart();
|
||||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
||||
$this->contentHeading(getMLText("rm_file"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<form action="../op/op.RemoveLog.php" name="form1" method="post">
|
||||
<?php echo createHiddenFieldWithKey('removelog'); ?>
|
||||
|
@ -52,12 +51,11 @@ class SeedDMS_View_RemoveLog extends SeedDMS_Bootstrap_Style {
|
|||
echo "<input type=\"hidden\" name=\"lognames[]\" value=\"".$logname."\">\n";
|
||||
|
||||
}
|
||||
$this->warningMsg(getMLText("confirm_rm_log", array ("logname" => implode(', ', $lognames))));
|
||||
?>
|
||||
<p><?php printMLText("confirm_rm_log", array ("logname" => implode(', ', $lognames)));?></p>
|
||||
<p><button type="submit" class="btn btn-danger"><i class="fa fa-remove"></i> <?php printMLText("rm_file");?></button></p>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for RemoveUser view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RemoveUser extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RemoveUser extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -43,11 +43,7 @@ class SeedDMS_View_RemoveUser extends SeedDMS_Bootstrap_Style {
|
|||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
||||
$this->contentHeading(getMLText("rm_user"));
|
||||
|
||||
?>
|
||||
<div class="alert">
|
||||
<?php printMLText("confirm_rm_user", array ("username" => htmlspecialchars($rmuser->getFullName())));?>
|
||||
</div>
|
||||
<?php
|
||||
$this->warningMsg(getMLText("confirm_rm_user", array ("username" => htmlspecialchars($rmuser->getFullName()))));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<form class="form-horizontal" action="../op/op.UsrMgr.php" name="form1" method="post">
|
||||
|
@ -73,16 +69,17 @@ class SeedDMS_View_RemoveUser extends SeedDMS_Bootstrap_Style {
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn"><i class="fa fa-remove"></i> <?php printMLText("rm_user");?></button>
|
||||
<button type="submit" class="btn btn-danger"><i class="fa fa-remove"></i> <?php printMLText("rm_user");?></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for RemoveUserFromProcesses view
|
||||
|
@ -25,7 +25,7 @@ require_once("class.Bootstrap.php");
|
|||
* @copyright Copyright (C) 2017 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -39,12 +39,7 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
|||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
||||
$this->contentHeading(getMLText("rm_user_from_processes"));
|
||||
|
||||
?>
|
||||
<div class="alert">
|
||||
<?php printMLText("confirm_rm_user_from_processes", array ("username" => htmlspecialchars($rmuser->getFullName())));?>
|
||||
</div>
|
||||
<?php
|
||||
$this->contentContainerStart();
|
||||
$this->warningMsg(getMLText("confirm_rm_user_from_processes", array ("username" => htmlspecialchars($rmuser->getFullName()))));
|
||||
?>
|
||||
<form class="form-horizontal" action="../op/op.UsrMgr.php" name="form1" method="post">
|
||||
<input type="hidden" name="userid" value="<?php print $rmuser->getID();?>">
|
||||
|
@ -52,6 +47,7 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
|||
<?php echo createHiddenFieldWithKey('removefromprocesses'); ?>
|
||||
|
||||
<?php
|
||||
$this->contentContainerStart();
|
||||
$options = array(array(0, getMLText('do_no_transfer_to_user')));
|
||||
foreach ($allusers as $currUser) {
|
||||
if ($currUser->isGuest() || ($currUser->getID() == $rmuser->getID()) )
|
||||
|
@ -369,12 +365,12 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
|||
)
|
||||
);
|
||||
*/
|
||||
$this->contentContainerEnd();
|
||||
$this->formSubmit("<i class=\"fa fa-remove\"></i> ".getMLText('rm_user_from_processes'));
|
||||
?>
|
||||
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for RemoveVersion view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RemoveVersion extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RemoveVersion extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -50,7 +50,7 @@ class SeedDMS_View_RemoveVersion extends SeedDMS_Bootstrap_Style {
|
|||
<input type="hidden" name="documentid" value="<?php echo $document->getID()?>">
|
||||
<input type="hidden" name="version" value="<?php echo $version->getVersion()?>">
|
||||
<p><?php printMLText("confirm_rm_version", array ("documentname" => htmlspecialchars($document->getName()), "version" => $version->getVersion()));?></p>
|
||||
<p><button type="submit" class="btn"><i class="fa fa-remove"></i> <?php printMLText("rm_version");?></button></p>
|
||||
<p><button type="submit" class="btn btn-danger"><i class="fa fa-remove"></i> <?php printMLText("rm_version");?></button></p>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for Removeorkflow view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RemoveWorkflow extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RemoveWorkflow extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -57,7 +57,7 @@ class SeedDMS_View_RemoveWorkflow extends SeedDMS_Bootstrap_Style {
|
|||
$this->columnStart(8);
|
||||
?>
|
||||
<div id="workflowgraph">
|
||||
<iframe src="out.WorkflowGraph.php?workflow=<?php echo $workflow->getID(); ?>" width="100%" height="661" style="border: 1px solid #AAA;"></iframe>
|
||||
<iframe src="out.WorkflowGraph.php?workflow=<?php echo $workflow->getID(); ?>" width="100%" height="670" style="border: 1px solid #AAA;"></iframe>
|
||||
</div>
|
||||
<?php
|
||||
$this->columnEnd();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for Removeorkflow view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RemoveWorkflowFromDocument extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RemoveWorkflowFromDocument extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -73,7 +73,7 @@ class SeedDMS_View_RemoveWorkflowFromDocument extends SeedDMS_Bootstrap_Style {
|
|||
<?php echo createHiddenFieldWithKey('removeworkflowfromdocument'); ?>
|
||||
<input type='hidden' name='documentid' value='<?php echo $document->getId(); ?>'/>
|
||||
<input type='hidden' name='version' value='<?php echo $latestContent->getVersion(); ?>'/>
|
||||
<button type='submit' class="btn"><i class="fa fa-remove"></i> <?php printMLText("rm_workflow"); ?></button>
|
||||
<button type='submit' class="btn btn-danger"><i class="fa fa-remove"></i> <?php printMLText("rm_workflow"); ?></button>
|
||||
</form>
|
||||
<?php
|
||||
$this->columnEnd();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for ReturnFromSubWorkflow view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ReturnFromSubWorkflow extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ReturnFromSubWorkflow extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
@ -112,7 +112,7 @@ $(document).ready(function() {
|
|||
<?php if($transition) { ?>
|
||||
<input type='hidden' name='transition' value='<?php echo $transition->getID(); ?>'/>
|
||||
<?php } ?>
|
||||
<input type='submit' class="btn" value='<?php printMLText("return_from_subworkflow"); ?>'/>
|
||||
<input type='submit' class="btn btn-primary" value='<?php printMLText("return_from_subworkflow"); ?>'/>
|
||||
</td></tr></table>
|
||||
</form>
|
||||
<?php
|
||||
|
@ -120,8 +120,7 @@ $(document).ready(function() {
|
|||
$this->columnStart(4);
|
||||
?>
|
||||
<div id="workflowgraph">
|
||||
<iframe src="out.WorkflowGraph.php?workflow=<?php echo $parentworkflow->getID(); ?>&transition=<?php echo ($transition ? $transition->getID() : ''); ?>&documentid=<?php echo $document->getID(); ?>" width="100%" height="500" style="border: 1px solid #AAA;"></iframe>
|
||||
</div>
|
||||
<iframe src="out.WorkflowGraph.php?workflow=<?php echo $parentworkflow->getID(); ?>&transition=<?php echo ($transition ? $transition->getID() : ''); ?>&documentid=<?php echo $document->getID(); ?>" width="100%" height="670" style="border: 1px solid #AAA;"></iframe>
|
||||
<h4>Workflow</h4>
|
||||
<?php
|
||||
$this->columnEnd();
|
||||
|
@ -129,8 +128,7 @@ $(document).ready(function() {
|
|||
$this->contentContainerEnd();
|
||||
|
||||
if($wkflog) {
|
||||
$this->contentContainerStart();
|
||||
echo "<table class=\"table-condensed\">";
|
||||
echo "<table class=\"table table-condensed table-sm\">";
|
||||
echo "<tr><th>".getMLText('action')."</th><th>Start state</th><th>End state</th><th>".getMLText('date')."</th><th>".getMLText('user')."</th><th>".getMLText('comment')."</th></tr>";
|
||||
foreach($wkflog as $entry) {
|
||||
echo "<tr>";
|
||||
|
@ -143,7 +141,6 @@ $(document).ready(function() {
|
|||
echo "</tr>";
|
||||
}
|
||||
echo "</table>\n";
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
|
||||
$this->contentEnd();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for ReviewDocument view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ReviewDocument extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ReviewDocument extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
@ -109,7 +109,6 @@ $(document).ready(function() {
|
|||
$this->contentStart();
|
||||
$this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
|
||||
$this->contentHeading(getMLText("submit_review"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
// Display the Review form.
|
||||
$reviewtype = ($reviewStatus['type'] == 0) ? 'ind' : 'grp';
|
||||
|
@ -132,6 +131,8 @@ $(document).ready(function() {
|
|||
<form class="form-horizontal" method="post" action="../op/op.ReviewDocument.php" id="form<?= $reviewtype ?>" name="form<?= $reviewtype ?>" enctype="multipart/form-data">
|
||||
<?php echo createHiddenFieldWithKey('reviewdocument'); ?>
|
||||
<?php
|
||||
$this->contentContainerStart();
|
||||
|
||||
$this->formField(
|
||||
getMLText("comment"),
|
||||
array(
|
||||
|
@ -158,6 +159,7 @@ $(document).ready(function() {
|
|||
'options'=>$options
|
||||
)
|
||||
);
|
||||
$this->contentContainerEnd();
|
||||
$this->formSubmit(getMLText('submit_review'), $reviewtype.'Review');
|
||||
?>
|
||||
<input type='hidden' name='reviewType' value='<?= $reviewtype ?>'/>
|
||||
|
@ -168,8 +170,6 @@ $(document).ready(function() {
|
|||
<input type='hidden' name='version' value='<?php echo $content->getVersion() ?>'/>
|
||||
</form>
|
||||
<?php
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_ReviewSummary extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_ReviewSummary extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for Rewindorkflow view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RewindWorkflow extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RewindWorkflow extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -73,7 +73,7 @@ class SeedDMS_View_RewindWorkflow extends SeedDMS_Bootstrap_Style {
|
|||
<?php echo createHiddenFieldWithKey('rewindworkflow'); ?>
|
||||
<input type='hidden' name='documentid' value='<?php echo $document->getId(); ?>'/>
|
||||
<input type='hidden' name='version' value='<?php echo $latestContent->getVersion(); ?>'/>
|
||||
<button type='submit' class="btn"><i class="fa fa-refresh"></i> <?php printMLText("rewind_workflow"); ?></button>
|
||||
<button type='submit' class="btn btn-danger"><i class="fa fa-refresh"></i> <?php printMLText("rewind_workflow"); ?></button>
|
||||
</form>
|
||||
<?php
|
||||
$this->columnEnd();
|
||||
|
@ -88,8 +88,7 @@ class SeedDMS_View_RewindWorkflow extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentContainerEnd();
|
||||
|
||||
if($wkflog) {
|
||||
$this->contentContainerStart();
|
||||
echo "<table class=\"table-condensed\">";
|
||||
echo "<table class=\"table table-condensed table-sm\">";
|
||||
echo "<tr><th>".getMLText('action')."</th><th>Start state</th><th>End state</th><th>".getMLText('date')."</th><th>".getMLText('user')."</th><th>".getMLText('comment')."</th></tr>";
|
||||
foreach($wkflog as $entry) {
|
||||
echo "<tr>";
|
||||
|
@ -102,7 +101,6 @@ class SeedDMS_View_RewindWorkflow extends SeedDMS_Bootstrap_Style {
|
|||
echo "</tr>";
|
||||
}
|
||||
echo "</table>\n";
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
|
||||
$this->contentEnd();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for RunSubWorkflow view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_RunSubWorkflow extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_RunSubWorkflow extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -76,7 +76,7 @@ class SeedDMS_View_RunSubWorkflow extends SeedDMS_Bootstrap_Style {
|
|||
<input type='hidden' name='documentid' value='<?php echo $document->getId(); ?>'/>
|
||||
<input type='hidden' name='version' value='<?php echo $latestContent->getVersion(); ?>'/>
|
||||
<input type='hidden' name='subworkflow' value='<?php echo $subworkflow->getID(); ?>'/>
|
||||
<input type='submit' class="btn" value='<?php printMLText("run_subworkflow"); ?>'/>
|
||||
<input type='submit' class="btn btn-primary" value='<?php printMLText("run_subworkflow"); ?>'/>
|
||||
</td></tr></table>
|
||||
</form>
|
||||
<?php
|
||||
|
@ -92,8 +92,7 @@ class SeedDMS_View_RunSubWorkflow extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentContainerEnd();
|
||||
|
||||
if($wkflog) {
|
||||
$this->contentContainerStart();
|
||||
echo "<table class=\"table-condensed\">";
|
||||
echo "<table class=\"table table-condensed table-sm\">";
|
||||
echo "<tr><th>".getMLText('action')."</th><th>Start state</th><th>End state</th><th>".getMLText('date')."</th><th>".getMLText('user')."</th><th>".getMLText('comment')."</th></tr>";
|
||||
foreach($wkflog as $entry) {
|
||||
echo "<tr>";
|
||||
|
@ -106,7 +105,6 @@ class SeedDMS_View_RunSubWorkflow extends SeedDMS_Bootstrap_Style {
|
|||
echo "</tr>";
|
||||
}
|
||||
echo "</table>\n";
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
|
||||
$this->contentEnd();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Search extends SeedDMS_Theme_Style {
|
||||
|
||||
/**
|
||||
* Mark search query sting in a given string
|
||||
|
@ -241,11 +241,11 @@ function typeahead() { /* {{{ */
|
|||
//echo "<pre>";print_r($_GET);echo "</pre>";
|
||||
?>
|
||||
<ul class="nav nav-tabs" id="searchtab">
|
||||
<li <?php echo ($fullsearch == false) ? 'class="active"' : ''; ?>><a data-target="#database" data-toggle="tab"><?php printMLText('databasesearch'); ?></a></li>
|
||||
<li class="nav-item <?php echo ($fullsearch == false) ? 'active' : ''; ?>"><a class="nav-link <?php echo ($fullsearch == false) ? 'active' : ''; ?>" data-target="#database" data-toggle="tab"><?php printMLText('databasesearch'); ?></a></li>
|
||||
<?php
|
||||
if($enablefullsearch) {
|
||||
?>
|
||||
<li <?php echo ($fullsearch == true) ? 'class="active"' : ''; ?>><a data-target="#fulltext" data-toggle="tab"><?php printMLText('fullsearch'); ?></a></li>
|
||||
<li class="nav-item <?php echo ($fullsearch == true) ? 'active' : ''; ?>"><a class="nav-link <?php echo ($fullsearch == true) ? 'active' : ''; ?>" data-target="#fulltext" data-toggle="tab"><?php printMLText('fullsearch'); ?></a></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
@ -297,7 +297,7 @@ function typeahead() { /* {{{ */
|
|||
<tr>
|
||||
<td><?php printMLText("search_resultmode");?>:</td>
|
||||
<td>
|
||||
<select name="resultmode">
|
||||
<select name="resultmode" class="form-control">
|
||||
<option value="3" <?php echo ($resultmode=='3') ? "selected" : ""; ?>><?php printMLText("search_resultmode_both");?>
|
||||
<option value="2"<?php echo ($resultmode=='2') ? "selected" : ""; ?>><?php printMLText("search_mode_folders");?>
|
||||
<option value="1"<?php echo ($resultmode=='1') ? "selected" : ""; ?>><?php printMLText("search_mode_documents");?>
|
||||
|
@ -611,7 +611,7 @@ function typeahead() { /* {{{ */
|
|||
<tr>
|
||||
<td><?php printMLText("search_query");?>:</td>
|
||||
<td>
|
||||
<input type="text" name="query" value="<?php echo htmlspecialchars($this->query); ?>" />
|
||||
<input type="text" class="form-control" name="query" value="<?php echo htmlspecialchars($this->query); ?>" />
|
||||
<!--
|
||||
<select name="mode">
|
||||
<option value="1" selected><?php printMLText("search_mode_and");?>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for SendLoginData view
|
||||
|
@ -27,7 +27,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_SendLoginData extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_SendLoginData extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for clipboard view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Session extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Session extends SeedDMS_Theme_Style {
|
||||
/**
|
||||
* Returns the html needed for the clipboard list in the menu
|
||||
*
|
||||
|
@ -48,38 +48,24 @@ class SeedDMS_View_Session extends SeedDMS_Bootstrap_Style {
|
|||
/* Get only sessions which has been active in the last 3600 sec. */
|
||||
$sessions = $sessionmgr->getLastAccessedSessions(date('Y-m-d H:i:s', time()-3600));
|
||||
if(!$sessions)
|
||||
return '';
|
||||
return;
|
||||
|
||||
if ($user->isGuest() || count($sessions) == 0) {
|
||||
return '';
|
||||
return;
|
||||
}
|
||||
|
||||
/* $hasuser will be set to true when at least one of the logged in users
|
||||
* is visible and not hidden in user lists.
|
||||
*/
|
||||
$c = 0;
|
||||
$ucontent = '';
|
||||
$menuitems['session'] = array('label'=>'', 'children'=>array());
|
||||
foreach($sessions as $session) {
|
||||
if($sesuser = $dms->getUser($session->getUser()))
|
||||
if(!$sesuser->isHidden()) {
|
||||
$c++;
|
||||
$hasuser = true;
|
||||
$ucontent .= " <li><a _href=\"\"><i class=\"fa fa-user\"></i> ".htmlspecialchars($sesuser->getFullName()).($user->isAdmin() ? " (".getReadableDuration(time()-$session->getLastAccess()).")" : "")."</a></li>\n";
|
||||
$menuitems['session']['children'][] = array('label'=>'<i class="fa fa-user"></i> '.htmlspecialchars($sesuser->getFullName()).($user->isAdmin() ? " (".getReadableDuration(time()-$session->getLastAccess()).")" : ""));
|
||||
}
|
||||
}
|
||||
if($c) {
|
||||
$content = '';
|
||||
$content .= " <ul id=\"main-menu-session\" class=\"nav pull-right\">\n";
|
||||
$content .= " <li class=\"dropdown add-session-area\">\n";
|
||||
$content .= " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" class=\"add-session-area\">".getMLText('sessions')." (".$c.") <i class=\"fa fa-caret-down\"></i></a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
$content .= $ucontent;
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
$content .= " </ul>\n";
|
||||
echo $content;
|
||||
} else {
|
||||
return '';
|
||||
$menuitems['session']['label'] = getMLText('sessions')." (".$c.")";
|
||||
self::showNavigationBar($menuitems, array('right'=>true));
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for SetExpires view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_SetExpires extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_SetExpires extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for SetReviewersApprovers view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_SetReviewersApprovers extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_SetReviewersApprovers extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -80,7 +80,6 @@ class SeedDMS_View_SetReviewersApprovers extends SeedDMS_Bootstrap_Style {
|
|||
}
|
||||
?>
|
||||
|
||||
<?php $this->contentContainerStart(); ?>
|
||||
|
||||
<form action="../op/op.SetReviewersApprovers.php" method="post" name="form1">
|
||||
|
||||
|
@ -88,6 +87,7 @@ class SeedDMS_View_SetReviewersApprovers extends SeedDMS_Bootstrap_Style {
|
|||
if($workflowmode != 'traditional_only_approval') {
|
||||
?>
|
||||
<?php $this->contentSubHeading(getMLText("update_reviewers"));?>
|
||||
<?php $this->contentContainerStart(); ?>
|
||||
|
||||
<div class="cbSelectTitle"><?php printMLText("individuals")?>:</div>
|
||||
<select class="chzn-select span9" name="indReviewers[]" multiple="multiple" data-placeholder="<?php printMLText('select_ind_reviewers'); ?>" data-no_results_text="<?php printMLText('unknown_owner'); ?>">
|
||||
|
@ -209,7 +209,9 @@ class SeedDMS_View_SetReviewersApprovers extends SeedDMS_Bootstrap_Style {
|
|||
}
|
||||
?>
|
||||
|
||||
<?php $this->contentContainerEnd(); ?>
|
||||
<?php $this->contentSubHeading(getMLText("update_approvers"));?>
|
||||
<?php $this->contentContainerStart(); ?>
|
||||
|
||||
<div class="cbSelectTitle cbSelectMargin"><?php printMLText("individuals")?>:</div>
|
||||
<select class="chzn-select span9" name="indApprovers[]" multiple="multiple" data-placeholder="<?php printMLText('select_ind_approvers'); ?>" data-no_results_text="<?php printMLText('unknown_owner'); ?>">
|
||||
|
@ -330,15 +332,15 @@ class SeedDMS_View_SetReviewersApprovers extends SeedDMS_Bootstrap_Style {
|
|||
echo "</div>\n";
|
||||
}
|
||||
}
|
||||
$this->contentContainerEnd();
|
||||
?>
|
||||
<p>
|
||||
<input type='hidden' name='documentid' value='<?php echo $document->getID() ?>'/>
|
||||
<input type='hidden' name='version' value='<?php echo $content->getVersion() ?>'/>
|
||||
<input type="submit" class="btn" value="<?php printMLText("update");?>">
|
||||
<input type="submit" class="btn btn-primary" value="<?php printMLText("update");?>">
|
||||
</p>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for SetWorkflow view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_SetWorkflow extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_SetWorkflow extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$document = $this->params['document'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for Settings view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
|
||||
|
||||
protected function showPaneHeader($name, $title, $isactive) { /* {{{ */
|
||||
echo '<li class="'.($isactive ? 'active' : '').'"><a data-target="#'.$name.'" data-toggle="tab">'.$title.'</a></li>'."\n";
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include classes for 2-factor authentication
|
||||
|
@ -30,7 +30,7 @@ require "vendor/autoload.php";
|
|||
* @copyright Copyright (C) 2016 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Setup2Factor extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Setup2Factor extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for Statistic view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Statistic extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Statistic extends SeedDMS_Theme_Style {
|
||||
var $dms;
|
||||
var $folder_count;
|
||||
var $document_count;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for SubstituteUser view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_SubstituteUser extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
@ -101,7 +101,7 @@ class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style {
|
|||
echo "</td>";
|
||||
echo "<td>";
|
||||
if($currUser->getID() != $user->getID()) {
|
||||
echo "<a class=\"btn\" href=\"../op/op.SubstituteUser.php?userid=".((int) $currUser->getID())."&formtoken=".createFormKey('substituteuser')."\"><i class=\"fa fa-exchange\"></i> ".getMLText('substitute_user')."</a> ";
|
||||
echo "<a class=\"btn btn-primary\" href=\"../op/op.SubstituteUser.php?userid=".((int) $currUser->getID())."&formtoken=".createFormKey('substituteuser')."\"><i class=\"fa fa-exchange\"></i> ".getMLText('substitute_user')."</a> ";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Tasks extends SeedDMS_Theme_Style {
|
||||
|
||||
private function __myTasks() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -279,6 +279,8 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
return;
|
||||
}
|
||||
|
||||
$menuitems = [];
|
||||
|
||||
$content = '';
|
||||
$content .= " <ul id=\"main-menu-tasks\" class=\"nav pull-right\">\n";
|
||||
$content .= " <li class=\"dropdown\">\n";
|
||||
|
@ -302,6 +304,10 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$ct[] = count($tasks['checkedout']);
|
||||
$content .= implode('/', $ct);
|
||||
$content .= ")";
|
||||
|
||||
$menuitems['tasks'] = array('label'=>getMLText('tasks')." (".implode('/', $ct).")");
|
||||
$menuitems['tasks']['children'] = [];
|
||||
|
||||
if(!empty($tasks['review']) || !empty($tasks['approval']) || !empty($tasks['receipt']) || !empty($tasks['revision']) || !empty($tasks['needscorrection']) || !empty($tasks['workflow']) || !empty($tasks['rejected']) || !empty($tasks['rejected']) || !empty($tasks['checkedout'])) {
|
||||
$content .= " <i class=\"fa fa-caret-down\"></i></a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
|
@ -309,10 +315,14 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$content .= " <li class=\"dropdown-submenu\">\n";
|
||||
$content .= " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">".getMLText("documents_to_review")."</a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
$subitems = [];
|
||||
foreach($tasks['review'] as $t) {
|
||||
$doc = $dms->getDocument($t['id']);
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=revapp\" class=\"table-row-document\" rel=\"document_".$doc->getID()."\">".$doc->getName()."</a></li>";
|
||||
$subitems[] = array('label'=>$doc->getName(), 'link'=>"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=revapp", 'class'=>"table-row-document", 'rel'=>"document_".$doc->getID());
|
||||
}
|
||||
$menuitems['tasks']['children']['review'] = array('label'=>getMLText('documents_to_review'), 'children'=>$subitems);
|
||||
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
}
|
||||
|
@ -320,10 +330,13 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$content .= " <li class=\"dropdown-submenu\">\n";
|
||||
$content .= " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">".getMLText("documents_to_approve")."</a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
$subitems = [];
|
||||
foreach($tasks['approval'] as $t) {
|
||||
$doc = $dms->getDocument($t['id']);
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=revapp\" class=\"table-row-document\" rel=\"document_".$doc->getID()."\">".$doc->getName()."</a></li>";
|
||||
$subitems[] = array('label'=>$doc->getName(), 'link'=>"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=revapp", 'class'=>"table-row-document", 'rel'=>"document_".$doc->getID());
|
||||
}
|
||||
$menuitems['tasks']['children']['approval'] = array('label'=>getMLText('documents_to_approve'), 'children'=>$subitems);
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
}
|
||||
|
@ -331,10 +344,13 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$content .= " <li class=\"dropdown-submenu\">\n";
|
||||
$content .= " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">".getMLText("documents_to_trigger_workflow")."</a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
$subitems = [];
|
||||
foreach($tasks['workflow'] as $t) {
|
||||
$doc = $dms->getDocument($t['id']);
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=workflow\" class=\"table-row-document\" rel=\"document_".$doc->getID()."\">".$doc->getName()."</a></li>";
|
||||
$subitems[] = array('label'=>$doc->getName(), 'link'=>"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=workflow", 'class'=>"table-row-document", 'rel'=>"document_".$doc->getID());
|
||||
}
|
||||
$menuitems['tasks']['children']['workflow'] = array('label'=>getMLText('documents_to_trigger_workflow'), 'children'=>$subitems);
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
}
|
||||
|
@ -342,10 +358,13 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$content .= " <li class=\"dropdown-submenu\">\n";
|
||||
$content .= " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">".getMLText("documents_to_receipt")."</a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
$subitems = [];
|
||||
foreach($tasks['receipt'] as $t) {
|
||||
$doc = $dms->getDocument($t['id']);
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=recipients\">".$doc->getName()."</a></li>";
|
||||
$subitems[] = array('label'=>$doc->getName(), 'link'=>"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=recipients", 'class'=>"table-row-document", 'rel'=>"document_".$doc->getID());
|
||||
}
|
||||
$menuitems['tasks']['children']['receipt'] = array('label'=>getMLText('documents_to_receipt'), 'children'=>$subitems);
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
}
|
||||
|
@ -353,10 +372,13 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$content .= " <li class=\"dropdown-submenu\">\n";
|
||||
$content .= " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">".getMLText("documents_to_revise")."</a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
$subitems = [];
|
||||
foreach($tasks['revision'] as $t) {
|
||||
$doc = $dms->getDocument($t['id']);
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=revision\">".$doc->getName()."</a></li>";
|
||||
$subitems[] = array('label'=>$doc->getName(), 'link'=>"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=revision", 'class'=>"table-row-document", 'rel'=>"document_".$doc->getID());
|
||||
}
|
||||
$menuitems['tasks']['children']['revision'] = array('label'=>getMLText('documents_to_revise'), 'children'=>$subitems);
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
}
|
||||
|
@ -364,10 +386,13 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$content .= " <li class=\"dropdown-submenu\">\n";
|
||||
$content .= " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">".getMLText("documents_to_correct")."</a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
$subitems = [];
|
||||
foreach($tasks['needscorrection'] as $t) {
|
||||
$doc = $dms->getDocument($t['id']);
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=docinfo\">".$doc->getName()."</a></li>";
|
||||
$subitems[] = array('label'=>$doc->getName(), 'link'=>"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=docinfo", 'class'=>"table-row-document", 'rel'=>"document_".$doc->getID());
|
||||
}
|
||||
$menuitems['tasks']['children']['needscorrection'] = array('label'=>getMLText('documents_to_correct'), 'children'=>$subitems);
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
}
|
||||
|
@ -375,10 +400,13 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$content .= " <li class=\"dropdown-submenu\">\n";
|
||||
$content .= " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">".getMLText("documents_rejected")."</a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
$subitems = [];
|
||||
foreach($tasks['rejected'] as $t) {
|
||||
$doc = $dms->getDocument($t['id']);
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=docinfo\" class=\"table-row-document\" rel=\"document_".$doc->getID()."\">".$doc->getName()."</a></li>";
|
||||
$subitems[] = array('label'=>$doc->getName(), 'link'=>"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=docinfo", 'class'=>"table-row-document", 'rel'=>"document_".$doc->getID());
|
||||
}
|
||||
$menuitems['tasks']['children']['rejected'] = array('label'=>getMLText('documents_rejected'), 'children'=>$subitems);
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
}
|
||||
|
@ -386,21 +414,25 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$content .= " <li class=\"dropdown-submenu\">\n";
|
||||
$content .= " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">".getMLText("documents_checked_out_by_you")."</a>\n";
|
||||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
$subitems = [];
|
||||
foreach($tasks['checkedout'] as $t) {
|
||||
$doc = $dms->getDocument($t['id']);
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=docinfo\" class=\"table-row-document\" rel=\"document_".$doc->getID()."\">".$doc->getName()."</a></li>";
|
||||
$subitems[] = array('label'=>$doc->getName(), 'link'=>"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=docinfo", 'class'=>"table-row-document", 'rel'=>"document_".$doc->getID());
|
||||
}
|
||||
$menuitems['tasks']['children']['checkedout'] = array('label'=>getMLText('documents_checked_out_by_you'), 'children'=>$subitems);
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
}
|
||||
if ($accessobject->check_view_access('MyDocuments')) {
|
||||
$content .= " <li class=\"divider\"></li>\n";
|
||||
$content .= " <li><a href=\"../out/out.MyDocuments.php\">".getMLText("my_documents")."</a></li>\n";
|
||||
}
|
||||
$menuitems['tasks']['children']['divider'] = array('divider'=>true);
|
||||
$menuitems['tasks']['children']['mydocuments'] = array('label'=>getMLText('my_documents'), 'href'=>'../out/out.MyDocuments.php');
|
||||
}
|
||||
$content .= " </li>\n";
|
||||
$content .= " </ul>\n";
|
||||
echo $content;
|
||||
self::showNavigationBar($menuitems, array('right'=>true));
|
||||
//echo $content;
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
|
@ -34,7 +34,7 @@ require_once("SeedDMS/Preview.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_Timeline extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_Timeline extends SeedDMS_Theme_Style {
|
||||
|
||||
function iteminfo() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -223,9 +223,9 @@ div.timeline-event-selected {
|
|||
$to = time();
|
||||
}
|
||||
|
||||
$this->htmlAddHeader('<link href="../styles/'.$this->theme.'/timeline/timeline.css" rel="stylesheet">'."\n", 'css');
|
||||
$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/timeline/timeline-min.js"></script>'."\n", 'js');
|
||||
$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/timeline/timeline-locales.js"></script>'."\n", 'js');
|
||||
$this->htmlAddHeader('<link href="../styles/bootstrap/timeline/timeline.css" rel="stylesheet">'."\n", 'css');
|
||||
$this->htmlAddHeader('<script type="text/javascript" src="../styles/bootstrap/timeline/timeline-min.js"></script>'."\n", 'js');
|
||||
$this->htmlAddHeader('<script type="text/javascript" src="../styles/bootstrap/timeline/timeline-locales.js"></script>'."\n", 'js');
|
||||
|
||||
$this->htmlStartPage(getMLText("timeline"));
|
||||
$this->globalNavigation();
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for TransferDocument view
|
||||
|
@ -25,7 +25,7 @@ require_once("class.Bootstrap.php");
|
|||
* @copyright Copyright (C) 2017 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_TransferDocument extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_TransferDocument extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
@ -67,9 +67,7 @@ class SeedDMS_View_TransferDocument extends SeedDMS_Bootstrap_Style {
|
|||
getMLText("transfer_to_user"),
|
||||
$html
|
||||
);
|
||||
if($accessobject->check_controller_access('TransferDocument', array('action'=>'run'))) {
|
||||
$this->formSubmit("<i class=\"fa fa-exchange\"></i> ".getMLText('transfer_document'));
|
||||
}
|
||||
$this->contentContainerEnd();
|
||||
} else {
|
||||
$this->warningMsg('transfer_no_users');
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for TransferObjects view
|
||||
|
@ -25,7 +25,7 @@ require_once("class.Bootstrap.php");
|
|||
* @copyright Copyright (C) 2017 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_TransferObjects extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_TransferObjects extends SeedDMS_Theme_Style {
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for TriggerWorkflow view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_TriggerWorkflow extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_TriggerWorkflow extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for UpdateDocument view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_UpdateDocument extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_UpdateDocument extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
$strictformcheck = $this->params['strictformcheck'];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("class.Bootstrap.php");
|
||||
//require_once("class.Bootstrap.php");
|
||||
|
||||
/**
|
||||
* Class which outputs the html page for UserDefaultKeywords view
|
||||
|
@ -29,7 +29,7 @@ require_once("class.Bootstrap.php");
|
|||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_View_UserDefaultKeywords extends SeedDMS_Bootstrap_Style {
|
||||
class SeedDMS_View_UserDefaultKeywords extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user