]> git.mxchange.org Git - city.git/blob - application/city/templates/code/captch_graphic_code.ctp
Continued:
[city.git] / application / city / templates / code / captch_graphic_code.ctp
1 <?php
2 // Import framework stuff
3 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
4
5 // Get a helper instance without a form tag
6 $captchaHelper = ObjectFactory::createObjectByConfiguredName('html_form_helper_class', array($this, 'captcha_code', false, false));
7
8 // Add input field with text for CAPTCHA code
9 $captchaHelper->addFieldLabel('captcha_code', "Bitte wiederhole den Code:");
10 $captchaHelper->addInputTextField('c_code');
11
12 // Add hidden field with validation hash
13 $captchaHelper->addInputHiddenField('hash', $this->readVariable('captcha_hash'));
14
15 // Flush content
16 $captchaHelper->flushContent();
17
18 // [EOC]
19 ?>
20 <div class="captcha_image">
21         <img src="{?base_url?}/index.php?app={?app_short_name?}&amp;command=code_captcha&amp;encrypt={?encrypted_code?}&amp;request=image"
22          alt="CAPTCHA-Bild" title="CAPTCHA-Bild" class="captcha_img" />
23 </div>
24 <div class="captcha_code">
25         {?captcha_code?}
26 </div>