From 4cddee4faec5d0021b589f2c9ab5e95671211f3e Mon Sep 17 00:00:00 2001 From: luis daniel lucio quiroz Date: Sun, 20 Jul 2014 00:05:23 +0000 Subject: [PATCH] th_order_by now has additional support to pass more GET params --- resources/functions.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 .= "";