diff --git a/views/bootstrap/class.ObjectCheck.php b/views/bootstrap/class.ObjectCheck.php index 7594eea8c..959703b74 100644 --- a/views/bootstrap/class.ObjectCheck.php +++ b/views/bootstrap/class.ObjectCheck.php @@ -545,7 +545,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Theme_Style { $this->printClickDocumentJs(); ?> $(document).ready( function() { - $('body').on('click', 'ul.bs-docs-sidenav li a', function(ev){ + $('body').on('click', 'ul.sidenav li a', function(ev){ ev.preventDefault(); $('#kkkk.ajax').data('action', $(this).data('action')); $('#kkkk.ajax').trigger('update', {orderby: $(this).data('orderby')}); @@ -600,39 +600,37 @@ $(document).ready( function() { $this->contentStart(); $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - echo '
'; - echo '
'; + $this->rowStart(); + $this->columnStart(3); $this->contentHeading(getMLText("object_check_critical")); - echo ''; + $menuitems = []; + $menuitems[] = array('label'=>getMLText('objectcheck'), 'badge'=>count($repairobjects), 'attributes'=>array(array('data-href', "#all_documents"), array('data-action', "listRepair"))); + $menuitems[] = array('label'=>getMLText('unlinked_folders'), 'badge'=>count($unlinkedfolders), 'attributes'=>array(array('data-href', "#unlinked_folders"), array('data-action', "listUnlinkedFolders"))); + $menuitems[] = array('label'=>getMLText('unlinked_documents'), 'badge'=>count($unlinkeddocuments), 'attributes'=>array(array('data-href', "#unlinked_documents"), array('data-action', "listUnlinkedDocuments"))); + $menuitems[] = array('label'=>getMLText('unlinked_content'), 'badge'=>count($unlinkedcontent), 'attributes'=>array(array('data-href', "#unlinked_content"), array('data-action', "listUnlinkedContent"))); + $menuitems[] = array('label'=>getMLText('missing_filesize'), 'badge'=>count($nofilesizeversions), 'attributes'=>array(array('data-href', "#missing_filesize"), array('data-action', "listMissingFileSize"))); + $menuitems[] = array('label'=>getMLText('missing_checksum'), 'badge'=>count($nochecksumversions), 'attributes'=>array(array('data-href', "#missing_checksum"), array('data-action', "listMissingChecksum"))); + $menuitems[] = array('label'=>getMLText('wrong_filetype'), 'badge'=>count($wrongfiletypeversions), 'attributes'=>array(array('data-href', "#wrong_filetype"), array('data-action', "listWrongFiletype"))); + self::showNavigationListWithBadges($menuitems); + $this->contentHeading(getMLText("object_check_warning")); - echo ''; - echo ''; - echo '
'; - echo '
'; + self::showNavigationListWithBadges($menuitems); + $this->columnEnd(); + $this->columnStart(9); echo '
'; - echo '
'; - echo '
'; - + $this->columnEnd(); + $this->rowEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */