mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +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 $text ?
|
||||||
@param $extra default ''
|
@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;
|
global $phpgw, $filter, $qfield, $start, $query;
|
||||||
$_query = stripslashes($query);
|
$_query = stripslashes($query);
|
||||||
|
|
||||||
|
|
||||||
if (($order == $var) && ($sort == 'ASC'))
|
if (($order == $var) && ($sort == 'ASC'))
|
||||||
{
|
{
|
||||||
$sort = 'DESC';
|
$sort = 'DESC';
|
||||||
@ -459,8 +458,16 @@
|
|||||||
$sort = 'ASC';
|
$sort = 'ASC';
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<a href="' . $phpgw->link($program,"order=$var&sort=$sort&filter=$filter&"
|
if ($build_a_href)
|
||||||
. "qfield=$qfield&start=$start&query=" . urlencode($_query) . $extra) . '">' . $text . '</a>';
|
{
|
||||||
|
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='')
|
function show_sort_order_imap($sort,$order,$program,$text,$extra='')
|
||||||
|
Loading…
Reference in New Issue
Block a user