Эх сурвалжийг харах

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

Nate Jones 11 жил өмнө
parent
commit
92f0cb8823

+ 2 - 2
resources/functions.php

@@ -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>";
 			}