v2/ERP/Extend/smarty/pluginsfunction.html_options.php

Smarty plugin

Functions

smarty_function_html_options()

smarty_function_html_options(  $params,   $smarty) : string

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

Parameters

$params
$smarty

Returns

string

smarty_function_html_options_optoutput()

smarty_function_html_options_optoutput(  $key,   $value,   $selected) 

Parameters

$key
$value
$selected

smarty_function_html_options_optgroup()

smarty_function_html_options_optgroup(  $key,   $values,   $selected) 

Parameters

$key
$values
$selected