mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
add list for documents that need correction
This commit is contained in:
parent
0066d29650
commit
7008b11f64
|
@ -586,6 +586,36 @@ $(document).ready( function() {
|
||||||
|
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
function listNeedsCorrectionOwner() { /* {{{ */
|
||||||
|
$dms = $this->params['dms'];
|
||||||
|
$user = $this->params['user'];
|
||||||
|
$orderby = $this->params['orderby'];
|
||||||
|
$orderdir = $this->params['orderdir'];
|
||||||
|
$cachedir = $this->params['cachedir'];
|
||||||
|
$previewwidth = $this->params['previewWidthList'];
|
||||||
|
$previewconverters = $this->params['previewconverters'];
|
||||||
|
$timeout = $this->params['timeout'];
|
||||||
|
|
||||||
|
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout);
|
||||||
|
$previewer->setConverters($previewconverters);
|
||||||
|
|
||||||
|
/* Get list of obsolete documents and owned by current user */
|
||||||
|
$resArr = $dms->getDocumentList('NeedsCorrectionOwner', $user, false, $orderby, $orderdir);
|
||||||
|
if (is_bool($resArr) && !$resArr) {
|
||||||
|
$this->contentHeading(getMLText("warning"));
|
||||||
|
$this->contentContainer(getMLText("internal_error_exit"));
|
||||||
|
$this->htmlEndPage();
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->contentHeading(getMLText("documents_user_needs_correction"));
|
||||||
|
if ($resArr) {
|
||||||
|
$this->printList($resArr, $previewer, 'listNeedsCorrectionOwner');
|
||||||
|
}
|
||||||
|
else printMLText("no_docs_needs_correction");
|
||||||
|
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
function listDraftOwner() { /* {{{ */
|
function listDraftOwner() { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
$user = $this->params['user'];
|
$user = $this->params['user'];
|
||||||
|
@ -688,6 +718,8 @@ $(document).ready( function() {
|
||||||
echo '<li class=""><a data-href="#documents_user_expiration" data-action="listExpiredOwner"><span class="badge '.($resArr ? 'badge-info ' : '').'badge-right">'.count($resArr).'</span>'.getMLText("documents_user_expiration").'</a></li>';
|
echo '<li class=""><a data-href="#documents_user_expiration" data-action="listExpiredOwner"><span class="badge '.($resArr ? 'badge-info ' : '').'badge-right">'.count($resArr).'</span>'.getMLText("documents_user_expiration").'</a></li>';
|
||||||
$resArr = $dms->getDocumentList('ObsoleteOwner', $user);
|
$resArr = $dms->getDocumentList('ObsoleteOwner', $user);
|
||||||
echo '<li class=""><a data-href="#documents_user_obsolete" data-action="listObsoleteOwner"><span class="badge '.($resArr ? 'badge-info ' : '').'badge-right">'.count($resArr).'</span>'.getMLText("documents_user_obsolete").'</a></li>';
|
echo '<li class=""><a data-href="#documents_user_obsolete" data-action="listObsoleteOwner"><span class="badge '.($resArr ? 'badge-info ' : '').'badge-right">'.count($resArr).'</span>'.getMLText("documents_user_obsolete").'</a></li>';
|
||||||
|
$resArr = $dms->getDocumentList('NeedsCorrectionOwner', $user);
|
||||||
|
echo '<li class=""><a data-href="#documents_user_needs_correction" data-action="listNeedsCorrectionOwner"><span class="badge '.($resArr ? 'badge-info ' : '').'badge-right">'.count($resArr).'</span>'.getMLText("documents_user_needs_correction").'</a></li>';
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
$this->contentHeading(getMLText("tasks"));
|
$this->contentHeading(getMLText("tasks"));
|
||||||
echo '<ul class="nav nav-list bs-docs-sidenav _affix">';
|
echo '<ul class="nav nav-list bs-docs-sidenav _affix">';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user