complain_list.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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="search_form" method="get" name="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.complain_accuser}</dt>
  16. <dd><input class="txt" type="text" name="input_complain_accuser" id="input_complain_accuser" value="{$Request.get.input_complain_accuser}"></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.complain_subject_content}</dt>
  20. <dd><input class="txt2" type="text" name="input_complain_subject_content" id="input_complain_subject_content" value="{$Request.get.input_complain_subject_content}"></dd>
  21. </dl>
  22. <dl>
  23. <dt>{$Think.lang.complain_accused}</dt>
  24. <dd><input class="txt" type="text" name="input_complain_accused" id="input_complain_accused" value="{$Request.get.input_complain_accused}"></dd>
  25. </dl>
  26. <dl>
  27. <dt>{$Think.lang.complain_datetime}</dt>
  28. <dd>
  29. <input id="time_from" class="txt date" type="text" name="input_complain_datetime_start" value="{$Request.get.input_complain_datetime_start}">
  30. ~
  31. <input id="time_to" class="txt date" type="text" name="input_complain_datetime_end" value="{$Request.get.input_complain_datetime_end}">
  32. </dd>
  33. </dl>
  34. <div class="btn_group">
  35. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  36. <a href="{:url('')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  37. </div>
  38. </div>
  39. </form>
  40. <div class="explanation" id="explanation">
  41. <div class="title" id="checkZoom">
  42. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  43. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  44. </div>
  45. <ul>
  46. <li>{$Think.lang.complain_help1}</li>
  47. <li>{$Think.lang.complain_help2}</li>
  48. <li>{$Think.lang.complain_help3}</li>
  49. </ul>
  50. </div>
  51. <table class="ds-default-table">
  52. <thead>
  53. <tr class="thead">
  54. <th class="w12">&nbsp;</th>
  55. <th>{$Think.lang.complain_accuser}</th>
  56. <th>{$Think.lang.complain_accused}</th>
  57. <th>{$Think.lang.complain_subject_content}</th>
  58. <th class="align-center">{$Think.lang.complain_datetime}</th>
  59. <th class="align-center">{$Think.lang.ds_handle}</th>
  60. </tr>
  61. </thead>
  62. <tbody>
  63. {notempty name="complain_list"}
  64. {foreach name="complain_list" item="v"}
  65. <tr class="hover">
  66. <td>&nbsp;</td>
  67. <td>{$v.accuser_name}</td>
  68. <td>{$v.accused_name}</td>
  69. <td>{$v.complain_subject_content}</td>
  70. <td class="nowarp align-center">{$v.complain_datetime|date="Y-m-d H:i:s"}</td>
  71. <td class="align-center"><a href="{:url('Complain/complain_progress',['complain_id'=>$v.complain_id])}" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_detail}</a></td>
  72. </tr>
  73. {/foreach}
  74. {else /}
  75. <tr class="no_data">
  76. <td colspan="15">{$Think.lang.ds_no_record}</td>
  77. </tr>
  78. {/notempty}
  79. </tbody>
  80. </table>
  81. {notempty name="complain_list"}
  82. {$show_page|raw}
  83. {/notempty}
  84. </div>
  85. <script type="text/javascript">
  86. $(document).ready(function(){
  87. //表格移动变色
  88. $("tbody .line").hover(
  89. function()
  90. {
  91. $(this).addClass("complain_highlight");
  92. },
  93. function()
  94. {
  95. $(this).removeClass("complain_highlight");
  96. });
  97. $('#time_from').datepicker({dateFormat: 'yy-mm-dd',onSelect:function(dateText,inst){
  98. var year2 = dateText.split('-') ;
  99. $('#time_to').datepicker( "option", "minDate", new Date(parseInt(year2[0]),parseInt(year2[1])-1,parseInt(year2[2])) );
  100. }});
  101. $('#time_to').datepicker({dateFormat: 'yy-mm-dd',onSelect:function(dateText,inst){
  102. var year1 = dateText.split('-') ;
  103. $('#time_from').datepicker( "option", "maxDate", new Date(parseInt(year1[0]),parseInt(year1[1])-1,parseInt(year1[2])) );
  104. }});
  105. });
  106. </script>