mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-02 06:57:40 +00:00
add single checks for process without user/group
This commit is contained in:
parent
94a4844616
commit
1886b160b9
|
@ -365,30 +365,25 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
|||
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout);
|
||||
$previewer->setConverters($previewconverters);
|
||||
|
||||
$this->contentHeading(getMLText("process_without_user_group"));
|
||||
$this->contentHeading(getMLText($process."s_without_".$ug));
|
||||
|
||||
if($processwithoutusergroup) {
|
||||
if($processwithoutusergroup[$process][$ug]) {
|
||||
print "<table class=\"table table-condensed\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("process")."</th>\n";
|
||||
print "<th>".getMLText("user_group")."</th>\n";
|
||||
print "<th>".getMLText("documentid")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("required")."</th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
foreach(array('review', 'approval') as $process) {
|
||||
foreach(array('user', 'group') as $ug) {
|
||||
if($processwithoutusergroup[$process][$ug]) {
|
||||
foreach($processwithoutusergroup[$process][$ug] as $rec) {
|
||||
print "<tr>";
|
||||
print "<td>".$process."</td>";
|
||||
print "<td>".$ug."</td>";
|
||||
print "<td>".$rec['documentID']."</td><td>".$rec['version']."</td><td>".$rec['name']."</td>";
|
||||
print "<td>".$rec['required']."</td>";
|
||||
print "</tr>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach($processwithoutusergroup[$process][$ug] as $rec) {
|
||||
print "<tr>";
|
||||
print "<td>".$process."</td>";
|
||||
print "<td>".$ug."</td>";
|
||||
print "<td>".$rec['documentID']."</td><td>".$rec['version']."</td><td>".$rec['name']."</td>";
|
||||
print "<td>".$rec['required']."</td>";
|
||||
print "</tr>\n";
|
||||
}
|
||||
print "</tbody></table>\n";
|
||||
}
|
||||
|
@ -410,6 +405,22 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
|||
$this->listProcessesWithoutUserGroup('approval', 'group');
|
||||
} /* }}} */
|
||||
|
||||
function listReceiptWithoutUser() { /* {{{ */
|
||||
$this->listProcessesWithoutUserGroup('receipt', 'user');
|
||||
} /* }}} */
|
||||
|
||||
function listReceiptWithoutGroup() { /* {{{ */
|
||||
$this->listProcessesWithoutUserGroup('receipt', 'group');
|
||||
} /* }}} */
|
||||
|
||||
function listRevisionWithoutUser() { /* {{{ */
|
||||
$this->listProcessesWithoutUserGroup('revision', 'user');
|
||||
} /* }}} */
|
||||
|
||||
function listRevisionWithoutGroup() { /* {{{ */
|
||||
$this->listProcessesWithoutUserGroup('revision', 'group');
|
||||
} /* }}} */
|
||||
|
||||
function js() { /* {{{ */
|
||||
$user = $this->params['user'];
|
||||
$folder = $this->params['folder'];
|
||||
|
@ -447,6 +458,7 @@ $(document).ready( function() {
|
|||
$duplicateversions = $this->params['duplicateversions'];
|
||||
$docsinrevision = $this->params['docsinrevision'];
|
||||
$docsinreception = $this->params['docsinreception'];
|
||||
$processwithoutusergroup = $this->params['processwithoutusergroup'];
|
||||
$repair = $this->params['repair'];
|
||||
$unlink = $this->params['unlink'];
|
||||
$setfilesize = $this->params['setfilesize'];
|
||||
|
@ -480,10 +492,11 @@ $(document).ready( function() {
|
|||
echo '<li class=""><a data-href="#inreception_no_access" data-action="listDocsInReceptionNoAccess"><span class="badge '.($docsinreception ? 'badge-info ' : '').'badge-right">'.count($docsinreception).'</span>'.getMLText("docs_in_reception_no_access").'</a></li>';
|
||||
echo '</ul>';
|
||||
echo '<ul class="nav nav-list bs-docs-sidenav _affix">';
|
||||
echo '<li class=""><a data-href="#review_without_user" data-action="listReviewWithoutUser"><span class="badge '.($processwithoutusergroup['review']['user'] ? 'badge-info ' : '').'badge-right">'.count($processwithoutusergroup['review']['user']).'</span>'.getMLText("reviews_without_user").'</a></li>';
|
||||
echo '<li class=""><a data-href="#review_without_group" data-action="listReviewWithoutGroup"><span class="badge '.($processwithoutusergroup['review']['group'] ? 'badge-info ' : '').'badge-right">'.count($processwithoutusergroup['review']['group']).'</span>'.getMLText("reviews_without_group").'</a></li>';
|
||||
echo '<li class=""><a data-href="#approval_without_user" data-action="listApprovalWithoutUser"><span class="badge '.($processwithoutusergroup['approval']['user'] ? 'badge-info ' : '').'badge-right">'.count($processwithoutusergroup['approval']['user']).'</span>'.getMLText("approvals_without_user").'</a></li>';
|
||||
echo '<li class=""><a data-href="#approval_without_group" data-action="listApprovalWithoutGroup"><span class="badge '.($processwithoutusergroup['approval']['group'] ? 'badge-info ' : '').'badge-right">'.count($processwithoutusergroup['approval']['group']).'</span>'.getMLText("approvals_without_group").'</a></li>';
|
||||
foreach(array('review', 'approval', 'receipt', 'revision') as $process) {
|
||||
foreach(array('user', 'group') as $ug) {
|
||||
echo '<li class=""><a data-href="#'.$process.'_without_'.$ug.'" data-action="list'.ucfirst($process).'Without'.ucfirst($ug).'"><span class="badge '.($processwithoutusergroup[$process][$ug] ? 'badge-info ' : '').'badge-right">'.count($processwithoutusergroup[$process][$ug]).'</span>'.getMLText($process."s_without_".$ug).'</a></li>';
|
||||
}
|
||||
}
|
||||
echo '</ul>';
|
||||
echo '</div>';
|
||||
echo '<div class="span9">';
|
||||
|
|
Loading…
Reference in New Issue
Block a user