index.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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_exppoints}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch" id="formSearch" action="">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.explog_membername}</dt>
  16. <dd><input type="text" name="mname" class="txt" value='{$Request.param.mname}'></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.mg_addtime}</dt>
  20. <dd>
  21. <input type="text" id="stime" name="stime" class="txt date" value="{$Request.param.stime}">
  22. <label>~</label>
  23. <input type="text" id="etime" name="etime" class="txt date" value="{$Request.param.etime}">
  24. </dd>
  25. </dl>
  26. <dl>
  27. <dd>
  28. <select name="stage">
  29. <option value="" {notempty name="$Request.param.stage"}selected=selected{/notempty}>{$Think.lang.explog_stage}</option>
  30. {foreach name="stage_arr" item="v" key="k" }
  31. <option value="{$k}" {if condition="$Request.param.stage eq $k"}selected=selected{/if}>{$v}</option>
  32. {/foreach}
  33. </select>
  34. </dd>
  35. </dl>
  36. <dl>
  37. <dt>{$Think.lang.explog_desc}</dt>
  38. <dd><input type="text" id="description" name="description" class="txt2" value="{$Request.param.description}" ></dd>
  39. </dl>
  40. <div class="btn_group">
  41. <input type="submit" class="btn" value="{$Think.lang.ds_query}"/>
  42. <a href="{:url('Exppoints/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  43. <a class="btn btn-default" href="javascript:export_xls('{:url('Exppoints/export_step1')}')">{$Think.lang.ds_export}Excel</a>
  44. </div>
  45. </div>
  46. </form>
  47. <div class="explanation" id="explanation">
  48. <div class="title" id="checkZoom">
  49. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  50. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  51. </div>
  52. <ul>
  53. <li>{$Think.lang.exppoints_index_help1}</li>
  54. </ul>
  55. </div>
  56. <table class="ds-default-table">
  57. <thead>
  58. <tr>
  59. <th>{$Think.lang.explog_membername}</th>
  60. <th>{$Think.lang.exp_value}</th>
  61. <th>{$Think.lang.explog_addtime}</th>
  62. <th>{$Think.lang.explog_stage}</th>
  63. <th>{$Think.lang.explog_desc}</th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. {notempty name="list_log"}
  68. {foreach name="list_log" item="log"}
  69. <tr>
  70. <td>{$log.explog_membername}</td>
  71. <td>{$log.explog_points}</td>
  72. <td>{$log.explog_addtime|date="Y-m-d H:i:s"}</td>
  73. <td>{$stage_arr[$log.explog_stage]}</td>
  74. <td>{$log.explog_desc}</td>
  75. </tr>
  76. {/foreach}
  77. {else /}
  78. <tr class="no_data">
  79. <td colspan="15">{$Think.lang.ds_no_record}</td>
  80. </tr>
  81. {/notempty}
  82. </tbody>
  83. </table>
  84. {$show_page|raw}
  85. </div>
  86. <script language="javascript">
  87. $(function () {
  88. $('#stime').datepicker({dateFormat: 'yy-mm-dd',onSelect:function(dateText,inst){
  89. var year2 = dateText.split('-') ;
  90. $('#etime').datepicker( "option", "minDate", new Date(parseInt(year2[0]),parseInt(year2[1])-1,parseInt(year2[2])+1) );
  91. }});
  92. $('#etime').datepicker({dateFormat: 'yy-mm-dd',onSelect:function(dateText,inst){
  93. var year1 = dateText.split('-') ;
  94. $('#stime').datepicker( "option", "maxDate", new Date(parseInt(year1[0]),parseInt(year1[1])-1,parseInt(year1[2])-1) );
  95. }});
  96. });
  97. </script>