lib/ext_class/Smarty/pluginsfunction.html_checkboxes.php

Smarty plugin

Functions

smarty_function_html_checkboxes()

smarty_function_html_checkboxes(array  $params, \Smarty_Internal_Template  $template) : string

Smarty {html_checkboxes} function plugin File: function.html_checkboxes.php Type: function Name: html_checkboxes Date: 24.Feb.2003 Purpose: Prints out a list of checkbox input types Examples:

{html_checkboxes values=$ids output=$names} {html_checkboxes values=$ids name='box' separator='
' output=$names} {html_checkboxes values=$ids checked=$checked separator='
' output=$names}

Params:

  • name (optional) - string default "checkbox"
  • values (required) - array
  • options (optional) - associative array
  • checked (optional) - array default not set
  • separator (optional) - ie
    or  
  • output (optional) - the output next to each checkbox
  • assign (optional) - assign the output as an array to this variable
  • escape (optional) - escape the content (not value), defaults to true

Parameters

array $params

parameters

\Smarty_Internal_Template $template

template object

Throws

\SmartyException

Returns

string

smarty_function_html_checkboxes_output()

smarty_function_html_checkboxes_output(  $name,   $value,   $output,   $selected,   $extra,   $separator,   $labels,   $label_ids, boolean  $escape = true) : string

Parameters

$name
$value
$output
$selected
$extra
$separator
$labels
$label_ids
boolean $escape

Returns

string