* Refactory checkall.

This commit is contained in:
chencongzhi520@gmail.com
2012-04-30 03:33:50 +00:00
parent fea0b1d4fb
commit 9eefa1934b
5 changed files with 14 additions and 7 deletions
+2 -2
View File
@@ -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>
+2 -2
View File
@@ -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);
+8 -1
View File
@@ -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';?>
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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>