diff --git a/resources/functions.php b/resources/functions.php index 16e0f58919..3221aa0425 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -387,18 +387,19 @@ if (!function_exists('th_order_by')) { //html table header order by - function th_order_by($field_name, $columntitle, $order_by, $order, $app_uuid = '', $css = '') { + function th_order_by($field_name, $columntitle, $order_by, $order, $app_uuid = '', $css = '', $additional_get_params='') { if (strlen($app_uuid) > 0) { $app_uuid = "&app_uuid=".$app_uuid; } // accomodate need to pass app_uuid where necessary (inbound/outbound routes lists) + if (strlen($additional_get_params) > 0) {$additional_get_params = '&'.$additional_get_params; } // you may need to pass other parameters $html = ""; if (strlen($order_by)==0) { - $html .= "$columntitle"; + $html .= "$columntitle"; } else { if ($order=="asc") { - $html .= "$columntitle"; + $html .= "$columntitle"; } else { - $html .= "$columntitle"; + $html .= "$columntitle"; } } $html .= "";