From d15f742a4660cd350572969ac4c855d01b9621c4 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 14 Aug 2020 08:48:09 +0200 Subject: [PATCH 001/312] sort versions of extension propperly --- CHANGELOG | 1 + inc/inc.ClassExtensionMgr.php | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 55a100361..a1114218d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -6,6 +6,7 @@ - better import of users from csv file - fix various methods in restapi (Closes: #481) - add hooks showDocumentKeywords and showDocumentCategories +- sort versions of extension in extension manager propperly -------------------------------------------------------------------------------- Changes in version 5.1.18 diff --git a/inc/inc.ClassExtensionMgr.php b/inc/inc.ClassExtensionMgr.php index b65cec291..e6bb58466 100644 --- a/inc/inc.ClassExtensionMgr.php +++ b/inc/inc.ClassExtensionMgr.php @@ -570,6 +570,7 @@ class SeedDMS_Extension_Mgr { } } } + uksort($result, function($a, $b){return version_compare($b, $a);}); return $result; } /* }}} */ From 4a3b7ebe7141ae22d466faafba7ea1cf319b0fd8 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 14 Aug 2020 11:11:12 +0200 Subject: [PATCH 002/312] use SeedDMS_Extension_Mgr::cmpVersion() for sorting extensions --- inc/inc.ClassExtensionMgr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/inc.ClassExtensionMgr.php b/inc/inc.ClassExtensionMgr.php index e6bb58466..10917adc8 100644 --- a/inc/inc.ClassExtensionMgr.php +++ b/inc/inc.ClassExtensionMgr.php @@ -570,7 +570,7 @@ class SeedDMS_Extension_Mgr { } } } - uksort($result, function($a, $b){return version_compare($b, $a);}); + uksort($result, function($a, $b){return SeedDMS_Extension_Mgr::cmpVersion($b, $a);}); return $result; } /* }}} */ From 65c1bccf82631553b2a32812484d3d27c0051387 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 14 Aug 2020 11:11:40 +0200 Subject: [PATCH 003/312] show latest changelog of uninstalled extensions --- views/bootstrap/class.ExtensionMgr.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.ExtensionMgr.php b/views/bootstrap/class.ExtensionMgr.php index c67ab8ae4..e9ace2b88 100644 --- a/views/bootstrap/class.ExtensionMgr.php +++ b/views/bootstrap/class.ExtensionMgr.php @@ -94,7 +94,7 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { $this->printFileChooserJs(); } /* }}} */ - function info() { /* {{{ */ + function info_versions() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; $extmgr = $this->params['extmgr']; @@ -140,6 +140,19 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { echo "\n"; } /* }}} */ + function info_changelog() { /* {{{ */ + $dms = $this->params['dms']; + $user = $this->params['user']; + $extmgr = $this->params['extmgr']; + $extname = $this->params['extname']; + $extconf = $extmgr->getExtensionConfiguration(); + + $list = $extmgr->getExtensionListByName($extname); + /* Just show the changelog of the latest version */ + $re = array_shift($list); + echo '
'.$re['changelog']."
"; + } /* }}} */ + function changelog() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; @@ -314,7 +327,8 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { echo "".$re['author']['name']."
".$re['author']['company'].""; echo ""; echo "
"; - echo "\n"; + echo "\n"; + echo "\n"; if(!$checkmsgs && $extmgr->isWritableExtDir()) echo "
".createHiddenFieldWithKey('extensionmgr')."
"; echo "
"; From 395afcbcd485d0f4d967c4b879bbed26f8b37440 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 19 Aug 2020 11:49:48 +0200 Subject: [PATCH 004/312] run help of config var through htmlspecialchars() --- views/bootstrap/class.Settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.Settings.php b/views/bootstrap/class.Settings.php index 931fecdfe..e581ce8b1 100644 --- a/views/bootstrap/class.Settings.php +++ b/views/bootstrap/class.Settings.php @@ -124,7 +124,7 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style { protected function showConfigPlain($title, $title_desc, $rawdata) { /* {{{ */ $settings = $this->params['settings']; ?> - + : From eb4d97c8a5ebf4f06bf51a98c3851f22ac624410 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 19 Aug 2020 11:50:56 +0200 Subject: [PATCH 005/312] add item for 5.1.19 --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index a1114218d..626fcb321 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,6 +7,7 @@ - fix various methods in restapi (Closes: #481) - add hooks showDocumentKeywords and showDocumentCategories - sort versions of extension in extension manager propperly +- fix output of help text for config vars in extension -------------------------------------------------------------------------------- Changes in version 5.1.18 From 1726d1f1f27b64eb604e8093d07155d6013dc644 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 19 Aug 2020 13:21:51 +0200 Subject: [PATCH 006/312] configuring a user id in the settings uses a list of existing users --- CHANGELOG | 1 + op/op.Settings.php | 2 +- views/bootstrap/class.Settings.php | 35 +++++++++++++++++++++++++++--- 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 626fcb321..7306fe042 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -8,6 +8,7 @@ - add hooks showDocumentKeywords and showDocumentCategories - sort versions of extension in extension manager propperly - fix output of help text for config vars in extension +- configuring a user id in the settings uses a list of existing users -------------------------------------------------------------------------------- Changes in version 5.1.18 diff --git a/op/op.Settings.php b/op/op.Settings.php index 2c1c9a463..b84c86b6a 100644 --- a/op/op.Settings.php +++ b/op/op.Settings.php @@ -151,7 +151,7 @@ if ($action == "saveSettings") $settings->_loginFailure = intval($_POST["loginFailure"]); $settings->_autoLoginUser = intval($_POST["autoLoginUser"]); $settings->_quota = intval($_POST["quota"]); - $settings->_undelUserIds = strval($_POST["undelUserIds"]); + $settings->_undelUserIds = is_array($_POST["undelUserIds"]) ? implode(',', $_POST["undelUserIds"]) : strval($_POST["undelUserIds"]); $settings->_encryptionKey = strval($_POST["encryptionKey"]); $settings->_cookieLifetime = intval($_POST["cookieLifetime"]); $settings->_defaultAccessDocs = intval($_POST["defaultAccessDocs"]); diff --git a/views/bootstrap/class.Settings.php b/views/bootstrap/class.Settings.php index e581ce8b1..9333c8c52 100644 --- a/views/bootstrap/class.Settings.php +++ b/views/bootstrap/class.Settings.php @@ -175,6 +175,34 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style { params['settings']; + $dms = $this->params['dms']; +?> + "> + : + +getAllUsers(); + if($users) { + $selections = explode(',', $settings->{"_".$name}); + echo ""; + } +?> + + +params['extmgr']; @@ -374,7 +402,7 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site')); showConfigText('settings_loginFailure', 'loginFailure'); ?> showConfigText('settings_autoLoginUser', 'autoLoginUser'); ?> showConfigText('settings_quota', 'quota'); ?> -showConfigText('settings_undelUserIds', 'undelUserIds'); ?> +showConfigUser('settings_undelUserIds', 'undelUserIds', true, true); ?> showConfigText('settings_encryptionKey', 'encryptionKey'); ?> showConfigText('settings_cookieLifetime', 'cookieLifetime'); ?> showConfigOption('settings_defaultAccessDocs', 'defaultAccessDocs', array(' 0'=>'inherited', ' '.M_NONE=>'access_mode_none', ' '.M_READ=>'access_mode_read', ' '.M_READWRITE=>'access_mode_readwrite'), false, true); ?> @@ -419,10 +447,11 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site')); -- SETTINGS - ADVANCED - AUTHENTICATION --> showConfigHeadline('settings_Authentication'); ?> -showConfigText('settings_guestID', 'guestID'); ?> +showConfigUser('settings_guestID', 'guestID', true); ?> showConfigText('settings_adminIP', 'adminIP'); ?> showConfigText('settings_apiKey', 'apiKey'); ?> -showConfigText('settings_apiUserId', 'apiUserId'); ?> +showConfigText('settings_apiUserId', 'apiUserId'); ?> +showConfigUser('settings_apiUserId', 'apiUserId', true); ?> showConfigText('settings_apiOrigin', 'apiOrigin'); ?> /g, $$.val()) ); + writeInPreview( localize(data, 1).replace(//g, parsedData) ); } }); } @@ -636,6 +638,12 @@ function remove() { $$.unbind(".markItUp").removeClass('markItUpEditor'); $$.parent('div').parent('div.markItUp').parent('div').replaceWith($$); + + var relativeRef = $$.parent('div').parent('div.markItUp').parent('div'); + if (relativeRef.length) { + relativeRef.replaceWith($$); + } + $$.data('markItUp', null); } diff --git a/styles/bootstrap/markitup/sets/default/images/bold.png b/styles/bootstrap/markitup/sets/default/images/bold.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/sets/default/images/clean.png b/styles/bootstrap/markitup/sets/default/images/clean.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/sets/default/images/image.png b/styles/bootstrap/markitup/sets/default/images/image.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/sets/default/images/italic.png b/styles/bootstrap/markitup/sets/default/images/italic.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/sets/default/images/link.png b/styles/bootstrap/markitup/sets/default/images/link.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/sets/default/images/list-bullet.png b/styles/bootstrap/markitup/sets/default/images/list-bullet.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/sets/default/images/list-numeric.png b/styles/bootstrap/markitup/sets/default/images/list-numeric.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/sets/default/images/picture.png b/styles/bootstrap/markitup/sets/default/images/picture.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/sets/default/images/preview.png b/styles/bootstrap/markitup/sets/default/images/preview.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/sets/default/images/stroke.png b/styles/bootstrap/markitup/sets/default/images/stroke.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/sets/default/set.js b/styles/bootstrap/markitup/sets/default/set.js old mode 100644 new mode 100755 index c1fbde920..b7fdf8182 --- a/styles/bootstrap/markitup/sets/default/set.js +++ b/styles/bootstrap/markitup/sets/default/set.js @@ -24,7 +24,7 @@ var mySettings = { {name:'Picture', key:'P', replaceWith:'[![Alternative text]!]' }, {name:'Link', key:'L', openWith:'', closeWith:'', placeHolder:'Your text to link...' }, {separator:'---------------' }, - {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } }/*, - {name:'Preview', className:'preview', call:'preview'}*/ + {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } }, + {name:'Preview', className:'preview', call:'preview'} ] } diff --git a/styles/bootstrap/markitup/sets/default/style.css b/styles/bootstrap/markitup/sets/default/style.css old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/bg-container.png b/styles/bootstrap/markitup/skins/markitup/images/bg-container.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/bg-editor-bbcode.png b/styles/bootstrap/markitup/skins/markitup/images/bg-editor-bbcode.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/bg-editor-dotclear.png b/styles/bootstrap/markitup/skins/markitup/images/bg-editor-dotclear.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/bg-editor-html.png b/styles/bootstrap/markitup/skins/markitup/images/bg-editor-html.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/bg-editor-json.png b/styles/bootstrap/markitup/skins/markitup/images/bg-editor-json.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/bg-editor-markdown.png b/styles/bootstrap/markitup/skins/markitup/images/bg-editor-markdown.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/bg-editor-textile.png b/styles/bootstrap/markitup/skins/markitup/images/bg-editor-textile.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/bg-editor-wiki.png b/styles/bootstrap/markitup/skins/markitup/images/bg-editor-wiki.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/bg-editor-xml.png b/styles/bootstrap/markitup/skins/markitup/images/bg-editor-xml.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/bg-editor.png b/styles/bootstrap/markitup/skins/markitup/images/bg-editor.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/handle.png b/styles/bootstrap/markitup/skins/markitup/images/handle.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/menu.png b/styles/bootstrap/markitup/skins/markitup/images/menu.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/images/submenu.png b/styles/bootstrap/markitup/skins/markitup/images/submenu.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/markitup/style.css b/styles/bootstrap/markitup/skins/markitup/style.css old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/simple/images/handle.png b/styles/bootstrap/markitup/skins/simple/images/handle.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/simple/images/menu.png b/styles/bootstrap/markitup/skins/simple/images/menu.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/simple/images/submenu.png b/styles/bootstrap/markitup/skins/simple/images/submenu.png old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/skins/simple/style.css b/styles/bootstrap/markitup/skins/simple/style.css old mode 100644 new mode 100755 index 2a0c89d5d..fe3753c02 --- a/styles/bootstrap/markitup/skins/simple/style.css +++ b/styles/bootstrap/markitup/skins/simple/style.css @@ -12,7 +12,7 @@ text-decoration:none; } .markItUp { - width:100%; + width:700px; margin:5px 0 5px 0; } .markItUpContainer { @@ -20,9 +20,9 @@ } .markItUpEditor { font:12px 'Courier New', Courier, monospace; - padding:0px; - width:100%; - _height:320px; + padding:5px; + width:690px; + height:320px; clear:both; line-height:18px; overflow:auto; diff --git a/styles/bootstrap/markitup/templates/preview.css b/styles/bootstrap/markitup/templates/preview.css old mode 100644 new mode 100755 diff --git a/styles/bootstrap/markitup/templates/preview.html b/styles/bootstrap/markitup/templates/preview.html old mode 100644 new mode 100755 From e962a33133bfc9719a522b5a51585f1ac8eea253 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 26 Aug 2020 19:07:17 +0200 Subject: [PATCH 028/312] use npm and grunt for getting js packages --- Gruntfile.js | 202 +++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 28 +++++++ 2 files changed, 230 insertions(+) create mode 100644 Gruntfile.js create mode 100644 package.json diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 000000000..6a10f89dc --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,202 @@ +module.exports = function (grunt) { + 'use strict'; + + var vendorDir = 'views/bootstrap/vendors', + nodeDir = 'node_modules'; + + grunt.initConfig({ + clean: { + vendors: [ vendorDir ] + }, + copy: { + 'jquery': { + files: [{ + expand: true, + src: [ + nodeDir + '/jquery/dist/*' + ], + dest: vendorDir + '/jquery', + flatten: true + }] + }, + 'chartjs': { + files: [{ + expand: true, + src: [ + nodeDir + '/chartjs/chart.js', + nodeDir + '/chartjs/README.md', + nodeDir + '/chartjs/LICENSE' + ], + dest: vendorDir + '/chartjs', + flatten: true + }] + }, + 'jqtree': { + files: [{ + expand: true, + src: [ + nodeDir + '/jqtree/tree.jquery.js', + nodeDir + '/jqtree/jqtree.css' + ], + dest: vendorDir + '/jqtree', + flatten: true + }] + }, + 'noty': { + files: [{ + expand: true, + src: [ + nodeDir + '/noty/js/noty/jquery.noty.js' + ], + dest: vendorDir + '/noty', + flatten: true + },{ + expand: true, + src: [ + nodeDir + '/noty/js/noty/themes/*' + ], + dest: vendorDir + '/noty/themes', + flatten: true + },{ + expand: true, + src: [ + nodeDir + '/noty/js/noty/layouts/*' + ], + dest: vendorDir + '/noty/layouts', + flatten: true + }] + }, + 'select2': { + files: [{ + expand: true, + src: [ + nodeDir + '/select2/dist/js/*' + ], + dest: vendorDir + '/select2/js', + flatten: true + },{ + expand: true, + src: [ + nodeDir + '/select2/dist/css/*' + ], + dest: vendorDir + '/select2/css', + flatten: true + }] + }, + 'fine-uploader': { + files: [{ + expand: true, + src: [ + nodeDir + '/fine-uploader/jquery.fine-uploader/*' + ], + dest: vendorDir + '/fine-uploader', + flatten: true + }] + }, + 'jquery-validation': { + files: [{ + expand: true, + src: [ + nodeDir + '/jquery-validation/dist/*' + ], + dest: vendorDir + '/jquery-validation', + flatten: true + }] + }, + 'fullcalendar': { + files: [{ + expand: true, + src: [ + nodeDir + '/fullcalendar/LICENSE.txt', + nodeDir + '/fullcalendar/dist/*' + ], + dest: vendorDir + '/fullcalendar', + flatten: true + },{ + expand: true, + src: [ + nodeDir + '/fullcalendar/dist/locale/*' + ], + dest: vendorDir + '/fullcalendar/locale', + flatten: true + }] + }, + 'moment': { + files: [{ + expand: true, + src: [ + nodeDir + '/moment/LICENSE.txt', + nodeDir + '/moment/min/*' + ], + dest: vendorDir + '/moment', + flatten: true + },{ + expand: true, + src: [ + nodeDir + '/moment/dist/locale/*' + ], + dest: vendorDir + '/moment/locale', + flatten: true + }] + }, + 'bootstrap-datepicker': { + files: [{ + expand: true, + src: [ + nodeDir + '/bootstrap-datepicker/dist/js/*' + ], + dest: vendorDir + '/bootstrap-datepicker/js', + flatten: true + },{ + expand: true, + src: [ + nodeDir + '/bootstrap-datepicker/dist/css/*' + ], + dest: vendorDir + '/bootstrap-datepicker/css', + flatten: true + },{ + expand: true, + src: [ + nodeDir + '/bootstrap-datepicker/dist/locales/*' + ], + dest: vendorDir + '/bootstrap-datepicker/locales', + flatten: true + }] + }, + 'coreui': { + files: [{ + expand: true, + src: [ + nodeDir + '/@coreui/coreui/dist/js/*' + ], + dest: vendorDir + '/coreui/js', + flatten: true + },{ + expand: true, + src: [ + nodeDir + '/@coreui/coreui/dist/css/*' + ], + dest: vendorDir + '/coreui/css', + flatten: true + }] + } + } + }); + + grunt.registerTask('createVendorDir', 'Creates the necessary vendor directory', function() { + // Create the vendorDir when it doesn't exists. + if (!grunt.file.isDir(vendorDir)) { + grunt.file.mkdir(vendorDir); + + // Output a success message + grunt.log.oklns(grunt.template.process( + 'Directory "<%= directory %>" was created successfully.', + { data: { directory: vendorDir } } + )); + } + }); + + grunt.registerTask('default', [ 'clean', 'createVendorDir', 'copy' ]); + grunt.loadNpmTasks('grunt-contrib-clean'); + grunt.loadNpmTasks('grunt-contrib-copy'); +}; diff --git a/package.json b/package.json new file mode 100644 index 000000000..d0b223bea --- /dev/null +++ b/package.json @@ -0,0 +1,28 @@ +{ + "name": "seeddms", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "Uwe Steinmann", + "license": "ISC", + "dependencies": { + "@coreui/coreui": "^3.2.2", + "bootstrap-datepicker": "^1.9.0", + "chartjs": "^0.3.24", + "cytoscape": "^3.15.2", + "fine-uploader": "^5.16.2", + "fullcalendar": "^3.*", + "grunt": "^1.3.0", + "grunt-contrib-clean": "^2.0.0", + "grunt-contrib-copy": "^1.0.0", + "jqtree": "^1.4.12", + "jquery": "^1.12.4", + "jquery-validation": "^1.19.2", + "moment": "^2.17.1", + "noty": "^2.4.1", + "select2": "^4.0.13" + } +} From 547ba8366e3e4f7ac67d9a528c3b200a643ebec3 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Aug 2020 07:49:20 +0200 Subject: [PATCH 029/312] add flot and font-awesome --- Gruntfile.js | 29 +++++++++++++++++++++++++++++ package.json | 2 ++ 2 files changed, 31 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 6a10f89dc..4551eb372 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -103,6 +103,35 @@ module.exports = function (grunt) { flatten: true }] }, + 'flot': { + files: [{ + expand: true, + src: [ + nodeDir + '/flot/source/jquery.canvaswrapper.js', + nodeDir + '/flot/source/jquery.colorhelpers.js', + nodeDir + '/flot/source/jquery.flot.*' + ], + dest: vendorDir + '/flot', + flatten: true + }] + }, + 'font-awesome': { + files: [{ + expand: true, + src: [ + nodeDir + '/font-awesome/fonts/*' + ], + dest: vendorDir + '/font-awesome/fonts', + flatten: true + },{ + expand: true, + src: [ + nodeDir + '/font-awesome/css/*' + ], + dest: vendorDir + '/font-awesome/css', + flatten: true + }] + }, 'fullcalendar': { files: [{ expand: true, diff --git a/package.json b/package.json index d0b223bea..055aa90d5 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,8 @@ "chartjs": "^0.3.24", "cytoscape": "^3.15.2", "fine-uploader": "^5.16.2", + "flot": "^4.2.1", + "font-awesome": "^4.7.0", "fullcalendar": "^3.*", "grunt": "^1.3.0", "grunt-contrib-clean": "^2.0.0", From d4db6a2ba02c571604d6650e81d8a7e4ccd3f937 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Aug 2020 07:52:52 +0200 Subject: [PATCH 030/312] new version of font-awesome (4.7.1) --- styles/bootstrap/application.css | 2 +- styles/bootstrap/application.js | 32 ++--- views/bootstrap/class.AddDocument.php | 6 +- views/bootstrap/class.AddFile.php | 4 +- views/bootstrap/class.AddSubFolder.php | 4 +- views/bootstrap/class.AdminTools.php | 10 +- views/bootstrap/class.AttributeMgr.php | 6 +- views/bootstrap/class.BackupTools.php | 4 +- views/bootstrap/class.Bootstrap.php | 109 +++++++++--------- views/bootstrap/class.Calendar.php | 16 +-- views/bootstrap/class.Categories.php | 4 +- views/bootstrap/class.ClearCache.php | 2 +- views/bootstrap/class.Clipboard.php | 10 +- views/bootstrap/class.DefaultKeywords.php | 10 +- views/bootstrap/class.DocumentAccess.php | 18 +-- views/bootstrap/class.DocumentNotify.php | 8 +- .../bootstrap/class.DocumentVersionDetail.php | 20 ++-- views/bootstrap/class.DropFolderChooser.php | 2 +- views/bootstrap/class.EditAttributes.php | 2 +- views/bootstrap/class.EditComment.php | 2 +- views/bootstrap/class.EditDocument.php | 4 +- views/bootstrap/class.EditDocumentFile.php | 2 +- views/bootstrap/class.EditEvent.php | 6 +- views/bootstrap/class.EditFolder.php | 4 +- views/bootstrap/class.EditOnline.php | 2 +- views/bootstrap/class.EditUserData.php | 4 +- views/bootstrap/class.ExtensionMgr.php | 24 ++-- views/bootstrap/class.FolderAccess.php | 18 +-- views/bootstrap/class.FolderNotify.php | 8 +- views/bootstrap/class.GroupMgr.php | 10 +- views/bootstrap/class.GroupView.php | 2 +- views/bootstrap/class.ImportFS.php | 2 +- views/bootstrap/class.ImportUsers.php | 6 +- views/bootstrap/class.LogManagement.php | 10 +- views/bootstrap/class.Login.php | 2 +- views/bootstrap/class.ManageNotify.php | 8 +- .../bootstrap/class.OverrideContentStatus.php | 2 +- views/bootstrap/class.RemoveArchive.php | 2 +- views/bootstrap/class.RemoveDocument.php | 2 +- views/bootstrap/class.RemoveDocumentFile.php | 2 +- views/bootstrap/class.RemoveDump.php | 2 +- views/bootstrap/class.RemoveEvent.php | 2 +- views/bootstrap/class.RemoveFolder.php | 2 +- views/bootstrap/class.RemoveGroup.php | 2 +- views/bootstrap/class.RemoveLog.php | 2 +- views/bootstrap/class.RemoveUser.php | 2 +- .../class.RemoveUserFromProcesses.php | 2 +- views/bootstrap/class.RemoveVersion.php | 2 +- views/bootstrap/class.RemoveWorkflow.php | 2 +- .../class.RemoveWorkflowFromDocument.php | 2 +- views/bootstrap/class.Search.php | 12 +- views/bootstrap/class.SearchForm.php | 12 +- views/bootstrap/class.SendLoginData.php | 2 +- views/bootstrap/class.Session.php | 4 +- views/bootstrap/class.SetExpires.php | 2 +- views/bootstrap/class.Settings.php | 2 +- views/bootstrap/class.SubstituteUser.php | 2 +- views/bootstrap/class.Tasks.php | 12 +- views/bootstrap/class.Timeline.php | 6 +- views/bootstrap/class.TransferDocument.php | 2 +- views/bootstrap/class.TransferObjects.php | 2 +- views/bootstrap/class.UpdateDocument.php | 4 +- views/bootstrap/class.UserDefaultKeywords.php | 8 +- views/bootstrap/class.UserList.php | 4 +- views/bootstrap/class.UsrMgr.php | 12 +- views/bootstrap/class.ViewDocument.php | 68 +++++------ views/bootstrap/class.ViewEvent.php | 4 +- views/bootstrap/class.ViewFolder.php | 12 +- views/bootstrap/class.WorkflowActionsMgr.php | 8 +- views/bootstrap/class.WorkflowGraph.php | 12 +- views/bootstrap/class.WorkflowMgr.php | 20 ++-- views/bootstrap/class.WorkflowStatesMgr.php | 8 +- 72 files changed, 314 insertions(+), 315 deletions(-) diff --git a/styles/bootstrap/application.css b/styles/bootstrap/application.css index fe7a512ca..7181d1e07 100644 --- a/styles/bootstrap/application.css +++ b/styles/bootstrap/application.css @@ -30,7 +30,7 @@ span.list-details { #admin-tools i { font-size: 300%; line-height: 110%; - min-height: 100px; +/* min-height: 100px; */ } #admin-tools a { diff --git a/styles/bootstrap/application.js b/styles/bootstrap/application.js index 47d4da737..45b9e2122 100644 --- a/styles/bootstrap/application.js +++ b/styles/bootstrap/application.js @@ -12,13 +12,13 @@ chzn_template_func = function (state) { if($(state.element).data('warning')) warning = $(state.element).data('warning')+''; /* make sure it is a string */ var html = ''; - if($(state.element).data('icon-before')) - html += ' '; + if($(state.element).data('fa fa-before')) + html += ' '; html += state.text.replace(/'; if(warning) - html += '
'+warning+''; + html += '
'+warning+''; html += '
'; var $newstate = $(html); return $newstate; @@ -39,7 +39,7 @@ $(document).ready( function() { * remove icon */ $('html').on('click', function(e) { - if (typeof $(e.target).data('original-title') == 'undefined' && !$(e.target).parents().is('.popover.in') && !$(e.target).is('.icon-remove')) { + if (typeof $(e.target).data('original-title') == 'undefined' && !$(e.target).parents().is('.popover.in') && !$(e.target).is('.fa fa-remove')) { $('[data-original-title]').popover('hide'); } }); @@ -104,11 +104,11 @@ $(document).ready( function() { }, highlighter : function (item) { if(item.charAt(0) == 'D') - return ' ' + item.substring(1).replace(/ ' + item.substring(1).replace(/ ' + item.substring(1).replace(/ ' + item.substring(1).replace(/ ' + item.substring(1).replace(/ ' + item.substring(1).replace(/ ' + strarr[1].replace(/ ' + strarr[1].replace(/ ' + strarr[1].replace(/ ' + strarr[1].replace(/ '+escapeHtml(target_name)+"

"; + bootbox_message += "

"+escapeHtml(source_info.name)+' '+escapeHtml(target_name)+"

"; bootbox.dialog(bootbox_message, [{ - "label" : " "+trans.move_document, + "label" : " "+trans.move_document, "class" : "btn-danger", "callback": function() { $.get('../op/op.Ajax.php', @@ -828,9 +828,9 @@ $(document).ready(function() { /* {{{ */ } else if(source_type == 'folder' && source_id != target_id) { var bootbox_message = trans.confirm_move_folder; if(source_info.name) - bootbox_message += "

"+escapeHtml(source_info.name)+' '+escapeHtml(target_name)+"

"; + bootbox_message += "

"+escapeHtml(source_info.name)+' '+escapeHtml(target_name)+"

"; bootbox.dialog(bootbox_message, [{ - "label" : " "+trans.move_folder, + "label" : " "+trans.move_folder, "class" : "btn-danger", "callback": function() { $.get('../op/op.Ajax.php', @@ -885,7 +885,7 @@ $(document).ready(function() { /* {{{ */ if(source_type == 'document') { if(source_id != target_id) { bootbox.dialog(trans.confirm_transfer_link_document, [{ - "label" : " "+trans.transfer_content, + "label" : " "+trans.transfer_content, "class" : "btn-danger", "callback": function() { $.get('../op/op.Ajax.php', @@ -1050,7 +1050,7 @@ $(document).ready(function() { /* {{{ */ formtoken = source_info.formtoken; if(source_type == 'document') { bootbox.dialog(trans.confirm_move_document, [{ - "label" : " "+trans.move_document, + "label" : " "+trans.move_document, "class" : "btn-danger", "callback": function() { $.get('../op/op.Ajax.php', @@ -1091,7 +1091,7 @@ $(document).ready(function() { /* {{{ */ // document.location = url; } else if(source_type == 'folder' && source_id != target_id) { bootbox.dialog(trans.confirm_move_folder, [{ - "label" : " "+trans.move_folder, + "label" : " "+trans.move_folder, "class" : "btn-danger", "callback": function() { $.get('../op/op.Ajax.php', diff --git a/views/bootstrap/class.AddDocument.php b/views/bootstrap/class.AddDocument.php index a90011fd4..9cb7027d8 100644 --- a/views/bootstrap/class.AddDocument.php +++ b/views/bootstrap/class.AddDocument.php @@ -164,9 +164,9 @@ $(document).ready(function() { $orderby = $this->params['orderby']; $folderid = $folder->getId(); - $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); if($enablelargefileupload) { - $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); $this->htmlAddHeader($this->getFineUploaderTemplate(), 'js'); } @@ -684,7 +684,7 @@ $(document).ready(function() { ) ); } - $this->formSubmit(" ".getMLText('add_document')); + $this->formSubmit(" ".getMLText('add_document')); ?> params['enablelargefileupload']; $maxuploadsize = $this->params['maxuploadsize']; - $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); if($enablelargefileupload) { - $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); $this->htmlAddHeader($this->getFineUploaderTemplate(), 'js'); } diff --git a/views/bootstrap/class.AddSubFolder.php b/views/bootstrap/class.AddSubFolder.php index 158644a91..e2778d2b9 100644 --- a/views/bootstrap/class.AddSubFolder.php +++ b/views/bootstrap/class.AddSubFolder.php @@ -69,7 +69,7 @@ $(document).ready( function() { $strictformcheck = $this->params['strictformcheck']; $orderby = $this->params['orderby']; - $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName())))); $this->globalNavigation($folder); @@ -128,7 +128,7 @@ $(document).ready( function() { echo $arrs; } - $this->formSubmit(" ".getMLText('add_subfolder')); + $this->formSubmit(" ".getMLText('add_subfolder')); ?>
'.getMLText($label).''; + return '
'.getMLText($label).'
'; } /* }}} */ function show() { /* {{{ */ @@ -70,7 +70,7 @@ class SeedDMS_View_AdminTools extends SeedDMS_Bootstrap_Style { callHook('startOfRow', 2); ?> - + callHook('startOfRow', 5); ?> - + callHook('endOfRow', 5); ?> - + callHook('endOfRow', 6); ?> callHook('startOfRow', 7); ?> - + callHook('endOfRow', 7); ?> callHook('afterRows'); ?> diff --git a/views/bootstrap/class.AttributeMgr.php b/views/bootstrap/class.AttributeMgr.php index 0327e2a96..1c235a97e 100644 --- a/views/bootstrap/class.AttributeMgr.php +++ b/views/bootstrap/class.AttributeMgr.php @@ -110,7 +110,7 @@ $(document).ready( function() { if($user->isAdmin()) { $content .= $this->printDeleteAttributeValueButton($selattrdef, implode(';', $value), 'splash_rm_attr_value', true); } else { - $content .= ''; + $content .= ''; } $content .= ""; $content .= ""; @@ -171,7 +171,7 @@ $(document).ready( function() { - + ($attrdef ? $attrdef->getRegex() : ''), ) ); - $this->formSubmit(' '.getMLText('save')); + $this->formSubmit(' '.getMLText('save')); ?> ".getLongReadableDate(filectime($backupdir.$entry))."\n"; print "".SeedDMS_Core_File::format_filesize(filesize($backupdir.$entry))."\n"; print ""; - print " ".getMLText("backup_remove").""; + print " ".getMLText("backup_remove").""; print "\n"; print "\n"; } @@ -171,7 +171,7 @@ class SeedDMS_View_BackupTools extends SeedDMS_Bootstrap_Style { print "".getLongReadableDate(filectime($backupdir.$entry))."\n"; print "".SeedDMS_Core_File::format_filesize(filesize($backupdir.$entry))."\n"; print ""; - print " ".getMLText("dump_remove").""; + print " ".getMLText("dump_remove").""; print "\n"; print "\n"; } diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index f424305ed..69014059e 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -92,11 +92,10 @@ class SeedDMS_Bootstrap_Style extends SeedDMS_View_Common { echo ''."\n"; echo ''."\n"; echo ''."\n"; - echo ''."\n"; -// echo ''."\n"; - echo ''."\n"; + echo ''."\n"; + echo ''."\n"; echo ''."\n"; - echo ''."\n"; + echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; @@ -105,14 +104,14 @@ class SeedDMS_Bootstrap_Style extends SeedDMS_View_Common { if(method_exists($this, 'css')) echo ''."\n"; - echo ''."\n"; + echo ''."\n"; if($this->extraheader['js']) echo $this->extraheader['js']; echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; echo ''."\n"; // echo ''."\n"; echo ''."\n"; @@ -161,9 +160,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);; } } echo ''."\n"; - echo ''."\n"; + echo ''."\n"; 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 ''."\n"; + echo ''."\n"; echo ''."\n"; echo ''."\n"; parse_str($_SERVER['QUERY_STRING'], $tmp); @@ -287,16 +286,16 @@ background-image: linear-gradient(to bottom, #882222, #111111);; echo "
\n"; echo "
\n"; echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; echo " params['rootfolderid']."\">".(strlen($this->params['sitename'])>0 ? $this->params['sitename'] : "SeedDMS")."\n"; if(isset($this->params['user']) && $this->params['user']) { echo "
\n"; echo "
'; return $content; @@ -1419,7 +1418,7 @@ $(document).ready(function() { $objvalue = $attribute ? (is_object($attribute) ? $attribute->getValue() : $attribute) : ''; $content .= ' - + '; break; case SeedDMS_Core_AttributeDefinition::type_email: @@ -1475,7 +1474,7 @@ $(document).ready(function() { function getDropFolderChooserHtml($formName, $dropfolderfile="", $showfolders=0) { /* {{{ */ $content = "
\n"; $content .= ""; - $content .= ""; + $content .= ""; $content .= "".($showfolders ? getMLText("choose_target_folder"): getMLText("choose_target_file"))."…\n"; $content .= "
\n"; $content .= ' @@ -1734,8 +1733,8 @@ $(function() { selectable: true, data: data, saveState: 'jqtree', - openedIcon: $(''), - closedIcon: $(''), + openedIcon: $(''), + closedIcon: $(''), _onCanSelectNode: function(node) { if(node.is_folder) { folderSelected(node.id, node.name); @@ -1747,9 +1746,9 @@ $(function() { onCreateLi: function(node, $li) { // Add 'icon' span before title if(node.is_folder) - $li.find('.jqtree-title').before(' ').attr('rel', 'folder_' + node.id).attr('formtoken', '').attr('data-uploadformtoken', ''); + $li.find('.jqtree-title').before(' ').attr('rel', 'folder_' + node.id).attr('formtoken', '').attr('data-uploadformtoken', ''); else - $li.find('.jqtree-title').before(' '); + $li.find('.jqtree-title').before(' '); } }); // Unfold node for currently selected folder @@ -1840,7 +1839,7 @@ $(function() { */ function __printTreeNavigation($folderid, $showtree){ /* {{{ */ if ($showtree==1){ - $this->contentHeading("", true); + $this->contentHeading("", true); $this->contentContainerStart(); ?> '."\n", 'js'); - $this->htmlAddHeader(''."\n", 'js'); - $this->htmlAddHeader(''."\n", 'js'); - $this->htmlAddHeader(''."\n", 'js'); - $this->htmlAddHeader(''."\n", 'css'); - $this->htmlAddHeader(''."\n", 'css'); + $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'css'); + $this->htmlAddHeader(''."\n", 'css'); $this->htmlStartPage(getMLText("calendar")); $this->globalNavigation(); diff --git a/views/bootstrap/class.Categories.php b/views/bootstrap/class.Categories.php index d9bb247a9..29045f79b 100644 --- a/views/bootstrap/class.Categories.php +++ b/views/bootstrap/class.Categories.php @@ -97,7 +97,7 @@ $(document).ready( function() { - + ($category ? htmlspecialchars($category->getName()) : '') ) ); - $this->formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> diff --git a/views/bootstrap/class.ClearCache.php b/views/bootstrap/class.ClearCache.php index 91c8f4cd7..3699c04ce 100644 --- a/views/bootstrap/class.ClearCache.php +++ b/views/bootstrap/class.ClearCache.php @@ -61,7 +61,7 @@ class SeedDMS_View_ClearCache extends SeedDMS_Bootstrap_Style { echo "

".$c[1]."

"; } ?> -

+

contentContainerEnd(); diff --git a/views/bootstrap/class.Clipboard.php b/views/bootstrap/class.Clipboard.php index 053b3df1e..ec711b891 100644 --- a/views/bootstrap/class.Clipboard.php +++ b/views/bootstrap/class.Clipboard.php @@ -53,15 +53,15 @@ class SeedDMS_View_Clipboard extends SeedDMS_Bootstrap_Style { $content = ''; $content .= "
@@ -196,7 +196,7 @@ $(document).ready( function() { "> "> - +
@@ -204,7 +204,7 @@ $(document).ready( function() { "> - +

diff --git a/views/bootstrap/class.DocumentAccess.php b/views/bootstrap/class.DocumentAccess.php index f45241a4a..3471dc6b4 100644 --- a/views/bootstrap/class.DocumentAccess.php +++ b/views/bootstrap/class.DocumentAccess.php @@ -120,7 +120,7 @@ $(document).ready( function() { 'options'=>$options ) ); - $this->formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> getAccessModeSelection($document->getDefaultAccess()) ); - $this->formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> @@ -234,7 +234,7 @@ $(document).ready( function() { getMLText("access_mode"), $this->getAccessModeSelection(M_READ) ); - $this->formSubmit(" ".getMLText('add')); + $this->formSubmit(" ".getMLText('add')); ?> getUser(); $memusers[] = $userObj->getID(); print "\n"; - print "\n"; + print "\n"; print "". htmlspecialchars($userObj->getFullName()) . "\n"; print "
\n"; print "\n"; @@ -266,7 +266,7 @@ $(document).ready( function() { print "getId()."\">\n"; print "\n"; print "getID()."\">\n"; - print ""; + print ""; print "\n"; print "
\n"; print "
\n"; @@ -275,7 +275,7 @@ $(document).ready( function() { print "getId()."\">\n"; print "\n"; print "getID()."\">\n"; - print ""; + print ""; print "\n"; print "\n"; print "\n"; @@ -286,7 +286,7 @@ $(document).ready( function() { $memgroups[] = $groupObj->getID(); $mode = $groupAccess->getMode(); print ""; - print ""; + print ""; print "". htmlspecialchars($groupObj->getName()) . ""; print "
"; print ""; @@ -297,7 +297,7 @@ $(document).ready( function() { print "getId()."\">"; print ""; print "getID()."\">"; - print ""; + print ""; print "\n"; print "
"; print "
\n"; @@ -306,7 +306,7 @@ $(document).ready( function() { print "getId()."\">\n"; print "\n"; print "getID()."\">\n"; - print ""; + print ""; print "
"; print "
\n"; print "\n"; diff --git a/views/bootstrap/class.DocumentNotify.php b/views/bootstrap/class.DocumentNotify.php index 8d7317b0e..de9096b65 100644 --- a/views/bootstrap/class.DocumentNotify.php +++ b/views/bootstrap/class.DocumentNotify.php @@ -151,7 +151,7 @@ $(document).ready( function() { else { foreach ($notifyList["users"] as $userNotify) { print ""; - print ""; + print ""; print "" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . ""; if ($user->isAdmin() || $user->getID() == $userNotify->getID()) { print "
\n"; @@ -160,7 +160,7 @@ $(document).ready( function() { print "\n"; print "getID()."\">\n"; print ""; - print ""; + print ""; print ""; print "
\n"; }else print ""; @@ -168,7 +168,7 @@ $(document).ready( function() { } foreach ($notifyList["groups"] as $groupNotify) { print ""; - print ""; + print ""; print "" . htmlspecialchars($groupNotify->getName()) . ""; if ($user->isAdmin() || $groupNotify->isMember($user,true)) { print "
\n"; @@ -177,7 +177,7 @@ $(document).ready( function() { print "\n"; print "getID()."\">\n"; print ""; - print ""; + print ""; print ""; print "
\n"; }else print ""; diff --git a/views/bootstrap/class.DocumentVersionDetail.php b/views/bootstrap/class.DocumentVersionDetail.php index 91b1781be..9313f30af 100644 --- a/views/bootstrap/class.DocumentVersionDetail.php +++ b/views/bootstrap/class.DocumentVersionDetail.php @@ -236,26 +236,26 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style { //if (($document->getAccessMode($user) >= M_READWRITE)) { print ""; print ""; } @@ -435,15 +435,15 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style { print ""; diff --git a/views/bootstrap/class.DropFolderChooser.php b/views/bootstrap/class.DropFolderChooser.php index e23e1d7ce..d668fae80 100644 --- a/views/bootstrap/class.DropFolderChooser.php +++ b/views/bootstrap/class.DropFolderChooser.php @@ -100,7 +100,7 @@ $('.folderselect').click(function(ev) { if($c) { $content .= "
    \n"; $content .= "
  • \n"; - $content .= " ".getMLText('menu_dropfolder')." (".$c.") \n"; + $content .= " ".getMLText('menu_dropfolder')." (".$c.") \n"; $content .= "
      \n"; $content .= $filecontent; $content .= "
    \n"; diff --git a/views/bootstrap/class.EditAttributes.php b/views/bootstrap/class.EditAttributes.php index 83616a1b3..2c98436f4 100644 --- a/views/bootstrap/class.EditAttributes.php +++ b/views/bootstrap/class.EditAttributes.php @@ -75,7 +75,7 @@ class SeedDMS_View_EditAttributes extends SeedDMS_Bootstrap_Style { } elseif(is_string($arrs)) { echo $arrs; } - $this->formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> htmlspecialchars($version->getComment()) ) ); - $this->formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> params['nodocumentformfields']; $orderby = $this->params['orderby']; - $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); $this->globalNavigation($folder); @@ -231,7 +231,7 @@ $(document).ready( function() { } elseif(is_string($arrs)) { echo $arrs; } - $this->formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> printDateChooser($event["start"], "from");?> " data-date-format="yyyy-mm-dd"> "> - + @@ -105,7 +105,7 @@ $(document).ready(function() { printDateChooser($event["stop"], "to");?> " data-date-format="yyyy-mm-dd"> "> - + @@ -122,7 +122,7 @@ $(document).ready(function() {
    - +
    params['strictformcheck']; $orderby = $this->params['orderby']; - $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName())))); $this->globalNavigation($folder); @@ -132,7 +132,7 @@ $(document).ready(function() { } elseif(is_string($arrs)) { echo $arrs; } - $this->formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> contentHeading(getMLText("content")); warningMsg(getMLText('edit_online_warning')); ?> - + \n"; diff --git a/views/bootstrap/class.EditUserData.php b/views/bootstrap/class.EditUserData.php index 241386089..f33ab90e6 100644 --- a/views/bootstrap/class.EditUserData.php +++ b/views/bootstrap/class.EditUserData.php @@ -92,7 +92,7 @@ $(document).ready( function() { $passwordstrength = $this->params['passwordstrength']; $httproot = $this->params['httproot']; - $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); $this->htmlStartPage(getMLText("edit_user_details")); $this->globalNavigation(); @@ -205,7 +205,7 @@ $(document).ready( function() { ) ); } - $this->formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> diff --git a/views/bootstrap/class.ExtensionMgr.php b/views/bootstrap/class.ExtensionMgr.php index e9ace2b88..6c7f5f0e9 100644 --- a/views/bootstrap/class.ExtensionMgr.php +++ b/views/bootstrap/class.ExtensionMgr.php @@ -132,7 +132,7 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { echo ""; echo "
    "; if(!$checkmsgs && $extmgr->isWritableExtDir()) - echo "
    ".createHiddenFieldWithKey('extensionmgr')."
    "; + echo "
    ".createHiddenFieldWithKey('extensionmgr')."
    "; echo "
    "; echo ""; echo ""; @@ -216,15 +216,15 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { echo ""; echo "
    "; if(!empty($extconf['changelog']) && file_exists($extdir."/".$extname."/".$extconf['changelog'])) { - echo "\n"; + echo "\n"; } if($extconf['config']) - echo ""; - echo "
    ".createHiddenFieldWithKey('extensionmgr')."
    "; + echo ""; + echo "
    ".createHiddenFieldWithKey('extensionmgr')."
    "; if(!$settings->extensionIsDisabled($extname)) { - echo ' '; + echo ' '; } else { - echo ' '; + echo ' '; } echo "
    "; echo ""; @@ -264,7 +264,7 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { getMLText("extension_archive"), $this->getFileChooserHtml('userfile', false) ); - $this->formSubmit(" ".getMLText('import_extension')); + $this->formSubmit(" ".getMLText('import_extension')); ?> -

    +

    @@ -327,10 +327,10 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { echo "".$re['author']['name']."
    ".$re['author']['company'].""; echo ""; echo "
    "; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; if(!$checkmsgs && $extmgr->isWritableExtDir()) - echo "
    ".createHiddenFieldWithKey('extensionmgr')."
    "; + echo "
    ".createHiddenFieldWithKey('extensionmgr')."
    "; echo "
    "; echo ""; echo ""; @@ -343,7 +343,7 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { - + diff --git a/views/bootstrap/class.FolderAccess.php b/views/bootstrap/class.FolderAccess.php index bf3905d05..8bca2fd16 100644 --- a/views/bootstrap/class.FolderAccess.php +++ b/views/bootstrap/class.FolderAccess.php @@ -117,7 +117,7 @@ $(document).ready(function() { 'options'=>$options ) ); - $this->formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> getAccessModeSelection($folder->getDefaultAccess()) ); - $this->formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> @@ -225,7 +225,7 @@ $(document).ready(function() { getMLText("access_mode"), $this->getAccessModeSelection(M_READ) ); - $this->formSubmit(" ".getMLText('add')); + $this->formSubmit(" ".getMLText('add')); ?> getUser(); print "\n"; - print "\n"; + print "\n"; print "". htmlspecialchars($userObj->getFullName()) . "\n"; print "
    \n"; echo createHiddenFieldWithKey('folderaccess')."\n"; @@ -253,7 +253,7 @@ $(document).ready(function() { $this->printAccessModeSelection($userAccess->getMode()); print "\n"; print "\n"; - print ""; + print ""; print "\n"; print "
    \n"; print "
    \n"; @@ -262,7 +262,7 @@ $(document).ready(function() { print "\n"; print "getID()."\">\n"; print "\n"; - print ""; + print ""; print "\n"; print "
    \n"; print "\n"; @@ -272,7 +272,7 @@ $(document).ready(function() { $groupObj = $groupAccess->getGroup(); $mode = $groupAccess->getMode(); print ""; - print ""; + print ""; print "". htmlspecialchars($groupObj->getName()) . ""; print "
    "; echo createHiddenFieldWithKey('folderaccess')."\n"; @@ -283,7 +283,7 @@ $(document).ready(function() { $this->printAccessModeSelection($groupAccess->getMode()); print "\n"; print "\n"; - print ""; + print ""; print "\n"; print "
    "; print "
    \n"; @@ -292,7 +292,7 @@ $(document).ready(function() { print "\n"; print "getID()."\">\n"; print ""; - print ""; + print ""; print "\n"; print "
    "; print "\n"; diff --git a/views/bootstrap/class.FolderNotify.php b/views/bootstrap/class.FolderNotify.php index de62b5b7a..cae14942f 100644 --- a/views/bootstrap/class.FolderNotify.php +++ b/views/bootstrap/class.FolderNotify.php @@ -151,7 +151,7 @@ $(document).ready(function() { else { foreach ($notifyList["users"] as $userNotify) { print ""; - print ""; + print ""; print "" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . ""; if ($user->isAdmin() || $user->getID() == $userNotify->getID()) { print "
    \n"; @@ -160,7 +160,7 @@ $(document).ready(function() { print "\n"; print "getID()."\">\n"; print ""; - print ""; + print ""; print ""; print "
    \n"; }else print ""; @@ -168,7 +168,7 @@ $(document).ready(function() { } foreach ($notifyList["groups"] as $groupNotify) { print ""; - print ""; + print ""; print "" . htmlspecialchars($groupNotify->getName()) . ""; if ($user->isAdmin() || $groupNotify->isMember($user,true)) { print "
    \n"; @@ -177,7 +177,7 @@ $(document).ready(function() { print "\n"; print "getID()."\">\n"; print ""; - print ""; + print ""; print ""; print "
    \n"; }else print ""; diff --git a/views/bootstrap/class.GroupMgr.php b/views/bootstrap/class.GroupMgr.php index a189c31b0..b0dfc8759 100644 --- a/views/bootstrap/class.GroupMgr.php +++ b/views/bootstrap/class.GroupMgr.php @@ -163,7 +163,7 @@ $(document).ready( function() { @@ -211,7 +211,7 @@ $(document).ready( function() { 'value'=>($group ? htmlspecialchars($group->getComment()) : '') ) ); - $this->formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> "; - print ""; + print ""; print "" . htmlspecialchars($member->getFullName()) . ""; print "" . ($group->isMember($member,true)?getMLText("manager"):" ") . ""; print ""; - print "
    getID()."\" />getID()."\" />".createHiddenFieldWithKey('rmmember')."
    "; + print "
    getID()."\" />getID()."\" />".createHiddenFieldWithKey('rmmember')."
    "; print " "; - print "
    getID()."\" />getID()."\" />".createHiddenFieldWithKey('tmanager')."
    "; + print "
    getID()."\" />getID()."\" />".createHiddenFieldWithKey('tmanager')."
    "; print ""; } } diff --git a/views/bootstrap/class.GroupView.php b/views/bootstrap/class.GroupView.php index 44b89fddf..cf955a5d7 100644 --- a/views/bootstrap/class.GroupView.php +++ b/views/bootstrap/class.GroupView.php @@ -86,7 +86,7 @@ $(document).ready( function() { if($manager->getId() == $member->getId()) echo ", ".getMLText("manager"); if($ismanager) { - echo ' '.getMLText("rm_user").''; + echo ' '.getMLText("rm_user").''; } echo "
  • "; } diff --git a/views/bootstrap/class.ImportFS.php b/views/bootstrap/class.ImportFS.php index 00c5d0208..36387e615 100644 --- a/views/bootstrap/class.ImportFS.php +++ b/views/bootstrap/class.ImportFS.php @@ -90,7 +90,7 @@ class SeedDMS_View_ImportFS extends SeedDMS_Bootstrap_Style { 'value'=>'1' ) ); - $this->formSubmit(" ".getMLText('import')); + $this->formSubmit(" ".getMLText('import')); print "\n"; $this->contentContainerEnd(); } else { diff --git a/views/bootstrap/class.ImportUsers.php b/views/bootstrap/class.ImportUsers.php index fd0b036fe..5886caccf 100644 --- a/views/bootstrap/class.ImportUsers.php +++ b/views/bootstrap/class.ImportUsers.php @@ -77,7 +77,7 @@ class SeedDMS_View_ImportUsers extends SeedDMS_Bootstrap_Style { 'value'=>'1' ) ); - $this->formSubmit(" ".getMLText('import')); + $this->formSubmit(" ".getMLText('import')); print "\n"; $this->contentContainerEnd(); @@ -102,12 +102,12 @@ class SeedDMS_View_ImportUsers extends SeedDMS_Bootstrap_Style { if(isset($newuser['__logs__'])) { foreach($newuser['__logs__'] as $item) { $class = $item['type'] == 'success' ? 'success' : 'error'; - echo " ".htmlspecialchars($item['msg'])."
    "; + echo " ".htmlspecialchars($item['msg'])."
    "; } } foreach($log[$uhash] as $item) { $class = $item['type'] == 'success' ? 'success' : 'error'; - echo " ".htmlspecialchars($item['msg'])."
    "; + echo " ".htmlspecialchars($item['msg'])."
    "; } echo ""; echo "\n"; diff --git a/views/bootstrap/class.LogManagement.php b/views/bootstrap/class.LogManagement.php index b10156f6d..ed6e14103 100644 --- a/views/bootstrap/class.LogManagement.php +++ b/views/bootstrap/class.LogManagement.php @@ -56,24 +56,24 @@ class SeedDMS_View_LogManagement extends SeedDMS_Bootstrap_Style { print "".SeedDMS_Core_File::format_filesize(filesize($this->logdir.$entry))."\n"; print ""; - print " ".getMLText("rm_file").""; + print " ".getMLText("rm_file").""; print " "; - print " ".getMLText("download").""; + print " ".getMLText("download").""; print " "; - print " ".getMLText('view')." …"; + print " ".getMLText('view')." …"; print "\n"; print "\n"; } if ($print_header) printMLText("empty_list"); - else print "\n"; + else print "\n"; } /* }}} */ function js() { /* {{{ */ header('Content-Type: application/javascript'); ?> $(document).ready( function() { - $('i.icon-arrow-up').on('click', function(e) { + $('i.fa fa-arrow-up').on('click', function(e) { //var checkBoxes = $("input[type=checkbox]"); //checkBoxes.prop("checked", !checkBoxes.prop("checked")); $('input[type=checkbox]').prop('checked', true); diff --git a/views/bootstrap/class.Login.php b/views/bootstrap/class.Login.php index 68f5c37f4..26305aba9 100644 --- a/views/bootstrap/class.Login.php +++ b/views/bootstrap/class.Login.php @@ -110,7 +110,7 @@ $(document).ready( function() { $enableLanguageSelector = $this->params['enablelanguageselector']; $enableThemeSelector = $this->params['enablethemeselector']; - $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); $this->htmlStartPage(getMLText("sign_in"), "login"); $this->globalBanner(); diff --git a/views/bootstrap/class.ManageNotify.php b/views/bootstrap/class.ManageNotify.php index 2416a1706..08f142754 100644 --- a/views/bootstrap/class.ManageNotify.php +++ b/views/bootstrap/class.ManageNotify.php @@ -82,7 +82,7 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style { echo $this->folderListRow($fld, true); } print ""; - if ($deleteaction) print " ".getMLText("delete").""; + if ($deleteaction) print " ".getMLText("delete").""; else print "".getMLText("edit").""; print ""; echo $this->folderListRowEnd($fld); @@ -120,7 +120,7 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style { echo $this->documentListRow($doc, $previewer, true); } print ""; - if ($deleteaction) print " ".getMLText("delete").""; + if ($deleteaction) print " ".getMLText("delete").""; else print "".getMLText("edit").""; print "\n"; echo $this->documentListRowEnd($doc); @@ -178,7 +178,7 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style { 'value'=>1 ) ); - $this->formSubmit(" ".getMLText('add')); + $this->formSubmit(" ".getMLText('add')); print ""; $this->contentContainerEnd(); echo ""; @@ -190,7 +190,7 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style { /* 'form1' must be passed to printDocumentChooser() because the typeahead * function is currently hardcoded on this value */ $this->formField(getMLText("choose_target_document"), $this->getDocumentChooserHtml("form2")); - $this->formSubmit(" ".getMLText('add')); + $this->formSubmit(" ".getMLText('add')); print ""; $this->contentContainerEnd(); diff --git a/views/bootstrap/class.OverrideContentStatus.php b/views/bootstrap/class.OverrideContentStatus.php index d05d1ba4e..133148e82 100644 --- a/views/bootstrap/class.OverrideContentStatus.php +++ b/views/bootstrap/class.OverrideContentStatus.php @@ -110,7 +110,7 @@ $(document).ready(function() { 'options'=>$options, ) ); - $this->formSubmit(" ".getMLText('update')); + $this->formSubmit(" ".getMLText('update')); ?> ">

    htmlspecialchars($arkname)));?>

    -

    +

    contentContainerEnd(); diff --git a/views/bootstrap/class.RemoveDocument.php b/views/bootstrap/class.RemoveDocument.php index 2340827fd..ae692667d 100644 --- a/views/bootstrap/class.RemoveDocument.php +++ b/views/bootstrap/class.RemoveDocument.php @@ -52,7 +52,7 @@ class SeedDMS_View_RemoveDocument extends SeedDMS_Bootstrap_Style {

    htmlspecialchars($document->getName())));?>

    -

    +

    contentContainerEnd(); diff --git a/views/bootstrap/class.RemoveDocumentFile.php b/views/bootstrap/class.RemoveDocumentFile.php index d30d95516..5528c751b 100644 --- a/views/bootstrap/class.RemoveDocumentFile.php +++ b/views/bootstrap/class.RemoveDocumentFile.php @@ -51,7 +51,7 @@ class SeedDMS_View_RemoveDocumentFile extends SeedDMS_Bootstrap_Style {

    htmlspecialchars($document->getName()), "name" => htmlspecialchars($file->getName())));?>

    - + contentContainerEnd(); diff --git a/views/bootstrap/class.RemoveDump.php b/views/bootstrap/class.RemoveDump.php index 359ff84b7..73361c904 100644 --- a/views/bootstrap/class.RemoveDump.php +++ b/views/bootstrap/class.RemoveDump.php @@ -47,7 +47,7 @@ class SeedDMS_View_RemoveDump extends SeedDMS_Bootstrap_Style {

    htmlspecialchars($dumpname)));?>

    -

    +

    contentContainerEnd(); diff --git a/views/bootstrap/class.RemoveEvent.php b/views/bootstrap/class.RemoveEvent.php index e3281ca4f..27748211d 100644 --- a/views/bootstrap/class.RemoveEvent.php +++ b/views/bootstrap/class.RemoveEvent.php @@ -49,7 +49,7 @@ class SeedDMS_View_RemoveEvent extends SeedDMS_Bootstrap_Style { ">

    htmlspecialchars($event["name"])));?>

    - + contentContainerEnd(); diff --git a/views/bootstrap/class.RemoveFolder.php b/views/bootstrap/class.RemoveFolder.php index d34ea9551..ce0ed12b7 100644 --- a/views/bootstrap/class.RemoveFolder.php +++ b/views/bootstrap/class.RemoveFolder.php @@ -50,7 +50,7 @@ class SeedDMS_View_RemoveFolder extends SeedDMS_Bootstrap_Style {

    htmlspecialchars($folder->getName())));?>

    -

    +

    contentContainerEnd(); diff --git a/views/bootstrap/class.RemoveGroup.php b/views/bootstrap/class.RemoveGroup.php index b90b58907..09efdacb5 100644 --- a/views/bootstrap/class.RemoveGroup.php +++ b/views/bootstrap/class.RemoveGroup.php @@ -51,7 +51,7 @@ class SeedDMS_View_RemoveGroup extends SeedDMS_Bootstrap_Style {

    htmlspecialchars($group->getName())));?>

    -

    +

    contentContainerEnd(); diff --git a/views/bootstrap/class.RemoveLog.php b/views/bootstrap/class.RemoveLog.php index fc8d88205..96b400a2f 100644 --- a/views/bootstrap/class.RemoveLog.php +++ b/views/bootstrap/class.RemoveLog.php @@ -54,7 +54,7 @@ class SeedDMS_View_RemoveLog extends SeedDMS_Bootstrap_Style { } ?>

    implode(', ', $lognames)));?>

    -

    +

    contentContainerEnd(); diff --git a/views/bootstrap/class.RemoveUser.php b/views/bootstrap/class.RemoveUser.php index 355788dd7..c8534df93 100644 --- a/views/bootstrap/class.RemoveUser.php +++ b/views/bootstrap/class.RemoveUser.php @@ -76,7 +76,7 @@ class SeedDMS_View_RemoveUser extends SeedDMS_Bootstrap_Style {
    - +
    diff --git a/views/bootstrap/class.RemoveUserFromProcesses.php b/views/bootstrap/class.RemoveUserFromProcesses.php index c28dcdcfd..5f0cb1393 100644 --- a/views/bootstrap/class.RemoveUserFromProcesses.php +++ b/views/bootstrap/class.RemoveUserFromProcesses.php @@ -201,7 +201,7 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style { ) ); */ - $this->formSubmit(" ".getMLText('rm_user_from_processes')); + $this->formSubmit(" ".getMLText('rm_user_from_processes')); ?> diff --git a/views/bootstrap/class.RemoveVersion.php b/views/bootstrap/class.RemoveVersion.php index 50beed15c..c655bcbf1 100644 --- a/views/bootstrap/class.RemoveVersion.php +++ b/views/bootstrap/class.RemoveVersion.php @@ -50,7 +50,7 @@ class SeedDMS_View_RemoveVersion extends SeedDMS_Bootstrap_Style {

    htmlspecialchars($document->getName()), "version" => $version->getVersion()));?>

    -

    +

    contentContainerEnd(); diff --git a/views/bootstrap/class.RemoveWorkflow.php b/views/bootstrap/class.RemoveWorkflow.php index 474ea3939..465d771eb 100644 --- a/views/bootstrap/class.RemoveWorkflow.php +++ b/views/bootstrap/class.RemoveWorkflow.php @@ -50,7 +50,7 @@ class SeedDMS_View_RemoveWorkflow extends SeedDMS_Bootstrap_Style {
    - +
    diff --git a/views/bootstrap/class.RemoveWorkflowFromDocument.php b/views/bootstrap/class.RemoveWorkflowFromDocument.php index 1793f27f0..9de6c747a 100644 --- a/views/bootstrap/class.RemoveWorkflowFromDocument.php +++ b/views/bootstrap/class.RemoveWorkflowFromDocument.php @@ -73,7 +73,7 @@ class SeedDMS_View_RemoveWorkflowFromDocument extends SeedDMS_Bootstrap_Style { - +
    diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php index 51a8fabc3..920cea858 100644 --- a/views/bootstrap/class.Search.php +++ b/views/bootstrap/class.Search.php @@ -189,12 +189,12 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
    "> - +   "> - + @@ -217,7 +217,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style { ?> - + @@ -297,12 +297,12 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
    "> - +   "> - + @@ -431,7 +431,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style { - + diff --git a/views/bootstrap/class.SearchForm.php b/views/bootstrap/class.SearchForm.php index a53dc3893..24ce015ee 100644 --- a/views/bootstrap/class.SearchForm.php +++ b/views/bootstrap/class.SearchForm.php @@ -182,12 +182,12 @@ $(document).ready(function() { - +   - + @@ -199,17 +199,17 @@ $(document).ready(function() { - +   - + - + @@ -271,7 +271,7 @@ $(document).ready(function() { - + diff --git a/views/bootstrap/class.SendLoginData.php b/views/bootstrap/class.SendLoginData.php index 7d1d7d22b..86363bfbb 100644 --- a/views/bootstrap/class.SendLoginData.php +++ b/views/bootstrap/class.SendLoginData.php @@ -54,7 +54,7 @@ class SeedDMS_View_SendLoginData extends SeedDMS_Bootstrap_Style { 'name'=>'comment', ) ); - $this->formSubmit(" ".getMLText('send_email')); + $this->formSubmit(" ".getMLText('send_email')); ?> isHidden()) { $c++; $hasuser = true; - $ucontent .= "
  • ".htmlspecialchars($sesuser->getFullName())." ".getReadableDuration(time()-$session->getLastAccess())."
  • \n"; + $ucontent .= "
  • ".htmlspecialchars($sesuser->getFullName())." ".getReadableDuration(time()-$session->getLastAccess())."
  • \n"; } } if($c) { $content = ''; $content .= "
    @@ -150,7 +150,7 @@ $(document).ready(function() { - + @@ -169,14 +169,14 @@ $(document).ready(function() { "> "> - +
    "> - +

    diff --git a/views/bootstrap/class.UserList.php b/views/bootstrap/class.UserList.php index 5c5063d2f..49350275b 100644 --- a/views/bootstrap/class.UserList.php +++ b/views/bootstrap/class.UserList.php @@ -115,8 +115,8 @@ class SeedDMS_View_UserList extends SeedDMS_Bootstrap_Style { echo ""; echo ""; echo "
    "; - echo "getID()."\"> "; - echo "getID()."\">"; + echo "getID()."\"> "; + echo "getID()."\">"; echo "
    "; echo ""; echo ""; diff --git a/views/bootstrap/class.UsrMgr.php b/views/bootstrap/class.UsrMgr.php index 2fd60daaa..ba94536ae 100644 --- a/views/bootstrap/class.UsrMgr.php +++ b/views/bootstrap/class.UsrMgr.php @@ -182,14 +182,14 @@ $(document).ready( function() { @@ -508,7 +508,7 @@ $(document).ready( function() { ); } } - $this->formSubmit(" ".getMLText($currUser ? "save" : "add_user")); + $this->formSubmit(" ".getMLText($currUser ? "save" : "add_user")); ?> "; if ($file_exists){ - print "
  • getDocument()->getId()."&version=".$latestContent->getVersion()."\">".getMLText("download")."
  • "; + print "
  • getDocument()->getId()."&version=".$latestContent->getVersion()."\">".getMLText("download")."
  • "; if ($viewonlinefiletypes && (in_array(strtolower($latestContent->getFileType()), $viewonlinefiletypes) || in_array(strtolower($latestContent->getMimeType()), $viewonlinefiletypes))) - print "
  • getDocument()->getId()."&version=". $latestContent->getVersion()."\">" . getMLText("view_online") . "
  • "; + print "
  • getDocument()->getId()."&version=". $latestContent->getVersion()."\">" . getMLText("view_online") . "
  • "; } print "
"; print "
    "; if ($file_exists){ if($accessop->mayEditVersion()) { - print "
  • getDocument()->getId()."&version=".$latestContent->getVersion()."\">".getMLText("edit_version")."
  • "; + print "
  • getDocument()->getId()."&version=".$latestContent->getVersion()."\">".getMLText("edit_version")."
  • "; } } /* Only admin has the right to remove version in any case or a regular * user if enableVersionDeletion is on */ if($accessop->mayRemoveVersion()) { - print "
  • getDocument()->getId()."&version=".$latestContent->getVersion()."\">".getMLText("rm_version")."
  • "; + print "
  • getDocument()->getId()."&version=".$latestContent->getVersion()."\">".getMLText("rm_version")."
  • "; } if($accessop->mayOverwriteStatus()) { - print "
  • ".getMLText("change_status")."
  • "; + print "
  • ".getMLText("change_status")."
  • "; } if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') { // Allow changing reviewers/approvals only if not reviewed if($accessop->maySetReviewersApprovers()) { - print "
  • ".getMLText("change_assignments")."
  • "; + print "
  • ".getMLText("change_assignments")."
  • "; } } elseif($workflowmode == 'advanced') { if($accessop->maySetWorkflow()) { if(!$workflow) { - print "
  • ".getMLText("set_workflow")."
  • "; + print "
  • ".getMLText("set_workflow")."
  • "; } } } /* if($accessop->maySetExpires()) { - print "
  • ".getMLText("set_expiry")."
  • "; + print "
  • ".getMLText("set_expiry")."
  • "; } */ if($accessop->mayEditComment()) { - print "
  • getDocument()->getId()."&version=".$latestContent->getVersion()."\">".getMLText("edit_comment")."
  • "; + print "
  • getDocument()->getId()."&version=".$latestContent->getVersion()."\">".getMLText("edit_comment")."
  • "; } if($accessop->mayEditAttributes()) { - print "
  • getDocument()->getId()."&version=".$latestContent->getVersion()."\">".getMLText("edit_attributes")."
  • "; + print "
  • getDocument()->getId()."&version=".$latestContent->getVersion()."\">".getMLText("edit_attributes")."
  • "; } $items = $this->callHook('extraVersionActions', $latestContent); @@ -714,7 +714,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { if(is_string($item)) echo "
  • ".$item."
  • "; elseif(is_array($item)) - echo "
  • ".(!empty($item['icon']) ? "" : "").getMLText($item['label'])."
  • "; + echo "
  • ".(!empty($item['icon']) ? "" : "").getMLText($item['label'])."
  • "; } } @@ -800,7 +800,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { $reqName = getMLText("unknown_user")." '".$r["required"]."'"; } else { - $reqName = " ".htmlspecialchars($required->getFullName()." (".$required->getLogin().")"); + $reqName = " ".htmlspecialchars($required->getFullName()." (".$required->getLogin().")"); if($user->isAdmin()) { if($document->getAccessMode($required) < M_READ || $latestContent->getAccessMode($required) < M_READ) $accesserr = getMLText("access_denied"); @@ -817,7 +817,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { $reqName = getMLText("unknown_group")." '".$r["required"]."'"; } else { - $reqName = " ".htmlspecialchars($required->getName()); + $reqName = " ".htmlspecialchars($required->getName()); if($user->isAdmin()) { $grpusers = $required->getUsers(); if(!$grpusers) @@ -837,7 +837,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { print htmlspecialchars($r["comment"]); if($r['file']) { echo "
    "; - echo " ".getMLText('download').""; + echo " ".getMLText('download').""; } print "\n"; print "".getReviewStatusText($r["status"])."\n"; @@ -888,7 +888,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { $reqName = getMLText("unknown_user")." '".$a["required"]."'"; } else { - $reqName = " ".htmlspecialchars($required->getFullName()." (".$required->getLogin().")"); + $reqName = " ".htmlspecialchars($required->getFullName()." (".$required->getLogin().")"); if($user->isAdmin()) { if($document->getAccessMode($required) < M_READ || $latestContent->getAccessMode($required) < M_READ) $accesserr = getMLText("access_denied"); @@ -905,7 +905,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { $reqName = getMLText("unknown_group")." '".$a["required"]."'"; } else { - $reqName = " ".htmlspecialchars($required->getName()); + $reqName = " ".htmlspecialchars($required->getName()); if($user->isAdmin()) { $grpusers = $required->getUsers(); if(!$grpusers) @@ -925,7 +925,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { print htmlspecialchars($a["comment"]); if($a['file']) { echo "
    "; - echo " ".getMLText('download').""; + echo " ".getMLText('download').""; } echo "\n"; print "".getApprovalStatusText($a["status"])."\n"; @@ -1000,9 +1000,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { $this->contentContainerStart(); if($user->isAdmin()) { if(SeedDMS_Core_DMS::checkIfEqual($workflow->getInitState(), $latestContent->getWorkflowState())) { - print "
    getDocument()->getId()."\" />getVersion()."\" />
    "; + print "
    getDocument()->getId()."\" />getVersion()."\" />
    "; } else { - print "
    getDocument()->getId()."\" />getVersion()."\" />
    "; + print "
    getDocument()->getId()."\" />getVersion()."\" />
    "; } } @@ -1017,7 +1017,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { foreach($transitions as $transition) { $nextstate = $transition->getNextState(); $docstatus = $nextstate->getDocumentStatus(); - echo " ".htmlspecialchars($nextstate->getName()).""; + echo " ".htmlspecialchars($nextstate->getName()).""; } echo ""; echo ""; @@ -1270,9 +1270,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { print ""; print ""; print ""; @@ -1365,14 +1365,14 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { print ""; @@ -1421,7 +1421,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { if (($user->getID() == $responsibleUser->getID()) || ($document->getAccessMode($user) == M_ALL )) print "
    ".getMLText("document_link_public").": ".(($link->isPublic()) ? getMLText("yes") : getMLText("no")); if (($user->getID() == $responsibleUser->getID()) || ($document->getAccessMode($user) == M_ALL )) - print "
    ".createHiddenFieldWithKey('removedocumentlink')."getID()."\" />
    "; + print "
    ".createHiddenFieldWithKey('removedocumentlink')."getID()."\" />
    "; print ""; echo $this->documentListRowEnd($targetDoc); } @@ -1449,7 +1449,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { ) ); } - $this->formSubmit(" ".getMLText('save')); + $this->formSubmit(" ".getMLText('save')); ?> getFullName()); if (($user->getID() == $responsibleUser->getID()) || ($document->getAccessMode($user) == M_ALL )) print "
    ".getMLText("document_link_public").": ".(($link->isPublic()) ? getMLText("yes") : getMLText("no")); - print "
    ".createHiddenFieldWithKey('removedocumentlink')."getId()."\" />getID()."\" />
    "; + print "
    ".createHiddenFieldWithKey('removedocumentlink')."getId()."\" />getID()."\" />
    "; print ""; echo $this->documentListRowEnd($sourceDoc); } diff --git a/views/bootstrap/class.ViewEvent.php b/views/bootstrap/class.ViewEvent.php index 35a270e93..85eb4ac29 100644 --- a/views/bootstrap/class.ViewEvent.php +++ b/views/bootstrap/class.ViewEvent.php @@ -82,8 +82,8 @@ class SeedDMS_View_ViewEvent extends SeedDMS_Bootstrap_Style { echo ""; echo ""; echo ""; - print " ".getMLText("delete")." "; - print " ".getMLText("edit").""; + print " ".getMLText("delete")." "; + print " ".getMLText("edit").""; echo ""; } diff --git a/views/bootstrap/class.ViewFolder.php b/views/bootstrap/class.ViewFolder.php index fa0ebd8d7..7aec058e9 100644 --- a/views/bootstrap/class.ViewFolder.php +++ b/views/bootstrap/class.ViewFolder.php @@ -356,11 +356,11 @@ $('body').on('click', '.order-btn', function(ev) { else { print ""; print "\n\n"; - print "\n"; + print "\n"; print "\n"; // print "\n"; print "\n"; @@ -575,7 +575,7 @@ $('body').on('click', '.order-btn', function(ev) { if ($enableFolderTree) { if ($showtree==1){ - $this->contentHeading("", true); + $this->contentHeading("", true); $this->contentContainerStart(); /* * access expandFolderTree with $this->params because it can @@ -584,7 +584,7 @@ $('body').on('click', '.order-btn', function(ev) { $this->printNewTreeNavigationHtml($folderid, M_READ, 0, '', ($this->params['expandFolderTree'] == 1) ? -1 : 3, $orderby); $this->contentContainerEnd(); } else { - $this->contentHeading("", true); + $this->contentHeading("", true); } } diff --git a/views/bootstrap/class.WorkflowActionsMgr.php b/views/bootstrap/class.WorkflowActionsMgr.php index 55bf3aeab..758673dbe 100644 --- a/views/bootstrap/class.WorkflowActionsMgr.php +++ b/views/bootstrap/class.WorkflowActionsMgr.php @@ -88,9 +88,9 @@ $(document).ready( function() { echo ""; } echo ""; @@ -115,7 +115,7 @@ $(document).ready( function() { @@ -156,7 +156,7 @@ $(document).ready( function() { 'value'=>($action ? htmlspecialchars($action->getName()) : '') ) ); - $this->formSubmit(' '.getMLText("save")); + $this->formSubmit(' '.getMLText("save")); ?> contentContainerEnd(); ?> diff --git a/views/bootstrap/class.WorkflowGraph.php b/views/bootstrap/class.WorkflowGraph.php index f9b5cbd0c..387b6a1f5 100644 --- a/views/bootstrap/class.WorkflowGraph.php +++ b/views/bootstrap/class.WorkflowGraph.php @@ -154,7 +154,7 @@ cy.on('tap', 'node', function(evt) { var scratch = node.scratch('app'); if(typeof scratch !== 'undefined') { noty({ - text: (scratch.users ? '

    ' ?> ' + scratch.users + '

    ' : '') + (scratch.groups ? ' ' ?> ' + scratch.groups + '

    ' : ''), + text: (scratch.users ? '

    ' ?> ' + scratch.users + '

    ' : '') + (scratch.groups ? ' ' ?> ' + scratch.groups + '

    ' : ''), type: 'information', dismissQueue: true, layout: 'topCenter', @@ -335,11 +335,11 @@ div.buttons #zoom {margin: 3px; _float: right;}
    -
    -
    -
    -
    - +
    +
    +
    +
    +
    diff --git a/views/bootstrap/class.WorkflowMgr.php b/views/bootstrap/class.WorkflowMgr.php index d918b728d..d8b1c0535 100644 --- a/views/bootstrap/class.WorkflowMgr.php +++ b/views/bootstrap/class.WorkflowMgr.php @@ -97,7 +97,7 @@ $(document).ready(function() { @@ -119,7 +119,7 @@ $(document).ready(function() { foreach($path as $state) { $names[] = htmlspecialchars($state->getName()); } - $this->errorMsg(getMLText('workflow_has_cycle').": ".implode(' ', $names)); + $this->errorMsg(getMLText('workflow_has_cycle').": ".implode(' ', $names)); } $transitions = $workflow->getTransitions(); @@ -197,7 +197,7 @@ $(document).ready(function() { 'options'=>$options ) ); - $this->formSubmit(' '.getMLText("save")); + $this->formSubmit(' '.getMLText("save")); ?> contentContainerEnd(); ?> @@ -219,23 +219,23 @@ $(document).ready(function() { if(!$transusers && !$transgroups) { echo " class=\"error\""; } - echo ">
    "; - echo ""; + echo ""; echo ""; } echo ""; @@ -116,7 +116,7 @@ $(document).ready(function() { @@ -169,7 +169,7 @@ $(document).ready(function() { 'options'=>$options ) ); - $this->formSubmit(' '.getMLText("save")); + $this->formSubmit(' '.getMLText("save")); ?> contentContainerEnd(); ?> From 983c90ee23fce75e7428cd4db401521fc423c0ed Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Aug 2020 07:53:22 +0200 Subject: [PATCH 031/312] all rewrite rule for all views, not just bootstrap --- .htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index d83443d97..f1ec9a858 100644 --- a/.htaccess +++ b/.htaccess @@ -14,7 +14,7 @@ RewriteRule "^doc/.*$" "" [F] # Anything below the following dirs will never be rewritten RewriteRule "^pdfviewer/.*$" "-" [L] -RewriteRule "^views/bootstrap/images.*$" "-" [L] +RewriteRule "^views/.*/images.*$" "-" [L] RewriteRule "^out/images.*$" "-" [L] RewriteRule "^styles/.*$" "-" [L] From 1fb30caf25148f1d70e36ca10e1e671eae66d233 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Aug 2020 08:00:49 +0200 Subject: [PATCH 032/312] fix getting group for notification when transition has fired (Closes: #483) --- op/op.TriggerWorkflow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op/op.TriggerWorkflow.php b/op/op.TriggerWorkflow.php index 330b525cc..f2701d004 100644 --- a/op/op.TriggerWorkflow.php +++ b/op/op.TriggerWorkflow.php @@ -126,7 +126,7 @@ if($version->triggerWorkflowTransition($user, $transition, $_POST["comment"])) { } } foreach($ntransition->getGroups() as $tuser) { - if(!in_array($tuser->getUser()->getID(), $groupsinformed)) { + if(!in_array($tuser->getGroup()->getID(), $groupsinformed)) { $groupsinformed[] = $tuser->getGroup()->getID(); $notifier->toGroup($user, $tuser->getGroup(), $subject, $message, $params); } From 36f6d7aab9499c5f2a703ef62a84c0e0f045a4f1 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Aug 2020 08:03:05 +0200 Subject: [PATCH 033/312] more changes for 5.1.19 --- CHANGELOG | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index b91f39e6f..a94a041a6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -18,6 +18,10 @@ - prefix each attribute with 'attr_' when read through webdav - actually set owner as notified user, not the logged in user, check if notified user has access on document not the logged in user. +- fix getting group for notification when transition has fired (Closes: #483) +- move lots of javascript packages into views/bootstrap/vendors and update + them with npm and grunt +- update to font-awesome 4.7.1 -------------------------------------------------------------------------------- Changes in version 5.1.18 From b231b3f5f11bdc4664ca3c963b65a3a08b90abc9 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Aug 2020 08:13:14 +0200 Subject: [PATCH 034/312] add cytoscape and cytoscape-grid-guide --- Gruntfile.js | 11 +++++++++++ package.json | 1 + 2 files changed, 12 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 4551eb372..fe0ce1ae4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -31,6 +31,17 @@ module.exports = function (grunt) { flatten: true }] }, + 'cytoscape': { + files: [{ + expand: true, + src: [ + nodeDir + '/cytoscape/dist/*', + nodeDir + '/cytoscape-grid-guide/cytoscape-grid-guide.js' + ], + dest: vendorDir + '/cytoscape', + flatten: true + }] + }, 'jqtree': { files: [{ expand: true, diff --git a/package.json b/package.json index 055aa90d5..f1243efb9 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "bootstrap-datepicker": "^1.9.0", "chartjs": "^0.3.24", "cytoscape": "^3.15.2", + "cytoscape-grid-guide": "^2.3.2", "fine-uploader": "^5.16.2", "flot": "^4.2.1", "font-awesome": "^4.7.0", From 76ed086f5d69d0110b12690ddd28e612f0196a31 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Aug 2020 08:13:34 +0200 Subject: [PATCH 035/312] use cytoscape in views/bootstrap/vendors --- views/bootstrap/class.WorkflowGraph.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.WorkflowGraph.php b/views/bootstrap/class.WorkflowGraph.php index 387b6a1f5..5c723c6d2 100644 --- a/views/bootstrap/class.WorkflowGraph.php +++ b/views/bootstrap/class.WorkflowGraph.php @@ -313,9 +313,9 @@ $(document).ready(function() { } $this->htmlAddHeader( - ''."\n"); + ''."\n"); $this->htmlAddHeader( - ''."\n"); + ''."\n"); $this->htmlAddHeader('
    ".($parent ? '' : '')."".($parent ? '' : '')."".getMLText("name"); - print " ".($orderby=="n"||$orderby=="na"?' ':($orderby=="nd"?' ':' ')).""; - print " ".($orderby=="s"||$orderby=="sa"?' ':($orderby=="sd"?' ':' ')).""; - print " ".($orderby=="d"||$orderby=="da"?' ':($orderby=="dd"?' ':' ')).""; + print " ".($orderby=="n"||$orderby=="na"?' ':($orderby=="nd"?' ':' ')).""; + print " ".($orderby=="s"||$orderby=="sa"?' ':($orderby=="sd"?' ':' ')).""; + print " ".($orderby=="d"||$orderby=="da"?' ':($orderby=="dd"?' ':' ')).""; print "".getMLText("owner")."".getMLText("status").""; echo htmlspecialchars($workflow->getName()); echo ""; - echo ' '.htmlspecialchars($state->getName()); + echo ' '.htmlspecialchars($state->getName()); echo ""; - echo ' '.htmlspecialchars($nextstate->getName()); + echo ' '.htmlspecialchars($nextstate->getName()); echo "
    ".' '.htmlspecialchars($state->getName())."
    "; + echo ">
    ".' '.htmlspecialchars($state->getName())."
    "; $docstatus = $nextstate->getDocumentStatus(); - echo ' '.htmlspecialchars($nextstate->getName()); + echo ' '.htmlspecialchars($nextstate->getName()); if($docstatus == S_RELEASED || $docstatus == S_REJECTED) { - echo "
    ".getOverallStatusText($docstatus); + echo "
    ".getOverallStatusText($docstatus); } echo "
    ".htmlspecialchars($action->getName())." ".htmlspecialchars($action->getName()).""; foreach($transusers as $transuser) { $u = $transuser->getUser(); - echo ' '.htmlspecialchars($u->getLogin()." - ".$u->getFullName()); + echo ' '.htmlspecialchars($u->getLogin()." - ".$u->getFullName()); echo "
    "; } foreach($transgroups as $transgroup) { $g = $transgroup->getGroup(); - echo ' '.getMLText('at_least_n_users_of_group', + echo ' '.getMLText('at_least_n_users_of_group', array("number_of_users" => $transgroup->getNumOfUsers(), "group" => htmlspecialchars($g->getName()))); echo "
    "; @@ -247,7 +247,7 @@ $(document).ready(function() { - + "; diff --git a/views/bootstrap/class.WorkflowStatesMgr.php b/views/bootstrap/class.WorkflowStatesMgr.php index a4da2478d..04e685890 100644 --- a/views/bootstrap/class.WorkflowStatesMgr.php +++ b/views/bootstrap/class.WorkflowStatesMgr.php @@ -89,9 +89,9 @@ $(document).ready(function() { echo "
    "; echo htmlspecialchars($workflow->getName()); echo ""; - echo ' '.htmlspecialchars($state->getName()); + echo ' '.htmlspecialchars($state->getName()); echo ""; - echo ' '.htmlspecialchars($nextstate->getName()); + echo ' '.htmlspecialchars($nextstate->getName()); echo "