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($param['app_id']) { $app_id = $this->getvar('app_id'); $var = Array ( 'up' => Array('url' => '/set_box.php', 'app' => $app_id), 'down' => Array('url' => '/set_box.php', 'app' => $app_id), 'close' => Array('url' => '/set_box.php', 'app' => $app_id), 'question' => Array('url' => '/set_box.php', 'app' => $app_id), 'edit' => Array('url' => '/set_box.php', 'app' => $app_id) ); while(list($key,$value) = each($var)) { $this->set_controls($key,$value); } } } 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(True); } 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(); } } ?>