diff --git a/form/form_select.php b/form/form_select.php index 7048419..0f420fb 100644 --- a/form/form_select.php +++ b/form/form_select.php @@ -4,17 +4,13 @@ { private $name; private $selected; + private $items; - public function __construct1($n) - { - $this->name=$n; - $this->selected=null; - } - - public function __construct2($n,$s) + public function __construct($n,$s,$i) { $this->name=$n; $this->selected=$s; + $this->items=$i; } public function SetSelected($s) @@ -22,22 +18,27 @@ $this->selected=$s; } - public function start() + public function out_html() { echo ''; } } + + function create_select($n,$s,$i) + { + $ui=new UISelect($n,$s,$i); + + $ui->out_html(); + return; + } ?>