12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- {template 'common/header'}
- <div id="js-profile-message" ng-controller="mcMessageListCtrl" ng-cloak>
- <div class="we7-page-title">
- 留言管理
- </div>
- <ul class="we7-page-tab">
- <li class="active">
- <a href="{php echo url('mc/message')}" >留言管理</a>
- </li>
- </ul>
- <div class="article-list-panel">
- <table class="table we7-table table-hover article-list vertical-middle">
- <col width="80px"/>
- <col />
- <col width="220px"/>
- <col width="120px"/>
- <tr>
- <th>排序</th>
- <th class="text-left">标题</th>
- <th class="text-center">是否开启留言功能</th>
- <th class="text-right">操作</th>
- </tr>
- <tr ng-if="lists == '' || lists == undefined">
- <td colspan="4" class="text-center">暂无数据</td>
- </tr>
- <tr ng-repeat="new in lists">
- <td ng-bind="$index"></td>
- <td class="text-left"><div class="text-over" style="max-width: 220px" ng-bind="new.title"></div></td>
- <td class="text-center">
- <label>
- <div ng-class="{1:'switch switchOn', 0:'switch switchOff'}[new.need_open_comment]" id="key-1390" ng-click="switch(new)"></div>
- </label>
- </td>
- <td>
- <div class="link-group">
- <a href="javascript:void(0);" ng-click="getMessageInfo(new.index, new.msg_data_id)">查看留言</a>
- </div>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <script>
- angular.module('profileApp').value('config', {
- 'lists' : {php echo json_encode($news_arr)},
- 'getMessageInfoUrl' : "{php echo url('mc/message/message_info')}",
- 'switchMessageUrl' : "{php echo url('mc/message/message_switch')}",
- });
- angular.bootstrap($('#js-profile-message'), ['profileApp']);
- </script>
-
- {template 'common/footer'}
|