refactor:체험하기 로그인 html 화면
This commit is contained in:
parent
c70af795a3
commit
514445f096
@ -170,6 +170,10 @@ public class AdjstReqVO extends ComDefaultVO implements Serializable {
|
||||
private String exmpTit;
|
||||
private String exmpCcTy;
|
||||
private String codeId;
|
||||
private String loginNextUrl;
|
||||
|
||||
|
||||
|
||||
public String getSrchYear() {
|
||||
return srchYear;
|
||||
}
|
||||
@ -871,6 +875,12 @@ public class AdjstReqVO extends ComDefaultVO implements Serializable {
|
||||
public void setCodeId(String codeId) {
|
||||
this.codeId = codeId;
|
||||
}
|
||||
public String getLoginNextUrl() {
|
||||
return loginNextUrl;
|
||||
}
|
||||
public void setLoginNextUrl(String loginNextUrl) {
|
||||
this.loginNextUrl = loginNextUrl;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -102,6 +102,19 @@ public class AdjstExpController {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(AdjstExpController.class);
|
||||
|
||||
/**
|
||||
* 체험하기 로그인 페이지
|
||||
*/
|
||||
@RequestMapping("/web/kccadr/adjstExp/SsoLoginUsr.do")
|
||||
public String SsoLoginUsr(@ModelAttribute("adjstReqVO") AdjstReqVO adjstReqVO, HttpServletRequest request, ModelMap model) throws Exception {
|
||||
|
||||
System.out.println("adjstReqVO.getStep() :: " + adjstReqVO.getStep());
|
||||
model.addAttribute("loginNextUrl", adjstReqVO.getLoginNextUrl());
|
||||
model.addAttribute("step", adjstReqVO.getStep());
|
||||
return "/web/kccadr/adjstExp/SsoLoginUsr";
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 체험하기 메인페이지
|
||||
*/
|
||||
|
||||
@ -137,6 +137,8 @@ public class AdjstExpDetailController {
|
||||
*/
|
||||
String step = request.getParameter("step");
|
||||
|
||||
System.out.println("step :: "+ step);
|
||||
|
||||
return "/web/kccadr/adjstExpDetail/adjstReqStatusTabDetail";
|
||||
}
|
||||
/**
|
||||
|
||||
@ -335,6 +335,7 @@ public class EgovLoginController {
|
||||
|
||||
model.addAttribute("beforeUrl", beforeUrl);
|
||||
model.addAttribute("message", message);
|
||||
|
||||
// initRsa(request);
|
||||
if (test != null && test.equals("test")) {
|
||||
return "web/kccadr/login/SsoLoginUsr3";
|
||||
|
||||
121
src/main/webapp/WEB-INF/jsp/web/kccadr/adjstExp/SsoLoginUsr.jsp
Normal file
121
src/main/webapp/WEB-INF/jsp/web/kccadr/adjstExp/SsoLoginUsr.jsp
Normal file
@ -0,0 +1,121 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
if(${message != null}){
|
||||
alert('${message}');
|
||||
}
|
||||
if(${loginNextUrl != null}){
|
||||
var loginNextUrl = '${loginNextUrl}';
|
||||
$('#loginForm').attr('action', loginNextUrl);
|
||||
}
|
||||
});
|
||||
function press(event) { if (event.keyCode == 13) actionLogin(); }
|
||||
|
||||
|
||||
function login() {
|
||||
if($('#devIdSelect').val()!=""){
|
||||
|
||||
var id = ($('#devIdSelect').val()).split(':');
|
||||
|
||||
$("#id_text").val(id[0]);
|
||||
$("#password_text").val(id[1]);
|
||||
|
||||
|
||||
$("#id").val(id[0]);
|
||||
$("#password").val(id[1]);
|
||||
|
||||
$("#isSelect").val("Y");
|
||||
|
||||
document.loginForm.action="<c:url value='/web/user/login/actionSecurityLogin.do'/>";
|
||||
document.loginForm.submit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function actionLogin() {
|
||||
|
||||
document.loginForm.submit();
|
||||
|
||||
}
|
||||
|
||||
/* 아이디 비밀번호 찾기 link */
|
||||
function usrIdPassFind(choose){
|
||||
var frm = document.usrJoinForm;
|
||||
var actionUrl;
|
||||
frm.returnSiteCode.value = "<c:out value='${returnSiteCode}'/>";
|
||||
frm.returnSiteUrl.value = "<c:out value='${returnSiteUrl}'/>";
|
||||
|
||||
frm.target="_blank";
|
||||
|
||||
if(choose == 'id'){
|
||||
actionUrl = "<c:url value='${idFindUrl}'/>";
|
||||
}else{
|
||||
actionUrl = "<c:url value='${pwFindUrl}'/>";
|
||||
}
|
||||
|
||||
frm.action = actionUrl;
|
||||
frm.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
<form:form id="loginForm" name="loginForm" method="post" action="/web/user/login/actionSecurityLogin.do">
|
||||
<input type="hidden" name="beforeUrl" value='<c:out value="${beforeUrl}"></c:out>' />
|
||||
<input type="hidden" name="loginNextUrl" id="loginNextUrl" value='<c:out value="${loginNextUrl}"></c:out>' />
|
||||
<input type="hidden" name="step" id="step" value='<c:out value="${step}"></c:out>' />
|
||||
<input type="hidden" name="userSe" value="GNR" />
|
||||
<input type="hidden" id="id" name="id">
|
||||
<input type="hidden" id="password" name="password">
|
||||
<kc:profile value="local">
|
||||
<input type="hidden" id="isSelect" name="isSelect">
|
||||
</kc:profile>
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap login_cont" id="sub">
|
||||
<div class="inner">
|
||||
<div class="cont_tit">
|
||||
<h2>체험하기 로그인</h2>
|
||||
</div>
|
||||
<fieldset>
|
||||
|
||||
|
||||
<div class="login_wrap">
|
||||
<p class="login_tit">
|
||||
<span>로그인</span>
|
||||
해주세요
|
||||
</p>
|
||||
|
||||
<div class="login_form">
|
||||
<label for="id_text">아이디 입력</label>
|
||||
<input type="text" id="id_text" placeholder="아이디를 입력해주세요" value="GUEST">
|
||||
<label for="password_text">비밀번호 입력</label>
|
||||
<!-- <input type="password" id="password_text" onkeypress="press(event)" placeholder="비밀번호를 입력해주세요"> -->
|
||||
<input type="password" id="password_text" onkeypress="press(event)" placeholder="비밀번호를 입력해주세요" value="guest">
|
||||
<div class="btn_wrap">
|
||||
<button type="button" onclick="javascript:actionLogin();" class="btn_login">로그인</button>
|
||||
<%-- <button type="button" onclick="window.open('<c:out value='${joinUrl}'/>')" title="새창열림" class="btn_join">회원가입</button> --%>
|
||||
<button type="button" onclick="alert('체험하기 기능입니다.'); return false;" title="새창열림" class="btn_join">회원가입</button>
|
||||
</div>
|
||||
<div class="login_util">
|
||||
<button type="button" title="새창열림" onclick="alert('체험하기 기능입니다.'); return false;">아이디 찾기</button>
|
||||
<button type="button" title="새창열림" onclick="alert('체험하기 기능입니다.'); return false;">비밀번호 찾기</button>
|
||||
<!-- <button type="button" title="새창열림" onclick="usrIdPassFind('id'); return false;">아이디 찾기</button> -->
|
||||
<!-- <button type="button" title="새창열림" onclick="usrIdPassFind('pass'); return false;">비밀번호 찾기</button> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //cont -->
|
||||
</form:form>
|
||||
|
||||
<%-- <form id="usrForm" name="usrForm" method="post" action="">
|
||||
<input type="hidden" id="returnSiteCode" name="returnSiteCode" value="" />
|
||||
<input type="hidden" id="returnSiteUrl" name="returnSiteUrl" value="" />
|
||||
</form> --%>
|
||||
@ -43,7 +43,8 @@
|
||||
function linkPage(pageNo){
|
||||
var listForm = document.listForm ;
|
||||
listForm.pageIndex.value = pageNo ;
|
||||
listForm.action = "<c:url value='/web/kccadr/accdnt/ai/adjstIncidentList.do'/>";
|
||||
// listForm.action = "<c:url value='/web/kccadr/accdnt/ai/adjstIncidentList.do'/>";
|
||||
listForm.action = "<c:url value='/web/kccadr/adjstExp/adjstIncidentList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
@ -103,6 +104,8 @@
|
||||
<input type="hidden" name="searchSortCnd" value="<c:out value="${adjstIncidentVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${adjstIncidentVO.searchSortOrd}" />" />
|
||||
<input type="hidden" name="searchStatus" value="<c:out value="${adjstIncidentVO.searchStatus}" />" />
|
||||
<input type="hidden" name="searchCondition" value="" />
|
||||
<input type="hidden" name="searchKeyword" value="" />
|
||||
<input type="hidden" name="adrSeq" value="" />
|
||||
<input type="hidden" name="adrSn" value="" />
|
||||
<input type="hidden" name="step" value="4" />
|
||||
@ -123,53 +126,7 @@
|
||||
<button type="button" onclick="fncStatusList('B'); return false;" class="${adjstIncidentVO.searchStatus eq 'B' ? 'on' : '' } tab">진행</button>
|
||||
<button type="button" onclick="fncStatusList('C'); return false;" class="${adjstIncidentVO.searchStatus eq 'C' ? 'on' : '' } tab">종결</button>
|
||||
</div>
|
||||
<div class="list_util">
|
||||
<%--
|
||||
<label for="searchCondition">검색조건 선택</label>
|
||||
<select name="searchCondition" id="searchCondition" class="subSearch">
|
||||
<option value="1" ${adjstIncidentVO.searchCondition eq '1' ? 'selected' : '' }>조정번호</option>
|
||||
<option value="2" ${adjstIncidentVO.searchCondition eq '2' ? 'selected' : '' }>접수기간</option>
|
||||
<option value="3" ${adjstIncidentVO.searchCondition eq '3' ? 'selected' : '' }>신청인명</option>
|
||||
<option value="4" ${adjstIncidentVO.searchCondition eq '4' ? 'selected' : '' }>피신청인명</option>
|
||||
<option value="5" ${adjstIncidentVO.searchCondition eq '5' ? 'selected' : '' }>신청내용</option>
|
||||
<c:if test="${adjstIncidentVO.searchStatus ne 'B'}">
|
||||
<option value="6" ${adjstIncidentVO.searchCondition eq '6' ? 'selected' : '' }>조정상태</option>
|
||||
</c:if>
|
||||
</select>
|
||||
<div class="sel_date">
|
||||
<div class="calendar_wrap">
|
||||
<input type="text" class="searchStartDt startDate inp" title="검색시작일" id="searchStartDt" name="searchStartDt" value="${adjstIncidentVO.searchStartDt}" data-datecontrol="true" onclick="return calendarOpen('searchStartDt-lry','',this);" onfocus="return calendarOpen('searchStartDt-lry','',this);" onkeyup="this.value = date_mask(this.value)" maxlength="10">
|
||||
<button type="button" title="달력 팝업 열기" class="btn_start btn_cal" onclick="return calendarOpen('searchStartDt-lry','',this);"><i></i></button>
|
||||
</div>
|
||||
<!-- <div class="calendar_in" id="calendarName_startDate" style="z-index: 9;">
|
||||
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('searchStartDt-lry','',this)" class="btn_cal"></button>
|
||||
<div id="searchStartDt-lry" class="calendarPop" style="display: none;">
|
||||
<iframe id="searchStartDt-ifrm" name="searchStartDt-ifrm" class="calendar-frame" src="/kccadrPb/usr/mini_calendar.html" title="달력 팝업" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
</div> --> ~
|
||||
<div class="calendar_wrap">
|
||||
<input type="text" class="searchEndDt endDate inp" title="검색종료일" id="searchEndDt" name="searchEndDt" value="${adjstIncidentVO.searchEndDt}" data-datecontrol="true" onclick="return calendarOpen2('searchEndDt-lry','',this);" onfocus="return calendarOpen2('searchEndDt-lry','',this);" onkeyup="this.value = date_mask(this.value)" maxlength="10">
|
||||
<button type="button" title="달력 팝업 열기" class="btn_end btn_cal" onclick="return calendarOpen2('searchEndDt-lry','',this);" ><i></i></button>
|
||||
</div>
|
||||
<!-- <div class="calendar_in" id="calendarName_endDate" style="z-index: 9;">
|
||||
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('searchEndDt-lry','',this)" class="btn_cal"></button>
|
||||
<div id="searchEndDt-lry" class="calendarPop" style="display: none;">
|
||||
<iframe id="searchEndDt-ifrm" name="searchEndDt-ifrm" class="calendar-frame" src="/kccadrPb/usr/mini_calendar.html" title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="select_wrap">
|
||||
<label for="searchSelStatus">조정상태 선택</label>
|
||||
<kc:select codeId="CC022" name="searchSelStatus" id="searchSelStatus" defaultValue="" defaultText="선택" selectedValue="${adjstIncidentVO.searchSelStatus}" between="201010,309050" styleClass="select_status"/>
|
||||
</div>
|
||||
<div class="input_wrap">
|
||||
<label for="searchKeyword">검색어 입력</label>
|
||||
<input type="text" class="search_input" id=searchKeyword name="searchKeyword" placeholder="검색어를 입력하세요" value="<c:out value='${adjstIncidentVO.searchKeyword}'/>">
|
||||
</div>
|
||||
<button class="btn_search" onclick="fncGoList();">검색</button>
|
||||
|
||||
--%>
|
||||
</div>
|
||||
<div class="list_util"></div>
|
||||
</div>
|
||||
<!-- //list_top -->
|
||||
|
||||
|
||||
@ -91,18 +91,20 @@ function fn_egov_inqire_notice(bbsId, nttId) {
|
||||
|
||||
function goExpPage(num) {
|
||||
|
||||
|
||||
var frm = document.dtlFrm;
|
||||
|
||||
var actionUrl = "";
|
||||
frm.step.value = num
|
||||
var actionUrl = "<c:url value='/web/kccadr/adjstExp/SsoLoginUsr.do'/>";
|
||||
|
||||
if(num==1){//접수페이지
|
||||
actionUrl = "<c:url value='/web/kccadr/adjstExp/adjstReqRegistInformation.do'/>";
|
||||
goUrl = "<c:url value='/web/kccadr/adjstExp/adjstReqRegistInformation.do'/>";
|
||||
} else{
|
||||
actionUrl = "<c:url value='/web/kccadr/adjstExpDetail/adjstReqStatusDetail.do' />"
|
||||
goUrl = "<c:url value='/web/kccadr/adjstExpDetail/adjstReqStatusDetail.do' />"
|
||||
}
|
||||
|
||||
|
||||
frm.loginNextUrl.value = goUrl;
|
||||
frm.step.value = num;
|
||||
frm.action = actionUrl;
|
||||
frm.submit();
|
||||
|
||||
@ -189,8 +191,8 @@ function goExpPage(num) {
|
||||
<div class="baro_cont experience_cont">
|
||||
<div class="inner">
|
||||
<div class="mask"></div>
|
||||
<a href="#" onclick="goExpPage(1);" title="접수 페이지 바로가기"><i></i>
|
||||
<p>접수</p>
|
||||
<a href="#" onclick="goExpPage(1);" title="조정신청 페이지 바로가기"><i></i>
|
||||
<p>조정신청</p>
|
||||
<div class="tooltip_box">
|
||||
<div class="tooltip_type01">
|
||||
<div class="text_area">
|
||||
@ -205,8 +207,8 @@ function goExpPage(num) {
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="#" onclick="goExpPage(2);" title="기일지정 페이지 바로가기"><i></i>
|
||||
<p>기일지정</p>
|
||||
<a href="#" onclick="goExpPage(2);" title="서류제출 페이지 바로가기"><i></i>
|
||||
<p>서류제출</p>
|
||||
<div class="tooltip_box">
|
||||
<div class="tooltip_type01">
|
||||
<div class="text_area">
|
||||
@ -221,8 +223,8 @@ function goExpPage(num) {
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="#" onclick="goExpPage(3);" title="기일개최 페이지 바로가기"><i></i>
|
||||
<p>기일개최</p>
|
||||
<a href="#" onclick="goExpPage(3);" title="진행상황 페이지 바로가기"><i></i>
|
||||
<p>진행상황</p>
|
||||
<div class="tooltip_box">
|
||||
<div class="tooltip_type01">
|
||||
<div class="text_area">
|
||||
@ -237,8 +239,8 @@ function goExpPage(num) {
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="#" onclick="goExpPage(4);" title="조정중 페이지 바로가기"><i></i>
|
||||
<p>조정중</p>
|
||||
<a href="#" onclick="goExpPage(4);" title="열람·발급 페이지 바로가기"><i></i>
|
||||
<p>열람·발급</p>
|
||||
<div class="tooltip_box">
|
||||
<div class="tooltip_type01">
|
||||
<div class="text_area">
|
||||
@ -253,8 +255,8 @@ function goExpPage(num) {
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="#" onclick="goExpPage(5);" title="종료 페이지 바로가기"><i></i>
|
||||
<p>종료</p>
|
||||
<a href="#" onclick="goExpPage(5);" title="문의게시판 페이지 바로가기"><i></i>
|
||||
<p>문의게시판</p>
|
||||
<div class="tooltip_box">
|
||||
<div class="tooltip_type01">
|
||||
<div class="text_area">
|
||||
@ -386,6 +388,7 @@ function goExpPage(num) {
|
||||
<input type="hidden" name="nttId" value="" />
|
||||
</form>
|
||||
<form name="dtlFrm" method="post">
|
||||
<input type="hidden" name="step" value="" />
|
||||
<input type="hidden" name="loginNextUrl" id="loginNextUrl" value="" />
|
||||
<input type="hidden" name="step" id="step" value="" />
|
||||
</form>
|
||||
</html>
|
||||
@ -16,6 +16,7 @@
|
||||
$("#tabNav > button").on("click" , function(e){
|
||||
tabPageLoad($(this).index());
|
||||
});
|
||||
console.log('${step}');
|
||||
tabPageLoad(0);
|
||||
});
|
||||
|
||||
@ -30,7 +31,8 @@
|
||||
}
|
||||
, function(res, status, xhr){
|
||||
console.log(status);
|
||||
$(".step0"+${step}).addClass("active");
|
||||
// console.log(${step});
|
||||
$(".step0"+'${step}').addClass("active");
|
||||
});
|
||||
}
|
||||
function getPageUrl(idx){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user