xiaoxicenter.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. {template 'common/header'}
  2. </style>
  3. <ul class="nav nav-tabs">
  4. <li class="{$active8}"><a href="{php echo $this->createWebUrl('Getuserlist');}">用户列表</a></li>
  5. <li class="{$active7}"><a href="{php echo $this->createWebUrl('xiaoxilist');}">消息记录</a></li>
  6. </ul>
  7. {if $active7 == 'active'}
  8. <div class="clearfix" ng-controller="memberProperty" id="memberProperty">
  9. <form action="{php echo $this->createWebUrl('xiaoxilist');}" method="post" class="form-horizontal">
  10. <div class="we7-page-search cut-header">
  11. <div class="cut-search">
  12. <div class="input-group pull-left">
  13. <input class="form-control ng-pristine ng-valid ng-empty ng-touched" name="search" ng-model="searchKeyword" type="text" placeholder="请要查询的关键词" ng-keypress="searchKeywordModule()" style="">
  14. <span class="input-group-btn"><button class="btn btn-default button" ng-click="searchKeywordModule()"><i class="fa fa-search"></i></button></span>
  15. </div>
  16. </div>
  17. </div>
  18. </form>
  19. <div> </div>
  20. <div class="panel panel-default">
  21. <div class="panel-heading">
  22. 记录 总数:{$count} 当前显示 {php echo $page*$pagelist}-{php echo $page*$pagelist+$pagelist}
  23. </div>
  24. <div class="panel-body">
  25. <div class="form-group">
  26. <table class="table table-hover">
  27. <tr><th>客服 </th><th> 内容 </th> <th> 客户 </th><th> 时间 </th> <th> 状态 </th>
  28. {loop $alllist $indexid $nav}
  29. <tr>
  30. <th style="color:DodgerBlue;" width=20%> {$nav['kfname']}</th>
  31. <th {if $nav['kfname']<>'' } style="color:Sienna; text-align:left;"
  32. {else}
  33. style="color:ForestGreen; text-align:right;"
  34. {/if} width=40%>
  35. {if $nav['type']=='image'}
  36. <a target="_blank" href="{$nav['keyword']}"> 图片[微信内可见] </a>
  37. {else}
  38. {$nav['keyword']}
  39. {/if}
  40. </th>
  41. <th width=20%> {$nav['khname']}</th>
  42. <th width=20%> {php echo date('Y-m-d h:i:s',($nav['updatetime']));}</th>
  43. <th width=20%>
  44. {if $nav['zhuangtai']==0} 送达 {else} 失败{/if}</th>
  45. </tr>
  46. {/loop}
  47. </table>
  48. <div class="form-controls col-sm-3 help-block"> </div>
  49. </div>
  50. </div>
  51. </div>
  52. {if $_GPC['search']==''}
  53. <div class="text-right we7-margin-top">
  54. <div><ul class="pagination pagination-centered">
  55. {if $page>1}
  56. <li><a href="{php echo $this->createWebUrl('xiaoxilist');}&search={$_GPC['search']}&khopenid={$_GPC['khopenid']}&page={php echo $page-1;}" class="pager-nav">«上一页</a></li>
  57. {/if}
  58. {loop $pages $indexid $nav}
  59. <li {if $nav==$page} class="active" {/if}><a href="{php echo $this->createWebUrl('xiaoxilist');}&search={$_GPC['search']}&khopenid={$_GPC['khopenid']}&page={$nav}">{$nav}</a></li>
  60. {/loop}
  61. {if $pagecount>$page}
  62. <li><a href="{php echo $this->createWebUrl('xiaoxilist');}&search={$_GPC['search']}&khopenid={$_GPC['khopenid']}&page={php echo $page+1;}" class="pager-nav">下一页»</a></li>
  63. <li><a href="{php echo $this->createWebUrl('xiaoxilist');}&search={$_GPC['search']}&khopenid={$_GPC['khopenid']}&page={php echo $pagecount;}" class="pager-nav">尾页</a></li>
  64. {/if}
  65. </ul></div> </div>
  66. {/if}
  67. </div>
  68. {else}
  69. {/if}
  70. {if $active8 == 'active'}
  71. <div class="clearfix" ng-controller="memberProperty" id="memberProperty">
  72. <div class="panel panel-default">
  73. <div class="panel-heading">
  74. 用户总数:{$alluser} <span class="label label-success"> <a href="?c=site&a=entry&do=Getuserlist&m=qidong_app&isall=1">查看</a> </span> 可群发客户: {$count_hc} <span class="label label-success"> <a href="?c=site&a=entry&do=Getuserlist&m=qidong_app&isall=0">查看</a> </span>
  75. <br> <a class="label label-info" href="{php echo $this->createWebUrl('finduidwx');}">一键更新公众号用户信息[时间较长,仅限对接公众号使用]</a>
  76. &nbsp <a class="label label-warning" href="{php echo $this->createWebUrl('findtableuid');}">一键更新小程序用户信息[时间较长,仅限已设置数据源的使用]</a>
  77. </div>
  78. <div class="panel-body">
  79. <table class="table table-hover">
  80. <thead>
  81. <tr>
  82. <th>id</th>
  83. <th>昵称</th>
  84. <th>openid</th>
  85. <th>下线时间</th>
  86. <th>客服</th>
  87. <th>消息记录</th>
  88. </tr>
  89. </thead>
  90. <tbody id="list">
  91. {loop $wxapp_list $indexid $nav}
  92. <tr>
  93. <th>{$nav['id']}
  94. {if $nav['avartar']<>''}<img src='{$nav['avartar']}' width=50>{/if}
  95. </th>
  96. <th> {$nav['nickname']} [{$nav['zhuangtai']}] </th>
  97. <th>{$nav['openid']}</th>
  98. <th> {php echo date("Y-m-d H:i:s",$nav['lasttime']);}</th>
  99. <th>{$nav['lastliao']} </th> <th>
  100. <a href="{php echo $this->createWebUrl('xiaoxilist');}&khopenid={$nav['openid']}">查看</a>
  101. </th> </tr>
  102. {/loop}
  103. </tbody>
  104. </table>
  105. </div>
  106. </div>
  107. <div class="text-right we7-margin-top"> <div><ul class="pagination pagination-centered">
  108. {if $page>1}
  109. <li><a href="{php echo $this->createWebUrl('Getuserlist');}&isall=1&page={php echo $page-1;}" class="pager-nav">«上一页</a></li>
  110. {/if}
  111. {loop $pages $indexid $nav}
  112. <li {if $nav==$page} class="active" {/if}><a href="{php echo $this->createWebUrl('Getuserlist');}&isall=1&page={$nav}">{$nav}</a></li>
  113. {/loop}
  114. {if $pagecount>$page}
  115. <li><a href="{php echo $this->createWebUrl('Getuserlist');}&isall=1&page={php echo $page+1;}" class="pager-nav">下一页»</a></li>
  116. <li><a href="{php echo $this->createWebUrl('Getuserlist');}&isall=1&page={php echo $pagecount;}" class="pager-nav">尾页</a></li>
  117. {/if}
  118. </ul></div> </div>
  119. </form>
  120. </div>
  121. {else}
  122. {/if}
  123. {template 'common/footer'}