You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

151 lines
6.4 KiB

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>数据统计 - 原创专区 - {$kx.config.sitename}</title>
  6. <link rel="stylesheet" href="{$kx.config.resurl}/template/kxwebno1/author/css/style.css"/>
  7. <link rel="shortcut icon" type="image/ico" href="/favicon.ico"/>
  8. <meta name="author" content="www.ptcms.com">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  10. <meta name="renderer" content="webkit">
  11. <meta name="viewport" content="width=device-width"/>
  12. <meta name="applicable-device" content="pc">
  13. <meta http-equiv="Cache-Control" content="no-siteapp"/>
  14. <meta http-equiv="Cache-Control" content="no-transform"/>
  15. <link rel="canonical" href="{$kx.config.pcurl}__SELF__"/>
  16. <style>
  17. </style>
  18. </head>
  19. <body>
  20. {include file="/author/system/header"}
  21. <div class="body">
  22. {include file="/author/system/left"}
  23. <div class="right bg-white h100" style="min-height: 160px;">
  24. <div class="mlr20 mt30">
  25. <img style="vertical-align: middle;margin-top: -5px;" src="{$kx.config.resurl}/template/kxwebno1/author/images/income.png" alt="收入明细">
  26. <span class="color0 size16 bold ml10">收入管理</span>
  27. </div>
  28. <ul class="stat border stat_total mlr20 mtb30" >
  29. <li class="inline-block border-r" style="width: 33%;">
  30. <span class="ml30 color0 inline-block mtb20 size18 bold">累计订阅</span>
  31. <span class="color2 ml40 size16 bold">{$stat.subscription}<span class="color92">{$kx.config.user.money_caption}</span></span>
  32. </li>
  33. <li class="inline-block border-r" style="width: 33%;">
  34. <span class="ml30 color0 inline-block mtb20 size18 bold">累计打赏</span>
  35. <span class="color2 ml40 size16 bold">{$stat.reward}<span class="color92">{$kx.config.user.money_caption}</span></span>
  36. </li>
  37. <li class="inline-block" style="width: 32%;">
  38. <span class="ml30 color0 inline-block mtb20 size18 bold">累计{$kx.config.user.ticket_caption}</span>
  39. <span class="color2 ml40 size16 bold">{$stat.ticket}<span class="color92">张</span></span>
  40. </li>
  41. </ul>
  42. </div>
  43. <div class="right mt20" style="min-height: 545px;height: 545px;">
  44. <style>
  45. .body ul.label li{
  46. float: left;
  47. width: 130px;
  48. height: 50px;
  49. line-height: 50px;
  50. text-align: center;
  51. background: #E5E5E5;
  52. margin-top: 4px;
  53. }
  54. .body ul.label li.active{
  55. background-color: #fff;
  56. color: #323237;
  57. border-top: 4px solid #f55;
  58. margin-top: 0;
  59. }
  60. </style>
  61. <ul class="label" style="height: 54px;">
  62. <a href="{link=author.income.record type='subscription'}"><li class="{=$type=='subscription'?'active':''}">订阅明细</li></a>
  63. <a href="{link=author.income.record type='reward'}"><li class="{=$type=='reward'?'active':''}">打赏明细</li></a>
  64. <a href="{link=author.income.record type='ticket'}"><li class="{=$type=='ticket'?'active':''}">月票明细</li></a>
  65. </ul>
  66. <div class="bg-white pt20" style="height: 470px;">
  67. <style>
  68. table {
  69. width: 100%;
  70. text-align: center;
  71. color: #323237;
  72. }
  73. table th {
  74. height: 40px;
  75. background-color: #F5F5F7;
  76. text-align: center;
  77. font-weight: 700;
  78. }
  79. table thead tr {
  80. border: 1px solid #F5F5F5;
  81. }
  82. table td {
  83. height: 35px;
  84. }
  85. table tbody tr {
  86. border: 1px solid #E9E9E9;
  87. }
  88. </style>
  89. {block method="pagination" name="paginate" page=$page limit=$pagesize count=$count maxpage=50 section=3}
  90. <table class="mlr20" style="width: 950px;">
  91. <thead>
  92. <tr>
  93. <th>昵称</th>
  94. <th>时间</th>
  95. <th>{=$type=='ticket'?'数量':'金额'}</th>
  96. <th>书籍</th>
  97. {if $type == 'subscription'}
  98. <th>章节</th>
  99. {/if}
  100. </tr>
  101. </thead>
  102. <tbody>
  103. {loop=$records}
  104. <tr>
  105. <td>{=$loop.user.nickname?:$loop.user.name}</td>
  106. <td>{$loop.create_time|date='Y-m-d'}</td>
  107. {if $type == 'subscription'}
  108. <td><span class="color2">{$loop.money_log.num}</span>{$kx.config.user.money_caption}</td>
  109. {else}
  110. <td><span class="color2">{$loop.num}</span>{=$type=='ticket'?'张':$kx.config.user.money_caption}</td>
  111. {/if}
  112. <td>{$loop.novel.name}</td>
  113. {if $type == 'subscription'}
  114. <td>{$loop.chapter.name}</td>
  115. {/if}
  116. </tr>
  117. {/loop}
  118. </tbody>
  119. </table>
  120. {if $paginate.total>1}
  121. <div class="pt-pages mtb10 text-center">
  122. <div class="pt10 color5">
  123. {if $paginate.prev}
  124. <a class="inline-block ptb5 plr10" href="{link=author.income.record type=$type page=$paginate.prev}"><span><</span></a>
  125. {else}
  126. <span class="disable"><</span>
  127. {/if}
  128. {loop=paginate.items}
  129. <a class="inline-block ptb5 plr10" href="{link=author.income.record type=$type page=$loop.num}">
  130. <span class="{$loop.status|default='','color2'}">{$loop.num}</span>
  131. </a>
  132. {/loop}
  133. {if $paginate.next}
  134. <a class="inline-block ptb5 plr10" href="{link=author.income.record type=$type page=$paginate.next}"><span>></span></a>
  135. {else}
  136. <span class="disable">></span>
  137. {/if}
  138. </div>
  139. </div>
  140. {/if}
  141. </div>
  142. </div>
  143. </div>
  144. {include file="/author/system/footer"}
  145. </body>
  146. </html>