Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2021-05-07 08:27:05 +02:00
commit 1d4e7364ec

View File

@ -43,7 +43,7 @@ class SeedDMS_View_LogManagement extends SeedDMS_Theme_Style {
print "<th></th>\n"; print "<th></th>\n";
print "<th>".getMLText("name")."</th>\n"; print "<th>".getMLText("name")."</th>\n";
print "<th>".getMLText("creation_date")."</th>\n"; print "<th>".getMLText("creation_date")."</th>\n";
print "<th>".getMLText("file_size")."</th>\n"; print "<th class=\"d-none d-lg-table-cell\">".getMLText("file_size")."</th>\n";
print "<th></th>\n"; print "<th></th>\n";
print "</tr>\n</thead>\n<tbody>\n"; print "</tr>\n</thead>\n<tbody>\n";
$print_header=false; $print_header=false;
@ -53,8 +53,8 @@ class SeedDMS_View_LogManagement extends SeedDMS_Theme_Style {
print "<td><input type=\"checkbox\" name=\"logname[]\" value=\"".$entry."\"/></td>\n"; print "<td><input type=\"checkbox\" name=\"logname[]\" value=\"".$entry."\"/></td>\n";
print "<td><a href=\"out.LogManagement.php?logname=".$entry."\">".$entry."</a></td>\n"; print "<td><a href=\"out.LogManagement.php?logname=".$entry."\">".$entry."</a></td>\n";
print "\n"; print "\n";
print "<td>".getLongReadableDate(filectime($this->logdir.$entry))."</td>\n"; print "<td>".getReadableDate(filectime($this->logdir.$entry))."</td>\n";
print "<td>".SeedDMS_Core_File::format_filesize(filesize($this->logdir.$entry))."</td>\n"; print "<td class=\"d-none d-lg-table-cell\">".SeedDMS_Core_File::format_filesize(filesize($this->logdir.$entry))."</td>\n";
print "<td>"; print "<td>";
if($accessop->check_view_access('RemoveLog')) { if($accessop->check_view_access('RemoveLog')) {
@ -71,17 +71,17 @@ class SeedDMS_View_LogManagement extends SeedDMS_Theme_Style {
} }
if ($print_header) printMLText("empty_list"); if ($print_header) printMLText("empty_list");
else print "<tr><td><i class=\"fa fa-arrow-up\"></i></td><td colspan=\"2\"><button type=\"submit\" class=\"btn btn-danger\"><i class=\"fa fa-remove\"></i> ".getMLText('remove_marked_files')."</button></td></tr></table></form>\n"; else print "<tr><td><span id=\"toggleall\"><i class=\"fa fa-exchange\"></i></span></td><td colspan=\"2\"><button type=\"submit\" class=\"btn btn-danger\"><i class=\"fa fa-remove\"></i> ".getMLText('remove_marked_files')."</button></td></tr></table></form>\n";
} /* }}} */ } /* }}} */
function js() { /* {{{ */ function js() { /* {{{ */
header('Content-Type: application/javascript; charset=UTF-8'); header('Content-Type: application/javascript; charset=UTF-8');
?> ?>
$(document).ready( function() { $(document).ready( function() {
$('i.fa fa-arrow-up').on('click', function(e) { $('#toggleall').on('click', function(e) {
//var checkBoxes = $("input[type=checkbox]"); //var checkBoxes = $("input[type=checkbox]");
//checkBoxes.prop("checked", !checkBoxes.prop("checked")); //checkBoxes.prop("checked", !checkBoxes.prop("checked"));
$('input[type=checkbox]').prop('checked', true); $("input[type=checkbox]").each(function () { this.checked = !this.checked; });
}); });
}); });