index.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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_points}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="explanation" id="explanation">
  13. <div class="title" id="checkZoom">
  14. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  15. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  16. </div>
  17. <ul>
  18. <li>{$Think.lang.admin_points_log_help1}</li>
  19. </ul>
  20. </div>
  21. <form method="get" name="formSearch" id="formSearch">
  22. <div class="ds-search-form">
  23. <dl>
  24. <dt>{$Think.lang.admin_points_membername}</dt>
  25. <dd><input type="text" name="mname" class="txt" value='{$Request.param.mname}'></dd>
  26. </dl>
  27. <dl>
  28. <dt>{$Think.lang.admin_points_addtime}</dt>
  29. <dd>
  30. <input type="text" id="stime" name="stime" class="txt date" value="{$Request.param.stime}" >
  31. ~
  32. <input type="text" id="etime" name="etime" class="txt date" value="{$Request.param.etime}" >
  33. </dd>
  34. </dl>
  35. <dl>
  36. <dd>
  37. <select name="stage">
  38. <option value="" {notempty name="$Request.param.stage"}selected=selected{/notempty}>{$Think.lang.admin_points_stage}</option>
  39. <option value="regist" {if condition="$Request.param.stage eq 'regist'"}selected=selected{/if}>{$Think.lang.admin_points_stage_regist}</option>
  40. <option value="login" {if condition="$Request.param.stage eq 'login'"}selected=selected{/if}>{$Think.lang.admin_points_stage_login}</option>
  41. <option value="comments" {if condition="$Request.param.stage eq 'comments'"}selected=selected{/if}>{$Think.lang.admin_points_stage_comments}</option>
  42. <option value="order" {if condition="$Request.param.stage eq 'order'"}selected=selected{/if}>{$Think.lang.admin_points_stage_order}</option>
  43. <option value="system" {if condition="$Request.param.stage eq 'system'"}selected=selected{/if}>{$Think.lang.admin_points_stage_system}</option>
  44. <option value="pointorder" {if condition="$Request.param.stage eq 'pointorder'"}selected=selected{/if}>{$Think.lang.admin_points_stage_pointorder}</option>
  45. <option value="app" {if condition="$Request.param.stage eq 'app'"}selected=selected{/if}>{$Think.lang.admin_points_stage_app}</option>
  46. <option value="signin" {if condition="$Request.param.stage eq 'signin'"}selected=selected{/if}>{$Think.lang.admin_points_stage_signin}</option>
  47. <option value="inviter" {if condition="$Request.param.stage eq 'inviter'"}selected=selected{/if}>{$Think.lang.admin_points_stage_inviter}</option>
  48. <option value="rebate" {if condition="$Request.param.stage eq 'rebate'"}selected=selected{/if}>{$Think.lang.admin_points_stage_rebate}</option>
  49. </select>
  50. </dd>
  51. </dl>
  52. <dl>
  53. <dt>{$Think.lang.admin_points_adminname}</dt>
  54. <dd><input type="text" name="aname" class="txt" value='{$Request.param.aname}'></dd>
  55. </dl>
  56. <dl>
  57. <dt>{$Think.lang.admin_points_pointsdesc}</dt>
  58. <dd><input type="text" id="description" name="description" class="txt2" value="{$Request.param.description}" ></dd>
  59. </dl>
  60. <div class="btn_group">
  61. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  62. <a href="{:url('Points/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  63. <a class="btn btn-mini" href="javascript:export_xls('{:url('Points/export_step1')}')"><span>{$Think.lang.ds_export}Excel</span></a>
  64. </div>
  65. </div>
  66. </form>
  67. <table class="ds-default-table">
  68. <thead>
  69. <tr>
  70. <th>{$Think.lang.admin_points_membername}</th>
  71. <th>{$Think.lang.admin_points_adminname}</th>
  72. <th>{$Think.lang.admin_points_pointsnum}</th>
  73. <th>{$Think.lang.admin_points_addtime}</th>
  74. <th class="align-center">{$Think.lang.admin_points_stage}</th>
  75. <th>{$Think.lang.admin_points_pointsdesc}</th>
  76. </tr>
  77. </thead>
  78. <tbody>
  79. {notempty name="pointslog"}
  80. {foreach name="pointslog" item="log"}
  81. <tr>
  82. <td>{$log.pl_membername}</td>
  83. <td>{$log.pl_adminname}</td>
  84. <td>{$log.pl_points}</td>
  85. <td>{$log.pl_addtime|date="Y-m-d H:i:s"}</td>
  86. <td class="align-center">
  87. <?php
  88. $lang='admin_points_stage_'.$log['pl_stage'];
  89. echo lang($lang);
  90. ?>
  91. </td>
  92. <td>{$log.pl_desc}</td>
  93. </tr>
  94. {/foreach}
  95. {else /}
  96. <tr class="no_data">
  97. <td colspan="20">{$Think.lang.no_record}</td>
  98. </tr>
  99. {/notempty}
  100. </tbody>
  101. </table>
  102. {$show_page|raw}
  103. </div>
  104. <script language="javascript">
  105. $(function(){
  106. $('#stime').datepicker({dateFormat: 'yy-mm-dd',onSelect:function(dateText,inst){
  107. var year2 = dateText.split('-') ;
  108. $('#etime').datepicker( "option", "minDate", new Date(parseInt(year2[0]),parseInt(year2[1])-1,parseInt(year2[2])+1) );
  109. }});
  110. $('#etime').datepicker({dateFormat: 'yy-mm-dd',onSelect:function(dateText,inst){
  111. var year1 = dateText.split('-') ;
  112. $('#stime').datepicker( "option", "maxDate", new Date(parseInt(year1[0]),parseInt(year1[1])-1,parseInt(year1[2])-1) );
  113. }});
  114. });
  115. </script>