complain.setting.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php defined('InShopNC') or exit('Access Invalid!');?>
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <h3> <?php echo $lang['complain_manage_title'];?> </h3>
  6. <ul class="tab-base">
  7. <?php
  8. foreach($output['menu'] as $menu) {
  9. if($menu['menu_type'] == 'text') {
  10. ?>
  11. <li><a href="JavaScript:void(0);" class="current"><span><?php echo $menu['menu_name'];?></span></a></li>
  12. <?php
  13. }
  14. else {
  15. ?>
  16. <li><a href="<?php echo $menu['menu_url'];?>"><span><?php echo $menu['menu_name'];?></span></a></li>
  17. <?php
  18. }
  19. }
  20. ?>
  21. </ul>
  22. </div>
  23. </div>
  24. <div class="fixed-empty"></div>
  25. <form id="add_form" method="post" enctype="multipart/form-data" action="index.php?act=complain&op=complain_setting_save">
  26. <table class="table tb-type2 nobdb">
  27. <tbody>
  28. <tr class="noborder">
  29. <td colspan="2" class="required"><label for="complain_time_limit"><?php echo $lang['complain_time_limit'];?>:</label></td>
  30. </tr>
  31. <tr class="noborder">
  32. <td class="vatop rowform"><input name="complain_time_limit" id="complain_time_limit" value="<?php echo intval($output['list_setting']['complain_time_limit'])/86400;?>" type="text" class="txt"></td>
  33. <td class="vatop tips"><?php echo $lang['complain_time_limit_desc'];?></td>
  34. </tr>
  35. </tbody>
  36. <tfoot>
  37. <tr class="tfoot"><td colspan="15" ><a href="JavaScript:void(0);" class="btn" id="btn_add"><span><?php echo $lang['nc_submit'];?></span></a></td>
  38. </tr>
  39. </tfoot>
  40. </table>
  41. </form>
  42. </div>
  43. <script type="text/javascript">
  44. //
  45. $(document).ready(function(){
  46. //添加按钮的单击事件
  47. $("#btn_add").click(function(){
  48. $("#add_form").submit();
  49. });
  50. //页面输入内容验证
  51. $("#add_form").validate({
  52. errorPlacement: function(error, element){
  53. error.appendTo(element.parent().parent().prev().find('td:first'));
  54. },
  55. rules : {
  56. complain_time_limit: {
  57. required : true,
  58. digits : true
  59. }
  60. },
  61. messages : {
  62. complain_time_limit: {
  63. required : '<?php echo $lang['complain_time_limit_error'];?>',
  64. digits : '<?php echo $lang['complain_time_limit_error'];?>'
  65. }
  66. }
  67. });
  68. });
  69. </script>