source: extensions/CryptograPHP/template/guestbook.tpl @ 27525

Last change on this file since 27525 was 27214, checked in by mistic100, 10 years ago

compatibility with GuestBook

File size: 927 bytes
Line 
1<div class="col-50">
2  <label for="captcha">{if $CRYPTO.captcha_type=='string'}{'Enter code'|translate}{else}{'Solve equation'|translate}{/if}</label>
3  <input type="text" name="captcha_code" id="captcha_code" style="width:{$CRYPTO.code_length}em" maxlength="{$CRYPTO.code_length}">
4</div>
5<div class="col-50">
6  <img id="captcha" src="{$CRYPTO_PATH}securimage/securimage_show.php" alt="CAPTCHA Image" style="vertical-align:top;">
7  <a href="#" id="captcha_refresh" onclick="document.getElementById('captcha').src = '{$CRYPTO_PATH}securimage/securimage_show.php?'+Math.random(); return false;">
8    <img src="{$CRYPTO_PATH}template/refresh_{$CRYPTO.button_color}.png" style="vertical-align:bottom;"></a>
9</div>
10
11{footer_script}
12var captcha_code = new LiveValidation("captcha_code", {ldelim} onlyOnSubmit: true });
13captcha_code.add(Validate.Presence, {ldelim} failureMessage: "{'Invalid Captcha'|translate}" });
14{/footer_script}
Note: See TracBrowser for help on using the repository browser.