Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 function __construct($id, $name = "")
 {
     parent::__construct($id, $name);
 }