// CFG: SHIPSIMU-GUEST-LOGIN-CAPTCHA
$cfg->setConfigEntry('shipsimu_guest_login_captcha', "GraphicalCodeCaptcha");
-// CFG: REFILL-FORM-CAPTCHA
-$cfg->setConfigEntry('refill_form_captcha', "GraphicalCodeCaptcha");
+// CFG: MONEY-REFILL-FORM-CAPTCHA
+$cfg->setConfigEntry('money_refill_form_captcha', "GraphicalCodeCaptcha");
// CFG: LOGOUT-IMMEDIATE
$cfg->setConfigEntry('logout_immediate', "N");
// CFG: SHIPSIMU-GUEST-LOGIN-CAPTCHA-SECURED
$cfg->setConfigEntry('shipsimu_guest_login_captcha_secured', "Y");
-// CFG: REFILL-FORM-CAPTCHA-SECURED
-$cfg->setConfigEntry('refill_form_captcha_secured', "Y");
+// CFG: MONEY-REFILL-FORM-CAPTCHA-SECURED
+$cfg->setConfigEntry('money_refill_form_captcha_secured', "Y");
// CFG: BLOCK-SHOWS-REGISTRATION
$cfg->setConfigEntry('block_shows_registration', "Y");
<?php
// Neue Helper-Instanz holen
-$helper = WebFormHelper::createWebFormHelper($this, 'refill_form');
+$helper = WebFormHelper::createWebFormHelper($this, 'money_refill_form');
// Add form group
-$helper->addFormGroup('refill_form', "Bitte wähle aus, was du nachbestellen willst und gebe die Menge an.");
+$helper->addFormGroup('money_refill_form', "Bitte wähle aus, was du nachbestellen willst und gebe die Menge an.");
// Add sub group
$helper->addInputSelectField('type', "--- Bitte auswählen ---");
// This is needed to close the select tag
$helper->addInputSelectField('type', "");
+// Field for amount
+$helper->addFormSubGroup('amount', "Gebe hier in ganzen Zahlen die Menge an, die du nachbestellen willst.");
+$helper->addInputTextField('amount', 1000);
+
// CAPTCHA enbaled?
if ($helper->ifFormSecuredWithCaptcha()) {
$helper->addFormGroup('captcha_refill', "Bitte wiederhole den angezeigten Code:");
Jetzt dein {?currency?}-Konto aufladen!
</div>
<div class="content_body">
- {?refill_form?}
+ {?money_refill_form?}
</div>
</div>