File tree 4 files changed +41
-6
lines changed
4 files changed +41
-6
lines changed Original file line number Diff line number Diff line change 55
55
}
56
56
.admin-row-date {
57
57
flex : 3 ;
58
+ }
59
+ .admin-search {
60
+ width : 100% ;
61
+ height : 35px ;
62
+ margin : 20px 0 ;
63
+
64
+ display : flex;
65
+ justify-content : flex-end;
66
+ }
67
+ .admin-search-menu {
68
+ width : 100px ;
69
+ }
70
+ .admin-search-input {
71
+ width : 200px ;
72
+ margin : 0 10px ;
73
+ }
74
+ .admin-search-submit {
75
+ width : 75px ;
58
76
}
Original file line number Diff line number Diff line change
1
+ ( ( ) => {
2
+ const searchHandler = ( ) => {
3
+ const condition = searchBar . querySelector ( ".admin-search-menu" ) . value ;
4
+ const kwd = searchBar . querySelector ( ".admin-search-input" ) . value ;
5
+
6
+ location . href = `/user/all?condition=${ condition } &kwd=${ kwd } `
7
+ }
8
+ const searchBar = document . querySelector ( ".admin-search" ) ;
9
+ const searchSubmit = searchBar . querySelector ( ".admin-search-submit" ) ;
10
+ searchSubmit . addEventListener ( "click" , searchHandler ) ;
11
+ } ) ( )
Original file line number Diff line number Diff line change 7
7
< th:block layout:fragment ="css ">
8
8
< link rel ="stylesheet " th:href ="@{/css/page/admin_list.css} " >
9
9
</ th:block >
10
- < th:block layout:fragment ="script ">
11
- <!-- <script th:src="@{/js/page/home .js}"></script>-- >
10
+ < th:block layout:fragment ="js ">
11
+ < script th:src ="@{/js/page/admin_list .js} "> </ script >
12
12
</ th:block >
13
13
14
14
< div layout:fragment ="content ">
15
15
< div class ="content-header "> 관리자 등록/관리</ div >
16
16
< div class ="content-container ">
17
- < aside class ="aside " th:replace ="fragment/aside :: asideFragment(title='관리자 관리', menu1='관리자 등록/관리', menu2='관리자 로그') ">
18
- </ aside >
17
+ < aside class ="aside " th:replace ="fragment/aside :: asideFragment(title='관리자 관리', menu1='관리자 등록/관리', menu2='관리자 로그') "> </ aside >
19
18
< div class ="admin-container ">
20
- < div class ="admin-search "> 검색바</ div >
19
+ < div class ="admin-search ">
20
+ < select name ="admin-search-menu " class ="admin-search-menu ">
21
+ < option value ="userid "> 아이디</ option >
22
+ </ select >
23
+ < input type ="text " class ="admin-search-input ">
24
+ < button class ="admin-search-submit "> 검색</ button >
25
+ </ div >
21
26
< div class ="admin-list-box ">
22
27
< div class ="admin-list-guide ">
23
28
< div class ="admin-row-number "> 번호</ div >
Original file line number Diff line number Diff line change 14
14
< link rel ="stylesheet " th:href ="@{/css/footer.css} ">
15
15
16
16
< th:block layout:fragment ="css "> </ th:block >
17
- < th:block layout:fragment ="js "> </ th:block >
18
17
</ head >
19
18
20
19
< body >
21
20
< th:block th:replace ="fragment/header :: headerFragment "> </ th:block >
22
21
< th:block layout:fragment ="content "> </ th:block >
23
22
< th:block th:replace ="fragment/footer :: footerFragment "> </ th:block >
23
+
24
+ < th:block layout:fragment ="js "> </ th:block >
24
25
</ body >
25
26
26
27
</ html >
You can’t perform that action at this time.
0 commit comments