mass-send.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {template 'common/header'}
  2. <div class="we7-page-title">
  3. 素材定时群发
  4. </div>
  5. <ul class="we7-page-tab">
  6. <li {if $_GPC['a'] == 'mass' && $do == 'list'}class="active"{/if}>
  7. <a href="{php echo url('platform/mass/')}" >素材定时群发</a>
  8. </li>
  9. <li {if $_GPC['a'] == 'mass' && $do == 'send'}class="active"{/if}>
  10. <a href="{php echo url('platform/mass/send')}">群发记录</a>
  11. </li>
  12. </ul>
  13. <div class="mass-send" id="js-mass-send" ng-controller="MassSend" ng-cloak>
  14. <table class="table we7-table table-hover vertical-middle">
  15. <col />
  16. <tr>
  17. <th>消息类型</th>
  18. <th>接收用户组</th>
  19. <th>预计发送时间</th>
  20. <th>发送人数</th>
  21. <th>状态</th>
  22. <th>操作</th>
  23. </tr>
  24. {loop $lists $list}
  25. <tr>
  26. <td>
  27. <a href="{php echo url('platform/material/list', array('type' => $list['msgtype'], 'id' => $list['attach_id']));}" target="_blank">
  28. {$types[$list['msgtype']]}
  29. </a>
  30. </td>
  31. <td>{$list['groupname']}</td>
  32. <td>{php echo date('Y-m-d H:i', $list['sendtime']);}</td>
  33. <td>{if $list['group'] == '-1'}全部粉丝{else}{$list['fansnum']}{/if}</td>
  34. <td>
  35. {if !$list['status']}
  36. <span class="label label-success">已发送</span>
  37. {elseif $list['status'] == 1}
  38. <span class="label label-warning">未发送</span>
  39. {elseif $list['status'] == 2}
  40. <span class="label label-danger">发送失败</span>
  41. {/if}
  42. </td>
  43. <td>
  44. {if $list['type'] == 1}
  45. {if !$list['cron_id'] && $list['sendtime'] > TIMESTAMP}
  46. <a href="{php echo url('platform/mass/cron', array('id' => $list['id']));}" class="btn btn-danger btn-sm">同步到云服务</a>
  47. {/if}
  48. <a href="{php echo url('platform/mass/post', array('id' => $list['id']));}" data-toggle="tooltip" data-placement="bottom">编辑</a>
  49. <a href="{php echo url('platform/mass/del', array('id' => $list['id']));}" data-toggle="tooltip" data-placement="bottom">删除</a>
  50. {/if}
  51. </td>
  52. </tr>
  53. {/loop}
  54. </table>
  55. <div class="text-right">
  56. {$pager}
  57. </div>
  58. </div>
  59. <script>
  60. angular.module('massApp').value('config', {
  61. logUrl: "{php echo url('cron/manager/log');}"
  62. });
  63. angular.bootstrap($('#js-mass-send'), ['massApp']);
  64. </script>
  65. {template 'common/footer'}