123456789101112131415161718192021222324252627282930313233343536373839404142 |
- {template 'common/header'}
- {template 'user/user-header'}
- <form action="" method="post" class="we7-form" id="js-sms-sign" ng-controller="SmsSignCtrl" ng-cloak>
- <div class="form-group">
- <label for="" class="control-label col-sm-2" style="width: 150px;">短信签名设置</label>
- <div class="form-controls col-sm-8">
- <select class="we7-select" ng-model="site_sms_sign.sign">
- <option value="0" selected>请选择短信签名</option>
- <option ng-repeat="row in all_signatures" value="{{row}}" ng-bind="row" ng-selected="site_sms_sign.sign == row"></option>
- </select>
-
- <span class="help-block">请选择短信签名。未审核签名可以通过云短信审核签名</span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2" style="width: 150px;">提前天数</label>
- <div class="form-controls col-sm-8">
- <input type="text" ng-model = "site_sms_sign.day">
- <span class="help-block">请填写天数,如果不填写,会在用户到期前一天发信息。</span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2" style="width: 150px;">是否启用</label>
- <div class="form-controls col-sm-8">
- <div class="switch" ng-class="{'switchOn' : site_sms_sign.status}" ng-click="httpChange()"></div>
- <span class="help-block">默认为关闭状态,如果想对过期用户发送短信,需要开启。</span>
- </div>
- </div>
- <button type="button" class="btn btn-primary" ng-click="saveSms()" ng-style="{'padding': '6px 50px'}">确定</button>
- </form>
- <script>
- angular.module('userManageApp').value('config', {
- 'all_signatures' : {php echo !empty($cloud_sms_signs) ? json_encode($cloud_sms_signs) : 'null'},
- 'site_sms_sign' : {php echo !empty($setting_sms_sign) ? json_encode($setting_sms_sign) : 'null'},
- 'links' : {
- 'site_sms_sign_link' : "{php echo url('user/sms-sign/save_sms_sign')}",
- 'site_sms_status_link' : "{php echo url('user/sms-sign/change_status')}"
- }
- });
- angular.bootstrap($('#js-sms-sign'), ['userManageApp']);
- </script>
- {template 'common/footer'}
|