mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
show right values for receipts and revisions
This commit is contained in:
parent
07d760d7d8
commit
cda9f99f9e
|
@ -71,7 +71,7 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
$receiptStatus = $rmuser->getReceiptStatus();
|
||||
$tmpb = array();
|
||||
foreach($approvalStatus['indstatus'] as $ai) {
|
||||
foreach($receiptStatus['indstatus'] as $ai) {
|
||||
if(isset($tmpb[$ai['status']]))
|
||||
$tmpb[$ai['status']][] = $ai;
|
||||
else
|
||||
|
@ -80,7 +80,7 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
$revisionStatus = $rmuser->getRevisionStatus();
|
||||
$tmpc = array();
|
||||
foreach($approvalStatus['indstatus'] as $ai) {
|
||||
foreach($revisionStatus['indstatus'] as $ai) {
|
||||
if(isset($tmpc[$ai['status']]))
|
||||
$tmpc[$ai['status']][] = $ai;
|
||||
else
|
||||
|
@ -147,7 +147,7 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
|||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[]" value="0" checked> <?php echo getMLText('receipts_not_touched', array('no_receipts' => count($tmpb["0"]))); ?>
|
||||
<input type="checkbox" name="status[receipt][]" value="0" checked> <?php echo getMLText('receipts_not_touched', array('no_receipts' => count($tmpb["0"]))); ?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -156,7 +156,7 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
|||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[]" value="1" checked> <?php echo getMLText('receipts_accepted', array('no_receipts' => count($tmpb["1"]))); ?><br />
|
||||
<input type="checkbox" name="status[receipt][]" value="1"> <?php echo getMLText('receipts_accepted', array('no_receipts' => count($tmpb["1"]))); ?><br />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -165,7 +165,7 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
|||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[]" value="-1" checked> <?php echo getMLText('receipts_rejected', array('no_receipts' => count($tmpb["-1"]))); ?><br />
|
||||
<input type="checkbox" name="status[receipt][]" value="-1"> <?php echo getMLText('receipts_rejected', array('no_receipts' => count($tmpb["-1"]))); ?><br />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -175,7 +175,16 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
|||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[]" value="0" checked> <?php echo getMLText('revisions_not_touched', array('no_revisions' => count($tmpc["0"]))); ?>
|
||||
<input type="checkbox" name="status[revision][]" value="0" checked> <?php echo getMLText('revisions_not_touched', array('no_revisions' => count($tmpc["0"]))); ?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if(isset($tmpc["-3"])) { ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[revision][]" value="-3" checked> <?php echo getMLText('revisions_pending', array('no_revisions' => count($tmpc["-3"]))); ?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -184,7 +193,7 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
|||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[]" value="1" checked> <?php echo getMLText('revisions_accepted', array('no_revisions' => count($tmpc["1"]))); ?><br />
|
||||
<input type="checkbox" name="status[revision][]" value="1"> <?php echo getMLText('revisions_accepted', array('no_revisions' => count($tmpc["1"]))); ?><br />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -193,7 +202,7 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
|||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[]" value="-1" checked> <?php echo getMLText('revisions_rejected', array('no_revisions' => count($tmpc["-1"]))); ?><br />
|
||||
<input type="checkbox" name="status[revision][]" value="-1"> <?php echo getMLText('revisions_rejected', array('no_revisions' => count($tmpc["-1"]))); ?><br />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user