File/class/Plugin/Smarty/function.select.php

Description
Functions
smarty_function_select (line 29)

smarty function:セレクトフィールド生成

sample:

  1.   $smarty->assign('hoge',
  2.                    array(
  3.                        '1' => array('name' => 'foo'),
  4.                        '2' => array('name' => 'bar')
  5.                    )
  6.   );
  7.   {select list=$hoge name="hoge" value="1" empty="-- please select --"}
  1.   <select name="hoge">
  2.     <option value="">-- please select --</option>
  3.     <option value="1" selected="selected">foo</option>
  4.     <option value="2">bar</option>
  5.   </select>

  • deprecated:
void smarty_function_select ( $params,  &$smarty, array $list, string $name, string $value, string $empty)
  • array $list: 選択肢一覧
  • string $name: フォーム項目名
  • string $value: セレクトボックスに渡されたフォーム値
  • string $empty: 空エントリ(「---選択して下さい---」等)
  • $params
  • &$smarty

Documentation generated on Fri, 11 Nov 2011 03:58:09 +0900 by phpDocumentor 1.4.3