| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <include file="public@header"/>
- </head>
- <style>
- .form-inline .form-control {
- margin: 10px 0;
- vertical-align: middle;
- }
- .form-inline span {
- margin-left: 5px;
- vertical-align: middle;
- }
- .margin-left-10 {
- margin-left: 10px;
- }
- .profile em {
- font-style: normal;
- color: #0b6cbc;
- }
- .profile em.red {
- color: red;
- }
- span.sort {
- color: red;
- display: inline-block;
- margin-left: 2px;
- vertical-align: middle;
- }
- td .info {
- display: flex;
- }
- td .info a {
- position: relative;
- display: inline-block;
- width: 30px;
- height: 30px;
- }
- td .info span {
- vertical-align: top;
- padding: 0px 4px;
- }
- td img.avatar, td img.sex {
- width: 30px;
- height: 30px;
- vertical-align: middle;
- border-radius: 100%;
- }
- td img.sex {
- position: absolute;
- z-index: 2;
- width: 12px;
- height: 12px;
- left: 0;
- right: 0;
- bottom: 0;
- margin: 0 auto;
- }
- .form .form-control {
- margin-bottom: 20px;
- }
- .form .control-label {
- text-align: center;
- }
- .form label {
- text-align: left;
- margin-bottom: 10px;
- margin-right: 10px;
- }
- .radio-inline+.radio-inline, .checkbox-inline+.checkbox-inline {
- margin-left: 0;
- }
- .table-actions span {
- margin-right: 10px;
- font-weight: bold;
- }
- .table-actions span em {
- font-style: normal;
- color: red;
- }
- .layui-layer-page .layui-layer-content {
- overflow: hidden !important;
- }
- span.expired {
- color: red;
- }
- .js-bootstrap-date {
- line-height: 22px !important;
- }
- .count-label {
- font-size: 16px;
- color: #0B90C4;
- margin-bottom: 10px;
- }
- span.count {
- color: #0B90C4;
- }
- </style>
- <body>
- <div class="wrap js-check-wrap">
- <ul class="nav nav-tabs">
- <li class="active"><a>渠道推广码列表</a>
- </li>
- <li><a href="{:url('admin/channels/add')}">添加渠道码</a></li>
- </ul>
- <form id="search" class="well form-inline margin-top-20" method="post" action="{:url('admin/channels/index')}">
- <span>渠道名称:</span>
- <input class="form-control" type="text" name="name" style="width: 150px;" value="{:input('request.name')}"
- placeholder="渠道名称关键词">
- <span>类型:</span>
- <select class="form-control" name="type" id="type" style="width: 150px;margin-right:10px;">
- <option value="1" <if condition="$params.type==1">selected</if>>广告推广</option>
- <option value="2" <if condition="$params.type==2">selected</if>>相亲卡</option>
- </select>
- <input id="sort" type="hidden" name="sort" value="{$params.sort?$params.sort: 1}">
- <input id="sortType" type="hidden" name="sort_type" value="{$params.sort_type?$params.sort_type: 'desc'}">
- <input type="submit" class="btn btn-primary margin-left-10 " value="搜索"/>
- <a class="btn btn-default margin-left-10" href="{:url('admin/channels/index')}">清空</a>
- </form>
- <form class="form-horizontal js-ajax-form margin-top-20" role="form">
- <div class="table-actions tags">
- <a class="count-label">累计推广:{$total}人</a>
- </div>
- <table class="table table-hover table-bordered">
- <thead>
- <tr>
- <th width="80">ID</th>
- <th width="150">渠道码名称</th>
- <th width="150">渠道码</th>
- <th width="150">授权链接</th>
- <th width="150">朋友圈链接</th>
- <th width="80">类型</th>
- <th width="100" align="center">总推广数</th>
- <th width="100">备注</th>
- <th width="80">状态</th>
- <th width="175">创建时间 <span class="row sort join-time" data-status="{$params.sort == 4? $params.sort_type : 'desc'}" onclick="sort(this,4)"><if condition="$params.sort eq 4 && $params.sort_type eq 'asc'">↓<else>↑</if></span></th>
- <th width="180">操作</th>
- </tr>
- </thead>
- <tbody>
- <foreach name="list" item="vo">
- <tr>
- <td>{$vo.id}</td>
- <td>
- {$vo.name}
- </td>
- <td>
- <a href="{$vo.qrcode}" target="_blank"><img class="qrcode" width="60px" height="60px" src="{$vo.qrcode}"></a>
- </td>
- <td >
- <a title="点击查看" target="_blank" style="text-decoration: underline" href='{$vo.share_url}'><span class="count">查看链接</span></a>
- </td>
- <td >
- <a title="点击查看" target="_blank" style="text-decoration: underline"><span class="count">{$vo.share_url1}</span></a>
- </td>
- <td>广告推广</td>
- <td >
- <a title="查看推广用户" style="text-decoration: underline" href='{:url("admin/channels/shares",array("share_id"=>$vo["id"]))}'><span class="count">{$vo['share_count']?$vo['share_count']:0}</span></a>
- </td>
- <td>
- {$vo.remark}
- </td>
- <td>
- <if condition="$vo['status'] eq 1">
- <span style="color: green;">有效</span>
- <else>
- <span style="color: red;">无效</span>
- </if>
- </td>
- <td>{$vo['create_time']}</td>
- <td>
- <a class="btn btn-xs btn-primary" href='{:url("admin/channels/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
- <a class="btn btn-xs btn-warning" href='{:url("admin/channels/shares",array("share_id"=>$vo["id"]))}'>推广统计</a>
- <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('admin/channels/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
- </td>
- </foreach>
- </tbody>
- </table>
- <div class="pagination">{$page}</div>
- </form>
- </div>
- <script src="__STATIC__/js/admin.js"></script>
- <script src="__STATIC__/js/clipboard.min.js"></script>
- <script src="__STATIC__/js/layer/layer.js"></script>
- <script src="__STATIC__/js/position/position1.js" type="text/javascript"></script>
- <script src="__STATIC__/js/height/height.js" type="text/javascript"></script>
- <script>
- /**
- * 排序
- * @param type
- */
- function sort(ele,type){
- $("#sort").val(type);
- var status = $(ele).attr('data-status');
- $("#sortType").val(status=='desc'? 'asc': 'desc');
- $(ele).html(status == 'desc'? '↓' : '↑');
- $(ele).attr('data-status', status=='desc'? 'asc': 'desc');
- $("#search").submit();
- }
- </script>
- </body>
- </html>
|