12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- {template 'common/header'}
- <div class="we7-page-title">二维码管理</div>
- <ul class="we7-page-tab">
- {loop $active_sub_permission $active_menu}
- {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']))}
- <li {if $do == $active_menu['active']}class="active"{/if}><a href="{$active_menu['url']}">{$active_menu['title']}</a></li>
- {/if}
- {/loop}
- </ul>
- <div class="we7-padding-bottom clearfix">
- <form action="./index.php" method="get" role="form">
- <input type="hidden" name="c" value="platform">
- <input type="hidden" name="a" value="qr">
- <input type="hidden" name="do" value="display">
- <div class="we7-form form-inline">
- <div class="pull-left we7-margin-right">
- <label class="control-label col-sm-3">时间范围</label>
- <div class="form-controls col-sm-8">
- {php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d', $starttime),'endtime'=>date('Y-m-d', $endtime)));}
- </div>
- </div>
- <div class="pull-left">
- <label class="control-label col-sm-3">二维码名称</label>
- <div class="form-controls col-sm-8">
- <div class="input-group">
- <input type="text" name="keyword" value="{$_GPC['keyword']}" style="width:300px" class="form-control" placeholder="请输入场景名称">
- <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
- <div class="panel we7-panel" id="qr-scan-statistics" ng-controller="QrStatistics">
- <div class="panel-heading">
- 详细数据 <span class="text-muted" style="color:red;">扫描次数:{$count}</span>
- <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>
- </div>
- </div>
- <table class="table we7-table table-hover">
- <col/>
- <col width="210px"/>
- <col width="110px"/>
- <col width="180px"/>
- <tr>
- <th>二维码名称</th>
- <th>场景名称</th>
- <th>粉丝</th>
- <th>关注/扫描</th>
- <th>扫描时间</th>
- </tr>
-
- {loop $list $row}
- <tr>
- <td class="font-defalut">{$row['name']}</td>
- <td class="font-defalut">{php echo $row['qrcid'] == '0' ? $row['scene_str'] : '无' }</td>
- <td class="font-defalut">
- <a href="#" title="{$row['openid']}">
- {if $nickname[$row['openid']]['nickname']}
- {$nickname[$row['openid']]['nickname']}
- {else}
- {php echo cutstr($row['openid'], 15)}
- {/if}
- </a>
- </td>
- <td class="font-defalut">{if $row['type'] ==1}关注{else}扫描{/if}</td>
- <td class="font-sm">{php echo date('Y-m-d H:i:s', $row[createtime]);}</td>
- </tr>
- {/loop}
- </table>
- <div class="text-right">
- {$pager}
- </div>
- <script type="text/javascript">
- angular.module('qrApp').value('config', {
- link: {
- 'changeStatus' : "{php echo url('platform/qr/change_status')}"
- }
- });
- angular.bootstrap($('#qr-scan-statistics'), ['qrApp']);
- </script>
- {template 'common/footer'}
|