/** * การใช้ Class my_page * * */ function __construct($title = '') { global $my_cfg; $my_sec = new OrSec(false); //$caption = 'ทดสอบ Caption'; $caption = $my_sec->OP_[title]->get(); debug_mode(__FILE__, __LINE__, $my_sec->OP_[title]->get(), 'Title'); if ($title == '') { $title .= $my_cfg[title] . ' : ' . $caption; } parent::__construct($title); //$this->set_ccs_src($my_cfg[skins_path] . 'my_page.css'); $this->set_skin($my_cfg[skins_path] . 'default.html'); //รูปแบบหน้าจอปกติ //$my_menu = new OrJsMenu('my_menu_utf8.inc.js' , $my_cfg[skins_path] . "xp.css"); //$this->set_ccs_src($my_menu->OP_[js_ccs]->get()); //$this->set_script_src($my_menu->OP_[js_src]->get()); //$my_calendar = new OrJsCalendar(); //$this->set_ccs_src($my_calendar->OP_[js_ccs]->get()); //$this->set_script_src($my_calendar->OP_[js_src]->get()); //$this->OP_[script_event_body]->set($my_menu->get_script_event('OnLoad')); /** * คำสั่งใช้ Ajax Copy ที่ต้องการใช้งาน * $ajax = new OrAjax(); * $this->set_script_src($ajax->OP_[ajax_src]->get()); * $this->set_script($ajax->require_tooltip()); * $this->set_ccs_src($ajax->require_tooltip_css()); */ $this->set_title($my_cfg[title]); $this->set_caption($caption); $link_logout = '<a href="welcome.php?val_controls[logout]=logout" >ออกจากระบบ</a>'; $this->set_login($my_sec->get_user_text() . '</b> [ <u>' . $my_sec->OP_[user]->get() . '</u> ]' . $link_logout); }
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($title = '') { parent::__construct($title); $this->set_skin('../../Or!Lib/ajax/OrPage.html'); }