|
|
|
@ -54,9 +54,6 @@
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<select id="institute" name="institute" class="form-select mb-2"
|
|
|
|
|
style="height:45px;width:100%;max-width:560px;">
|
|
|
|
|
<option value="4060000">파주시</option>
|
|
|
|
|
<option value="4050000">용인시</option>
|
|
|
|
|
<option value="3910000">평택시</option>
|
|
|
|
|
<option value="default">기본</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
@ -90,15 +87,13 @@
|
|
|
|
|
<template id="selectInstDialogTemplate">
|
|
|
|
|
<select class="form-select form-control-sm" id="selectInst">
|
|
|
|
|
<option value="">선택</option>
|
|
|
|
|
<option value="4060000">파주시</option>
|
|
|
|
|
<option value="4050000">용인시</option>
|
|
|
|
|
<option value="3910000">평택시</option>
|
|
|
|
|
</select>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<jsp:include page="/WEB-INF/jsp/include/tail.jsp" />
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
var INST_LIST = [];
|
|
|
|
|
|
|
|
|
|
${functions}
|
|
|
|
|
|
|
|
|
@ -132,53 +127,74 @@ function login() {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 회원가입 팝업
|
|
|
|
|
*/
|
|
|
|
|
function fnOpenSignup(){
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : "selectInstDialog",
|
|
|
|
|
title : "기관 선택",
|
|
|
|
|
content : document.getElementById("selectInstDialogTemplate").innerHTML,
|
|
|
|
|
size : "sm",
|
|
|
|
|
init : () => {
|
|
|
|
|
var options = "";
|
|
|
|
|
for(var i=0; i < INST_LIST.length; i++){
|
|
|
|
|
options += "<option value='"+INST_LIST[i].INST_CD+"'>"+INST_LIST[i].INST_NM+"</option>";
|
|
|
|
|
}
|
|
|
|
|
$("#selectInst").append(options);
|
|
|
|
|
},
|
|
|
|
|
onOK : () => {
|
|
|
|
|
if($("#selectInst").val() == ""){
|
|
|
|
|
alert("기관을 선택하세요.");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dialog.close("selectInstDialog");
|
|
|
|
|
window.open(wctx.url("/error/signupPage.do")+"?institute="+$("#selectInst").val(),
|
|
|
|
|
"regAccount",
|
|
|
|
|
"width=950, height=500");
|
|
|
|
|
},
|
|
|
|
|
onClose : () => {}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 아이디 찾기 팝업
|
|
|
|
|
*/
|
|
|
|
|
function fn_FindId(){
|
|
|
|
|
window.open(".do", "findId", {width: 500, height:300});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 비밀번호 찾기 팝업
|
|
|
|
|
*/
|
|
|
|
|
function fn_FindPw(){
|
|
|
|
|
window.open(".do", "findPw", {width: 500, height:330});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#formAuthentication input").onEnterPress(login);
|
|
|
|
|
if ($("#userId").val())
|
|
|
|
|
$("#password").focus();
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url("/error/instList.do"),
|
|
|
|
|
data : { },
|
|
|
|
|
success : (resp) => {
|
|
|
|
|
INST_LIST = resp.instList;
|
|
|
|
|
|
|
|
|
|
var options = "";
|
|
|
|
|
for(var i=0; i < INST_LIST.length; i++){
|
|
|
|
|
options += "<option value='"+INST_LIST[i].INST_CD+"'>"+INST_LIST[i].INST_NM+"</option>";
|
|
|
|
|
}
|
|
|
|
|
$("#institute").append(options);
|
|
|
|
|
$("#institute").val("4060000");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 회원가입 팝업
|
|
|
|
|
*/
|
|
|
|
|
function fnOpenSignup(){
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : "selectInstDialog",
|
|
|
|
|
title : "기관 선택",
|
|
|
|
|
content : document.getElementById("selectInstDialogTemplate").innerHTML,
|
|
|
|
|
size : "sm",
|
|
|
|
|
init : () => {},
|
|
|
|
|
onOK : () => {
|
|
|
|
|
if($("#selectInst").val() == ""){
|
|
|
|
|
alert("기관을 선택하세요.");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dialog.close("selectInstDialog");
|
|
|
|
|
window.open(wctx.url("/error/signupPage.do")+"?institute="+$("#selectInst").val(),
|
|
|
|
|
"regAccount",
|
|
|
|
|
"width=950, height=500");
|
|
|
|
|
},
|
|
|
|
|
onClose : () => {}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 아이디 찾기 팝업
|
|
|
|
|
*/
|
|
|
|
|
function fn_FindId(){
|
|
|
|
|
window.open(".do", "findId", {width: 500, height:300});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 비밀번호 찾기 팝업
|
|
|
|
|
*/
|
|
|
|
|
function fn_FindPw(){
|
|
|
|
|
window.open(".do", "findPw", {width: 500, height:330});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|