* adjust the selectAll and selectReverse feature.

This commit is contained in:
wangchunsheng
2010-07-04 03:51:58 +00:00
parent e5736447ec
commit 6b934e2e41
2 changed files with 21 additions and 20 deletions

View File

@@ -206,9 +206,11 @@ $lang->bug->resolutionList['postponed'] = '延期处理';
$lang->bug->resolutionList['willnotfix'] = "不予解决";
/* 统计报表。*/
$lang->bug->report->common = '统计报表';
$lang->bug->report->select = '请选择报表类型';
$lang->bug->report->create = '生成报表';
$lang->bug->report->common = '统计报表';
$lang->bug->report->select = '请选择报表类型';
$lang->bug->report->create = '生成报表';
$lang->bug->report->selectAll = '全选';
$lang->bug->report->selectReverse = '反选';
$lang->bug->report->charts['bugsPerProject'] = '项目Bug数量';
$lang->bug->report->charts['bugsPerModule'] = '模块Bug数量';

View File

@@ -23,30 +23,28 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<style>
span {display:block}
</style>
<style>span {display:block}</style>
<script language='javascript'>
/*全选*/
/* 全选 */
function checkAll()
{
var check_obj = $("input");
for(var i=0; i<check_obj.length;i++)
var checkOBJ = $('input');
for(var i = 0; i < checkOBJ.length; i++)
{
check_obj.get(i).checked = !false;
checkOBJ.get(i).checked = true;
}
}
/*反选*/
function reverseCheck()
/* 反选 */
function checkReverse()
{
var check_obj = $("input");
for(var i=0; i<check_obj.length;i++)
var checkOBJ = $('input');
for(var i = 0; i < checkOBJ.length; i++)
{
check_obj.get(i).checked = ! check_obj.get(i).checked;
checkOBJ.get(i).checked = !checkOBJ.get(i).checked;
}
return;
}
</script>
<div class='yui-d0'>
@@ -61,10 +59,11 @@ function reverseCheck()
<div class='box-title'><?php echo $lang->bug->report->select;?></div>
<div class='box-content'>
<form method='post'>
<?php echo html::checkBox('charts', $lang->bug->report->charts, $checkedCharts).'<br>';?>
<input type=button value="全选" onClick="checkAll()">
<input type=button value="反选" onClick="reverseCheck()">
<div class='a-center'><?php echo html::submitButton($lang->bug->report->create);?></div>
<?php echo html::checkBox('charts', $lang->bug->report->charts, $checkedCharts);?>
<input type='button' value='<?php echo $lang->bug->report->selectAll;?>' onclick='checkAll()' />
<input type='button' value='<?php echo $lang->bug->report->selectReverse;?>' onclick='checkReverse()' />
<br /><br />
<?php echo html::submitButton($lang->bug->report->create);?>
</div>
</div>
<div class="yui-main">