index.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <div class="titlebar">
  2. <div class="fn-left"><i class="iconfont icon-line-chart_icon"></i> 数据统计</div>
  3. <form class="input-group" id="form" action="{:url('sign/index')}">
  4. <div class="fn-right">
  5. <input url="{:url('system/passport.user/selectUser')}" id="uid" placeholder="用户ID" class="input w100 selectID" type="text" name="uid" value="{$uid}" />
  6. <input type="submit" value="搜索" class="button button-blue" />
  7. </div>
  8. <div class="fn-right">
  9. <input placeholder="开始时间" class="input w100 ui-date" type="text" name="starttime" readonly autocomplete="false" value="{$starttime}"/>
  10. <input placeholder="结束时间" class="input w100 ui-date" type="text" name="endtime" readonly autocomplete="false" value="{$endtime}"/>
  11. </div>
  12. </form>
  13. <div class="fn-right button-group">
  14. <a href="{:url('sign/index',['time' => 1])}" class="button {$time==1?'button-violet':''}">今日</a>
  15. <a href="{:url('sign/index',['time' => 2])}" class="button {$time==2?'button-violet':''}">昨日</a>
  16. <a href="{:url('sign/index',['time' => 30])}" class="button {$time==30?'button-violet':''}">本月</a>
  17. <a href="{:url('sign/index',['time' => 60])}" class="button {$time==60?'button-violet':''}">上月</a>
  18. </div>
  19. </div>
  20. <div class="titlebar"><i class="iconfont icon-text_icon"></i>签到用户列表</div>
  21. <table class="table table-border">
  22. <thead>
  23. <tr>
  24. <th class="w60 fn-tac">No.</th>
  25. <th class="w80">邀请码</th>
  26. <th class="w100">手机号</th>
  27. <th class="w80 fn-tac"></th>
  28. <th>微信昵称</th>
  29. <th class="w140">签到天数</th>
  30. <th class="w140">签到积分</th>
  31. <th class="w140">登录IP</th>
  32. <th class="w140">开始时间</th>
  33. <th class="w140">创建时间</th>
  34. <th class="w70 fn-tac">状态</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. {foreach $lists as $vo}
  39. <tr>
  40. <td class="fn-tac red">{$vo.id}</td>
  41. <td>{$vo.user.invite_code}</td>
  42. <td>{$vo.user.phone_uid}</td>
  43. <td class="fn-tac"><img src="{$vo.user['face']}" class="w40" /></td>
  44. <td>{$vo.user.nickname}</td>
  45. <td>{$vo.days}</td>
  46. <td>{$vo.points}</td>
  47. <td>{$vo.user.login_ip}</td>
  48. <td>{$vo.startime|date='Y-m-d H:i'}</td>
  49. <td>{$vo->signtime|date='Y-m-d H:i'}</td>
  50. <td class="fn-tac li">{if $vo.user.is_lock}<span class="badge bg-red">锁定</span>{else}<span class="badge">正常</span>{/if}</td>
  51. </tr>
  52. {/foreach}
  53. </tbody>
  54. </table>
  55. {$lists|raw}
  56. <script type="text/javascript">
  57. Do('base','form','layer','tip','date', function () {
  58. $('#form').isForm({types:1});
  59. $(".selectID").win();
  60. })
  61. </script>