public function __construct() { parent::__construct(); $this->setTitle("Error"); $this->build("P4A_Frame", "frame"); $this->build("P4A_Box", "box")->setStyleProperty("border", "1px solid #c6d3de")->setStyleProperty("padding", "10px"); $this->build("P4A_Button", "restart_button")->setLabel("restart application")->addAction("onclick"); $this->frame->anchor($this->box)->newRow()->anchorCenter($this->restart_button); $this->display("main", $this->frame); }
public function __construct() { parent::__construct(); $this->setTitle('Login'); $this->build('P4A_Field', 'username')->addAction('onreturnpress')->addAjaxAction('onreturnpress')->implement('onreturnpress', $this, 'login'); $this->build('P4A_Field', 'password')->setType('password')->addAjaxAction('onreturnpress')->implement('onreturnpress', $this, 'login'); $this->build('P4A_Button', 'go')->addAjaxAction('onclick')->implement('onclick', $this, 'login'); $this->build('P4A_Frame', 'frame')->setStyleProperty('margin-top', '50px')->setStyleProperty('margin-bottom', '50px')->anchor($this->username)->anchor($this->password)->anchorCenter($this->go); $this->display('main', $this->frame)->setFocus($this->username); }
public function __construct() { parent::__construct(); $this->build('P4A_Frame', 'frame'); $this->display('main', $this->frame); }
public function __construct() { parent::__construct(); $this->build("P4A_Quit_Toolbar", "toolbar"); $this->display("top", $this->toolbar); }