diff --git a/VamPa/src/main/resources/com/vam/mapper/BookMapper.xml b/VamPa/src/main/resources/com/vam/mapper/BookMapper.xml index e5f128b..8791671 100644 --- a/VamPa/src/main/resources/com/vam/mapper/BookMapper.xml +++ b/VamPa/src/main/resources/com/vam/mapper/BookMapper.xml @@ -41,7 +41,7 @@ select * from( select /*+INDEX_DESC(vam_book SYS_C008227)*/ rownum as rn, bookId, bookName, (select authorName from vam_author where vam_book.authorId = vam_author.authorId) authorName, authorId, - (select cateName from vam_bcate where vam_book.cateCode = vam_bcate.cateCode) cateName,cateCode, publisher, publeYear, bookPrice + (select cateName from vam_bcate where vam_book.cateCode = vam_bcate.cateCode) cateName,cateCode, publisher, publeYear, bookPrice,bookDiscount from vam_book where ]]> diff --git a/VamPa/src/main/webapp/WEB-INF/views/search.jsp b/VamPa/src/main/webapp/WEB-INF/views/search.jsp index ebbfccd..91dd1c3 100644 --- a/VamPa/src/main/webapp/WEB-INF/views/search.jsp +++ b/VamPa/src/main/webapp/WEB-INF/views/search.jsp @@ -59,7 +59,7 @@ - + "> @@ -90,6 +90,91 @@ + +
+ + + + + + + + + + + + + + + + + + + + +
+
+ [${list.cateName}] +
+
+ ${list.bookName} +
+
+ + ${list.authorName} 지음 | ${list.publisher} | +
+
+
+ 평점(추후 추가) +
+
+
+ + + +
+
+ + + +
+
+
+ + +
+ +
+ +
+ + + + +
+
@@ -157,6 +242,32 @@ }); // ajax }); + + /* 페이지 이동 버튼 */ + + const moveForm = $('#moveForm'); + + $(".pageMaker_btn a").on("click", function(e){ + + e.preventDefault(); + + moveForm.find("input[name='pageNum']").val($(this).attr("href")); + + moveForm.submit(); + + }); + + + $(document).ready(function(){ + // 검색 타입 selected + const selectedType = ''; + if(selectedType != ""){ + $("select[name='type']").val(selectedType).attr("selected", "selected"); + } + + }); + + diff --git a/VamPa/src/main/webapp/resources/css/search.css b/VamPa/src/main/webapp/resources/css/search.css index b2ef3c9..218cd83 100644 --- a/VamPa/src/main/webapp/resources/css/search.css +++ b/VamPa/src/main/webapp/resources/css/search.css @@ -135,6 +135,85 @@ a{ min-height: 1000px; } + /* 상품 표 */ + .list_search_result{ + width: 90%; + margin: auto; + } + .type_list{ + width: 100%; + border-bottom: 1px solid #e7e7e7; + border-collapse: collapse; + } + .type_list tr{ + height:200px; + border-bottom: 1px solid #e7e7e7; + } + .detail div{ + margin-bottom: 5px; + } + .category{ + font-size: 12px; + font-weight: 600; + } + .title{ + font-size: 20px; + color: #3a60df; + font-weight: 700; + } + .author{ + font-size: 14px; + } + .info{ + text-align: center; + } + .price{ + text-align: center; + } + .org_price del{ + font-size: 13px; + } + .sell_price strong{ + color: #da6262; + font-size: 18px; + } + + + + /* 페이지 버튼 인터페이스 */ + .pageMaker_wrap{ + text-align: center; + margin-top: 30px; + margin-bottom: 40px; + } + .pageMaker{ + list-style: none; + display: inline-block; + } + .pageMaker_btn { + float: left; + width: 40px; + height: 40px; + line-height: 40px; + margin-left: 20px; + } + .active{ + border : 2px solid black; + font-weight:400; + } + .next, .prev { + border: 1px solid #ccc; + padding: 0 10px; + } + .pageMaker_btn a:link {color: black;} + .pageMaker_btn a:visited {color: black;} + .pageMaker_btn a:active {color: black;} + .pageMaker_btn a:hover {color: black;} + .next a, .prev a { + color: #ccc; + } + + /* 로그인 성공 영역 */ .login_success_area{ height: 62%; diff --git a/VamPa/target/classes/com/vam/mapper/BookMapper.xml b/VamPa/target/classes/com/vam/mapper/BookMapper.xml index e5f128b..8791671 100644 --- a/VamPa/target/classes/com/vam/mapper/BookMapper.xml +++ b/VamPa/target/classes/com/vam/mapper/BookMapper.xml @@ -41,7 +41,7 @@ select * from( select /*+INDEX_DESC(vam_book SYS_C008227)*/ rownum as rn, bookId, bookName, (select authorName from vam_author where vam_book.authorId = vam_author.authorId) authorName, authorId, - (select cateName from vam_bcate where vam_book.cateCode = vam_bcate.cateCode) cateName,cateCode, publisher, publeYear, bookPrice + (select cateName from vam_bcate where vam_book.cateCode = vam_bcate.cateCode) cateName,cateCode, publisher, publeYear, bookPrice,bookDiscount from vam_book where ]]> diff --git a/VamPa_MySQL/src/main/resources/com/vam/mapper/BookMapper.xml b/VamPa_MySQL/src/main/resources/com/vam/mapper/BookMapper.xml index 11f3953..4f6a628 100644 --- a/VamPa_MySQL/src/main/resources/com/vam/mapper/BookMapper.xml +++ b/VamPa_MySQL/src/main/resources/com/vam/mapper/BookMapper.xml @@ -36,7 +36,7 @@ - + "> @@ -87,7 +87,102 @@
-

