-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecycle.ejs
148 lines (131 loc) · 6.1 KB
/
recycle.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<%- include('header') %>
<div class="content-wrapper" ng-controller="recycle">
<%- include('modal/remove_one_document_complete_modal') %>
<section class="content-header">
<h1>
<%= blogName %>
<small><%= item %></small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i>主页</a></li>
<li><a href="#"><%= category %></a></li>
<li class="active"><%= item %></li>
</ol>
</section>
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"><%= item %></h3>
</div>
<div class="box-body">
<div class="row">
<div class="col-sm-6">
<div class="dataTables_length" id=""><label>每页显示
<select name="document_limit" aria-controls="" class="form-control input-sm"
ng-model="limit" ng-change="getPage(limit,page)">
<option value="5">5</option>
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
</select> 条文档</label></div>
</div>
<div class="col-sm-6">
<div id="example1_filter" class="dataTables_filter"><label>文档搜索:<input type="search"
class="form-control input-sm"
placeholder=""
aria-controls="example1"></label>
</div>
</div>
</div>
<div class="row">
<table class="table table-bordered">
<tr>
<th style="width: 10px"><input type="checkbox" class="minimal"></th>
<th>文章标题</th>
<th>发布时间</th>
<th>分类</th>
<th>来源</th>
<th>类型</th>
<th>推荐</th>
<th>点击数</th>
<th>评论数</th>
<th>作者</th>
<th>操作</th>
</tr>
<tr ng-repeat="x in data">
<td><input type="checkbox" class="minimal"></td>
<td ng-bind="x.document_title"></td>
<td ng-bind='x.document_publish_date | date:"yyyy-MM-dd HH:mm:ss"'></td>
<td ng-bind="x.document_category"></td>
<td ng-bind="x.document_from"></td>
<td ng-bind="x.document_type"></td>
<td ng-bind="x.document_recommend"></td>
<td ng-bind="x.document_view"></td>
<td ng-bind="x.document_view"></td>
<td ng-bind="x.document_author"></td>
<td>
<button type="button" class="btn btn-primary btn-xs btn-flat">编辑</button>
<button type="button" class="btn btn-info btn-xs btn-flat">发布</button>
<button type="button" class="btn btn-danger btn-xs btn-flat" ng-click="removeOneDocument(x)">删除</button>
</td>
</tr>
</table>
</div>
</div>
<div class="box-footer clearfix">
<div class="row">
<div class="col-sm-5">
<div class="dataTables_info" id="example1_info" role="status" aria-live="polite">
共{{ documentCountNum }}条文档
</div>
</div>
<div class="col-sm-7">
<div class="dataTables_paginate paging_simple_numbers" id="">
<ul class="pagination">
<li class="paginate_button previous" id=""
ng-click="goToPage(limit,currentPage-1)"
ng-class="{'disabled':currentPage<=1}">
<a href="#" aria-controls="example1" tabindex="0">«</a>
</li>
<li class="paginate_button" ng-click="goToPage(limit,1)"
ng-hide="currentPage==1 || currentPage==2">
<a href="#" tabindex="0">1</a>
</li>
<li class="paginate_button" ng-show="currentPage>3">
<a href="#" tabindex="0">...</a>
</li>
<li class="paginate_button" ng-click="goToPage(limit,currentPage-1)"
ng-show="currentPage>1 ">
<a href="#" tabindex="0" ng-bind="currentPage-1"></a>
</li>
<li class="paginate_button active" ng-click="goToPage(limit,currentPage)">
<a href="#" tabindex="0" ng-bind="currentPage"></a>
</li>
<li class="paginate_button" ng-click="goToPage(limit,currentPage+1)"
ng-show="currentPage<allPage-1">
<a href="#" tabindex="0" ng-bind="currentPage+1"></a>
</li>
<li class="paginate_button" ng-show="currentPage<allPage-2">
<a href="#" tabindex="0">...</a>
</li>
<li class="paginate_button" ng-click="goToPage(limit,allPage)"
ng-show="currentPage<allPage">
<a href="#" tabindex="0" ng-bind="allPage"></a>
</li>
<li class="paginate_button next" id="" ng-click="goToPage(limit,currentPage+1)"
ng-class="{'disabled':currentPage>=allPage}">
<a href="#" tabindex="0">»</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<%- include('footer') %>