人人商城

qr-display.html 3.2KB

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