content area

+ + + + +
+ + + + + + + + + + + + + + + + + + + + +
+
+ [${list.cateName}] +
+
+ ${list.bookName} +
+
+ ${list.authorName} 지음 | ${list.publisher} | ${list.publeYear} +
+
+
+ 평점(추후 추가) +
+
+
+ + + +
+
+ + + +
+
+
+ + +
+ +
+ +
+ + + + +
+ + +
+ + +
+ 검색결과가 없습니다. +
+
+
@@ -146,6 +241,32 @@ }); // ajax }); + + /* 페이지 이동 버튼 */ + + const moveForm = $('#moveForm'); + + $(".pageMaker_btn a").on("click", function(e){ + + e.preventDefault(); + + moveForm.find("input[name='pageNum']").val($(this).attr("href")); + + moveForm.submit(); + + }); + + + $(document).ready(function(){ + // 검색 타입 selected + const selectedType = ''; + if(selectedType != ""){ + $("select[name='type']").val(selectedType).attr("selected", "selected"); + } + + }); + + diff --git a/VamPa_MySQL/src/main/webapp/resources/css/search.css b/VamPa_MySQL/src/main/webapp/resources/css/search.css index b2ef3c9..b1f1ac6 100644 --- a/VamPa_MySQL/src/main/webapp/resources/css/search.css +++ b/VamPa_MySQL/src/main/webapp/resources/css/search.css @@ -135,6 +135,85 @@ a{ min-height: 1000px; } + /* 상품 표 */ + .list_search_result{ + width: 90%; + margin: auto; + } + .type_list{ + width: 100%; + border-bottom: 1px solid #e7e7e7; + border-collapse: collapse; + } + .type_list tr{ + height:200px; + border-bottom: 1px solid #e7e7e7; + } + .detail div{ + margin-bottom: 5px; + } + .category{ + font-size: 12px; + font-weight: 600; + } + .title{ + font-size: 20px; + color: #3a60df; + font-weight: 700; + } + .author{ + font-size: 14px; + } + .info{ + text-align: center; + } + .price{ + text-align: center; + } + .org_price del{ + font-size: 13px; + } + .sell_price strong{ + color: #da6262; + font-size: 18px; + } + + + + /* 페이지 버튼 인터페이스 */ + .pageMaker_wrap{ + text-align: center; + margin-top: 30px; + margin-bottom: 40px; + } + .pageMaker{ + list-style: none; + display: inline-block; + } + .pageMaker_btn { + float: left; + width: 40px; + height: 40px; + line-height: 40px; + margin-left: 20px; + } + .active{ + border : 2px solid black; + font-weight:400; + } + .next, .prev { + border: 1px solid #ccc; + padding: 0 10px; + } + .pageMaker_btn a:link {color: black;} + .pageMaker_btn a:visited {color: black;} + .pageMaker_btn a:active {color: black;} + .pageMaker_btn a:hover {color: black;} + .next a, .prev a { + color: #ccc; + } + + /* 로그인 성공 영역 */ .login_success_area{ height: 62%; diff --git a/VamPa_MySQL/target/classes/com/vam/mapper/BookMapper.xml b/VamPa_MySQL/target/classes/com/vam/mapper/BookMapper.xml index 11f3953..4f6a628 100644 --- a/VamPa_MySQL/target/classes/com/vam/mapper/BookMapper.xml +++ b/VamPa_MySQL/target/classes/com/vam/mapper/BookMapper.xml @@ -36,7 +36,7 @@