2 // Neue Helper-Instanz holen
3 $helperInstance = ObjectFactory::createObjectByConfiguredName('html_form_helper_class', array($this, 'shipsimu_refill'));
5 // Pre-fetch payment types
6 $helperInstance->prefetchValueInstance('payments');
9 $helperInstance->addFormGroup('refill_form', "Bitte wähle aus, was du nachbestellen willst und gebe die Menge an.");
12 $helperInstance->addInputSelectField('type', "--- Bitte auswählen ---");
14 // In-game currencies (if more than default add them here!)
15 $helperInstance->addSelectSubOption('currencies', "--- Währungen ---");
16 $helperInstance->addSelectOption('currency', "{?currency?}");
19 $helperInstance->addSelectSubOption('raw_resources', "--- Rohstoffe ---");
20 $helperInstance->addSelectOption('raw_wood', "Holz");
21 $helperInstance->addSelectOption('raw_iron', "Metall");
22 $helperInstance->addSelectOption('raw_stones', "Steine");
24 // This is needed to close the select tag
25 $helperInstance->addInputSelectField('type', "");
28 $helperInstance->addFormSubGroup('amount', "Gebe hier in ganzen Zahlen die Menge an, die du nachbestellen willst.");
29 $helperInstance->addInputTextField('amount', 1000);
32 $helperInstance->getValueInstance()->addResultsToHelper($helperInstance);
34 // Ask again for current account password
35 $helperInstance->addFormGroup('pass_old', "Bitte gebe zur Bestätigung der Nachbestellung dein derzeitiges Passwort ein.");
36 $helperInstance->addFieldText('pass_old', "Derzeitiges Passwort:");
37 $helperInstance->addInputPasswordField('pass_old');
40 if ($helperInstance->ifFormSecuredWithCaptcha()) {
41 $helperInstance->addFormGroup('captcha_refill', "Bitte wiederhole den angezeigten Code:");
42 $helperInstance->addCaptcha();
46 $helperInstance->addFormGroup('buttons_refill', "Mit Absenden des Formulars wird deine Nachbestellung verbindlich!");
47 $helperInstance->addInputResetButton("Eingaben löschen");
48 $helperInstance->addInputSubmitButton("Nachbestellung verbindlich aufgeben");
49 $helperInstance->flushContent();
53 <div id="refill_frame">
54 <div class="content_header">
55 Jetzt dein {?currency?}-Konto aufladen!
57 <div class="content_body">