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 .= " "; print "