Esempio n. 1
0
     $page->FormSubmit('Next');
     $page->FormClose();
     $page->ShowPage(STEP_LANGUAGE);
 }
 /* ===================================================[ TMEZONE SELECTION ]=================================================== */
 /*
  *  The TimeZone step can check the selected language (if enabled)
  *  to see what TimeZone to select automatically
  */
 // If the timezone step is enabled and active, show "select timezone" form
 if ($steps[STEP_TIMEZONE]['enabled'] && $step == STEP_TIMEZONE) {
     $page->MainTitle($steps[STEP_TIMEZONE]['title'], 'timezone');
     $page->Paragraph('Assuming that you have a "timezone" feature in your system already, you might ' . 'want to design this step yourself to make it fit correctly with your system.');
     $page->FormStart(array('step' => GetNextStep(STEP_TIMEZONE)));
     $page->Label('Select timezone:');
     $page->AddTimezoneDropdown('timezone', $keywords['special']['timezone']);
     $prev = GetPrevStep(STEP_TIMEZONE);
     if ($prev) {
         $page->FormButton('Back', array('step' => $prev));
     }
     $page->FormSubmit('Next');
     $page->FormClose();
     $page->ShowPage(STEP_TIMEZONE);
 }
 /* ===================================================[ ADDITIONAL INFORMATION ]=================================================== */
 // If the additional information step is enabled and active, show custom form
 if ($steps[STEP_ADDEDINFO]['enabled']) {
     $hasErrors = false;
     $page->MainTitle($steps[STEP_ADDEDINFO]['title'], 'userinfo');
     // Begin form that tells the session helper that this form should
     // be processed for the additional step