Esempio n. 1
0
 /**
  * Loading register form template
  *
  * @param void
  */
 public function registerForm()
 {
     // instantiate signup model
     $Signup = new Signup();
     // retrieve the callback ID
     $callbackId = $Signup->registerProcess();
     // get the saved post vars
     $vars =& PPostHandler::getVars($callbackId);
     $javascript = false;
     if (isset($vars['javascriptactive'])) {
     }
     if (isset($vars['javascriptactive']) && $vars['javascriptactive'] === 'true') {
         $javascript = true;
     }
     $selYear = 0;
     if (isset($vars['birthyear'])) {
         $selYear = $vars['birthyear'];
     }
     $birthYearOptions = $this->buildBirthYearOptions($selYear);
     require 'templates/registerform.php';
     PPostHandler::clearVars($callbackId);
 }