rechargecard_add.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {extend name="default/base/base_member" /}
  2. {block name="member_main"}
  3. <div class="dsm-default-form">
  4. <form method="post" id="rechargecard_form" action="">
  5. <dl>
  6. <dt><i class="required">*</i>{$Think.lang.predeposit_recharge_card_number}{$Think.lang.ds_colon}</dt>
  7. <dd>
  8. <input name="rc_sn" type="text" class="text w400" id="rc_sn" maxlength="50" /><span></span></dd>
  9. </dl>
  10. <dl class="bottom">
  11. <dt>&nbsp; </dt>
  12. <dd>
  13. <input type="submit" class="submit" value="{$Think.lang.ds_submit}" />
  14. </dd>
  15. </dl>
  16. </form>
  17. </div>
  18. <script type="text/javascript">
  19. $(function () {
  20. $('#rechargecard_form').validate({
  21. errorPlacement: function (error, element) {
  22. var error_td = element.parent('dd').children('span');
  23. error_td.append(error);
  24. },
  25. rules: {
  26. rc_sn: {
  27. required: true,
  28. maxlength: 50
  29. }
  30. },
  31. messages: {
  32. rc_sn: {
  33. required: '<i class="iconfont">&#xe64c;</i>{$Think.lang.predeposit_enter_card_number}',
  34. maxlength: '<i class="iconfont">&#xe64c;</i>{$Think.lang.predeposit_card_length_less}'
  35. }
  36. }
  37. });
  38. });
  39. </script>
  40. {/block}