complain_setting.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_complain}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form id="add_form" method="post" enctype="multipart/form-data">
  13. <table class="ds-default-table">
  14. <tbody>
  15. <tr class="noborder">
  16. <td colspan="2" class="required"><label for="complain_time_limit">{$Think.lang.complain_time_limit}:</label></td>
  17. </tr>
  18. <tr class="noborder">
  19. <td class="vatop rowform"><input name="complain_time_limit" id="complain_time_limit" value="{present name="list_setting.complain_time_limit"}{$list_setting.complain_time_limit/86400}{/present}" type="text" class="txt"></td>
  20. <td class="vatop tips">{$Think.lang.complain_time_limit_desc}</td>
  21. </tr>
  22. </tbody>
  23. <tfoot>
  24. <tr class="tfoot">
  25. <td colspan="15" >
  26. <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
  27. </td>
  28. </tr>
  29. </tfoot>
  30. </table>
  31. </form>
  32. </div>
  33. <script type="text/javascript">
  34. //
  35. $(document).ready(function(){
  36. //页面输入内容验证
  37. $("#add_form").validate({
  38. errorPlacement: function(error, element){
  39. error.appendTo(element.parent().parent().prev().find('td:first'));
  40. },
  41. rules : {
  42. complain_time_limit: {
  43. required : true,
  44. digits : true
  45. }
  46. },
  47. messages : {
  48. complain_time_limit: {
  49. required : '{$Think.lang.complain_time_limit_error}',
  50. digits : '{$Think.lang.complain_time_limit_error}'
  51. }
  52. }
  53. });
  54. });
  55. </script>