function __construct($title = '') { global $my_cfg; parent::__construct($title); //$this->set_skin($my_cfg[skins_path] .'default.html'); $frm_test = new OrForm('my_form'); $txt_search = new OrDojoTextSearch('txt_search'); $txt_search->OP_[popup_url]->set('ex_popup_list.php'); $txt_search2 = new OrDojoTextSearch('txt_search2'); $txt_search2->OP_[popup_url]->set('ex_popup_list.php'); $js_onclick = 'onClick="' . "alert( 'กดแล้ว' );" . '"'; $lbl_test1 = new OrLabel('lbl_test1'); $lbl_test1->OP_[js_event]->set($js_onclick); $lbl_test1->OP_[text]->set('ทดสอบ label'); //$txt_search->OP_[popup_id]->set('win_popup'); $this->set_body("ทดสอบการใช้ Controls"); $frm_test->set_body('<br>' . $txt_search->get_tag()); $frm_test->set_body('<br>' . $txt_search2->get_tag()); $frm_test->set_body('<br>' . $lbl_test1->get_tag()); $this->set_body($frm_test->get_tag()); $this->show(); }
function __construct($id, $name = '', $row_per_page = 10) { /*Constructors*/ //$this->OrForm($id,$name); parent::__construct($id, $name); $this->tbl_list = new OrTable('db_' . $this->OP_[id]->get()); $this->OP_[db_form]->set(true); /*เริ่ม กำหนดคุณสมบัติของ Calss*/ //$this->property('cmd_sql','string'); $this->property('cmd_filter', 'string'); $this->property('cmd_group_filter', 'string'); $this->property('cmd_order', 'string'); $this->property('cmd_msg', 'string'); $this->property('row_per_page', 'integer', $row_per_page); $this->property('cur_page', 'integer', 1); $this->property('go_page', 'integer', 1); $this->property('total_page', 'integer', 0); $this->property('total_row', 'integer', 0); $this->property('cmd_limit', 'string'); $this->property('tab_select_total', 'string'); $this->property('sql_cmd', 'object'); $this->property('on_load', 'integer', 0); $this->property('message', 'string'); //ข้อมูลแจ้งกลับผู้ใช้งาน $this->property('on_total', 'boolean', false); $this->property('on_click', 'string'); /*เริ่ม กำหนดเหตุการณ์ของ Calss*/ $this->event('current_record'); $this->event('on_load'); $this->event("on_total"); //เหตุการณ์ขณะประมวลผล Total Rows /*จบ กำหนดเหตุการณ์ของ Calss*/ /* กำหนดค่าเริ่มต้นของ Class $row_per_page = จำนวนรายการที่ต้องการให้แสดงในหนึ่งหน้า*/ //$this->OP_[sql_cmd]->set(new sql_cmd()); return null; }
function __construct($id, $name = "") { parent::__construct($id, $name); }