ソースを参照

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

Nate Jones 11 年 前
コミット
92f0cb8823
1 ファイル変更2 行追加2 行削除
  1. 2 2
      resources/functions.php

+ 2 - 2
resources/functions.php

@@ -367,9 +367,9 @@
 
 
 	if (!function_exists('th_order_by')) {
 	if (!function_exists('th_order_by')) {
 		//html table header 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)
 			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) {
 			if (strlen($order_by)==0) {
 				$html .= "<a href='?order_by=$field_name&order=desc".$app_uuid."' title='ascending'>$columntitle</a>";
 				$html .= "<a href='?order_by=$field_name&order=desc".$app_uuid."' title='ascending'>$columntitle</a>";
 			}
 			}