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