* Modify doc priv style.

This commit is contained in:
caoyanyi
2023-04-12 14:31:37 +08:00
parent 1b9bbe097d
commit 875aee00b1
2 changed files with 40 additions and 34 deletions
+5 -1
View File
@@ -2084,13 +2084,17 @@ class block extends control
$pager = new pager(0, 6, 1);
$docList = $this->loadModel('doc')->getDocsByBrowseType('byediteddate', 0, 0, 'editedDate_desc', $pager);
$libList = array();
foreach($docList as $doc)
{
$doc->editedDate = substr($doc->editedDate, 0, 10);
$doc->editInterval = helper::getDateInterval($doc->editedDate);
$libList[] = $doc->lib;
}
$this->view->docList = $docList;
$this->view->pricDocs = $this->doc->getPrivDocs($libList);
$this->view->docList = $docList;
}
/**