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

@@ -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;
}