From 21d507a5cbd165abbdac2ca138f7344bba3e0aab Mon Sep 17 00:00:00 2001 From: "monte.ohrt" Date: Tue, 17 Aug 2010 15:39:51 +0000 Subject: fix formatting --- libs/plugins/function.html_table.php | 97 ++++++++++++++++++------------------ 1 file changed, 49 insertions(+), 48 deletions(-) (limited to 'libs/plugins/function.html_table.php') diff --git a/libs/plugins/function.html_table.php b/libs/plugins/function.html_table.php index 198b03ca..83e80300 100644 --- a/libs/plugins/function.html_table.php +++ b/libs/plugins/function.html_table.php @@ -1,53 +1,53 @@ -* Name: html_table
-* Date: Feb 17, 2003
-* Purpose: make an html table from an array of data
-* -* -* Examples: -*
-* {table loop=$data}
-* {table loop=$data cols=4 tr_attr='"bgcolor=red"'}
-* {table loop=$data cols="first,second,third" tr_attr=$colors}
-* 
-* -* @author Monte Ohrt -* @author credit to Messju Mohr -* @author credit to boots -* @version 1.1 -* @link http://smarty.php.net/manual/en/language.function.html.table.php {html_table} - (Smarty online manual) -* @param array $params parameters -* Input:
-* - loop = array to loop through -* - cols = number of columns, comma separated list of column names -* or array of column names -* - rows = number of rows -* - table_attr = table attributes -* - th_attr = table heading attributes (arrays are cycled) -* - tr_attr = table row attributes (arrays are cycled) -* - td_attr = table cell attributes (arrays are cycled) -* - trailpad = value to pad trailing cells with -* - caption = text for caption element -* - vdir = vertical direction (default: "down", means top-to-bottom) -* - hdir = horizontal direction (default: "right", means left-to-right) -* - inner = inner loop (default "cols": print $loop line by line, -* $loop will be printed column by column otherwise) -* @param object $smarty Smarty object -* @param object $template template object -* @return string -*/ + * Smarty {html_table} function plugin + * + * Type: function
+ * Name: html_table
+ * Date: Feb 17, 2003
+ * Purpose: make an html table from an array of data
+ * + * + * Examples: + *
+ * {table loop=$data}
+ * {table loop=$data cols=4 tr_attr='"bgcolor=red"'}
+ * {table loop=$data cols="first,second,third" tr_attr=$colors}
+ * 
+ * + * @author Monte Ohrt + * @author credit to Messju Mohr + * @author credit to boots + * @version 1.1 + * @link http://smarty.php.net/manual/en/language.function.html.table.php {html_table} + * (Smarty online manual) + * @param array $params parameters + * Input:
+ * - loop = array to loop through + * - cols = number of columns, comma separated list of column names + * or array of column names + * - rows = number of rows + * - table_attr = table attributes + * - th_attr = table heading attributes (arrays are cycled) + * - tr_attr = table row attributes (arrays are cycled) + * - td_attr = table cell attributes (arrays are cycled) + * - trailpad = value to pad trailing cells with + * - caption = text for caption element + * - vdir = vertical direction (default: "down", means top-to-bottom) + * - hdir = horizontal direction (default: "right", means left-to-right) + * - inner = inner loop (default "cols": print $loop line by line, + * $loop will be printed column by column otherwise) + * @param object $smarty Smarty object + * @param object $template template object + * @return string + */ function smarty_function_html_table($params, $smarty, $template) { $table_attr = 'border="1"'; @@ -172,5 +172,6 @@ function smarty_function_html_table_cycle($name, $var, $no) } return ($ret) ? ' ' . $ret : ''; -} -?> +} + +?> \ No newline at end of file -- cgit v1.3