コード例 #1
0
ファイル: installer.php プロジェクト: Jtgadbois/Pedadida
                // has - notfify him that he has done so and make the box "checked" so user
                // can simply press "next to continue"
                $checked = array();
                if($approved)
                {
                    $page->SuccessBox('You have approved the terms of use agreement!');
                    $checked = array('checked');
                }
                else if($step != STEP_TERMSOFUSE)
                {
                    $page->InfoBox('You must approve the terms of use agreement if you want to continue!');
                }
                
                $page->Textarea( $mask->GetTermsOfAgreement() );
                $page->FormStart(array('step'=>GetNextStep(STEP_TERMSOFUSE)));
                $page->FormRadiobox('approved', 'agreement', 'I <b>accept</b> this terms of use', $checked);
                $page->FormRadiobox('denied', 'agreement', 'I <b>do not accept</b> this terms of use');
                
				$prev = GetPrevStep(STEP_TERMSOFUSE);
				if($prev) $page->FormButton('Back', array('step'=>$prev));   
                        
                $page->FormSubmit('Next');
                $page->FormClose();
                $page->ShowPage(STEP_TERMSOFUSE);
            }		


			/* ===================================================[ LANGUAGE SELECTION ]=================================================== */

			// If the language step is enabled and active, show "select language" form
			if($steps[STEP_LANGUAGE]['enabled'] && count($steps[STEP_LANGUAGE]['supported']) > 0 && $step == STEP_LANGUAGE)
コード例 #2
0
ファイル: installer.php プロジェクト: WarLion/ClanCaller
     $page->MainTitle($steps[STEP_TERMSOFUSE]['title'], 'agreement');
     // Notify the user that he must approve the terms of agreement, and if he
     // has - notfify him that he has done so and make the box "checked" so user
     // can simply press "next to continue"
     $checked = array();
     if ($LICENSE_APPROVED) {
         $page->SuccessBox('You have approved the terms of use agreement!');
         $checked = array('checked');
     } else {
         if ($step != STEP_TERMSOFUSE) {
             $page->InfoBox('You must approve the terms of use agreement if you want to continue!');
         }
     }
     $page->Textarea($mask->GetTermsOfAgreement());
     $page->FormStart(array('step' => GetNextStep(STEP_TERMSOFUSE)));
     $page->FormRadiobox('approved', 'agreement', 'I <b>accept</b> this terms of use', $checked);
     $page->FormRadiobox('denied', 'agreement', 'I <b>do not accept</b> this terms of use');
     $prev = GetPrevStep(STEP_TERMSOFUSE);
     if ($prev) {
         $page->FormButton('Back', array('step' => $prev));
     }
     $page->FormSubmit('Next');
     $page->FormClose();
     $page->ShowPage(STEP_TERMSOFUSE);
 }
 /* ===================================================[ SERIAL KEY CONFIRMATION ]=================================================== */
 // Check if user has either selected trial or provided accepted serial
 $showSerialForm = false;
 $showSerialForm = !$steps[STEP_SERIALKEY]['allowtrial'] && !$keywords['serial']['isMatch'] ? true : $showSerialForm;
 $showSerialForm = $steps[STEP_SERIALKEY]['allowtrial'] && !$keywords['serial']['isMatch'] && !$keywords['serial']['isTrial'] ? true : $showSerialForm;
 // Only show form if step is enabled, and above checks are "false" or user wants to preview the step again (clicked back)
コード例 #3
0
ファイル: overview.php プロジェクト: WarLion/ClanCaller
							array('value','numeric','mustfill','minval','maxval','minlen','maxlen'));
						
						$data = FillInAllAttributes($data);
						$checked = (isset($data['checked']) && $data['checked'] === true) ? array('checked') : array();
						$page->FormCheckbox($data['value_on'], $data['keyword'], $mask->ReplaceKeywords($data['text']), $checked);
						break;

					case 'radiobox':
						CheckControlAttributes($data, 
							array('type','keyword','value','text'),
							array('checked'), 							
							array('value_on','value_off','numeric','mustfill','minval','maxval','minlen','maxlen'));
						
						$data = FillInAllAttributes($data);
						$checked = (isset($data['checked']) && $data['checked'] === true) ? array('checked') : array();
						$page->FormRadiobox($data['value'], $data['keyword'], $mask->ReplaceKeywords($data['text']), $checked);
						break;

					case 'textbox':
						CheckControlAttributes($data, 
							array('type','keyword','value','numeric','mustfill'),
							array('minval','maxval','minlen','maxlen'), 							
							array('text','value_on','value_off','checked'));
						
						$data = FillInAllAttributes($data);							
						$page->FormInput($data['value'], $data['keyword']);
						break;
					case 'textarea':
						CheckControlAttributes($data, 
							array('type','keyword','value','numeric','mustfill'),
							array('minval','maxval','minlen','maxlen'),