function get_form_query() { $my_table = new OrTable('table_query'); $my_table->OP_[align_table]->set('center'); $my_table->OP_[class_name]->set('tbl_query_body'); $my_table->set_col($this->get_button_filter()); $my_table->set_col('เงื่อนไข '); $my_table->set_col(' ค่าที่ค้นหา '); $my_table->set_row(); foreach ($this->caption_fields as $caption => $id) { if (!is_object($this->filter_controls[$id])) { $this->set_filter_controls(new OrTextbox($id)); } $my_compare = new OrSelectbox('val_compare_' . $id . '_', 'val_compare[' . $id . ']'); $my_compare->OP_[option]->set(array('=' => '=', '<>' => '<>', '>=' => '>=', '<=' => '<=', 'BETWEEN' => 'BETWEEN', 'LIKE' => 'LIKE', 'IN' => 'IN')); $my_compare->OP_[default_value]->set($this->get_filter_compare($id)); //สร้าง Function เพื่อค้นหาค่า Default compare $my_compare->OP_[auto_post]->set(true); //$my_table->set_col($my_control->OP_[caption]->get() , "td_caption"); debug_mode(__FILE__, __LINE__, $this->filter_controls[$id]->OP_[caption]->get(), 'Filter_controls'); $my_table->set_col($this->filter_controls[$id]->OP_[caption]->get(), "td_query_caption"); $my_table->set_col($my_compare->get_tag(), "td_query_compare"); $my_table->set_col($this->filter_controls[$id]->get_tag(), "td_query_value"); $my_table->set_row('tr_query_body'); } $my_table->set_col('ค้นคำ เรียงลำดับ'); $my_table->set_col($this->get_control_filter()); $my_table->set_col($this->get_control_order()); $my_table->set_row(); return $my_table->get_tag(); }
/** * @param string $id Label id * @param string $name Label name * @param int $idx integer id array * @return **/ function __construct($id, $name = null, $idx = null) { parent::__construct($id, $name, $idx); $this->OP_[option]->set(array('0 Ok' => 0, '1 Cancel' => 1)); }
function __construct($id, $name = null, $idx = null) { parent::__construct($id, $name, $idx); $this->use_ajax = true; }
function __construct($id, $name = null, $idx = null) { parent::__construct($id, $name, $idx); $this->property('invalid_message', 'string', 'Invalid Text'); //ข้อความที่ต้องการแสดงเมื่อรูปแบบข้อมูลไม่ถูกต้อง }