Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

116 рядки
5.4 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>我的票夹 - 用户中心 - {$kx.config.sitename}</title>
  6. <link rel="stylesheet" href="{$kx.config.resurl}/template/kxwebno1/css/global.css"/>
  7. <link rel="stylesheet" href="{$kx.config.resurl}/template/kxwebno1/css/style.css"/>
  8. </head>
  9. <body>
  10. <!-- 头部 -->
  11. {include file="/system/header"}
  12. <!-- 内容 -->
  13. <div class="pt-content">
  14. <!-- 面包屑 -->
  15. <div class="pt-crumb">
  16. <img src="{$kx.config.resurl}/template/kxwebno1/images/crumb_icon.png" class="pt-crumb-icon">
  17. <span class="color5">
  18. <a href="{$kx.config.siteurl}">{$kx.config.sitename}</a> > <a href="{link=user.index.index}" class="color5">用户中心</a> > <a href="{link=user.vote.index}">我的推荐</a>
  19. </span>
  20. </div>
  21. <style>
  22. .pt-bar .pt-bar-item{
  23. float: left;
  24. width:131px;
  25. height:50px;
  26. line-height: 50px;
  27. text-align: center;
  28. background-color: #E5E5E5;
  29. border-top: 4px solid #E5E5E5;
  30. color: #929297;
  31. }
  32. .pt-bar .pt-bar-item.pt-active,
  33. .pt-bar .pt-bar-item:hover{
  34. background: #fff;
  35. border-top: 4px solid #f55;
  36. color: #323237;
  37. }
  38. </style>
  39. <!-- 一楼 -->
  40. <div class="pt-floor1">
  41. {include file="/system/userleft"}
  42. <div class="ml10 fl" style="width: 950px;">
  43. <ul class="pt-bar">
  44. <a href="{link=user.assets.index}"><li class="pt-bar-item">资产概览</li></a>
  45. <a href="{link=user.ticket.index}"><li class="pt-bar-item pt-active">我的票夹</li></a>
  46. <a href="{link=user.pay.recharge}" class="bg-red color1 fr ptb5 plr20 mt10 mr10">
  47. <img style="vertical-align: middle" src="{$kx.config.resurl}/template/kxwebno1/images/rmb.png" alt="充值">
  48. <span>充值</span>
  49. </a>
  50. </ul>
  51. <div class="clear"></div>
  52. <div class="bg-white plr20 ptb20">
  53. <div class="size18 color32 bold">当前可用{$kx.config.user.ticket_caption}(张)</div>
  54. <div class="color2 bold" style="font-size: 35px;">{$stat.surplus}</div>
  55. <p>累计获得 {$stat.total} 张,共计投票 {$stat.used} 张,{$stat.expire} 张过期未使用。</p>
  56. </div>
  57. <div class="bg-white plr20 ptb20 mt20 pt-user-table" style="min-height: 415px;">
  58. <h1 class="color32 size18 bold mb20">历史记录</h1>
  59. {block method="pagination" name="paginate" page=$page limit=$pagesize count=$count maxpage=50 section=3}
  60. {block method="user.ticketList" name=tickets userid=$userinfo.id page=$page}
  61. <table>
  62. <thead>
  63. <tr>
  64. <th>时间</th>
  65. <th>数量</th>
  66. <th>类别</th>
  67. <th>备注</th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. {if empty($tickets)}
  72. <tr>
  73. <td colspan="4">您似乎来到了没有数据存在的荒原~~~</td>
  74. </tr>
  75. {else}
  76. {section loop=$tickets item=$loop}
  77. <tr>
  78. <td>{$loop.create_time|date="Y-m-d"}</td>
  79. <td><span class="bold" style="color: #{$loop.type|default="","F55","14B723"};">{$loop.type|default="","+","-"}{$loop.num}</span> 张</td>
  80. <td>{$loop.type|default="未知","获得","投票"}</td>
  81. <td>{=is_numeric($loop.ext)?$loop.ext.'消费返还':$loop.ext}</td>
  82. </tr>
  83. {/section}
  84. {/if}
  85. </tbody>
  86. </table>
  87. <!-- 分页 -->
  88. {if !empty($tickets) && $paginate.total>1}
  89. <div class="pt-pages">
  90. <div class="pt30 color5">
  91. {if $paginate.prev}
  92. <a href="{link=user.vote.index page=$paginate.prev}"><span><</span></a>
  93. {else}
  94. <span class="disable"><</span>
  95. {/if}
  96. {loop=paginate.items}
  97. <a href="{link=user.vote.index page=$loop.num}">
  98. <span class="{$loop.status|default='','pt-pages-select'}">{$loop.num}</span>
  99. </a>
  100. {/loop}
  101. {if $paginate.next}
  102. <a href="{link=user.vote.index page=$paginate.next}"><span>></span></a>
  103. {else}
  104. <span class="disable">></span>
  105. {/if}
  106. </div>
  107. </div>
  108. {/if}
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. {include file="/system/footer"}
  114. </body>
  115. </html>