人人商城

qr-list.html 3.6KB

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