/legacy/smarty/plugins/function.html_options.php

Description

Smarty plugin

Functions
smarty_function_html_options (line 30)

Smarty {html_options} function plugin

Type: function
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 <option> tags generated from the passed parameters

string smarty_function_html_options (array $params, Smarty &$smarty)
  • array $params
  • Smarty &$smarty
smarty_function_html_options_optgroup (line 111)
void smarty_function_html_options_optgroup ( $key,  $values,  $selected)
  • $key
  • $values
  • $selected
smarty_function_html_options_optoutput (line 98)
void smarty_function_html_options_optoutput ( $key,  $value,  $selected)
  • $key
  • $value
  • $selected

Documentation generated on Tue, 09 Aug 2011 09:04:52 +0200 by phpDocumentor 1.4.3