* Refactory checkall.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<table align='center' class='table-1 a-left'>
|
||||
<caption><?php echo $group->name . $lang->colon . $lang->group->manageMember;?></caption>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->group->inside;?><input type='checkbox' onclick='checkall(this, "group");'></th>
|
||||
<th class='rowhead'><?php echo $lang->group->inside;?><?php echo html::checkAll('checkall', $lang->selectAll, 'group');?> </th>
|
||||
<td id='group' class='f-14px pv-10px'><?php $i = 1;?>
|
||||
<?php foreach($groupUsers as $account => $realname):?>
|
||||
<div class='w-p10 f-left'><?php echo '<span>' . html::checkbox('members', array($account => $realname), $account) . '</span>';?></div>
|
||||
@@ -24,7 +24,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->group->outside;?><input type='checkbox' onclick='checkall(this, "other");'></th>
|
||||
<th class='rowhead'><?php echo $lang->group->outside;?><?php echo html::checkAll('checkall', $lang->selectAll, 'other');?> </th>
|
||||
<td id='other' class='f-14px pv-10px'><?php $i = 1;?>
|
||||
<?php foreach($otherUsers as $account => $realname):?>
|
||||
<div class='w-p10 f-left'><?php echo '<span>' . html::checkbox('members', array($account => $realname), '') . '</span>';?></div>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</tr>
|
||||
<?php foreach($lang->resource as $moduleName => $moduleActions):?>
|
||||
<tr class='f-14px <?php echo cycle('even, bg-yellow');?>'>
|
||||
<th class='a-right'><?php echo $this->lang->$moduleName->common;?> <input type='checkbox' onclick='checkall(this, "<?php echo $moduleName;?>")'></td>
|
||||
<th class='a-right'><?php echo $this->lang->$moduleName->common;?><?php echo html::checkAll('checkall', $lang->selectAll, $moduleName)?></td>
|
||||
<td id='<?php echo $moduleName;?>' class='pv-10px'>
|
||||
<?php $i = 1;?>
|
||||
<?php foreach($moduleActions as $action => $actionLabel):?>
|
||||
@@ -39,7 +39,7 @@
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->selectAll;?><input type='checkbox' onclick='checkall(this);'></th>
|
||||
<th class='rowhead'><?php echo $lang->selectAll;?><?php echo html::checkAll('checkall', $lang->selectAll)?></th>
|
||||
<td class='a-center'>
|
||||
<?php
|
||||
echo html::submitButton($lang->save);
|
||||
|
||||
@@ -47,7 +47,14 @@
|
||||
<?php $storyCount ++;?>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
<tfoot><tr><td colspan='8' class='f-14px'><input type='checkbox' onclick='checkall(this);'><?php print($storyCount? ($lang->selectAll . html::submitButton()) : $lang->project->whyNoStories);?></td></tr></tfoot>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan='8' class='f-14px'>
|
||||
<?php echo html::checkAll('checkall', $lang->selectAll); ?>
|
||||
<?php print($storyCount? html::submitButton() : $lang->project->whyNoStories);?>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</form>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -85,7 +85,7 @@ var moduleID = '<?php echo $moduleID;?>';
|
||||
</table>
|
||||
<table class='table-1'>
|
||||
<tr>
|
||||
<td><nobr><?php echo "<input type='checkbox' onclick='checkall(this);'> " . $lang->selectAll;?></nobr></td>
|
||||
<td><nobr><?php echo html::checkAll('checkall', $lang->selectAll);?></nobr></td>
|
||||
<td colspan='9'>
|
||||
<?php
|
||||
echo html::select('assignedTo', $users);
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<tfoot>
|
||||
<tr><td colspan='7' class='a-right'><?php $pager->show();?></td></tr>
|
||||
<tr>
|
||||
<td colspan='7' class='a-center'><input type='checkbox' onclick='checkall(this);'><?php echo $lang->selectAll; echo html::submitButton();?></td>
|
||||
<td colspan='7' class='a-center'><?php echo html::checkAll('checkall', $lang->selectAll);?><?php echo html::submitButton();?></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user