add.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {extend name="default/base/base_member" /}
  2. {block name="member_main"}
  3. <div class="dsm-default-form fl">
  4. <form method="post" action="" id="memberfeedback_form">
  5. <dl>
  6. <dt>{$Think.lang.memberfeedback_content}:</dt>
  7. <dd>
  8. <span class="w400">
  9. <textarea name="fb_content" cols="50" rows="10"></textarea>
  10. </span>
  11. </dd>
  12. </dl>
  13. <dl class="bottom">
  14. <dt></dt>
  15. <dd>
  16. <input type="submit" class="submit" value="{$Think.lang.ds_submit}">
  17. </dd>
  18. </dl>
  19. </form>
  20. </div>
  21. <script>
  22. $(document).ready(function () {
  23. $('#memberfeedback_form').validate({
  24. submitHandler: function (form) {
  25. ds_ajaxpost('memberfeedback_form', 'url', "{:url('Memberfeedback/add')}");
  26. },
  27. rules: {
  28. fb_content: {
  29. required: true
  30. }
  31. },
  32. messages: {
  33. fb_content: {
  34. required: '{$Think.lang.memberfeedback_content_tip}'
  35. }
  36. }
  37. });
  38. });
  39. </script>
  40. {/block}