You are on page 1of 1

fes un widget select

select_option.html select_option_context.php select.html <--- ... @@@OPTIONS@@@ select_context.php <--- var $options; // al _construct() : $this->options=arraY(); foreach($parametres["opcions"]) as $valor=>opcio) { $this->options=new Templater(__SCRIPT__."/../templates/select_option.html",new s elect_option_context(...)); }

objectiu: en un moment donat del codi poder fer: $ctx->combo_paisos=widget::render("select",array("options"=>array("onclick"=>"al ert('hola');","opcions"=>array(0=>__("LBL_NO"),1=>__("LBL_SI")))));

You might also like