From 4f3bce79bfb5851cef9e7bc655c91bb3093cc401 Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 12 Jul 2005 11:27:54 +0000 Subject: Initial Import git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- .../smarty-plugins/function.html_options.php | 121 +++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 wp-inst/wp-content/smarty-plugins/function.html_options.php (limited to 'wp-inst/wp-content/smarty-plugins/function.html_options.php') diff --git a/wp-inst/wp-content/smarty-plugins/function.html_options.php b/wp-inst/wp-content/smarty-plugins/function.html_options.php new file mode 100644 index 0000000..ae864f7 --- /dev/null +++ b/wp-inst/wp-content/smarty-plugins/function.html_options.php @@ -0,0 +1,121 @@ + + * Name: html_options
+ * Input:
+ * - name (optional) - string default "select" + * - values (required if no options supplied) - array + * - options (required if no values supplied) - associative array + * - selected (optional) - string default not set + * - output (required if not options supplied) - array + * Purpose: Prints the list of ' . "\n"; + foreach ($values as $key => $value) { + $optgroup_html .= smarty_function_html_options_optoutput($key, $value, $selected); + } + $optgroup_html .= "\n"; + return $optgroup_html; +} + +/* vim: set expandtab: */ + +?> -- cgit