EOF->EOC in code templates replaced, training form extended
[shipsimu.git] / application / ship-simu / templates / de / code / action_ship_simu_login_refill.ctp
1 <?php
2 // Neue Helper-Instanz holen
3 $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'refill_form'));
4
5 // Pre-fetch payment types
6 $helperInstance->prefetchValueInstance('payments');
7
8 // Add form group
9 $helperInstance->addFormGroup('refill_form', "Bitte w&auml;hle aus, was du nachbestellen willst und gebe die Menge an.");
10
11 // Add sub group
12 $helperInstance->addInputSelectField('type', "--- Bitte ausw&auml;hlen ---");
13
14 // In-game currencies (if more than default add them here!)
15 $helperInstance->addSelectSubOption('currencies', "--- W&auml;hrungen ---");
16 $helperInstance->addSelectOption('currency', "{?currency?}");
17
18 // Raw materials
19 $helperInstance->addSelectSubOption('raw_materials', "--- Rohstoffe ---");
20 $helperInstance->addSelectOption('raw_wood', "Holz");
21 $helperInstance->addSelectOption('raw_iron', "Metall");
22 $helperInstance->addSelectOption('raw_stones', "Steine");
23
24 // This is needed to close the select tag
25 $helperInstance->addInputSelectField('type', "");
26
27 // Field for amount
28 $helperInstance->addFormSubGroup('amount', "Gebe hier in ganzen Zahlen die Menge an, die du nachbestellen willst.");
29 $helperInstance->addInputTextField('amount', 1000);
30
31 // Add payments
32 $helperInstance->getValueInstance()->addResultsToHelper($helperInstance);
33
34 // Ask again for current account password
35 $helperInstance->addFormGroup('pass_old', "Bitte gebe zur Best&auml;tigung der Nachbestellung dein derzeitiges Passwort ein.");
36 $helperInstance->addFieldText('pass_old', "Derzeitiges Passwort:");
37 $helperInstance->addInputPasswordField('pass_old');
38
39 // CAPTCHA enbaled?
40 if ($helperInstance->ifFormSecuredWithCaptcha()) {
41         $helperInstance->addFormGroup('captcha_refill', "Bitte wiederhole den angezeigten Code:");
42         $helperInstance->addCaptcha();
43 } // END - if
44
45 // Submit button
46 $helperInstance->addFormGroup('buttons_refill', "Mit Absenden des Formulars wird deine Nachbestellung verbindlich!");
47 $helperInstance->addInputResetButton("Eingaben l&ouml;schen");
48 $helperInstance->addInputSubmitButton("Nachbestellung verbindlich aufgeben");
49 $helperInstance->flushContent();
50
51 // [EOC]
52 ?>
53 <div id="refill_frame">
54         <div class="content_header">
55                 Jetzt dein {?currency?}-Konto aufladen!
56         </div>
57         <div class="content_body">
58                 {?refill_form?}
59         </div>
60 </div>