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

Description
Functions
smarty_modifier_select (line 24)

smarty modifier:セレクトボックス用フィルタ

単純なセレクトボックスの場合はsmarty関数"select"を利用することで タグを省略可能

sample:

  1.   $smarty->assign("form"1);
  2.  
  3.   <option value="1" {$form|select:"1"}>foo</option>
  4.   <option value="2" {$form|select:"2"}>bar</option>
  1.   <option value="1" selected="selected">foo</option>
  2.   <option value="2" >bar</option>

string smarty_modifier_select (string $string, string $value)
  • string $string: セレクトボックスに渡されたフォーム値
  • string $value: <option>タグに指定されている値

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