help(); } function set_params($param) { $this->help(True); @reset($param); while(list($key,$value) = each($param)) { if($key != 'title') { //echo 'Setting '.$key.':'.$value."
\n"; $this->setvar($key,$value); } } $this->title = $param['title']; if(is_array($param['controls'])) { while(list($key,$value) = each($param['controls'])) { $this->set_controls('app',$key,$value); } $this->set_controls('base'); } } function draw($extra_data='') { if(is_array($this->data) && !empty($this->data)) { for ($x = 0; $x < count($this->data); $x++) { $var[] = array ( 'text' => $this->data[$x]['text'], 'link' => $this->data[$x]['link'], 'lang_link_statustext' => $this->data[$x]['lang_link_statustext'] ); } $this->listbox = $var; } $this->set_internal($extra_data); $this->draw_box(); } function xdraw($extra_data='') { if ($extra_data) { $this->start_template(); } if(is_array($this->data) && !empty($this->data)) { for ($x = 0; $x < count($this->data); $x++) { $var[] = array ( 'text' => $this->data[$x]['text'], 'link' => $this->data[$x]['link'], 'lang_link_statustext' => $this->data[$x]['lang_link_statustext'] ); } $this->listbox = $var; } $this->set_xinternal($extra_data); $this->draw_box(); } } ?>