mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
use formField() instead of plain html
This commit is contained in:
parent
b095c48ddd
commit
b2715684a3
|
@ -80,66 +80,129 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
|
|||
}
|
||||
?>
|
||||
<?php if(isset($tmpr["0"])) { ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[review][]" value="0" checked> <?php echo getMLText('reviews_not_touched', array('no_reviews' => count($tmpr["0"]))); ?> <?php echo getMLText('reviews_not_touched_latest', array('no_reviews' => $cr["0"])); ?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$this->formField(
|
||||
getMLText('reviews_not_touched', array('no_reviews' => count($tmpr["0"]))),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'checkbox',
|
||||
'name'=>'status[review][]',
|
||||
'value'=>'0',
|
||||
'checked'=>true
|
||||
),
|
||||
array(
|
||||
'field_wrap' => array('', ' '.getMLText('reviews_not_touched_latest', array('no_reviews' => $cr["0"])))
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php } ?>
|
||||
<?php if(isset($tmpr["1"])) { ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[review][]" value="1"> <?php echo getMLText('reviews_accepted', array('no_reviews' => count($tmpr["1"]))); ?> <?php echo getMLText('reviews_accepted_latest', array('no_reviews' => $cr["1"])); ?><br />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$this->formField(
|
||||
getMLText('reviews_accepted', array('no_reviews' => count($tmpr["1"]))),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'checkbox',
|
||||
'name'=>'status[approval][]',
|
||||
'value'=>'1',
|
||||
'checked'=>true
|
||||
),
|
||||
array(
|
||||
'field_wrap' => array('', ' '.getMLText('reviews_accepted_latest', array('no_reviews' => $cr["1"])))
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php } ?>
|
||||
<?php if(isset($tmpr["-1"])) { ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[review][]" value="-1"> <?php echo getMLText('reviews_rejected', array('no_reviews' => count($tmpr["-1"]))); ?> <?php echo getMLText('reviews_rejected_latest', array('no_reviews' => $cr["-1"])); ?><br />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$this->formField(
|
||||
getMLText('reviews_rejected', array('no_reviews' => count($tmpr["-1"]))),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'checkbox',
|
||||
'name'=>'status[approval][]',
|
||||
'value'=>'-1',
|
||||
'checked'=>true
|
||||
),
|
||||
array(
|
||||
'field_wrap' => array('', ' '.getMLText('reviews_rejected_latest', array('no_reviews' => $cr["-1"])))
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if(isset($tmpa["0"])) { ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[approval][]" value="0" checked> <?php echo getMLText('approvals_not_touched', array('no_approvals' => count($tmpa["0"]))); ?> <?php echo getMLText('approvals_not_touched_latest', array('no_approvals' => $ca["0"])); ?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$this->formField(
|
||||
getMLText('approvals_not_touched', array('no_approvals' => count($tmpa["0"]))),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'checkbox',
|
||||
'name'=>'status[approval][]',
|
||||
'value'=>'0',
|
||||
'checked'=>true
|
||||
),
|
||||
array(
|
||||
'field_wrap' => array('', ' '.getMLText('approvals_not_touched_latest', array('no_approvals' => $ca["0"])))
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php } ?>
|
||||
<?php if(isset($tmpa["1"])) { ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[approval][]" value="1"> <?php echo getMLText('approvals_accepted', array('no_approvals' => count($tmpa["1"]))); ?> <?php echo getMLText('approvals_accepted_latest', array('no_approvals' => $ca["1"])); ?><br />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$this->formField(
|
||||
getMLText('approvals_accepted', array('no_approvals' => count($tmpa["1"]))),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'checkbox',
|
||||
'name'=>'status[approval][]',
|
||||
'value'=>'1',
|
||||
'checked'=>true
|
||||
),
|
||||
array(
|
||||
'field_wrap' => array('', ' '.getMLText('approvals_accepted_latest', array('no_approvals' => $ca["1"])))
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php } ?>
|
||||
<?php if(isset($tmpa["-1"])) { ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="status[approval][]" value="-1"> <?php echo getMLText('approvals_rejected', array('no_approvals' => count($tmpa["-1"]))); ?> <?php echo getMLText('approvals_rejected_latest', array('no_approvals' => $ca["-1"])); ?><br />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$this->formField(
|
||||
getMLText('approvals_rejected', array('no_approvals' => count($tmpa["-1"]))),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'checkbox',
|
||||
'name'=>'status[approval][]',
|
||||
'value'=>'-1',
|
||||
'checked'=>true
|
||||
),
|
||||
array(
|
||||
'field_wrap' => array('', ' '.getMLText('approvals_rejected_latest', array('no_approvals' => $ca["-1"])))
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php } ?>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn"><i class="icon-remove"></i> <?php printMLText("rm_user_from_processes");?></button>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
/*
|
||||
$options = array();
|
||||
$allUsers = $dms->getAllUsers($sortusersinlist);
|
||||
foreach ($allUsers as $currUser) {
|
||||
if (!$currUser->isGuest())
|
||||
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin()), ($currUser->getID()==$user->getID()), array(array('data-subtitle', htmlspecialchars($currUser->getFullName()))));
|
||||
}
|
||||
$this->formField(
|
||||
getMLText("user"),
|
||||
array(
|
||||
'element'=>'select',
|
||||
'id'=>'newuser',
|
||||
'name'=>'newuserid',
|
||||
'class'=>'chzn-select',
|
||||
'options'=>$options
|
||||
)
|
||||
);
|
||||
*/
|
||||
$this->formSubmit("<i class=\"icon-remove\"></i> ".getMLText('rm_user_from_processes'));
|
||||
?>
|
||||
|
||||
</form>
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue
Block a user