Source for file modifier.select.php
Documentation is available at modifier.select.php
* smarty modifier:セレクトボックス用フィルタ
* 単純なセレクトボックスの場合はsmarty関数"select"を利用することで
* $smarty->assign("form", 1);
* <option value="1" {$form|select:"1"}>foo</option>
* <option value="2" {$form|select:"2"}>bar</option>
* <option value="1" selected="selected">foo</option>
* <option value="2" >bar</option>
* @param string $string セレクトボックスに渡されたフォーム値
* @param string $value <option>タグに指定されている値
* @return string $stringが$valueにマッチする場合は"selected"
// @see http://www.w3.org/TR/html401/interact/forms.html#adef-selected
// @see http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd
// @see http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd
// @see http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-frameset.dtd
// @see http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_sformsmodule
return 'selected="selected"';
Documentation generated on Fri, 11 Nov 2011 03:58:44 +0900 by phpDocumentor 1.4.3