12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- {template 'common/header'}
- {if empty($id)}
- <div class="we7-page-title">
- 素材定时群发
- </div>
- <ul class="we7-page-tab">
- {loop $active_sub_permission $active_menu}
- {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']))}
- <li {if $do == $active_menu['active']}class="active"{/if}><a href="{$active_menu['url']}">{$active_menu['title']}</a></li>
- {/if}
- {/loop}
- </ul>
- {/if}
- <div class="">
- {if !empty($id)}
- <ol class="breadcrumb we7-breadcrumb">
- <a href="{php echo url('platform/mass/send')}"><i class="wi wi-back-circle"></i> </a>
- <li><a href="{php echo url('platform/mass/')}">定时群发</a></li>
- <li><a href="{php echo url('platform/mass/post')}">编辑</a></li>
- </ol>
- {/if}
- <div class="we7-form" id="js-mass-post" ng-controller="MassPost" ng-cloak>
- <form action="" method="post" ng-submit="checkSubmit($event)">
- <input type="hidden" name="token" value="{$_W['token']}">
- <div class="form-group">
- <label class="control-label col-sm-2">群发对象</label>
- <div class="form-controls col-sm-8">
- <input type="hidden" name="group" value="">
- <select class="we7-select mass-group">
- <option value="-1">全部粉丝</option>
- <option ng-repeat="group in groups" ng-selected="group.name == massdata.groupname" ng-bind="group.name" ng-value="group.id"></option>
- </select>
- <span class="help-block"> 根据条件对群发对象进行筛选</span>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-sm-2">发送时间</label>
- <div class="form-controls col-sm-8">
- <select class="col-sm-3 mass-type" name="type">
- <option ng-selected="massdata.type==0" ng-value="0" >实时发送</option>
- <option ng-selected="massdata.type==1" ng-value="1" >定时发送</option>
- </select>
- <div class="col-sm-6 sendtime">
- {php echo tpl_form_field_date('sendtime',$mass_info['sendtime'],true)}
- </div>
- </div>
- <div class="form-controls col-sm-8 hide">
- <div class="input-group clockpicker">
- <span class="input-group-addon"><i class="fa fa-clock-o"></i></span>
- <input type="text" readonly name="clock" ng-model="clock" class="form-control">
- </div>
- <span class="help-block text-danger">特别注意:发送时间不能小于当前时间.不要超过晚上11点</span>
- </div>
- </div>
- {php echo module_build_form('core', $mass_info['id'], $show_post_content)}
- <input type="submit" name="submit" value="发布" class="btn btn-primary btn-submit"/>
- </form>
- </div>
- </div>
- <script>
- require(['underscore', 'clockpicker'], function() {
- angular.module('massApp').value('config', {
- massdata: {php echo json_encode($mass_info)},
- groups: {php echo json_encode($groups)},
- day: {php echo json_encode($_GPC['day'])}
- });
- angular.bootstrap($('#js-mass-post'), ['massApp']);
- });
- </script>
- {template 'common/footer'}
|