2024-10-11 17:33 관리자 통합검색 페이지 연결

This commit is contained in:
myname 2024-10-11 17:33:22 +09:00
parent 8057ad755a
commit e7083a2e41
3 changed files with 166 additions and 1 deletions

View File

@ -1261,7 +1261,8 @@ public class HomeController {
} }
} }
return new ModelAndView("/manager/layout/layout"); //return new ModelAndView("/manager/layout/layout");
return new ModelAndView("/manager/layout/layout_new");
} }
@RequestMapping(value = "/common/extra/{siteIdx}/{pageName}/jsp/Page.do") @RequestMapping(value = "/common/extra/{siteIdx}/{pageName}/jsp/Page.do")

View File

@ -0,0 +1,14 @@
<%@ page contentType="text/html;charset=utf-8" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!doctype html>
<html lang="ko">
<body>
<c:import url="/WEB-INF/views/_extra/gtm/${pageFolder}/${pageName}_new.jsp?siteIdx=${siteIdx}&siteMenuIdx=${siteMenuIdx}"></c:import>
</body>
</html>

View File

@ -0,0 +1,150 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<title>정보 관리</title>
<link rel="stylesheet" type="text/css" href="/css/jquery-ui.css" >
<link rel="stylesheet" type="text/css" href="/ark/css/ark.css">
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/js/beta.fix.js"></script>
<script type="text/javascript" src="/js/ark.js"></script>
<script type="text/javascript" src="/js/datepicker.js"></script>
<script type="text/javascript" src="/js/search.js"></script><!-- 검색관련 js -->
</head>
<body>
<style>
.page-content{padding-left:0;padding-right:0;}
.cs-search-wrapper {margin-top:40px;font-family:'Malgun Gothic';}
.cs-search{position: relative;}
.cs-search .blue_window{display:inline-block;width:561px;height:40px;border: 1px solid #676fb2;border-right:0;}
.cs-search label{background:url(/img/search-fofair.png) no-repeat 15px 50%;width:147px;height:40px;margin-bottom:0;
text-indent:-999em;}
.cs-search .query{width:100%;height:100%;padding:4px 10px;border:0;font-size:15px;}
.cs-search .query::-webkit-input-placeholder {font-family:'Malgun Gothic';color: #757575;font-size:15px;letter-spacing: -1px;}
.cs-search .query::-moz-placeholder {font-family:'Malgun Gothic';color: #757575;font-size:15px;letter-spacing: -1px;}
.cs-search .query:-ms-input-placeholder {font-family:'Malgun Gothic';color: #757575;font-size:15px;letter-spacing: -1px;}
.cs-search .query:-moz-placeholder {font-family:'Malgun Gothic';color: #757575;font-size:15px;letter-spacing: -1px;}
.cs-search .cs-search-btn{width:57px;height:40px;white-space: nowrap;background: #818ce3;color: #fff;-moz-box-shadow: inset 0 0 10px #5f6cd4;-webkit-box-shadow: inset 0 0 10px #5f6cd4;box-shadow:inset 0 0 10px #5f6cd4;}
.cs-search-lnb{overflow:hidden;list-style:none;border-bottom:1px solid #e8e8e8}
.cs-search-lnb li{float:left;}
.cs-search-lnb li:first-child{margin-left:139px;}
.cs-search-lnb li a{position:relative;display:block;height:54px;margin: 2px 8px 0;padding: 0 8px;line-height:54px;}
.cs-search-lnb li a.on{color: #5f6cd4;font-weight:700}
.cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4}
.cs-content-search{padding:16px 0 0 163px;}
.cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;}
.result-box{max-width:618px;padding:16px 0;border-top:1px solid #e8e8e8}
.result-box h2{margin-bottom: 10px;font-size:15px;}
.result-link{font-size:18px;color:#1a0dab;}
.result-link.more{font-size:16px;}
.result-link:hover{text-decoration:underline;}
.result-list{position: relative;margin-bottom:23px;}
.result-list:last-child{margin-bottom:0;}
.result-date{color:#545454;line-height: 1.4;}
.result-content{padding:4px 0;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}
/* paginate */
.paginate{width:620px; padding:16px 0; text-align:center; float:left;}
.paginate a,.paginate strong{display:inline-block;position:relative;_width /**/:17px;margin-right:1px;padding:2px 4px 3px;border:1px solid #fff;color:#000;font-family:Verdana;font-size:11px;line-height:normal;text-decoration:none}
.paginate strong{border:1px solid #ccc;color:#f23219 !important}
.paginate .pre{margin-right:6px;padding:4px 6px 2px 14px;_padding-bottom:1px;background: !important;letter-spacing:-1px}
.paginate .next{margin-left:4px;padding:4px 14px 2px 6px;_padding-bottom:1px;background: !important;letter-spacing:-1px}
.paginate a.pre{background: !important;color:#565656}
.paginate a.next{background: !important;color:#565656}
.paginate a:hover.pre{background-color:#f7f7f7;text-decoration:none}
.paginate a.next{background-color:#f7f7f7;text-decoration:none}
.paginate .pre,.paginate .next{display:inline-block;position:relative;top:0;_top:-2px;_width /**/:75px;border:1px solid #ccc;color:#ccc;font-family:'돋움',Dotum;font-size:11px;line-height:normal}
.paginate a:hover{border:1px solid #ccc;background-color:#f7f7f7 !important}
/* //paginate */
</style>
<div class="cs-search-wrapper">
<div class="search-form-wrap">
<form:form name="caseFrm" id="caseFrm" action="" method="post">
<input type="hidden" name="caseNo" value="">
</form:form>
<form:form name="search" id="search" action="/gtm/case/unifiedSearch/searchList/jsp/LayOutPage.do" class="search-form" method="post">
<input type="hidden" name="startCount" value="0">
<fieldset>
<div class="cs-search">
<label for="query">kofire</label>
<span class="blue_window">
<input name="query" id="query" type="text" value="" onKeypress="javascript:pressCheck((event),this);" autocomplete="off" class="query" title="검색어 입력" placeholder="한국공정거래조정원 통합검색" >
</span>
<a><input type="button" value="검색" class="cs-search-btn" onClick="javascript:doSearch();" />&nbsp;
<input class="" name="reChk" id="reChk" onclick="checkReSearch();" type="checkbox"/>결과내재검색</a>
</div>
<!-- ARK search suggest -->
<div id="ark"></div>
</fieldset>
</form:form>
</div>
<ul class="cs-search-lnb">
</ul>
<div class="cs-content-search">
</div>
</div>
<script>
//진행일수 제대로 산출
jQuery(document).ready(function(){
getProDate();
});
function getProDate(){
var url = "/gtm/case/trublprocessmng/ajax/ProDate.do";
var count = jQuery('.cass').children('.result-list').length;
//caseNo 뽑기.
for(i=0; i<=count; i++){
var cont = jQuery('.cass').children('.result-list').eq(i).children('.result-link').text();
jQuery("#type").val("L");
if(cont != null || cont != ""){
jQuery("input[name='caseNo']").val(cont);
var param = jQuery('#caseFrm').serialize();
XHR3(url, param);
}
};
}
//비동기 false
function XHR3(url, param){
jQuery.ajax({
type: 'post',
url: url,
data: param,
dataType: 'json',
async: false,
cache: false,
success: function(r){
jQuery('.cass').children('.result-list').eq(i).find('.prodate_put').text(r.data[0].proDate);
},
error: function() {
console.log("failed");
var org = jQuery('.cass').children('.result-list').eq(i).find('.org_prodate').text();
jQuery('.cass').children('.result-list').eq(i).find('.prodate_put').text(org);
return false;
}
});
}
</script>
</body>