찾아오는길 : 퍼블 적용

This commit is contained in:
KNKIM 2021-10-22 13:11:07 +09:00
parent e305f9377e
commit 75790bc772
7 changed files with 125 additions and 109 deletions

View File

@ -60,6 +60,7 @@ public class NlibInterceptor extends HandlerInterceptorAdapter {
String councilDnsHost = StringUtil.getHostName(request.getRequestURL().toString()); String councilDnsHost = StringUtil.getHostName(request.getRequestURL().toString());
HashMap<String, String> councilInfoMap = loginService.selectCouncilInfoByDnsHost(councilDnsHost); HashMap<String, String> councilInfoMap = loginService.selectCouncilInfoByDnsHost(councilDnsHost);
councilCd = councilInfoMap.get("councilCd"); councilCd = councilInfoMap.get("councilCd");
councilNm = councilInfoMap.get("councilNm");
if(StringUtil.isEmpty(councilCd)) councilCd = NlibProperty.getString("nlib.council.cd"); if(StringUtil.isEmpty(councilCd)) councilCd = NlibProperty.getString("nlib.council.cd");
if(StringUtil.isEmpty(councilNm)) councilNm = NlibProperty.getString("nlib.council.nm"); if(StringUtil.isEmpty(councilNm)) councilNm = NlibProperty.getString("nlib.council.nm");

View File

@ -134,10 +134,10 @@ public class InformServiceImpl implements InformService
* (non-Javadoc) * (non-Javadoc)
* @see nlib.info.service.InformService#selectNCultureLocationInfo(nlib.restful.service.DataApiReqVO) * @see nlib.info.service.InformService#selectNCultureLocationInfo(nlib.restful.service.DataApiReqVO)
*/ */
public HashMap<String, String> selectNCultureLocationInfo(String councilCd) throws Exception { public HashMap<String, String> selectNCultureLocationInfo(String orgCd) throws Exception {
HashMap<String, String> locInfo = selectInfoContent(councilCd, "LOCATION"); HashMap<String, String> locInfo = selectInfoContent(orgCd, "LOCATION");
HashMap<String, String> addrInfo = informDAO.selectNCultureAddr(councilCd); HashMap<String, String> addrInfo = informDAO.selectNCultureAddr(orgCd);
if(addrInfo != null) { if(addrInfo != null) {
for(String key : addrInfo.keySet()) { for(String key : addrInfo.keySet()) {

View File

@ -148,9 +148,15 @@ public class InformController extends NlibCommonController {
HashMap<String, String> ret = informService.selectNCultureLocationInfo(getCurCouncilCd(request)); HashMap<String, String> ret = informService.selectNCultureLocationInfo(getCurCouncilCd(request));
model.addAttribute("mngOrgNm" , getCurCouncilNm(request));
model.addAttribute("informTitle" , ret.get("TITLE")); model.addAttribute("informTitle" , ret.get("TITLE"));
model.addAttribute("informContent", ret.get("CONTENT")); model.addAttribute("informContent", ret.get("CONTENT"));
model.addAttribute("openTime", ret.get("OPEN_TIME"));
model.addAttribute("closeTime", ret.get("CLOSED_TIME"));
model.addAttribute("closingInfo", ret.get("CLOSING_INFO"));
model.addAttribute("zipCode" , ret.get("ZIP_CODE")); model.addAttribute("zipCode" , ret.get("ZIP_CODE"));
model.addAttribute("address" , ret.get("ADDRESS")); model.addAttribute("address" , ret.get("ADDRESS"));
model.addAttribute("addressDetail", ret.get("ADDRESS_DETAIL")); model.addAttribute("addressDetail", ret.get("ADDRESS_DETAIL"));

View File

@ -51,6 +51,9 @@
, FAX_NO , FAX_NO
, LATITUDE , LATITUDE
, LONGITUDE , LONGITUDE
, OPEN_TIME
, CLOSED_TIME
, CLOSING_INFO
FROM SM_DEPT A FROM SM_DEPT A
WHERE ORG_CD = #{orgCd} WHERE ORG_CD = #{orgCd}
LIMIT 1 LIMIT 1

View File

@ -82,9 +82,9 @@ list.paging.page.size = 10
#---------------------------------------- #----------------------------------------
# \ucca8\ubd80\ud30c\uc77c \ucd5c\uc0c1\uc704 \uc704\uce58 # \ucca8\ubd80\ud30c\uc77c \ucd5c\uc0c1\uc704 \uc704\uce58
# \ub85c\uceec LLLLLLLLLLLLLLL # \ub85c\uceec LLLLLLLLLLLLLLL
fileupload.base.path = C:/iams/workspace/nlib/data/fileupload #fileupload.base.path = C:/iams/workspace/nlib/data/fileupload
# \uac1c\ubc1c\uc11c\ubc84 # \uac1c\ubc1c\uc11c\ubc84
#fileupload.base.path = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/data/fileupload fileupload.base.path = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/data/fileupload
# \uc784\uc2dc \uc800\uc7a5 \uc704\uce58 # \uc784\uc2dc \uc800\uc7a5 \uc704\uce58
fileupload.temp.subpath = /temp fileupload.temp.subpath = /temp
@ -95,11 +95,11 @@ fileupload.bbs.ancmnt.subpath = /bbs/ancmnt
# \uba54\uc77c \uacbd\ub85c # \uba54\uc77c \uacbd\ub85c
# \ub85c\uceec LLLLLLLLLLLLLLL # \ub85c\uceec LLLLLLLLLLLLLLL
mailing.sender.membership.template = C:/iams/workspace/nlib/src/main/webapp/WEB-INF/template/mail/mail_template.html #mailing.sender.membership.template = C:/iams/workspace/nlib/src/main/webapp/WEB-INF/template/mail/mail_template.html
mailing.sender.membership.pwdTemplate = C:/iams/workspace/nlib/src/main/webapp/WEB-INF/template/mail/pwd_mail_template.html #mailing.sender.membership.pwdTemplate = C:/iams/workspace/nlib/src/main/webapp/WEB-INF/template/mail/pwd_mail_template.html
# \uac1c\ubc1c\uc11c\ubc84 # \uac1c\ubc1c\uc11c\ubc84
#mailing.sender.membership.template = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/nlib/WEB-INF/template/mail/mail_template.html mailing.sender.membership.template = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/nlib/WEB-INF/template/mail/mail_template.html
#mailing.sender.membership.pwdTemplate = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/nlib/WEB-INF/template/mail/pwd_mail_template.html mailing.sender.membership.pwdTemplate = /apps/tomcat/apache-tomcat-8.5.46_nlib/webapps/nlib/WEB-INF/template/mail/pwd_mail_template.html
#\uba54\uc77c \ubcf4\ub0b4\ub294 \uc8fc\uc18c #\uba54\uc77c \ubcf4\ub0b4\ub294 \uc8fc\uc18c
mailing.sender.membership.email = no-reply@nlib.org mailing.sender.membership.email = no-reply@nlib.org

View File

@ -31,88 +31,110 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> <%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="pageTitle">찾아오시는 길 </c:set>
<!DOCTYPE html> <!-- 찾아오시는길 섹션 -->
<html> <section class="location map">
<head> <h2 class="blind">찾아오시는길 섹션영역</h2>
<title>${pageTitle}</title> <div class="inner">
</head> <div class="row-top">
<body> <div class="location-box">
<ul class="loc">
<h1>${pageTitle }</h1> <li>HOME</li>
<li>자료관안내</li>
<a href="javascript:void(0);" onclick="openPopup('${pageContext.request.contextPath}/inform/selectNCultureLocationInfoPopup.do','_SPPOP',700, 600)">샘플팝업</a> <li class="on">찾아오시는길</li>
</ul>
<div id="informContent" name="informContent" style="width: 100%; border:1px solid gray;"> <ul class="tit">
${informContent } <li><span>찾아오시는</span>길</li>
</div> </ul>
<br>
${zipCode }<br>
${address }<br>
${addressDetail }<br>
${phoneNo }<br>
${faxNo }<br>
<br>
<section class="list-box">
<div class="title">
<h2>네이버 맵</h2>
</div> </div>
<div id="map" style="width:80%;height:300px;"></div> <div class="arr"><img src="/images/icon/icon-join-arr2.png" alt="화살표 아이콘"></div>
</section><!-- //위치정보 --> </div>
<script src="https://openapi.map.naver.com/openapi/v3/maps.js?ncpClientId=532wx3i985"></script> <div class="row-bottom">
<script> <div class="map-box">
function initMap() { <h2><span>${mngOrgNm }</span> 오시는 길</h2>
var lon = "${longitude}"; <div class="info">
var lat = "${latitude}"; <div class="mapimg">
var map = new naver.maps.Map( <!-- 지도 : 시작 -->
document.getElementById('map'), <section class="list-box">
{ <div id="map" style="width:100%;height:440px;"></div>
useStyleMap: true, // 신규 맵 타일(StyleMap)으로 전환 (2019.12.20) </section><!-- //위치정보 -->
mapDataControl:false, <script src="https://openapi.map.naver.com/openapi/v3/maps.js?ncpClientId=532wx3i985"></script>
draggable: true, <script>
mapTypeControl: false, function initMap() {
mapTypeControlOptions: { var lon = "${longitude}";
style: naver.maps.MapTypeControlStyle.BUTTON, var lat = "${latitude}";
position: naver.maps.Position.TOP_LEFT var map = new naver.maps.Map(
}, document.getElementById('map'),
mapTypeId: naver.maps.MapTypeId.NORMAL, {
zoomControl: false, useStyleMap: true, // 신규 맵 타일(StyleMap)으로 전환 (2019.12.20)
zoomControlOptions: { mapDataControl:false,
style: naver.maps.ZoomControlStyle.SMALL, draggable: true,
position: naver.maps.Position.TOP_LEFT mapTypeControl: false,
}, mapTypeControlOptions: {
zoom: 15, style: naver.maps.MapTypeControlStyle.BUTTON,
minZoom: 5, position: naver.maps.Position.TOP_LEFT
maxZoom: 20, },
scaleControl: true, mapTypeId: naver.maps.MapTypeId.NORMAL,
scaleControlOptions: { zoomControl: false,
position: naver.maps.Position.LEFT_BOTTOM zoomControlOptions: {
}, style: naver.maps.ZoomControlStyle.SMALL,
logoControl: false, position: naver.maps.Position.TOP_LEFT
logoControlOptions: { },
position: naver.maps.Position.TOP_LEFT zoom: 15,
}, minZoom: 5,
mapDataControl: false, maxZoom: 20,
mapDataControlOptions: { scaleControl: true,
position: naver.maps.Position.BOTTOM_LEFT scaleControlOptions: {
}, position: naver.maps.Position.LEFT_BOTTOM
keyboardShortcuts : false, },
} logoControl: false,
); logoControlOptions: {
var marker = new naver.maps.Marker({ position: naver.maps.Position.TOP_LEFT
position: new naver.maps.Point(lon, lat), },
map: map mapDataControl: false,
}); mapDataControlOptions: {
map.setCenter(new naver.maps.Point(lon,lat)); position: naver.maps.Position.BOTTOM_LEFT
} },
initMap(); keyboardShortcuts : false,
</script> }
);
&nbsp;<br/> var marker = new naver.maps.Marker({
position: new naver.maps.Point(lon, lat),
</body> map: map
</html> });
map.setCenter(new naver.maps.Point(lon,lat));
}
initMap();
</script>
<!-- 지도 : 종료 -->
</div>
<div class="addr">
<p><img src="/images/icon/icon-location-01.png" alt="지도 아이콘"></p>
<p>주소</p>
<p>(${zipCode }) ${address } ${addressDetail }</p>
</div>
<div class="time">
<p><img src="/images/icon/icon-location-02.png" alt="달력 아이콘"></p>
<p>운영시간</p>
<p>월요일~금요일 / 오전 ${openTime } ~ 오후 ${closeTime }</p>
<p>매주 토요일, 일요일 휴관<br>${closingInfo }</p>
</div>
<div class="tel">
<p><img src="/images/icon/icon-location-03.png" alt="전화 아이콘"></p>
<p>전화</p>
<p>${phoneNo }</p>
</div>
<div class="fax">
<p><img src="/images/icon/icon-location-04.png" alt="팩스 아이콘"></p>
<p>팩스</p>
<p>${faxNo }</p>
</div>
</div>
</div>
</div>
<div class="row-bottom">
${informContent }
</div>
</div>
</section>

View File

@ -31,22 +31,6 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> <%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<%
String councilCd = (String)session.getAttribute("councilCd");
String councilNm = (String)session.getAttribute("councilNm");
%>
<c:set var="pageTitle">이용안내 </c:set>
<script>
$( document ).ready(function() {
fn_setPageTitle("${pageTitle}");
});
</script>
<!-- 이용안내 섹션 --> <!-- 이용안내 섹션 -->
<section class="location guide"> <section class="location guide">
<h2 class="blind">이용안내 섹션영역</h2> <h2 class="blind">이용안내 섹션영역</h2>