Esempio n. 1
0
     $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
     $page->FormStart(array('step' => GetNextStep(STEP_ADDEDINFO)));
     $page->FormHidden('save_to_sessions', STEP_ADDEDINFO);
     // Here will either be Info box or Success box depending on how all the following
     // checks will go. So, add an empty entry, save the index and replace the index
     // later with either one
     $page->AddToQueue('');
     $msgBoxIndex = $page->GetQueueIndex();
     // Construct a form based on the setup in $steps
     foreach ($steps[STEP_ADDEDINFO]['form'] as $data) {
         // Determine the controls data and key
         $key = '';
         $value = '';
         if (isset($data['type'])) {
             $key = $data['type'];
         } else {
             $key = '?';
         }
         // Create different controls based on the key
         switch ($key) {
             case 'checkbox':
                 if (HasAnyAdditionalStepValueBeenPostedYet()) {
Esempio n. 2
0
					$page->FormButton('Back', array('step'=>GetPrevStep(STEP_DBSELECT)));                        
					$page->FormSubmit('Next');  
					$page->FormClose();  
				}
				
				// -------------------( Option B: Create new database )-------------------//
				if($steps[STEP_DBSELECT]['allowcreate'])
				{
					$page->Paragraph(' ');
					$page->MainTitle('Create new database', 'dbnew');
					
					if(is_array($msg))
					{
						foreach($msg as $item)
							$page->AddToQueue($item);
					}
					
					$page->Bookmark('newdb');
					$page->Paragraph('Create new database which the system will be installed on.');
					$page->FormStart(array('step'=>STEP_DBSELECT), array('#'=>'newdb'));
					$page->Label('Database name:');
					$page->FormInput($newdb, 'createdb', array(), 'mediumbox');
					$page->FormSubmit('Create new');
					$page->FormClose();
				}
				$page->ShowPage(STEP_DBSELECT);                    
			}