Ejemplo n.º 1
0
Archivo: p4a.php Proyecto: eliudiaz/p4a
 /**
  * @return string
  */
 public function getFocusedObjectId($to_redesign = false)
 {
     if (is_object($this->active_mask)) {
         if ($to_redesign or $this->active_mask->isFocusToRedesign()) {
             return $this->active_mask->getFocusedObjectId();
         }
     }
     return null;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $this->build('P4A_Frame', 'frame');
     $this->display('main', $this->frame);
 }
Ejemplo n.º 4
0
 public function main()
 {
     parent::main();
     P4A::singleton()->close();
 }
Ejemplo n.º 5
0
 function main()
 {
     $this->display("main", $this->raw_html);
     parent::main();
 }