* refactory select all.

This commit is contained in:
chencongzhi520@gmail.com
2012-04-30 05:47:54 +00:00
parent 8f75cc48c9
commit c155c8fcdf
9 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
<div class='box-content'>
<form method='post'>
<?php echo html::checkBox('charts', $lang->bug->report->charts, $checkedCharts);?>
<?php echo html::checkAll('checkall', $lang->selectAll); ?>
<?php echo html::selectAll('selectall', $lang->selectAll); ?>
<input type='button' value='<?php echo $lang->bug->report->selectReverse;?>' onclick='checkReverse()' />
<br /><br />
<?php echo html::submitButton($lang->bug->report->create);?>
+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;?><?php echo html::checkAll('checkall', $lang->selectAll, 'group');?> </th>
<th class='rowhead'><?php echo $lang->group->inside;?><?php echo html::selectAll('selectall', $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;?><?php echo html::checkAll('checkall', $lang->selectAll, 'other');?> </th>
<th class='rowhead'><?php echo $lang->group->outside;?><?php echo html::selectAll('selectall', $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;?><?php echo html::checkAll('checkall', $lang->selectAll, $moduleName)?></td>
<th class='a-right'><?php echo $this->lang->$moduleName->common;?><?php echo html::selectAll('selectall', $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;?><?php echo html::checkAll('checkall', $lang->selectAll)?></th>
<th class='rowhead'><?php echo html::selectAll('selectall', $lang->selectAll)?></th>
<td class='a-center'>
<?php
echo html::submitButton($lang->save);
+1 -1
View File
@@ -72,7 +72,7 @@
<tfoot>
<tr>
<td colspan='11'>
<?php echo html::checkAll('checkall', $lang->selectAll); ?>
<?php echo html::selectAll('selectall', $lang->selectAll); ?>
<?php echo html::submitButton($lang->close)?>
</td>
</tr>
+1 -1
View File
@@ -50,7 +50,7 @@
<tfoot>
<tr>
<td colspan='8' class='f-14px'>
<?php echo html::checkAll('checkall', $lang->selectAll); ?>
<?php echo html::selectAll('selectall', $lang->selectAll); ?>
<?php print($storyCount? html::submitButton() : $lang->project->whyNoStories);?>
</td>
</tr>
+1 -1
View File
@@ -23,7 +23,7 @@
<div class='box-content'>
<form method='post'>
<?php echo html::checkBox('charts', $lang->story->report->charts, $checkedCharts);?>
<?php echo html::checkAll('checkall', $lang->selectAll); ?>
<?php echo html::selectAll('selectall', $lang->selectAll); ?>
<input type='button' value='<?php echo $lang->story->report->selectReverse;?>' onclick='checkReverse()' />
<br /><br />
<?php echo html::submitButton($lang->story->report->create);?>
+1 -1
View File
@@ -23,7 +23,7 @@
<div class='box-content'>
<form method='post'>
<?php echo html::checkBox('charts', $lang->task->report->charts, $checkedCharts)?>
<?php echo html::checkAll('checkall', $lang->selectAll); ?>
<?php echo html::selectAll('selectall', $lang->selectAll); ?>
<input type='button' value='<?php echo $lang->task->report->selectReverse;?>' onclick='checkReverse()' />
<br /><br />
<?php echo html::submitButton($lang->task->report->create);?>
+1 -1
View File
@@ -85,7 +85,7 @@ var moduleID = '<?php echo $moduleID;?>';
</table>
<table class='table-1'>
<tr>
<td><nobr><?php echo html::checkAll('checkall', $lang->selectAll);?></nobr></td>
<td><nobr><?php echo html::selectAll('selectall', $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'><?php echo html::checkAll('checkall', $lang->selectAll);?><?php echo html::submitButton();?></td>
<td colspan='7' class='a-center'><?php echo html::selectAll('selectall', $lang->selectAll);?><?php echo html::submitButton();?></td>
</tr>
</tfoot>
</table>