Modify th_order_by function to allow the passing of CSS to the generated <th> tag.

This commit is contained in:
Nate Jones
2014-06-21 00:59:41 +00:00
parent 3c07aa1a35
commit de00f769f6

View File

@@ -367,9 +367,9 @@
if (!function_exists('th_order_by')) {
//html table header order by
function th_order_by($field_name, $columntitle, $order_by, $order, $app_uuid = '') {
function th_order_by($field_name, $columntitle, $order_by, $order, $app_uuid = '', $css = '') {
if (strlen($app_uuid) > 0) { $app_uuid = "&app_uuid=".$app_uuid; } // accomodate need to pass app_uuid where necessary (inbound/outbound routes lists)
$html = "<th nowrap>";
$html = "<th ".$css." nowrap>";
if (strlen($order_by)==0) {
$html .= "<a href='?order_by=$field_name&order=desc".$app_uuid."' title='ascending'>$columntitle</a>";
}