ThinkPHP/Library/Vendor/Smarty/pluginsfunction.html_radios.php

Smarty plugin

Functions

smarty_function_html_radios()

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

Smarty {html_radios} function plugin

File: function.html_radios.php
Type: function
Name: html_radios
Date: 24.Feb.2003
Purpose: Prints out a list of radio input types
Params:

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

Examples:

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

Parameters

array $params

parameters

\Smarty_Internal_Template $template

template object

Returns

string

smarty_function_html_radios_output()

smarty_function_html_radios_output(  $name,   $value,   $output,   $selected,   $extra,   $separator,   $labels,   $label_ids,   $escape) 

Parameters

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