|
|
@ -56,11 +56,11 @@
|
|
|
|
<div class="w-px-400 mx-auto">
|
|
|
|
<div class="w-px-400 mx-auto">
|
|
|
|
<div id="formAuthentication" class="mb-3">
|
|
|
|
<div id="formAuthentication" class="mb-3">
|
|
|
|
<c:if test="${multipleSggs}"><div class="mb-3">
|
|
|
|
<c:if test="${multipleSggs}"><div class="mb-3">
|
|
|
|
<label for="institute" class="form-label">기관</label>
|
|
|
|
<label for="orgID" class="form-label">시군구</label>
|
|
|
|
<select id="institute" class="form-control">
|
|
|
|
<select id="orgID" class="form-control">
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div></c:if>
|
|
|
|
</div></c:if>
|
|
|
|
<c:if test="${!multipleSggs}"><input id="institute" type="hidden" /></c:if>
|
|
|
|
<c:if test="${!multipleSggs}"><input id="orgID" type="hidden" /></c:if>
|
|
|
|
<div class="mb-3">
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="userId" class="form-label">아이디</label>
|
|
|
|
<label for="userId" class="form-label">아이디</label>
|
|
|
|
<input id="userId" type="text" value="${cookie['userAccount'].getValue()}" required class="form-control" placeholder="아이디를 입력하십시오." autofocus />
|
|
|
|
<input id="userId" type="text" value="${cookie['userAccount'].getValue()}" required class="form-control" placeholder="아이디를 입력하십시오." autofocus />
|
|
|
@ -99,13 +99,13 @@
|
|
|
|
${functions}
|
|
|
|
${functions}
|
|
|
|
|
|
|
|
|
|
|
|
<c:if test="${multipleSggs}">let sggs = new Dataset({
|
|
|
|
<c:if test="${multipleSggs}">let sggs = new Dataset({
|
|
|
|
keymapper: row => row.INST_CD,
|
|
|
|
keymapper: row => row.SGG_CD,
|
|
|
|
onDatasetChange: obj => {
|
|
|
|
onDatasetChange: obj => {
|
|
|
|
document.querySelector("#institute").innerHTML = sggs.inStrings("<option value=\"{INST_CD}\">{INST_NM}</option>");
|
|
|
|
document.querySelector("#orgID").innerHTML = sggs.inStrings("<option value=\"{SGG_CD}\">{SGG_NM}</option>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
sggs.setData(${sggs});</c:if>
|
|
|
|
sggs.setData(${sggs});</c:if>
|
|
|
|
<c:if test="${!multipleSggs}">document.querySelector("#institute").value = ${sggs}[0].INST_CD;</c:if>
|
|
|
|
<c:if test="${!multipleSggs}">document.querySelector("#orgID").value = ${sggs}[0].SGG_CD;</c:if>
|
|
|
|
|
|
|
|
|
|
|
|
function login() {
|
|
|
|
function login() {
|
|
|
|
if (!$("#formAuthentication input").validInputs()) return;
|
|
|
|
if (!$("#formAuthentication input").validInputs()) return;
|
|
|
@ -113,7 +113,7 @@ function login() {
|
|
|
|
var params = {
|
|
|
|
var params = {
|
|
|
|
account:$("#userId").val(),
|
|
|
|
account:$("#userId").val(),
|
|
|
|
password:$("#password").val(),
|
|
|
|
password:$("#password").val(),
|
|
|
|
institute: $("#institute").val(),
|
|
|
|
orgID: $("#orgID").val(),
|
|
|
|
rememberCredentials: $("#remember").prop("checked")
|
|
|
|
rememberCredentials: $("#remember").prop("checked")
|
|
|
|
};
|
|
|
|
};
|
|
|
|
ajax.post({
|
|
|
|
ajax.post({
|
|
|
@ -140,7 +140,7 @@ $(function(){
|
|
|
|
if ($("#userId").val())
|
|
|
|
if ($("#userId").val())
|
|
|
|
$("#password").focus();
|
|
|
|
$("#password").focus();
|
|
|
|
|
|
|
|
|
|
|
|
let input = document.querySelector("#institute"),
|
|
|
|
let input = document.querySelector("#orgID"),
|
|
|
|
stored = "${cookie['userInstitute'].getValue()}";
|
|
|
|
stored = "${cookie['userInstitute'].getValue()}";
|
|
|
|
if (stored)
|
|
|
|
if (stored)
|
|
|
|
input.value = stored;
|
|
|
|
input.value = stored;
|
|
|
|