123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- {template 'common/header'}
- {template 'user/user-header'}
- <div id="js-expire" ng-controller="UserExpireCtrl">
- {if $do == 'display'}
- <form action="" method="post" class="we7-form" ng-cloak>
- <table class="table we7-table table-hover vertical-middle">
- <col width="100px"/>
- <col />
- <col />
- <col />
- <col />
- <col />
- <tr>
- <th >字段名</th>
- <th class="text-left">值</th>
- <th class="text-left">说明</th>
- <th class="text-left">是否启用</th>
- <th class="text-right">操作</th>
- </tr>
- <tr>
- <td >提前天数</td>
- <td ng-bind="user_expire.day"></td>
- <td>请填写天数,如果不填写,会在用户到期前一天发信息。</td>
- <td>
- <div ng-class="user_expire.status == 1 ? 'switch switchOn' : 'switch'" ng-click="changeStatus('status', user_expire)"></div>
- </td>
- <td>
- <div class="link-group">
- <a href="javascript:;" data-toggle="modal" data-target="#name">修改</a>
- </div>
- </td>
- </tr>
- </table>
- <div class="form-group">
- <a href="{php echo url('cloud/sms-sign');}" class="btn btn-primary">短信签名设置</a>
- </div>
- <!-- 编辑弹出框 start-->
- <div class="modal fade" id="name" role="dialog">
- <div class="we7-modal-dialog modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <div class="modal-title">修改提前天数</div>
- </div>
- <div class="modal-body">
- <div class="form-group">
- <span class="col-md-2 control-label">提前天数</span>
- <div class="col-md-10">
- <input type="text" ng-model="user_expire.day" class="form-control" placeholder="" />
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="saveExpire('day')">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
- <!-- 编辑弹出框 end-->
- </form>
- {else}
- <form action="" method="post" class="we7-form" ng-cloak>
- <table class="table we7-table table-hover vertical-middle">
- <col width="150px"/>
- <col />
- <col />
- <col />
- <col />
- <col />
- <tr>
- <th >自定义到期提示</th>
- <th></th>
- <th class="text-right">操作</th>
- </tr>
- <tr>
- <td >提示语</td>
- <td ng-bind="user_expire.notice"></td>
- <td>
- <div class="link-group">
- <a href="javascript:;" data-toggle="modal" data-target="#notice">修改</a>
- </div>
- </td>
- </tr>
- <tr>
- <td >跳转商城按钮</td>
- <td >显示商城续费的按钮</td>
- <td>
- <div class="link-group">
- <div ng-class="user_expire.status_store_button == 1 ? 'switch switchOn' : 'switch'" ng-click="changeStatus('status_store_button', user_expire)"></div>
- </div>
- </td>
- </tr>
- <tr>
- <td >自动跳转商城</td>
- <td >再提示页面无操作, 5秒后自动跳转至商城续费</td>
- <td>
- <div class="link-group">
- <div ng-class="user_expire.status_store_redirect == 1 ? 'switch switchOn' : 'switch'" ng-click="changeStatus('status_store_redirect', user_expire)"></div>
- </div>
- </td>
- </tr>
- </table>
- <!-- 编辑弹出框 start-->
- <div class="modal fade" id="notice" role="dialog">
- <div class="we7-modal-dialog modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <div class="modal-title">修改提示语</div>
- </div>
- <div class="modal-body">
- <div class="form-group">
- <span class="col-md-2 control-label">提示语</span>
- <div class="col-md-10">
- <input type="text" ng-model="user_expire.notice" class="form-control" placeholder="" />
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="saveExpire('notice')">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
- <!-- 编辑弹出框 end-->
- </form>
- {/if}
- </div>
- <script>
- angular.module('userManageApp').value('config', {
- 'user_expire' : {php echo !empty($user_expire) ? json_encode($user_expire) : 'null'},
- 'links' : {
- 'user_expire_link' : "{php echo url('user/expire/save_expire')}",
- 'user_expire_status_link' : "{php echo url('user/expire/change_status')}"
- }
- });
- angular.bootstrap($('#js-expire'), ['userManageApp']);
- </script>
- {template 'common/footer'}
|