function __construct($title, $y_title, $x_title, $width = 300, $height = 200, $charset = null) { parent::__construct($charset); $this->graph = new Graph($width, $height, 'auto'); $this->graph->SetScale("textlin"); $this->graph->SetFrame(false); $this->graph->img->SetMargin(80, 120, 40, 120); $this->graph->SetMarginColor('white'); $this->graph->title->Set($title); $this->graph->title->SetFont(FF_TH_Krub, FS_BOLD, 20); // Setup the tab /*$this->graph->tabtitle->Set($title); $this->graph->tabtitle->SetFont(FF_TH_Krub,FS_BOLD,18); $this->graph->tabtitle->SetColor('darkred','#E1E1FF');*/ // $this->graph->xaxis-> title->SetFont(FF_TH_Sarabun ,FS_NORMAL, 15); $this->graph->yaxis->title->Set($y_title); $this->graph->yaxis->title->SetFont(FF_TH_Kodchasal, FS_NORMAL, 15); $this->graph->ygrid->SetFill(true, '#EFEFEF@0.5', '#BBCCFF@0.5'); $this->graph->xaxis->SetLabelMargin(15); $this->graph->xaxis->title->Set($x_title); $this->graph->xaxis->title->SetFont(FF_TH_Kodchasal, FS_NORMAL, 15); $this->graph->xaxis->SetFont(FF_TH_Kodchasal, FS_NORMAL, 12); /*$graph->xaxis->SetTickLabels($a); $graph->xaxis->SetFont(FF_FONT2); */ $this->graph->legend->SetShadow('gray@0.4', 3); $this->graph->legend->SetAbsPos(15, 120, 'right', 'bottom'); $this->graph->legend->Pos(0.05, 0.5, "right", "center"); }
function __construct($id) { parent::__construct($id); /* *การกำหนดคุณสมบัติ ของคลาส ใช้คำสั่ง * $this->property('ชื่อ' , 'ประเภทข้อมูล' ,'ค่าเริ่มต้น'); */ // $this->property('ajax_src','string','./dojo-0.4.1-ajax/dojo.js'); /* *การกำหนดเหตุการณ์ ของคลาส ใช้คำสั่ง * $this->event('ชื่อเหตุการณ์'); */ //$this->event('on_load'); }
function __construct($id, $name = "") { global $PHP_SELF; $val_ = new OrSysvalue(); $this->val_controls = $val_->controls; parent::__construct($id, $name); //$this->property('id','string',$id); //$this->property('idx','string'); //$this->property('name','string',$name); $this->property('class_name', 'string'); $this->property('tag', 'string'); $this->property('body', 'array'); $this->property('method', 'string', 'post'); $this->property('action', 'string', $PHP_SELF); $this->property('db_form', 'boolean', false); }
function OrTable($id, $name = null) { parent::__construct($id, $name); //$this->property('id','string',$id); //$this->property('name','string'); $this->property('class_name', 'string'); $this->property('tag', 'string'); $this->property('body', 'array'); $this->property('col', 'string'); $this->property('align_table', 'string'); $this->property('width_table', 'string'); $this->OP_[id]->set($id); if ($name == null) { $this->OP_[name]->set($id); } else { $this->OP_[name]->set($name); } }
function __construct($id, $name = null, $idx = null) { parent::__construct($id, $name, $idx); $this->property('script', 'array'); $this->property('class_name', 'string'); $this->property('type', 'string'); $this->property('tag', 'string'); $this->property('properties', 'array'); $this->property('style', 'array'); $this->property('auto_post', 'boolean', false); $this->property('post_value', 'string'); $this->property('clip_name', 'string'); $this->property('set_clip', 'boolean', false); $this->property('caption', 'string'); $this->property('description', 'string'); $this->property('check_null', 'boolean', true); $this->property('format_type', 'string'); $this->property('format_option', 'string'); $this->property('title', 'string'); $this->property('read_only', 'boolean', false); $this->property('db_field', 'boolean', false); $this->property('db_type', 'string'); // กำหนดประเภทข้อมูลตามฟิลด์ข้อมูล $this->property('auto_visible', 'boolean', true); $this->property('value', 'string'); $this->property('default_value', 'string'); $this->property('is_numeric', 'boolean', false); $this->property('js_event', 'string'); //คำสั่ง js script /*$this->OP_[id]->set($id); if($name == null){ $this->OP_[name]->set($id); }else{ $this->OP_[name]->set($name); } if($idx != null)$this->OP_[idx]->set($idx);*/ }
function __construct($id = '', $name = null, $idx = null) { parent::__construct($id, $name, $idx); }