* set the css style of fiedls to order by.

This commit is contained in:
wangchunsheng
2010-04-09 09:41:08 +00:00
parent f2ad22beb8
commit e4cb3c9e9a
+6 -3
View File
@@ -277,19 +277,22 @@ EOT;
{
if(stripos($orderBy, 'desc') !== false)
{
$orderBy = str_ireplace('desc', 'asc', $orderBy);
$orderBy = str_ireplace('desc', 'asc', $orderBy);
$className = 'headerSortUp';
}
elseif(stripos($orderBy, 'asc') !== false)
{
$orderBy = str_ireplace('asc', 'desc', $orderBy);
$className = 'headerSortDown';
}
}
else
{
$orderBy = $fieldName . '_' . 'asc';
$orderBy = $fieldName . '_' . 'asc';
$className = 'header';
}
$link = helper::createLink($module, $method, sprintf($vars, $orderBy));
echo html::a($link, $label);
echo "<div class='$className'>" . html::a($link, $label) . '</div>';
}
/* 打印链接,会检查权限*/