qr-list.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {template 'common/header'}
  2. <div class="we7-page-title">二维码管理</div>
  3. <ul class="we7-page-tab">
  4. <li class="active"><a href="{php echo url('platform/qr/list');}">二维码列表</a></li>
  5. <li><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. <div class="input-group pull-left col-sm-4">
  10. <input type="hidden" name="c" value="platform">
  11. <input type="hidden" name="a" value="qr">
  12. <input type="text" name="keyword" value="{$keyword}" class="form-control" placeholder="请输入场景名称"/>
  13. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  14. </div>
  15. </form>
  16. <div class="pull-right">
  17. {if $_W['account']['level'] == 4}<a href="{php echo url('platform/url2qr');}" class="btn btn-default">长链接转二维码</a>{/if}
  18. <a href="{php echo url('platform/qr/post');}" class="btn btn-primary we7-margin-left">+生成关键二维码</a>
  19. </div>
  20. </div>
  21. <table class="table we7-table table-hover vertical-middle" id="js-qr-list" ng-controller="QrDisplay" ng-cloak>
  22. <col width="100px"/>
  23. <col width="120px" />
  24. <col width="120px" />
  25. <col width="115px" />
  26. <col width="115px"/>
  27. <col>
  28. <tr>
  29. <th></th>
  30. <th>二维码名称</th>
  31. <th>对应关键字</th>
  32. <th class="text-left">生成时间</th>
  33. <th>到期时间</th>
  34. <th class="text-right">操作</th>
  35. </tr>
  36. {loop $list $row}
  37. <tr>
  38. <td><a href="{$row['showurl']}" target="_blank"><img src="{$row['showurl']}" alt="12312" width="50px" height="50px"/></a></td>
  39. <td title="{$row['name']}">{php echo cutstr($row['name'], 8)}</td>
  40. <td title="{$row['keyword']}">{php echo cutstr($row['keyword'], 8)}</td>
  41. <td class="text-left">{php echo date('Y-m-d H:i:s', $row[createtime]);}</td>
  42. <td>{$row[endtime]}</td>
  43. <td>
  44. <div class="link-group">
  45. <a href="javascript:;" data-url="{$row['showurl']}" class="we7-margin-right-sm js-clip">复制链接</a>
  46. <a href="{php echo url('platform/qr/down_qr', array('id' => $row['id']))}">下载</a>
  47. <a href="{php echo url('platform/qr/post', array('id'=> $row['id']))}" >编辑</a>
  48. {if $row['model'] == 2}
  49. <a href="{php echo url('platform/qr/del', array('id'=> $row['id']))}" class="del" onclick="return confirm('您确定要删除该二维码以及其统计数据吗?')">删除</a>
  50. {/if}
  51. {if $row['model'] == 1}<a href="{php echo url('platform/qr/extend', array('id'=> $row['id']))}" >延时</a>{/if}
  52. </div>
  53. </td>
  54. </tr>
  55. {/loop}
  56. </table>
  57. <div class="help-block">
  58. <a href="{php echo url('platform/qr/del', array('scgq'=> '1'))}" onclick="javascript:return confirm('您确定要删除吗?\n将删除所有过期二维码以及其统计数据!!!')" class="btn btn-primary" style="margin-bottom:15px">删除全部已过期二维码</a>
  59. <span style="vertical-align:super">注意:永久二维码无法在微信平台删除,但是您可以点击<span class="color-red">要删除数据后面的删除按钮</span>来删除本地数据。</span>
  60. </div>
  61. <div class="text-right">
  62. {$pager}
  63. </div>
  64. <script>
  65. angular.bootstrap($('#js-qr-list'), ['qrApp']);
  66. </script>
  67. {template 'common/footer'}