File tree Expand file tree Collapse file tree 4 files changed +48
-25
lines changed Expand file tree Collapse file tree 4 files changed +48
-25
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ var login = require('./routes/login')
6
6
7
7
8
8
var admin = require ( './routes/admin/index' )
9
- , adminUser = require ( './routes/admin/user.js' )
9
+ , adminUser = require ( './routes/admin/user' )
10
+ , adminNotice = require ( './routes/admin/notice' )
10
11
11
12
module . exports = function ( app ) {
12
13
/*===================
@@ -45,8 +46,11 @@ module.exports = function(app){
45
46
// 查看&修改用户
46
47
app . get ( '/admin/user/info' , adminUser . infouser ) ;
47
48
app . post ( '/admin/user/info' , adminUser . infouser ) ;
48
-
49
-
49
+ //------------------
50
+ // 公告发布
51
+ //------------------
52
+ app . get ( '/admin/notice' , adminNotice . index ) ;
53
+ app . post ( '/admin/notice' , adminNotice . index ) ;
50
54
51
55
52
56
Original file line number Diff line number Diff line change
1
+ /*--------------------------*
2
+ * 公告发布 *
3
+ *--------------------------*/
4
+ var config = require ( '../../config' )
5
+ , jixiang = require ( '../../models/base' ) ;
6
+
7
+ exports . index = function ( req , res ) {
8
+ res . render ( './admin/notice' , {
9
+ title : config . name + '公告发布'
10
+ , user : req . session . user
11
+ } ) ;
12
+ }
Original file line number Diff line number Diff line change @@ -2,27 +2,6 @@ extends layout/layout
2
2
block content
3
3
//内容区
4
4
.main
5
- table.table.order-table
6
- caption 学生列表
7
- thead.tab-title
8
- tr.separate
9
- th( colspan ="5" )
10
- tr
11
- th UID
12
- th 用户名
13
- th 邮箱
14
- th 性别
15
- th 最近登入时间
16
- th 操作
17
- tbody
18
- tr
19
- td 1
20
- td jixiangac
21
- td jixiangac@gmail.com
22
- td 男
23
- td 2012-12-34 20:20:20
24
- td
25
- a.btn-reply ( href ="#" ) 查看
26
- a.btn-reply ( href ="#" ) 修改
5
+
27
6
28
7
Original file line number Diff line number Diff line change
1
+ extends layout/layout
2
+ block content
3
+ //内容区
4
+ .main
5
+ table.table.order-table
6
+ caption 学生列表
7
+ thead.tab-title
8
+ tr.separate
9
+ th( colspan ="5" )
10
+ tr
11
+ th UID
12
+ th 用户名
13
+ th 邮箱
14
+ th 性别
15
+ th 最近登入时间
16
+ th 操作
17
+ tbody
18
+ tr
19
+ td 1
20
+ td jixiangac
21
+ td jixiangac@gmail.com
22
+ td 男
23
+ td 2012-12-34 20:20:20
24
+ td
25
+ a.btn-reply ( href ="#" ) 查看
26
+ a.btn-reply ( href ="#" ) 修改
27
+
28
+
You can’t perform that action at this time.
0 commit comments