blob: ef16eb19ee9f92c4bd5f22bc97ca9043544ada4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
use_helper("Asset");
function sortheader_link_to($caption, $targetURI, $column, $headers)
{
$uri = $targetURI."?sort=".$column;
if($headers[$column])
$uri .= "&type=".($headers[$column]=="asc" ? "desc": "asc");
return link_to($caption, $uri);
}
function sortheader_type_if($column, $headers, $asc, $desc)
{
if($headers[$column])
{
return ($headers[$column]=="asc" ? $asc: $desc);
}
}
?>
|