qr-display.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {template 'common/header'}
  2. <div class="we7-page-title">二维码管理</div>
  3. <ul class="we7-page-tab">
  4. <li><a href="{php echo url('platform/qr/list');}">二维码列表</a></li>
  5. <li class="active"><a href="{php echo url('platform/qr/display');}">二维码扫描统计</a></li>
  6. </ul>
  7. <div class="we7-padding-bottom clearfix">
  8. <form action="./index.php" method="get" role="form">
  9. <input type="hidden" name="c" value="platform">
  10. <input type="hidden" name="a" value="qr">
  11. <input type="hidden" name="do" value="display">
  12. <div class="we7-form form-inline">
  13. <div class="pull-left we7-margin-right">
  14. <label class="control-label col-sm-3">时间范围</label>
  15. <div class="form-controls col-sm-8">
  16. {php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d', $starttime),'endtime'=>date('Y-m-d', $endtime)));}
  17. </div>
  18. </div>
  19. <div class="pull-left">
  20. <label class="control-label col-sm-3">二维码名称</label>
  21. <div class="form-controls col-sm-8">
  22. <div class="input-group">
  23. <input type="text" name="keyword" value="{$_GPC['keyword']}" style="width:300px" class="form-control" placeholder="请输入场景名称">
  24. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </form>
  30. </div>
  31. <div class="panel we7-panel" id="qr-scan-statistics" ng-controller="QrStatistics">
  32. <div class="panel-heading">
  33. 详细数据&nbsp;&nbsp;&nbsp;&nbsp;<span class="text-muted" style="color:red;">扫描次数:{$count}</span>
  34. <div class="pull-right" ><span style="vertical-align: 8px;">开启后只记录首次扫描次数:</span><a class="switch {if $status} switchOn {/if}" style="display: inline-block;" ng-click="changeStatus()"></a></div>
  35. </div>
  36. </div>
  37. <table class="table we7-table table-hover">
  38. <col/>
  39. <col width="210px"/>
  40. <col width="110px"/>
  41. <col width="180px"/>
  42. <tr>
  43. <th>场景名称</th>
  44. <th>粉丝</th>
  45. <th>关注/扫描</th>
  46. <th>扫描时间</th>
  47. </tr>
  48. {loop $list $row}
  49. <tr>
  50. <td class="font-defalut">{$row['name']}</td>
  51. <td class="font-defalut">
  52. <a href="#" title="{$row['openid']}">
  53. {if $nickname[$row['openid']]['nickname']}
  54. {$nickname[$row['openid']]['nickname']}
  55. {else}
  56. {php echo cutstr($row['openid'], 15)}
  57. {/if}
  58. </a>
  59. </td>
  60. <td class="font-defalut">{if $row['type'] ==1}关注{else}扫描{/if}</td>
  61. <td class="font-sm">{php echo date('Y-m-d H:i:s', $row[createtime]);}</td>
  62. </tr>
  63. {/loop}
  64. </table>
  65. <div class="text-right">
  66. {$pager}
  67. </div>
  68. <script type="text/javascript">
  69. angular.module('qrApp').value('config', {
  70. link: {
  71. 'changeStatus' : "{php echo url('platform/qr/change_status')}"
  72. }
  73. });
  74. angular.bootstrap($('#qr-scan-statistics'), ['qrApp']);
  75. </script>
  76. {template 'common/footer'}