function setCheckValue(checked) { $("input[name=j_nenshu]").attr('checked', checked); } function clickSearchButton() { doSearch(true); } function changeCategoryList(chubunrui) { $("input[name=j_category]").attr('checked', false); var tag = "#disp_category" + chubunrui; $('div[id^="disp_category"]').css({"display":"none"}); $(tag).css({"display":""}); /* $("#soshikiTh").attr({"rowspan":2}); */ $("#soshikiTh").attr({"rowspan":1}); $("#chubunruiTd").addClass("special"); $("#categoryCheckTd").css({"display":""}); /* alert(chubunrui); */ switch(chubunrui){ case "31": case "33": case "34": case "35": case "36": case "37": $("#skill_row").show(); break; default: $("#skill_row").hide(); break; } /* if(chubunrui.indexOf('33') != -1){ $("#skill_row").show(); } else if(chubunrui.indexOf('34') != -1){ $("#skill_row").show(); } else if(chubunrui.indexOf('35') != -1){ $("#skill_row").show(); } else if(chubunrui.indexOf('36') != -1){ $("#skill_row").show(); } else if(chubunrui.indexOf('37') != -1){ $("#skill_row").show(); } else { $("#skill_row").hide(); } */ } function doSearch(isSearch) { var freeword = ''; var chubunrui = ''; var categoryList = new Array(); var soshiki = ''; var nenshuList = new Array(); var todofuken = ''; var keyword = ''; var orderby = ''; /* 2015/02/19 sier START */ var kbnList = new Array(); /* 2015/02/19 sier END */ /* 2015/06/19 ymd START */ var ageList = new Array(); /* 2015/06/19 ymd END */ /* 2019/08/04 ymd START */ var gyokai = ''; var skillList = new Array(); var skillList1 = new Array(); var skillList2 = new Array(); var skillList3 = new Array(); var skillList4 = new Array(); var skillList5 = new Array(); /* 2019/08/04 ymd END */ if ( isSearch ) { freeword = $("#j_freeword").val(); chubunrui = $("select[name=j_chubunrui]").val(); $("input[name=j_category]:checked").each(function(){ categoryList.push(this.value);}); soshiki = $("select[name=j_soshiki]").val(); $("input[name=j_nenshu]:checked").each(function(){ nenshuList.push(this.value);}); todofuken = $("select[name=j_todofuken]").val(); keyword = $("select[name=j_keyword]").val(); orderby = $("select[name=j_ob]").val(); $("#pn").val(1); /* 2015/02/19 sier START */ $("input[name=j_kbn]:checked").each(function(){ kbnList.push(this.value);}); /* 2015/02/19 sier END */ /* 2015/06/19 ymd START */ $("input[name=j_age]:checked").each(function(){ ageList.push(this.value);}); /* 2015/06/19 ymd END */ gyokai = $("select[name=j_gyokai]").val(); $("#skul1").find("input[name=j_skill]:checked").each(function(){ skillList1.push(this.value);}); $("#skul2").find("input[name=j_skill]:checked").each(function(){ skillList2.push(this.value);}); $("#skul3").find("input[name=j_skill]:checked").each(function(){ skillList3.push(this.value);}); $("#skul4").find("input[name=j_skill]:checked").each(function(){ skillList4.push(this.value);}); $("#skul5").find("input[name=j_skill]:checked").each(function(){ skillList5.push(this.value);}); $("input[name=j_skill]:checked").each(function(){ skillList.push(this.value);}); //$("input[name=j_skill2]:checked").each(function(){ skillList.push(this.value);}); //$("input[name=j_skill3]:checked").each(function(){ skillList.push(this.value);}); //$("input[name=j_skill4]:checked").each(function(){ skillList.push(this.value);}); //$("input[name=j_skill5]:checked").each(function(){ skillList.push(this.value);}); } else { freeword = $("#fw").val(); chubunrui = $("#ch").val(); categoryList = $("#ca").val(); soshiki = $("#so").val(); nenshuList = $("#ne").val(); todofuken = $("#to").val(); keyword = $("#kw").val(); orderby = $("#ob").val(); /* 2015/02/19 sier START */ kbnList = $("#kb").val(); /* 2015/02/19 sier END */ /* 2015/06/19 sier START */ ageList = $("#ag").val(); /* 2015/06/19 sier END */ gyokai = $("#gy").val(); skillList = $("#sk").val(); skillList1 = $("#sk1").val(); skillList2 = $("#sk2").val(); skillList3 = $("#sk3").val(); skillList4 = $("#sk4").val(); skillList5 = $("#sk5").val(); } if ( freeword != '' && freeword != 'ご自由に入力して検索できます' && freeword !== undefined ) { $("#fw").val(encodeURIComponent(freeword)); $("#fw").attr("disabled", ""); } if ( chubunrui != '' && chubunrui !== undefined ) { $("#ch").val(chubunrui); $("#ch").attr("disabled", ""); } if ( categoryList != '' && categoryList.len != 0 && categoryList !== undefined ) { $("#ca").val(categoryList); $("#ca").attr("disabled", ""); } if ( soshiki != '' && soshiki !== undefined ) { $("#so").val(soshiki); $("#so").attr("disabled", ""); } if ( nenshuList != '' && nenshuList.len != 0 && nenshuList !== undefined ) { $("#ne").val(nenshuList); $("#ne").attr("disabled", ""); } if ( todofuken != '' && todofuken !== undefined ) { $("#to").val(todofuken); $("#to").attr("disabled", ""); } if ( keyword != '' && keyword !== undefined ) { $("#kw").val(keyword); $("#kw").attr("disabled", ""); } if ( orderby != '' && orderby !== undefined ) { $("#ob").val(orderby); $("#ob").attr("disabled", ""); } else { $("#ob").val(1); $("#ob").attr("disabled", ""); } /* 2015/02/19 sier START */ if ( kbnList != '' && kbnList.len != 0 && kbnList !== undefined ) { $("#kb").val(kbnList); $("#kb").attr("disabled", ""); } /* 2015/02/19 sier END */ /* 2015/06/19 ymd START */ if ( ageList != '' && ageList.len != 0 && ageList !== undefined ) { $("#ag").val(ageList); $("#ag").attr("disabled", ""); } /* 2015/06/19 ymd END */ if ( gyokai != '' && gyokai !== undefined ) { $("#gy").val(gyokai); $("#gy").attr("disabled", ""); } if ( skillList != '' && skillList.len != 0 && skillList !== undefined ) { $("#sk").val(skillList); $("#sk").attr("disabled", ""); } if ( skillList1 != '' && skillList1.len != 0 && skillList1 !== undefined ) { //echo skillList1; $("#sk1").val(skillList1); $("#sk1").attr("disabled", ""); } if ( skillList2 != '' && skillList2.len != 0 && skillList2 !== undefined ) { $("#sk2").val(skillList2); $("#sk2").attr("disabled", ""); } if ( skillList3 != '' && skillList3.len != 0 && skillList3 !== undefined ) { $("#sk3").val(skillList3); $("#sk3").attr("disabled", ""); } if ( skillList4 != '' && skillList4.len != 0 && skillList4 !== undefined ) { $("#sk4").val(skillList4); $("#sk4").attr("disabled", ""); } if ( skillList5 != '' && skillList5.len != 0 && skillList5 !== undefined ) { $("#sk5").val(skillList5); $("#sk5").attr("disabled", ""); } document.thisForm.submit(); } function setSkillCheckValue1(checked) { $("#skul1").find("input[name=j_skill]").attr('checked', checked); } function setSkillCheckValue2(checked) { $("#skul2").find("input[name=j_skill]").attr('checked', checked); } function setSkillCheckValue3(checked) { $("#skul3").find("input[name=j_skill]").attr('checked', checked); } function setSkillCheckValue4(checked) { $("#skul4").find("input[name=j_skill]").attr('checked', checked); } function setSkillCheckValue5(checked) { $("#skul5").find("input[name=j_skill]").attr('checked', checked); } $(document).ready( function(){ var ch_val = $("#j_chubunrui").val(); switch(ch_val){ case "31": case "33": case "34": case "35": case "36": case "37": $("#skill_row").show(); break; default: $("#skill_row").hide(); break; } });