人人商城

stat-history.html 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {template 'common/header'}
  2. <div class="panel panel-info">
  3. <div class="panel-heading">筛选</div>
  4. <div class="panel-body">
  5. <form action="./index.php" method="get" class="form-horizontal" role="form">
  6. <input type="hidden" name="c" value="platform">
  7. <input type="hidden" name="a" value="stat">
  8. <input type="hidden" name="do" value="history">
  9. <input type="hidden" name="searchtype" value="{$_GPC['searchtype']}">
  10. <div class="form-group">
  11. <label class="col-xs-12 col-sm-3 col-md-2 control-label">规则类型</label>
  12. <div class="col-sm-8 col-lg-9 col-xs-12">
  13. <div class="btn-group">
  14. <a href="{php echo filter_url('searchtype:');}" class="btn {if $_GPC['searchtype'] == ''}btn-primary{else}btn-default{/if}">不限</a>
  15. <a href="{php echo filter_url('searchtype:rule');}" class="btn {if $_GPC['searchtype']== 'rule'}btn-primary{else}btn-default{/if}">已有规则回复</a>
  16. <a href="{php echo filter_url('searchtype:default');}" class="btn {if $_GPC['searchtype'] == 'default'}btn-primary{else}btn-default{/if}">默认规则回复</a>
  17. </div>
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="col-xs-12 col-sm-3 col-md-2 control-label">内容关键字</label>
  22. <div class="col-sm-6 col-lg-8 col-xs-12" >
  23. <input type="text" name="keyword" class="form-control" value="{$_GPC['keyword']}" placeholder="请输入内容关键字">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="col-xs-12 col-sm-3 col-md-2 control-label">日期范围</label>
  28. <div class="col-sm-6 col-xs-12 col-lg-8 col-xs-12">
  29. {php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d', $starttime),'endtime'=>date('Y-m-d', $endtime)));}
  30. </div>
  31. <div class="pull-right col-xs-12 col-sm-3 col-lg-2">
  32. <button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
  33. </div>
  34. </div>
  35. </form>
  36. </div>
  37. </div>
  38. <div class="panel panel-default">
  39. <div class="panel-heading">
  40. 详细数据
  41. </div>
  42. <div class="table-responsive panel-body">
  43. <table class="table table-hover">
  44. <thead>
  45. <tr>
  46. <th style="width:10%;">用户</th>
  47. <th style="width:20%;">内容</th>
  48. <th style="width:20%;">规则</th>
  49. <th style="width:20%;">模块</th>
  50. <th style="width:20%;">时间</th>
  51. <th style="width:10%;">操作</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. {loop $list $row}
  56. <tr>
  57. <td>
  58. <a href="#" title="{$row['from_user']}">{php echo cutstr($row['from_user'], 8, '.')}</a>
  59. </td>
  60. <td align="left" class="row-hover wexin-image">
  61. <div style="max-width:515px; overflow:hidden; word-break:break-all; word-wrap:break-word;">{$row['message']}</div>
  62. </td>
  63. <td>
  64. {if empty($row['rid']) && $row['module']}
  65. 该消息由<span class="text-danger">{$row['module']}</span>模块直接处理
  66. {elseif $row['rid']}
  67. <a target="main" href="{$rules[$row['rid']]['url']}">{php echo cutstr($rules[$row['rid']]['name'], 6)}</a>
  68. {else}
  69. 未触发规则
  70. {/if}
  71. </td>
  72. <td>
  73. {if $row['module'] == 'default'}
  74. 没有回复规则,由<span class="text-danger">default</span>模块处理
  75. {else}
  76. {if $rules[$row['rid']]['module']}
  77. {$rules[$row['rid']]['module']}
  78. {elseif $row['module']}
  79. {$row['module']}
  80. {else}
  81. 未触发模块
  82. {/if}
  83. {/if}
  84. </td>
  85. <td style="font-size:12px; color:#666;">
  86. {php echo date('Y-m-d <br /> H:i:s', $row[createtime]);}
  87. </td>
  88. <td>
  89. <a href="{php echo url('platform/stat/del', array('op' => 'history', 'id' => $row['id']))}" onclick="return confirm('删除后不能恢复,您确定删除吗?')">删除</a>
  90. </td>
  91. </tr>
  92. {/loop}
  93. </tbody>
  94. </table>
  95. </div>
  96. </div>
  97. {$pager}
  98. {template 'common/footer'}