Esempio n. 1
0
 public function baseInit()
 {
     $dict = new Logic_Branch();
     $this->addElement('select', 'web_name', array('required' => $this->default_policy, 'label' => 'Branch', 'MultiOptions' => $this->addClearStart($dict->getDictionary()), 'class' => 'borderGrey roundedCorners inputText'));
     $this->notEmpty('web_name');
     $this->submit(false, 'zapisz', 'Go to');
 }
Esempio n. 2
0
 public function baseInit()
 {
     $dict = new Logic_Branch();
     $this->addElement('select', 'id_branch', array('required' => $this->default_policy, 'label' => 'Branch:', 'MultiOptions' => $this->addClearStart($dict->getDictionary())));
     $this->notEmpty('id_branch');
     $this->login();
     $this->name();
     $this->surname();
     $this->email();
     $this->addElement('text', 'login_def', array('filters' => array(array('StringToUpper'), array('PregReplace', array('match' => '[ ]', 'replace' => ''))), 'required' => $this->default_policy, 'label' => 'Login def:'));
     $this->notEmpty('login_def');
     $this->datee(false, 'valid_until', 'Account valid to:');
     $this->submit();
 }