mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
add links to remove process without a user/group
This commit is contained in:
parent
2de2fc00fc
commit
e67e830946
|
@ -361,6 +361,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
||||||
$previewwidth = $this->params['previewWidthList'];
|
$previewwidth = $this->params['previewWidthList'];
|
||||||
$previewconverters = $this->params['previewconverters'];
|
$previewconverters = $this->params['previewconverters'];
|
||||||
$timeout = $this->params['timeout'];
|
$timeout = $this->params['timeout'];
|
||||||
|
$repair = $this->params['repair'];
|
||||||
|
|
||||||
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout);
|
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout);
|
||||||
$previewer->setConverters($previewconverters);
|
$previewer->setConverters($previewconverters);
|
||||||
|
@ -375,6 +376,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
||||||
print "<th>".getMLText("document")."</th>\n";
|
print "<th>".getMLText("document")."</th>\n";
|
||||||
print "<th>".getMLText("version")."</th>\n";
|
print "<th>".getMLText("version")."</th>\n";
|
||||||
print "<th>".getMLText("userid_groupid")."</th>\n";
|
print "<th>".getMLText("userid_groupid")."</th>\n";
|
||||||
|
print "<th></th>\n";
|
||||||
print "</tr>\n</thead>\n<tbody>\n";
|
print "</tr>\n</thead>\n<tbody>\n";
|
||||||
foreach($processwithoutusergroup[$process][$ug] as $rec) {
|
foreach($processwithoutusergroup[$process][$ug] as $rec) {
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
|
@ -382,10 +384,13 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
||||||
print "<td>".$ug."</td>";
|
print "<td>".$ug."</td>";
|
||||||
print "<td><a href=\"../out/out.ViewDocument.php?documentid=".$rec['documentID']."\">".$rec['name']."</a></td><td>".$rec['version']."</td>";
|
print "<td><a href=\"../out/out.ViewDocument.php?documentid=".$rec['documentID']."\">".$rec['name']."</a></td><td>".$rec['version']."</td>";
|
||||||
print "<td>".$rec['required']."</td>";
|
print "<td>".$rec['required']."</td>";
|
||||||
|
print "<td><a class=\"repair\" data-action=\"list".ucfirst($process)."Without".ucfirst($ug)."\" data-required=\"".$rec['required']."\">".getMLText('delete')."</a></td>";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
print "</tbody></table>\n";
|
print "</tbody></table>\n";
|
||||||
|
return count($processwithoutusergroup[$process][$ug]);
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function listReviewWithoutUser() { /* {{{ */
|
function listReviewWithoutUser() { /* {{{ */
|
||||||
|
@ -405,7 +410,9 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function listReceiptWithoutUser() { /* {{{ */
|
function listReceiptWithoutUser() { /* {{{ */
|
||||||
$this->listProcessesWithoutUserGroup('receipt', 'user');
|
if($this->listProcessesWithoutUserGroup('receipt', 'user')) {
|
||||||
|
echo '<div class="repair"><a data-action="listReceiptWithoutUser">'.getMLText('do_object_repair').'</a>';
|
||||||
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function listReceiptWithoutGroup() { /* {{{ */
|
function listReceiptWithoutGroup() { /* {{{ */
|
||||||
|
@ -435,6 +442,16 @@ $(document).ready( function() {
|
||||||
$('#kkkk.ajax').data('action', $(this).data('action'));
|
$('#kkkk.ajax').data('action', $(this).data('action'));
|
||||||
$('#kkkk.ajax').trigger('update', {orderby: $(this).data('orderby')});
|
$('#kkkk.ajax').trigger('update', {orderby: $(this).data('orderby')});
|
||||||
});
|
});
|
||||||
|
$('body').on('click', 'div.repair a', function(ev){
|
||||||
|
ev.preventDefault();
|
||||||
|
$('#kkkk.ajax').data('action', $(this).data('action'));
|
||||||
|
$('#kkkk.ajax').trigger('update', {repair: 1});
|
||||||
|
});
|
||||||
|
$('body').on('click', 'a.repair', function(ev){
|
||||||
|
ev.preventDefault();
|
||||||
|
$('#kkkk.ajax').data('action', $(this).data('action'));
|
||||||
|
$('#kkkk.ajax').trigger('update', {repair: 1, required: $(this).data('required')});
|
||||||
|
});
|
||||||
$('body').on('click', 'table th a', function(ev){
|
$('body').on('click', 'table th a', function(ev){
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
$('#kkkk.ajax').data('action', $(this).data('action'));
|
$('#kkkk.ajax').data('action', $(this).data('action'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user