js , css수정으로 인해 생년월일 셀렉트박스 js , jsp내에 위치하게 수정
This commit is contained in:
parent
c0ba55bedf
commit
ff9c6f80cf
@ -102,10 +102,10 @@ function signUp(){
|
|||||||
alert("비밀번호가 일치하지 않습니다. 확인해 주세요.");
|
alert("비밀번호가 일치하지 않습니다. 확인해 주세요.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if($("input[name='infoRecvEmailYnChk']").is(":checked") == false && $("input[name='infoRecvSmsYnChk']").is(":checked") == false)
|
if($("#service-chk1").is(":checked") == false)
|
||||||
{
|
{
|
||||||
$("#service-chk1").focus();
|
$("#service-chk1").focus();
|
||||||
alert("대출/열람 정보 수신동의를 하나 이상 선택해주세요.");
|
alert("대출/열람 정보 수신에 동의해주세요.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(confirm("회원가입하시겠습니까?")){
|
if(confirm("회원가입하시겠습니까?")){
|
||||||
@ -134,7 +134,6 @@ function signUp(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
birthdaySelectBox();
|
|
||||||
|
|
||||||
$("input:checkbox[name='gender']:checkbox[value='${loginVO.snsGender}']").prop('checked', true);
|
$("input:checkbox[name='gender']:checkbox[value='${loginVO.snsGender}']").prop('checked', true);
|
||||||
|
|
||||||
@ -464,6 +463,32 @@ function isValidDate(param) {
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jQuery(function ($) {
|
||||||
|
var now = new Date();
|
||||||
|
var year = now.getFullYear();
|
||||||
|
var mon = now.getMonth() + 1 > 9 ? "" + (now.getMonth() + 1) : "0" + (now.getMonth() + 1);
|
||||||
|
var day = now.getDate() > 9 ? "" + now.getDate() : "0" + now.getDate();
|
||||||
|
// 년도
|
||||||
|
for (var i = 1900; i <= year; i++) {
|
||||||
|
$("#birth_yy").append('<option value="' + i + '">' + i + "</option>");
|
||||||
|
}
|
||||||
|
|
||||||
|
// 월별
|
||||||
|
for (var i = 1; i <= 12; i++) {
|
||||||
|
var mm = i > 9 ? i : "0" + i;
|
||||||
|
$("#birth_mm").append('<option value="' + mm + '">' + mm + "</option>");
|
||||||
|
}
|
||||||
|
|
||||||
|
// 일별
|
||||||
|
for (var i = 1; i <= 31; i++) {
|
||||||
|
var dd = i > 9 ? i : "0" + i;
|
||||||
|
$("#birth_dd").append('<option value="' + dd + '">' + dd + "</option>");
|
||||||
|
}
|
||||||
|
$("#birth_yy > option[value=" + year + "]").attr("selected", "true");
|
||||||
|
$("#birth_mm > option[value=" + mon + "]").attr("selected", "true");
|
||||||
|
$("#birth_dd > option[value=" + day + "]").attr("selected", "true");
|
||||||
|
});
|
||||||
|
|
||||||
function calcAge(birth) {
|
function calcAge(birth) {
|
||||||
var date = new Date();
|
var date = new Date();
|
||||||
var year = date.getFullYear();
|
var year = date.getFullYear();
|
||||||
@ -556,9 +581,9 @@ function fn_cancel(){
|
|||||||
<div class="form-group Userbirth">
|
<div class="form-group Userbirth">
|
||||||
<label>생년월일</label>
|
<label>생년월일</label>
|
||||||
<div class="con">
|
<div class="con">
|
||||||
<label for="birth_yy" style="display:none;">년</label><select name="birth_yy" id="birth_yy"></select>
|
<label for="birth_yy" style="display:none;">년</label><select name="birth_yy" id="birth_yy"></select>년
|
||||||
<label for="birth_mm" style="display:none;">월</label><select name="birth_mm" id="birth_mm"></select>
|
<label for="birth_mm" style="display:none;">월</label><select name="birth_mm" id="birth_mm"></select>월
|
||||||
<label for="birth_dd" style="display:none;">일</label><select name="birth_dd" id="birth_dd"></select>
|
<label for="birth_dd" style="display:none;">일</label><select name="birth_dd" id="birth_dd"></select>일
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -630,10 +655,6 @@ function fn_cancel(){
|
|||||||
<div class="left">
|
<div class="left">
|
||||||
<div class="chk"><input type="checkbox" id="service-chk1" class="ser-chk1" checked><label for="service-chk1">대출/열람 정보 수신동의 [필수/1건 이상 선택]</label></div>
|
<div class="chk"><input type="checkbox" id="service-chk1" class="ser-chk1" checked><label for="service-chk1">대출/열람 정보 수신동의 [필수/1건 이상 선택]</label></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
|
||||||
<div class="chk"><input type="checkbox" id="service-chk1-1" class="ser-chk1-1" name="infoRecvSmsYnChk" checked><label for="service-chk1-1">문자(SMS)</label></div>
|
|
||||||
<div class="chk"><input type="checkbox" id="service-chk1-2" class="ser-chk1-1" name="infoRecvEmailYnChk" checked><label for="service-chk1-2">이메일</label></div>
|
|
||||||
</div>
|
|
||||||
<p class="bg">- 문자(SMS)/이메일 수신동의를 하시면 ‘자료반납’, ‘자료연체’, ‘예약자료 도착’, ‘열람신청 승인’, ‘열람신청 반려’ 알림을 받으실 수 있습니다.</p>
|
<p class="bg">- 문자(SMS)/이메일 수신동의를 하시면 ‘자료반납’, ‘자료연체’, ‘예약자료 도착’, ‘열람신청 승인’, ‘열람신청 반려’ 알림을 받으실 수 있습니다.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -96,8 +96,6 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$("input:checkbox[name='gender']:checkbox[value='${loginVO.gender}']").prop("checked",true);
|
$("input:checkbox[name='gender']:checkbox[value='${loginVO.gender}']").prop("checked",true);
|
||||||
|
|
||||||
birthdaySelectBox();
|
|
||||||
|
|
||||||
var birthday='${loginVO.birthday}';
|
var birthday='${loginVO.birthday}';
|
||||||
|
|
||||||
var birth_yy = birthday.substr(0,4);
|
var birth_yy = birthday.substr(0,4);
|
||||||
@ -186,7 +184,12 @@ function update(){
|
|||||||
alert("주소를 입력해주세요.");
|
alert("주소를 입력해주세요.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if($("#service-chk1").is(":checked") == false)
|
||||||
|
{
|
||||||
|
$("#service-chk1").focus();
|
||||||
|
alert("대출/열람 정보 수신에 동의해주세요.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if(confirm("정보를 수정하시겠습니까?")){
|
if(confirm("정보를 수정하시겠습니까?")){
|
||||||
$("#birthday").val($("#birth_yy").val()+$("#birth_mm").val()+$("#birth_dd").val());
|
$("#birthday").val($("#birth_yy").val()+$("#birth_mm").val()+$("#birth_dd").val());
|
||||||
$("#mobileNo").val($("#mobileNo_1").val()+$("#mobileNo_2").val()+$("#mobileNo_3").val());
|
$("#mobileNo").val($("#mobileNo_1").val()+$("#mobileNo_2").val()+$("#mobileNo_3").val());
|
||||||
@ -470,19 +473,19 @@ jQuery(function ($) {
|
|||||||
var day = now.getDate() > 9 ? "" + now.getDate() : "0" + now.getDate();
|
var day = now.getDate() > 9 ? "" + now.getDate() : "0" + now.getDate();
|
||||||
// 년도
|
// 년도
|
||||||
for (var i = 1900; i <= year; i++) {
|
for (var i = 1900; i <= year; i++) {
|
||||||
$("#birth_yy").append('<option value="' + i + '">' + i + "년</option>");
|
$("#birth_yy").append('<option value="' + i + '">' + i + "</option>");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 월별
|
// 월별
|
||||||
for (var i = 1; i <= 12; i++) {
|
for (var i = 1; i <= 12; i++) {
|
||||||
var mm = i > 9 ? i : "0" + i;
|
var mm = i > 9 ? i : "0" + i;
|
||||||
$("#birth_mm").append('<option value="' + mm + '">' + mm + "월</option>");
|
$("#birth_mm").append('<option value="' + mm + '">' + mm + "</option>");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 일별
|
// 일별
|
||||||
for (var i = 1; i <= 31; i++) {
|
for (var i = 1; i <= 31; i++) {
|
||||||
var dd = i > 9 ? i : "0" + i;
|
var dd = i > 9 ? i : "0" + i;
|
||||||
$("#birth_dd").append('<option value="' + dd + '">' + dd + "일</option>");
|
$("#birth_dd").append('<option value="' + dd + '">' + dd + "</option>");
|
||||||
}
|
}
|
||||||
$("#birth_yy > option[value=" + year + "]").attr("selected", "true");
|
$("#birth_yy > option[value=" + year + "]").attr("selected", "true");
|
||||||
$("#birth_mm > option[value=" + mon + "]").attr("selected", "true");
|
$("#birth_mm > option[value=" + mon + "]").attr("selected", "true");
|
||||||
@ -708,15 +711,8 @@ function snsUnlink(snsId){
|
|||||||
<div class="left">
|
<div class="left">
|
||||||
<div class="chk"><input type="checkbox" id="service-chk1" class="ser-chk1" <c:if test="${loginVO.infoRecvSmsYn eq 'Y' and loginVO.infoRecvEmailYn eq 'Y' }">checked </c:if>><label for="service-chk1">대출/열람 정보 수신동의 [필수]</label></div>
|
<div class="chk"><input type="checkbox" id="service-chk1" class="ser-chk1" <c:if test="${loginVO.infoRecvSmsYn eq 'Y' and loginVO.infoRecvEmailYn eq 'Y' }">checked </c:if>><label for="service-chk1">대출/열람 정보 수신동의 [필수]</label></div>
|
||||||
</div>
|
</div>
|
||||||
<!--
|
|
||||||
<div class="right">
|
|
||||||
<div class="chk"><input type="checkbox" id="service-chk1-1" class="ser-chk1-1" name="infoRecvSmsYnChk" <c:if test="${loginVO.infoRecvSmsYn eq 'Y' }">checked </c:if>><label for="service-chk1-1">문자(SMS)</label></div>
|
|
||||||
<div class="chk"><input type="checkbox" id="service-chk1-2" class="ser-chk1-1" name="infoRecvEmailYnChk" <c:if test="${loginVO.infoRecvEmailYn eq 'Y' }">checked </c:if>><label for="service-chk1-2">이메일</label></div>
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
<p class="bg">※ 수신동의를 하시면 ‘자료반납’, ‘자료연체’, ‘예약자료 도착’, ‘열람신청 승인’, ‘열람신청 반려’ 등 자료이용 관련 알림을 받으실 수 있습니다.</p>
|
<p class="bg">※ 수신동의를 하시면 ‘자료반납’, ‘자료연체’, ‘예약자료 도착’, ‘열람신청 승인’, ‘열람신청 반려’ 등 자료이용 관련 알림을 받으실 수 있습니다.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group service">
|
<div class="form-group service">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<div class="chk"><input type="checkbox" id="service-chk2" class="ser-chk2" <c:if test="${loginVO.mktRecvSmsYn eq 'Y' and loginVO.mktRecvEmailYn eq 'Y' }">checked </c:if>><label for="service-chk2">지방문화원 소식/홍보 알림 수신동의 [선택]</label></div>
|
<div class="chk"><input type="checkbox" id="service-chk2" class="ser-chk2" <c:if test="${loginVO.mktRecvSmsYn eq 'Y' and loginVO.mktRecvEmailYn eq 'Y' }">checked </c:if>><label for="service-chk2">지방문화원 소식/홍보 알림 수신동의 [선택]</label></div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user