* set the css of sort field.

This commit is contained in:
wangchunsheng
2010-04-09 09:39:45 +00:00
parent f7395f60bb
commit 2287617f22
4 changed files with 34 additions and 32 deletions

View File

@@ -86,7 +86,7 @@ function browseBySearch(active)
<div class="yui-main">
<div class="yui-b">
<?php $vars = "productID=$productID&browseType=$browseType&param=$param&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"; ?>
<table class='table-1 fixed colored'>
<table class='table-1 fixed colored tablesorter'>
<thead>
<tr class='colhead'>
<th><?php common::printOrderLink('id', $orderBy, $vars, $lang->bug->id);?></th>

View File

@@ -77,7 +77,7 @@ function search(active)
<div class="yui-main">
<div class="yui-b">
<table class='table-1 fixed colored'>
<table class='table-1 fixed colored tablesorter'>
<thead>
<tr class='colhead'>
<?php $vars = "productID=$productID&browseType=$browseType&param=$moduleID&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";?>

View File

@@ -26,7 +26,7 @@
<?php include '../../common/view/colorize.html.php';?>
<?php include './taskheader.html.php';?>
<div class='yui-d0'>
<table class='table-1 fixed colored'>
<table class='table-1 fixed colored tablesorter'>
<?php $vars = "projectID=$project->id&status=all&orderBy=%s&recTotal=$recTotal&recPerPage=$recPerPage"; ?>
<thead>
<tr class='colhead'>

View File

@@ -76,36 +76,38 @@ function browseBySearch(active)
</div>
<div class="yui-main">
<div class='yui-b'>
<table class='table-1 colored'>
<tr class='colhead'>
<?php $vars = "productID=$productID&browseType=$browseType&param=$param&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"; ?>
<th><?php common::printOrderLink('id', $orderBy, $vars, $lang->testcase->id);?></th>
<th><?php common::printOrderLink('pri', $orderBy, $vars, $lang->testcase->pri);?></th>
<th class='w-p40'><?php common::printOrderLink('title', $orderBy, $vars, $lang->testcase->title);?></th>
<?php if($browseType == 'needconfirm'):?>
<th class='w-p40'><?php common::printOrderLink('story', $orderBy, $vars, $lang->testcase->story);?></th>
<th><?php echo $lang->actions;?></th>
<?php else:?>
<th><?php common::printOrderLink('type', $orderBy, $vars, $lang->testcase->type);?></th>
<th><?php common::printOrderLink('openedBy', $orderBy, $vars, $lang->testcase->openedBy);?></th>
<th><?php common::printOrderLink('status', $orderBy, $vars, $lang->testcase->status);?></th>
<?php endif;?>
</tr>
<?php foreach($cases as $case):?>
<tr class='a-center'>
<td><?php echo html::a($this->createLink('testcase', 'view', "testcaseID=$case->id"), sprintf('%03d', $case->id));?></td>
<td><?php echo $case->pri?></td>
<td class='a-left'><?php echo $case->title;?></td>
<?php if($browseType == 'needconfirm'):?>
<td class='a-left'><?php echo html::a($this->createLink('story', 'view', "storyID=$case->story"), $case->storyTitle, '_blank');?></td>
<td><?php echo html::a(inlink('confirmStoryChange', "caseID=$case->id"), $lang->confirm, 'hiddenwin');?></td>
<?php else:?>
<td><?php echo $lang->testcase->typeList[$case->type];?></td>
<td><?php echo $users[$case->openedBy];?></td>
<td><?php echo $lang->testcase->statusList[$case->status];?></td>
<?php endif;?>
</tr>
<?php $vars = "productID=$productID&browseType=$browseType&param=$param&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"; ?>
<table class='table-1 colored tablesorter'>
<thead>
<tr class='colhead'>
<th><?php common::printOrderLink('id', $orderBy, $vars, $lang->testcase->id);?></th>
<th><?php common::printOrderLink('pri', $orderBy, $vars, $lang->testcase->pri);?></th>
<th class='w-p40'><?php common::printOrderLink('title', $orderBy, $vars, $lang->testcase->title);?></th>
<?php if($browseType == 'needconfirm'):?>
<th class='w-p40'><?php common::printOrderLink('story', $orderBy, $vars, $lang->testcase->story);?></th>
<th><?php echo $lang->actions;?></th>
<?php else:?>
<th><?php common::printOrderLink('type', $orderBy, $vars, $lang->testcase->type);?></th>
<th><?php common::printOrderLink('openedBy', $orderBy, $vars, $lang->testcase->openedBy);?></th>
<th><?php common::printOrderLink('status', $orderBy, $vars, $lang->testcase->status);?></th>
<?php endif;?>
</tr>
<?php foreach($cases as $case):?>
<tr class='a-center'>
<td><?php echo html::a($this->createLink('testcase', 'view', "testcaseID=$case->id"), sprintf('%03d', $case->id));?></td>
<td><?php echo $case->pri?></td>
<td class='a-left'><?php echo $case->title;?></td>
<?php if($browseType == 'needconfirm'):?>
<td class='a-left'><?php echo html::a($this->createLink('story', 'view', "storyID=$case->story"), $case->storyTitle, '_blank');?></td>
<td><?php echo html::a(inlink('confirmStoryChange', "caseID=$case->id"), $lang->confirm, 'hiddenwin');?></td>
<?php else:?>
<td><?php echo $lang->testcase->typeList[$case->type];?></td>
<td><?php echo $users[$case->openedBy];?></td>
<td><?php echo $lang->testcase->statusList[$case->status];?></td>
<?php endif;?>
</tr>
<?php endforeach;?>
</thead>
</table>
<?php $pager->show();?>
</div>