260521_01_ENH: 일부 지역만 열고 숙박여부 추가

This commit is contained in:
2026-05-21 10:58:06 +09:00
parent 1f0aa8a5af
commit ed52d4cdfd
7 changed files with 72 additions and 31 deletions

View File

@@ -31,6 +31,7 @@ SQL = SQL&" r_district as r_district_cd, "&VbCrlf
SQL = SQL&" r_car, "&VbCrlf
'SQL = SQL&" dbo.codeLabel('ex', r_ex, NULL) as r_ex, "&VbCrlf
SQL = SQL&" r_ex, "&VbCrlf
SQL = SQL&" r_stay, "&VbCrlf
SQL = SQL&" isnull(r_edu, '') as r_edu, "&VbCrlf
SQL = SQL&" isnull(r_bank,'') as r_bank, "&VbCrlf
SQL = SQL&" isnull(dbo.base64_decode(r_account), '') as r_account, "&VbCrlf
@@ -77,6 +78,7 @@ if not objdb.eof Then
Dim r_district_cd : r_district_cd = objdb("r_district_cd")
Dim r_car : r_car = objdb("r_car")
Dim r_ex : r_ex = objdb("r_ex")
Dim r_stay : r_stay = objdb("r_stay")
Dim r_edu : r_edu = objdb("r_edu")
Dim r_bank : r_bank = objdb("r_bank")
Dim r_account : r_account = objdb("r_account")
@@ -292,7 +294,18 @@ DBClose()
</div>
<hr/>
</div>
<div class="form-group">
<label>숙박 여부</label>
<div class="input-group">
<div class="btn-group radioBtn">
<a class="btn btn-primary <%if r_stay = "1" Then %>Active <%else %>notActive <%End IF%>" data-toggle="r_stay" data-title="1">숙박</a>
<a class="btn btn-primary <%if r_stay = "2" Then %>Active <%else %>notActive <%End IF%>" data-toggle="r_stay" data-title="2">비숙박</a>
</div>
<input type="hidden" name="r_stay" id="r_stay" value="<%= r_stay %>"/>
</div>
<hr/>
</div>
<div class="form-group" >
<label for="r_bank">주민번호</label>
<div class="form-inline" >

View File

@@ -199,6 +199,8 @@
</div>
<!--#include virtual="/Include/js.asp"-->
<script type="text/javascript">
var specialArea = ["09"];
var specialDistrict = ["0902"];
window.onload = function(){
var browse = navigator.userAgent.toLowerCase();
@@ -212,15 +214,18 @@
$(function(){
alert("<%=ltitle%> 출구조사 조사원 모집은 마감되었습니다.\n관심을 가져주셔서 감사합니다.");
//alert("<%=ltitle%> 출구조사 조사원 모집은 마감되었습니다.\n관심을 가져주셔서 감사합니다.");
//alert("<%=ltitle%> 출구조사 조사원 모집은 준비중입니다.\n관심을 가져주셔서 감사합니다.");
location.href="../index.asp";
//location.href="../index.asp";
AjaxSelect($("#r_job"), "job");//구분
//AjaxSelect($("#r_univ"), "univ");//소속학교
//AjaxSelect($("#r_year"), "year");//학년
AjaxSelect($("#r_area"), "area");//지원지역
//경기만 허용
filterOptions($("#r_area"), specialArea);
//$("#r_area").find(":not(option[value=''], option[value=09])").remove();
//AjaxSelect($("#r_edu"), "edu");//교육일정
});
@@ -352,6 +357,9 @@
if(r_position != "" || r_area != ""){
AjaxSelect($("#r_district"), "district", r_area);
//남부외곽만 허용
filterOptions($("#r_district"), specialDistrict);
if($("#r_district").children("option").length == 2){
$("#r_district").val($("#r_district").children("option:eq(1)").val());
}
@@ -637,6 +645,7 @@
}
},
error: function(data) { //ajax Error
console.log("AjaxRecruit")
alert("System Error\n관리자에게 문의 하십시오.");
return false;
}
@@ -644,6 +653,16 @@
});
function filterOptions($select, values) {
if (!values || values.length === 0) {
return;
}
$select.find("option").filter(function () {
return this.value !== "" && $.inArray(this.value, values) === -1;
}).remove();
}
//Select box, Text ajax
function AjaxSelect(el, gubun, area_cd) {
$.ajax({
@@ -652,12 +671,14 @@
async:false,
data:{"sel_gubun" : "code", "sel_code" : gubun, "area_cd": area_cd},
success:function(res){
console.log(gubun, res)
if(res != ""){
el.empty();
el.append(res);
}
},
error:function(err){
console.log({"sel_gubun" : "code", "sel_code" : gubun, "area_cd": area_cd})
alert("System Error\n관리자 문의");
return false;
}