edit_jingle.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <div class="eject_con">
  2. <div id="warning" class="alert alert-error"></div>
  3. <form method="post" action="{:url('Sellergoodsonline/edit_jingle')}" id="jingle_form">
  4. <input type="hidden" name="commonid" value="{$Request.param.commonid}" />
  5. <dl>
  6. <dt>{$Think.lang.commercial_slogan}:</dt>
  7. <dd>
  8. <input type="text" class="text w300" name="g_jingle" id="g_jingle" value="" />
  9. <p class="hint">{$Think.lang.all_advertisements_will_blank}</p>
  10. </dd>
  11. </dl>
  12. <div class="bottom">
  13. <input type="submit" class="submit" value="{$Think.lang.ds_submit}"/>
  14. </div>
  15. </form>
  16. </div>
  17. <script>
  18. $(function(){
  19. $('#jingle_form').validate({
  20. errorLabelContainer: $('#warning'),
  21. invalidHandler: function(form, validator) {
  22. $('#warning').show();
  23. },
  24. submitHandler:function(form){
  25. ds_ajaxpost('jingle_form');
  26. },
  27. rules : {
  28. g_jingle : {
  29. maxlength: 50
  30. }
  31. },
  32. messages : {
  33. g_jingle : {
  34. maxlength: '<i class="iconfont">&#xe64c;</i>{$Think.lang.cannot_exceed_qualifier}'
  35. }
  36. }
  37. });
  38. });
  39. </script>