Merge branch 'tolag'
This commit is contained in:
commit
b07167388f
@ -458,7 +458,7 @@ public class MainController {
|
|||||||
//로그인 권한정보 불러오기
|
//로그인 권한정보 불러오기
|
||||||
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null;
|
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null;
|
||||||
String userAuthority = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getAuthority());
|
String userAuthority = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getAuthority());
|
||||||
System.out.println(" ++ userAuthority : "+ userAuthority);
|
|
||||||
//권한별 메뉴표시
|
//권한별 메뉴표시
|
||||||
if(!userAuthority.equals("ROLE_ADMIN")
|
if(!userAuthority.equals("ROLE_ADMIN")
|
||||||
&& !userAuthority.equals("ROLE_ADR_ADMIN")
|
&& !userAuthority.equals("ROLE_ADR_ADMIN")
|
||||||
@ -471,70 +471,14 @@ public class MainController {
|
|||||||
menuManageVO.setAuthorCode("ROLE_ANONYMOUS");
|
menuManageVO.setAuthorCode("ROLE_ANONYMOUS");
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println(" ++ menuManageVO.getAuthorCode() : "+ menuManageVO.getAuthorCode());
|
|
||||||
//대국민, 조정위원일 경우 원뎁스 메뉴에 대시보드 링크를 걸기위해 권한 넘겨줌
|
//대국민, 조정위원일 경우 원뎁스 메뉴에 대시보드 링크를 걸기위해 권한 넘겨줌
|
||||||
model.addAttribute("auth", menuManageVO.getAuthorCode());
|
model.addAttribute("auth", menuManageVO.getAuthorCode());
|
||||||
|
|
||||||
menuManageVO.setMenuUserType(menuManageVO.getMenuUserType());
|
menuManageVO.setMenuUserType(menuManageVO.getMenuUserType());
|
||||||
List<MenuManageJTreeVO> menuResultList = menuCreateManageService.selectMenuListJtreeWeb(menuManageVO) ;
|
List<MenuManageJTreeVO> menuResultList = menuCreateManageService.selectMenuListJtreeWeb(menuManageVO) ;
|
||||||
|
|
||||||
List<String> menuTwoExist = new ArrayList<>(); //2뎁스의 하위 매뉴가 있는것 조회
|
|
||||||
HashSet<String> underMenuEmpty = new HashSet<String>(); //2뎁스의 하위매뉴 없는것 조회
|
|
||||||
for(MenuManageJTreeVO menuManage : menuResultList){
|
|
||||||
if(menuManage.getDepths().equals("3")){
|
|
||||||
menuTwoExist.add(menuManage.getUpperMenuId()) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(menuManage.getDepths().equals("2")){
|
|
||||||
underMenuEmpty.add(menuManage.getMenuNo());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HashSet<String> underMenuExist = new HashSet<String>(menuTwoExist); //하위매뉴가 있는것
|
|
||||||
underMenuEmpty.removeAll(underMenuExist); //하위매뉴가 없는것
|
|
||||||
|
|
||||||
MenuManageJTreeVO menuManageTopVO = new MenuManageJTreeVO();
|
|
||||||
menuManageTopVO.setUpperMenuId("#");
|
|
||||||
menuManageTopVO.setMenuNo("0");
|
|
||||||
|
|
||||||
|
|
||||||
model.addAttribute("menuResultList", menuResultList);
|
model.addAttribute("menuResultList", menuResultList);
|
||||||
model.addAttribute("underMenuExist", underMenuExist);
|
|
||||||
model.addAttribute("underMenuEmpty", underMenuEmpty);
|
|
||||||
|
|
||||||
//자신의 위치 정보
|
|
||||||
List<MenuManageJTreeVO> menuCurrentResultList = new ArrayList<MenuManageJTreeVO>(); //자신의 위치
|
|
||||||
MenuManageVO resultVO = new MenuManageVO();
|
|
||||||
MenuManageVO tempMenuManageVO = new MenuManageVO();
|
|
||||||
tempMenuManageVO.setSearchCondition("Y");
|
|
||||||
setViewMenu(request , commandMap , tempMenuManageVO , resultVO , menuManageVO );
|
|
||||||
menuCurrentResultList = menuCreateManageService.selectMenuListCurrentJtreeWeb(menuManageVO) ;
|
|
||||||
Collections.reverse(menuCurrentResultList); //타이틀 역순을 위해
|
|
||||||
model.addAttribute("menuCurrentResultList", menuCurrentResultList);
|
|
||||||
|
|
||||||
//팝업존 > 전자조정 탑메뉴 위 팝업존
|
|
||||||
/* 팝업 가져오기 */
|
|
||||||
/*if(!isMobile(request)){ //PC인경우만
|
|
||||||
PopupManageVO popupManageVO = new PopupManageVO();
|
|
||||||
popupManageVO.setRecordCountPerPage(10); //10개만
|
|
||||||
popupManageVO.setNtceAt("Y"); //사용만
|
|
||||||
popupManageVO.setMainPageFlag("Y") ; //메인화면의 용도(시작일 종료일 사이 조회)
|
|
||||||
List<?> popupList = egovPopupManageService.selectPopupMainList(popupManageVO);
|
|
||||||
model.addAttribute("popupList", popupList);
|
|
||||||
|
|
||||||
PopupzoneVO popupzoneVo = new PopupzoneVO();
|
|
||||||
popupzoneVo.setFirstIndex(0);
|
|
||||||
popupzoneVo.setRecordCountPerPage(20);
|
|
||||||
popupzoneVo.setSeCd("02");
|
|
||||||
popupzoneVo.setUseYn("Y");
|
|
||||||
popupzoneVo.setSearchSortCnd("SORT");
|
|
||||||
popupzoneVo.setSearchSortOrd("ASC");
|
|
||||||
List<?> popupzoneList = egovPopupManageService.selectPopupzoneList(popupzoneVo);
|
|
||||||
model.addAttribute("popupzoneList", popupzoneList);
|
|
||||||
}*/
|
|
||||||
|
|
||||||
//샘플테마사용시 고정 이미지 가져오기
|
|
||||||
|
|
||||||
SsoLoginVO ssoLoginVO = (SsoLoginVO)session.getAttribute("SSOLoginVO");
|
SsoLoginVO ssoLoginVO = (SsoLoginVO)session.getAttribute("SSOLoginVO");
|
||||||
if(ssoLoginVO != null) {
|
if(ssoLoginVO != null) {
|
||||||
model.addAttribute("ssoLoginVO", ssoLoginVO);
|
model.addAttribute("ssoLoginVO", ssoLoginVO);
|
||||||
@ -551,7 +495,6 @@ public class MainController {
|
|||||||
model.addAttribute("joinUrl", joinUrl);
|
model.addAttribute("joinUrl", joinUrl);
|
||||||
model.addAttribute("modifyUrl", modifyUrl);
|
model.addAttribute("modifyUrl", modifyUrl);
|
||||||
|
|
||||||
|
|
||||||
return "web/com/webCommonHeader";
|
return "web/com/webCommonHeader";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -702,7 +645,7 @@ public class MainController {
|
|||||||
|
|
||||||
//사용자 방문수 insert
|
//사용자 방문수 insert
|
||||||
{
|
{
|
||||||
if(null == loginLogService.selectLoginUserLog(loginLog)){ //오늘날짜의 IP조회
|
// if(null == loginLogService.selectLoginUserLog(loginLog)){ //오늘날짜의 IP조회
|
||||||
SimpleDateFormat mSimpleDateFormat = new SimpleDateFormat ( "yyyyMMdd", Locale.KOREA );
|
SimpleDateFormat mSimpleDateFormat = new SimpleDateFormat ( "yyyyMMdd", Locale.KOREA );
|
||||||
Date currentTime = new Date ();
|
Date currentTime = new Date ();
|
||||||
String mTime = mSimpleDateFormat.format ( currentTime );
|
String mTime = mSimpleDateFormat.format ( currentTime );
|
||||||
@ -738,15 +681,15 @@ public class MainController {
|
|||||||
//loginLogService.logInsertLoginLog(loginLog);
|
//loginLogService.logInsertLoginLog(loginLog);
|
||||||
|
|
||||||
loginLogService.logInsertLoginLogNewStep1(loginLog);
|
loginLogService.logInsertLoginLogNewStep1(loginLog);
|
||||||
}
|
// }
|
||||||
|
|
||||||
//오늘 접속 / 최종접속
|
//오늘 접속 / 최종접속
|
||||||
LoginLog footerLog = new LoginLog();
|
// LoginLog footerLog = new LoginLog();
|
||||||
footerLog = loginLogService.selectLogCnt(footerLog);
|
// footerLog = loginLogService.selectLogCnt(footerLog);
|
||||||
model.addAttribute("footerLog", footerLog);
|
// model.addAttribute("footerLog", footerLog);
|
||||||
|
|
||||||
}
|
}
|
||||||
model.addAttribute("loginLog", loginLog);
|
// model.addAttribute("loginLog", loginLog);
|
||||||
return "web/com/webCommonFooter";
|
return "web/com/webCommonFooter";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1411,7 +1354,6 @@ public class MainController {
|
|||||||
//자신의 위치 정보
|
//자신의 위치 정보
|
||||||
List<MenuManageJTreeVO> menuCurrentResultList = new ArrayList<MenuManageJTreeVO>(); //자신의 위치
|
List<MenuManageJTreeVO> menuCurrentResultList = new ArrayList<MenuManageJTreeVO>(); //자신의 위치
|
||||||
List<MenuManageJTreeVO> menuLeftResultList = new ArrayList<MenuManageJTreeVO>(); //자신이 속한 위치
|
List<MenuManageJTreeVO> menuLeftResultList = new ArrayList<MenuManageJTreeVO>(); //자신이 속한 위치
|
||||||
List<MenuManageJTreeVO> menuUnderResultList = new ArrayList<MenuManageJTreeVO>(); //한단계 하위 위치
|
|
||||||
MenuManageVO resultVO = new MenuManageVO();
|
MenuManageVO resultVO = new MenuManageVO();
|
||||||
MenuManageVO tempMenuManageVO = new MenuManageVO();
|
MenuManageVO tempMenuManageVO = new MenuManageVO();
|
||||||
tempMenuManageVO.setSearchCondition("Y");
|
tempMenuManageVO.setSearchCondition("Y");
|
||||||
@ -1420,13 +1362,10 @@ public class MainController {
|
|||||||
menuCurrentResultList = menuCreateManageService.selectMenuListCurrentJtreeWeb(menuManageVO) ;
|
menuCurrentResultList = menuCreateManageService.selectMenuListCurrentJtreeWeb(menuManageVO) ;
|
||||||
//최상단 매뉴 가져오기 : 상단 그림 변화
|
//최상단 매뉴 가져오기 : 상단 그림 변화
|
||||||
menuLeftResultList = menuCreateManageService.selectMenuLeftListJtreeWeb(menuManageVO) ;
|
menuLeftResultList = menuCreateManageService.selectMenuLeftListJtreeWeb(menuManageVO) ;
|
||||||
menuUnderResultList = menuCreateManageService.selectMenuUnderListJtreeWeb(menuManageVO) ;
|
|
||||||
|
|
||||||
|
|
||||||
List<MenuManageJTreeVO> showOneDepthMenu = new ArrayList<MenuManageJTreeVO>();
|
List<MenuManageJTreeVO> showOneDepthMenu = new ArrayList<MenuManageJTreeVO>();
|
||||||
List<MenuManageJTreeVO> showTwoDepthMenu = new ArrayList<MenuManageJTreeVO>();
|
List<MenuManageJTreeVO> showTwoDepthMenu = new ArrayList<MenuManageJTreeVO>();
|
||||||
List<MenuManageJTreeVO> showThreeDepthMenu = new ArrayList<MenuManageJTreeVO>();
|
|
||||||
List<MenuManageJTreeVO> showFourDepthMenu = new ArrayList<MenuManageJTreeVO>();
|
|
||||||
|
|
||||||
for(MenuManageJTreeVO tempLeftMenu : menuLeftResultList){
|
for(MenuManageJTreeVO tempLeftMenu : menuLeftResultList){
|
||||||
if(tempLeftMenu.getDepths().equals("2")){
|
if(tempLeftMenu.getDepths().equals("2")){
|
||||||
@ -1437,21 +1376,6 @@ public class MainController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(tempLeftMenu.getDepths().equals("3")){
|
|
||||||
for(MenuManageJTreeVO tempCurrentThreeMenu : menuCurrentResultList){
|
|
||||||
if(tempLeftMenu.getUpperMenuId().equals(tempCurrentThreeMenu.getMenuNo())){
|
|
||||||
showThreeDepthMenu.add(tempLeftMenu);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(tempLeftMenu.getDepths().equals("4")){
|
|
||||||
for(MenuManageJTreeVO tempCurrentThreeMenu : menuCurrentResultList){
|
|
||||||
if(tempLeftMenu.getUpperMenuId().equals(tempCurrentThreeMenu.getMenuNo())){
|
|
||||||
showFourDepthMenu.add(tempLeftMenu);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
menuManageVO.setAuthorCode(auth);
|
menuManageVO.setAuthorCode(auth);
|
||||||
@ -1463,95 +1387,32 @@ public class MainController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//매뉴구조도 텍스트
|
// model.addAttribute("topMenuId", topMenuId);
|
||||||
String menuText = "";
|
// model.addAttribute("subMenuFile", subMenuFile);
|
||||||
menuText += "<li class='home'> </li>" ;
|
// model.addAttribute("pozNmText", pozNmText);
|
||||||
if(request.getRequestURI().contains("/eng")){ //영문사이트
|
//
|
||||||
int i = 0;
|
// model.addAttribute("menuText", menuText);
|
||||||
for(MenuManageJTreeVO menuTextVo : menuCurrentResultList){
|
|
||||||
if(i !=0){
|
|
||||||
menuText += "<li> > "+menuTextVo.getMenuNm()+"</li>" ;
|
|
||||||
}
|
|
||||||
i= i+1;
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
for(MenuManageJTreeVO menuTextVo : menuCurrentResultList){
|
|
||||||
menuText += "<li> > "+menuTextVo.getMenuNm()+"</li>" ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//메뉴별 비주얼 이미지가져오기
|
|
||||||
PopupzoneVO popupzoneVo = new PopupzoneVO();
|
|
||||||
popupzoneVo.setFirstIndex(0);
|
|
||||||
popupzoneVo.setRecordCountPerPage(10); //10개까지
|
|
||||||
popupzoneVo.setSeCd("01"); //메뉴별 비주얼
|
|
||||||
popupzoneVo.setUseYn("Y");
|
|
||||||
popupzoneVo.setSearchSortCnd("SORT");
|
|
||||||
List<?> popupzoneList_01 = egovPopupManageService.selectPopupzoneList(popupzoneVo);
|
|
||||||
String topMenuId = "01" ;
|
|
||||||
String subMenuFile = "" ;
|
|
||||||
String pozNmText = "" ;
|
|
||||||
|
|
||||||
int subMenuFileSize = popupzoneList_01.size() ;
|
|
||||||
|
|
||||||
if(menuCurrentResultList.size()!=0){
|
|
||||||
//1뎁스 매뉴에서 현제 매뉴의 몇번째인지를 가져온다.
|
|
||||||
int tempCurrentSub = 0;
|
|
||||||
for(MenuManageJTreeVO tempMenuManageJTreeVO : showOneDepthMenu){
|
|
||||||
if(((MenuManageJTreeVO)menuCurrentResultList.get(0)).getMenuNo().equals(tempMenuManageJTreeVO.getMenuNo())){
|
|
||||||
break;
|
|
||||||
}else {
|
|
||||||
tempCurrentSub = tempCurrentSub+1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//메인비주얼 맞는 순서를 가져온다.
|
|
||||||
if(subMenuFileSize > 0 ){
|
|
||||||
if(tempCurrentSub > 5 ) { //안보이는 매뉴
|
|
||||||
tempCurrentSub = 0;
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
subMenuFile = (String)((EgovMap)popupzoneList_01.get(tempCurrentSub)).get("popupzoneImageFile") ;
|
|
||||||
pozNmText = (String)((EgovMap)popupzoneList_01.get(tempCurrentSub)).get("pozNm") ;
|
|
||||||
}catch(Exception e) { //이미지 등록 안되 있으면 에러 나서 에러의 경우
|
|
||||||
subMenuFile = "FILE_000000000000000" ; //임의의 파일
|
|
||||||
System.out.println("Exception Occured!!!");
|
|
||||||
}
|
|
||||||
|
|
||||||
topMenuId = (tempCurrentSub+1)+"";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//샘플테마사용시 고정 이미지 가져오기
|
|
||||||
SiteManagerVO siteManagerVO = new SiteManagerVO();
|
|
||||||
siteManagerVO = egovSiteManagerService.selectSiteManagerVO(siteManagerVO) ;
|
|
||||||
if( !"".equals(siteManagerVO.getTheme()) && null != siteManagerVO.getTheme()){
|
|
||||||
model.addAttribute("siteManagerVO", siteManagerVO);
|
|
||||||
}
|
|
||||||
|
|
||||||
model.addAttribute("topMenuId", topMenuId);
|
|
||||||
model.addAttribute("subMenuFile", subMenuFile);
|
|
||||||
model.addAttribute("pozNmText", pozNmText);
|
|
||||||
|
|
||||||
model.addAttribute("menuText", menuText);
|
|
||||||
|
|
||||||
model.addAttribute("showOneDepthMenu", showOneDepthMenu);
|
model.addAttribute("showOneDepthMenu", showOneDepthMenu);
|
||||||
model.addAttribute("showTwoDepthMenu", showTwoDepthMenu);
|
model.addAttribute("showTwoDepthMenu", showTwoDepthMenu);
|
||||||
model.addAttribute("showThreeDepthMenu", showThreeDepthMenu);
|
|
||||||
model.addAttribute("showFourDepthMenu", showFourDepthMenu);
|
|
||||||
model.addAttribute("menuUnderResultList", menuUnderResultList); //하단매뉴
|
// model.addAttribute("showThreeDepthMenu", showThreeDepthMenu);
|
||||||
|
// model.addAttribute("showFourDepthMenu", showFourDepthMenu);
|
||||||
|
// model.addAttribute("menuUnderResultList", menuUnderResultList); //하단매뉴
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
model.addAttribute("menuCurrentResultList", menuCurrentResultList);
|
model.addAttribute("menuCurrentResultList", menuCurrentResultList);
|
||||||
model.addAttribute("menuLeftResultList", menuLeftResultList);
|
model.addAttribute("menuLeftResultList", menuLeftResultList);
|
||||||
model.addAttribute("menuResultList", menuResultList);
|
|
||||||
|
|
||||||
|
// model.addAttribute("menuResultList", menuResultList);
|
||||||
|
|
||||||
// 아래 처리중 중간네비 메뉴 조회를 위해 with recurseive 중첩절을 쓰는 쿼리가 있음으로, 큐브리드 쿼리화 필요
|
// 아래 처리중 중간네비 메뉴 조회를 위해 with recurseive 중첩절을 쓰는 쿼리가 있음으로, 큐브리드 쿼리화 필요
|
||||||
// 전자조정 종료
|
// 전자조정 종료
|
||||||
|
|
||||||
if(request.getRequestURI().contains("/eng/")){
|
|
||||||
return "web/com/engWebCommonNaviWrap";
|
|
||||||
}
|
|
||||||
return "web/com/webCommonNaviWrap";
|
return "web/com/webCommonNaviWrap";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,10 +84,11 @@
|
|||||||
, B.SATIS_YN AS satisYn,
|
, B.SATIS_YN AS satisYn,
|
||||||
A.EMPLYR_ID AS emplyrId ,
|
A.EMPLYR_ID AS emplyrId ,
|
||||||
C.USER_NM AS emplyrIdTxt ,
|
C.USER_NM AS emplyrIdTxt ,
|
||||||
(SELECT LOC_NM FROM ITSM_LOC WHERE LOC_NO = C.PART_IDX) AS locNmTxt
|
D.LOC_NM AS locNmTxt
|
||||||
FROM LETTNMENUINFO A
|
FROM LETTNMENUINFO A
|
||||||
LEFT JOIN LETTNMENUCREATDTLS B ON A.MENU_NO= B.MENU_NO
|
LEFT JOIN LETTNMENUCREATDTLS B ON A.MENU_NO= B.MENU_NO
|
||||||
LEFT JOIN LETTNEMPLYRINFO C ON A.EMPLYR_ID = C.EMPLYR_ID
|
LEFT JOIN LETTNEMPLYRINFO C ON A.EMPLYR_ID = C.EMPLYR_ID
|
||||||
|
LEFT JOIN ITSM_LOC D ON D.LOC_NO = C.PART_IDX
|
||||||
WHERE 1=1
|
WHERE 1=1
|
||||||
<isEmpty property="searchCondition"> /* 이전 원래 쿼리 */
|
<isEmpty property="searchCondition"> /* 이전 원래 쿼리 */
|
||||||
AND A.MENU_NO = #searchKeyword#
|
AND A.MENU_NO = #searchKeyword#
|
||||||
|
|||||||
@ -82,6 +82,19 @@ $( document).ready(function() {
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="depth01">
|
||||||
|
<button class="menu_tit" title="하위메뉴 열기">
|
||||||
|
발송관리
|
||||||
|
</button>
|
||||||
|
<ul class="depth02" style="">
|
||||||
|
<li id="top_href_99929200" value="SMS 발송" onclick="javascript:goMenuPage('99929200', '/kccadr/sendMgr/smsSendMgr.do')">
|
||||||
|
<a href="#">SMS 발송</a>
|
||||||
|
</li>
|
||||||
|
<li id="top_href_99929100" value="이메일 발송" onclick="javascript:goMenuPage('99929100', '/kccadr/sendMgr/emailSendMgr.do')">
|
||||||
|
<a href="#">이메일 발송</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:otherwise>
|
<c:otherwise>
|
||||||
<c:forEach var="result" items="${list_headmenu}" varStatus="status">
|
<c:forEach var="result" items="${list_headmenu}" varStatus="status">
|
||||||
|
|||||||
@ -3,12 +3,6 @@
|
|||||||
<script type="text/javaScript" language="javascript" defer="defer">
|
<script type="text/javaScript" language="javascript" defer="defer">
|
||||||
|
|
||||||
function footerSiteLinkPageGo (){
|
function footerSiteLinkPageGo (){
|
||||||
/* var site = $('#footerSite').val();
|
|
||||||
if(site == ""){
|
|
||||||
alert("사이트를 선택해 주세요")
|
|
||||||
}else{
|
|
||||||
window.open(site);
|
|
||||||
} */
|
|
||||||
var url = $("#footerSite").val();
|
var url = $("#footerSite").val();
|
||||||
|
|
||||||
if (url == ""){
|
if (url == ""){
|
||||||
@ -74,13 +68,6 @@ function footerSiteLinkPageGo (){
|
|||||||
</select>
|
</select>
|
||||||
<button class="btn_go" title="새창열림 사이트 이동" onclick="footerSiteLinkPageGo();">GO</button>
|
<button class="btn_go" title="새창열림 사이트 이동" onclick="footerSiteLinkPageGo();">GO</button>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="site_go">
|
|
||||||
<select name="footerSite" id="footerSite">
|
|
||||||
<option value="">관련사이트 바로가기</option>
|
|
||||||
<option value="https://www.copyright.or.kr/main.do">한국저작권위원회</option>
|
|
||||||
</select>
|
|
||||||
<button class="btn_go" title="사이트 이동" onclick="footerSiteLinkPageGo();">GO</button>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
<h1 class="logo"><a href="/" title="메인으로 이동"><img src="/kccadrPb/usr/image/common/footer_logo.png"
|
<h1 class="logo"><a href="/" title="메인으로 이동"><img src="/kccadrPb/usr/image/common/footer_logo.png"
|
||||||
alt="저작권 전자조정시스템 Copyright Electronic Coordination System"></a></h1>
|
alt="저작권 전자조정시스템 Copyright Electronic Coordination System"></a></h1>
|
||||||
|
|||||||
@ -6,23 +6,6 @@
|
|||||||
<%-- <head> --%>
|
<%-- <head> --%>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function (){
|
$(document).ready(function (){
|
||||||
<%-- 전자조정
|
|
||||||
|
|
||||||
<c:if test="${topMenuId=='7'}">
|
|
||||||
$('.subContWrap').addClass( 'search' );
|
|
||||||
</c:if>
|
|
||||||
<c:if test="${topMenuId!='7'}">
|
|
||||||
$('.subContWrap').addClass( 'sub<c:out value='${topMenuId}' />');
|
|
||||||
</c:if>
|
|
||||||
|
|
||||||
$('.printBtn').click(function(e){
|
|
||||||
if(!confirm("프린트 하시겠습니까?")){
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
var printPopup;
|
|
||||||
printPopup= window.open("/tempPrint1.html","print_open","width=1536,height=722,top=0,left=0,noresizable,toolbar=no,status=no,scrollbars=yes,directory=n");
|
|
||||||
}); --%>
|
|
||||||
|
|
||||||
$("#snb_1depth li a").each(function(idx) {
|
$("#snb_1depth li a").each(function(idx) {
|
||||||
var ahref = $("nav#menu ul.depth01 li.depth01_li:eq("+idx+") a").attr("href");
|
var ahref = $("nav#menu ul.depth01 li.depth01_li:eq("+idx+") a").attr("href");
|
||||||
//console.log($("nav#menu ul.depth01 li.depth01_li:eq("+idx+") a").attr("href")); // 요기. 최종마지막 부터 해야함
|
//console.log($("nav#menu ul.depth01 li.depth01_li:eq("+idx+") a").attr("href")); // 요기. 최종마지막 부터 해야함
|
||||||
@ -30,122 +13,8 @@ $(document).ready(function (){
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/* function snsShare(snsName, link, title) { */
|
|
||||||
function snsShare(snsName) {
|
|
||||||
//if (title === null) return false;
|
|
||||||
var snsPopUp;
|
|
||||||
var _width = '500';
|
|
||||||
var _height = '450';
|
|
||||||
var _left = Math.ceil(( window.screen.width - _width )/2);
|
|
||||||
var _top = Math.ceil(( window.screen.height - _height )/2);
|
|
||||||
|
|
||||||
link = location.href ;
|
|
||||||
title = $.trim ( $(document).find("title").text() );
|
|
||||||
switch(snsName){
|
|
||||||
case 'facebook':
|
|
||||||
snsPopUp = window.open("http://www.facebook.com/sharer/sharer.php?u=" + link, '', 'width='+ _width +', height='+ _height +', left=' + _left + ', top='+ _top);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'twitter' :
|
|
||||||
snsPopUp = window.open("http://twitter.com/intent/tweet?url=" + link + "&text=" + title, '', 'width='+ _width +', height='+ _height +', left=' + _left + ', top='+ _top);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'kakao' :
|
|
||||||
snsPopUp = window.open("https://story.kakao.com/share?url=" + link, '', 'width='+ _width +', height='+ _height +', left=' + _left + ', top='+ _top);
|
|
||||||
break;
|
|
||||||
case 'addurl' :
|
|
||||||
prompt('이 페이지의 URL입니다. Ctrl+C를 눌러 클립보드로 복사하세요', link);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<%-- </head> --%>
|
|
||||||
|
|
||||||
<%-- 전자조정 HTML 시작
|
|
||||||
<c:if test="${not empty menuCurrentResultList}">
|
|
||||||
<div class="subVisWrap" style="background-image:url('<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${subMenuFile}"/>'); background-repeat:no-repeat;">
|
|
||||||
<!-- <div class="subVisWrap"> -->
|
|
||||||
<div class="subVisTxt">
|
|
||||||
<h2 class="subTit">
|
|
||||||
<c:out value='${menuCurrentResultList.get(0).menuNm}' />
|
|
||||||
</h2>
|
|
||||||
</div>
|
|
||||||
<div class="subTab">
|
|
||||||
<ul class="pcTab tab<c:out value='${fn:length(showTwoDepthMenu)}' />">
|
|
||||||
<c:forEach var="menuLeftResultList" items="${menuLeftResultList}" varStatus="status">
|
|
||||||
<c:if test="${menuLeftResultList.depth eq '2' }">
|
|
||||||
<li <c:if test="${menuLeftResultList.menuNo eq menuCurrentResultList[1].menuNo }">class="tabOn"</c:if>>
|
|
||||||
<c:if test="${menuLeftResultList.menuNo eq menuCurrentResultList[1].menuNo }">
|
|
||||||
<a href="${empty menuLeftResultList.url ? '#' : menuLeftResultList.url}" <c:out value='${'O' eq menuLeftResultList.menuType ? 'target=_blank' : ''}' />>
|
|
||||||
<!-- <a href="#"> -->
|
|
||||||
</c:if>
|
|
||||||
<c:if test="${menuLeftResultList.menuNo ne menuCurrentResultList[1].menuNo }">
|
|
||||||
<a href="${empty menuLeftResultList.url ? '#' : menuLeftResultList.url}" <c:out value='${'O' eq menuLeftResultList.menuType ? 'target=_blank' : ''}' />>
|
|
||||||
</c:if>
|
|
||||||
<c:out value='${menuLeftResultList.menuNm}' />
|
|
||||||
</a></li>
|
|
||||||
</c:if>
|
|
||||||
</c:forEach>
|
|
||||||
</ul>
|
|
||||||
<div class="mTab">
|
|
||||||
<div class="snbTit"><c:out value='${menuCurrentResultList[1].menuNm}' /><button class="snbBtn" onclick="snbTg();" title="<c:out value='${menuCurrentResultList.get(0).menuNm}' /> 하위메뉴 열기"></button></div>
|
|
||||||
<div class="snb">
|
|
||||||
<ul>
|
|
||||||
<c:forEach var="menuLeftResultList" items="${menuLeftResultList}" varStatus="status">
|
|
||||||
<c:if test="${menuLeftResultList.depth eq '2' }">
|
|
||||||
<li <c:if test="${menuLeftResultList.menuNo eq menuCurrentResultList[1].menuNo }">class="active"</c:if>>
|
|
||||||
<a href="${empty menuLeftResultList.url ? '#' : menuLeftResultList.url}" <c:out value='${menuLeftResultList.menuType eq'O' ? 'target="_black" title="새창열림"' : ""}' />><c:out value='${menuLeftResultList.menuNm}' /><c:if test="${menuLeftResultList.menuType eq 'O' }"><img src="/publish/image/common/linkIcon.png" alt="외부링크"></c:if></a>
|
|
||||||
</li>
|
|
||||||
</c:if>
|
|
||||||
</c:forEach>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</c:if>
|
|
||||||
|
|
||||||
<div class="subUtil">
|
|
||||||
<div class="utilWrap">
|
|
||||||
<div class="subLocation">
|
|
||||||
<ul class="inline">
|
|
||||||
<li><img src="/publish/image/homeIcon.png" alt="HOME"></li>
|
|
||||||
<c:forEach var="menuCurrentResultList" items="${menuCurrentResultList}" varStatus="status">
|
|
||||||
<li><c:out value='${menuCurrentResultList.menuNm}' /></li>
|
|
||||||
</c:forEach>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="utilBtn">
|
|
||||||
<ul class="inline"> <!-- ul 중복으로 두개 있어서 하나 삭제. -->
|
|
||||||
<li><button type="button" onclick="shareBtn(this);" title="공유하기 열기"><img src="/publish/image/shareIcon.png" alt="공유"> <p>SHARE</p></button>
|
|
||||||
<div class="shareWrap">
|
|
||||||
<ul class="flex cont3">
|
|
||||||
<li>
|
|
||||||
<button type="button" onclick="snsShare('facebook'); return false;" title="새창열림">
|
|
||||||
<img src="/publish/image/common/facebook.png" alt="페이스북 공유"><p class="fs14 fwLg">페이스북</p>
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<button type="button" onclick="snsShare('kakao'); return false;" title="새창열림">
|
|
||||||
<img src="/publish/image/common/kakaostory.png" alt="카카오스토리 공유"><p class="fs14 fwLg">카카오스토리</p>
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<button type="button" onclick="snsShare('addurl'); return false;">
|
|
||||||
<img src="/publish/image/common/link.png" alt="URL 복사">
|
|
||||||
<p class="fs14 fwLg">URL 복사</p>
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li><button type="button" class="printBtn" title="새창열림"><img src="/publish/image/printIcon.png" alt="프린트 열기"> <p>PRINT</p></button></li>
|
|
||||||
<!-- <button type="button" onclick="javascript:window.print();" title="새창열림"> -->
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
//전자조정 HTML 종료 --%>
|
|
||||||
|
|
||||||
<!-- snb -->
|
<!-- snb -->
|
||||||
<div class="cont_nav">
|
<div class="cont_nav">
|
||||||
@ -205,16 +74,6 @@ function snsShare(snsName) {
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="snb_wrap">
|
|
||||||
<button class="snb_tit" title="하위메뉴 열기">조정신청</button>
|
|
||||||
<ul class="snb_depth">
|
|
||||||
<li><a href="#">전자조정 안내</a></li>
|
|
||||||
<li><a href="#">전자조정 신청</a></li>
|
|
||||||
<li><a href="#">사례/통계</a></li>
|
|
||||||
<li><a href="#">정보마당</a></li>
|
|
||||||
<li><a href="#">마이페이지</a></li>
|
|
||||||
</ul>
|
|
||||||
</div> -->
|
|
||||||
</c:if>
|
</c:if>
|
||||||
<!-- 로그인 화면일 경우에 예외로 URL 패턴을 가져와서 처리함 -->
|
<!-- 로그인 화면일 경우에 예외로 URL 패턴을 가져와서 처리함 -->
|
||||||
<c:set var="path" value="<%= request.getServletPath() %>"/>
|
<c:set var="path" value="<%= request.getServletPath() %>"/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user