source: extensions/CryptograPHP/template/contactform.tpl @ 23209

Last change on this file since 23209 was 20189, checked in by mistic100, 11 years ago

fix for new guestbook template + code cleaning

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