protected function view_msg($header, $body, $type) { $label = new control\label($body); $label->configure('TYPE', $type); $form = new control\form('msg'); $form->add($label); $form->configure('PANEL', TRUE); $form->configure('LABEL', $header); $form->configure('TYPE', $type); return ['', $form->draw()]; }
protected function view_table() { $form = new control\form('name'); $table = new control\table(); $row = new control\row(); $text = new control\textbox(); $button = new control\button(); $row->add($text, 6); $row->add($button, 6); $db = new cls_database(); $db->do_query('select * from users'); $table->add_source($db->get_array()); $form->add($table); return array('tittle', $form->draw()); }