monthly.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <style>
  2. .right-content{
  3. padding-top:54px!important; padding-left:0!important; width:970px!important;
  4. }
  5. </style>
  6. <div class="content">
  7. <% include ../leftBar.html %>
  8. <!-- right content start -->
  9. <div class="right-content incomeStatictics-monthly">
  10. <div class="pageInfo">My Income Staticstic</div>
  11. <div id="tabs-container">
  12. <% include topBar.html %>
  13. <div class="tab">
  14. <div id="tab-1" class="tab-content">
  15. <div class="list">
  16. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  17. <tbody>
  18. <tr bgcolor="#f2f2f2">
  19. <td width="200" height="60" align="center" valign="middle">Month</td>
  20. <td colspan="2" align="center" valign="middle" width="108">Coins</td>
  21. </tr>
  22. <%for(var value of data){%>
  23. <tr>
  24. <td align="center" valign="middle"><%=value.month%></td>
  25. <td colspan="2" align="center" valign="middle">
  26. <a href="/broadcast/income/monthlyDetail?month=<%=value.month%>" style="display: inline-block; width: 729px; height: 37px; line-height: 37px;"><%=(value.public_anchor_credit_sum+value.private_anchor_credit_sum+value.anchor_msg_credit_sum+value.anchor_ticket_credit_sum+value.emf_anchor_credit_sum+value.paid_photo_anchor_total_credit_sum).toFixed(3)%></a>
  27. </td>
  28. </tr>
  29. <%}%>
  30. </tbody>
  31. </table>
  32. <%if(data.length <= 0){%>
  33. <div class="noData" style="width: 928px;">No data</div>
  34. <%}%>
  35. <div class="tips">Note: the data summary is based on GMT+0.</div>
  36. </div>
  37. </div>
  38. </div>
  39. <div id="page" class="pagenation"></div>
  40. </div>
  41. </div>
  42. <!-- right content end -->
  43. </div>
  44. <script>
  45. $(function(){
  46. //分页
  47. var pages = Math.ceil('<%=count.total%>'/'<%=step%>');
  48. if(pages>1) {
  49. page('page', pages);
  50. }
  51. })
  52. </script>