mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:36 +01:00
Added feature to return only the link(), not the <a href> back
This commit is contained in:
parent
2ae98b0577
commit
5fe11da983
@ -440,12 +440,11 @@
|
||||
@param $text ?
|
||||
@param $extra default ''
|
||||
*/
|
||||
function show_sort_order($sort,$var,$order,$program,$text,$extra='')
|
||||
function show_sort_order($sort,$var,$order,$program,$text,$extra='',$build_a_href=True)
|
||||
{
|
||||
global $phpgw, $filter, $qfield, $start, $query;
|
||||
$_query = stripslashes($query);
|
||||
|
||||
|
||||
if (($order == $var) && ($sort == 'ASC'))
|
||||
{
|
||||
$sort = 'DESC';
|
||||
@ -459,9 +458,17 @@
|
||||
$sort = 'ASC';
|
||||
}
|
||||
|
||||
if ($build_a_href)
|
||||
{
|
||||
return '<a href="' . $phpgw->link($program,"order=$var&sort=$sort&filter=$filter&"
|
||||
. "qfield=$qfield&start=$start&query=" . urlencode($_query) . $extra) . '">' . $text . '</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
return $phpgw->link($program,"order=$var&sort=$sort&filter=$filter&"
|
||||
. "qfield=$qfield&start=$start&query=" . urlencode($_query) . $extra);
|
||||
}
|
||||
}
|
||||
|
||||
function show_sort_order_imap($sort,$order,$program,$text,$extra='')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user