* Finish task#8751. Add batch unlink stakerholders.

This commit is contained in:
qiyu-xie
2020-12-26 16:13:10 +08:00
parent 33e2b79be2
commit dcca3d0c04
2 changed files with 47 additions and 10 deletions
+7 -1
View File
@@ -27,8 +27,8 @@
<table class='table has-sort-head' id='userList'>
<thead>
<tr>
<?php $vars = "programID=$programID&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";?>
<th class='c-id'>
<div class='checkbox-primary check-all' title="<?php echo $this->lang->selectAll;?>"><label></label></div>
<?php echo $lang->idAB;?>
</th>
<th><?php echo $lang->user->realname;?></th>
@@ -45,6 +45,7 @@
<?php foreach($stakeholders as $stakeholder):?>
<tr>
<td class='c-id'>
<?php echo html::checkbox('stakeholderIDList', array($stakeholder->id => ''));?>
<?php printf('%03d', $stakeholder->id);?>
</td>
<?php $isKey = $stakeholder->key ? " <i class='icon icon-star-empty'></i>" : '';?>
@@ -68,6 +69,11 @@
</table>
<?php if($stakeholders):?>
<div class='table-footer'>
<div class="checkbox-primary check-all"><label><?php echo $lang->selectAll?></label></div>
<div class="table-actions">
<?php $actionLink = $this->createLink('program', 'batchUnlinkStakeholders', "programID=$programID");?>
<?php echo html::commonButton($lang->delete, "onclick=\"setFormAction('$actionLink', 'hiddenwin')\"");?>
</div>
<?php $pager->show('right', 'pagerjs');?>
</div>
<?php endif;?>