江苏快三官网

第1页/共3页
"; } } //关闭左底项目 function showLink(b_e, i_i, b_r) { var t_v = "hidden"; if (b_e == true) { t_v = "visible"; } document.getElementById("l_bsx").style.visibility = t_v; document.getElementById("l_bs").style.visibility = t_v; if (b_e == false) { for (var i = 0; i < 4; i++) { document.getElementById("aa_" + i).className = ""; } } if (b_e == true && b_r == true) { t_v = "fb_" + cfgLink.list[i_i]; try { window.frames[t_v].refreshShow(); } catch (e) { } } } //切换左底项目 function switchLink(i_i) { var t_n = cfgLink.list[i_i]; for (var i = 0; i < 4; i++) { document.getElementById("aa_" + i).className = ""; } document.getElementById("aa_" + i_i).className = "curr"; cfgLink.zindex = parseInt(cfgLink.zindex) + 1; document.getElementById("l_bs").style.height = cfgLink[t_n].height + "px"; if (cfgLink[t_n].status == false) { document.getElementById("ad_st").style.zIndex = cfgLink.zindex; showLink(true, i_i); document.getElementById("ad_" + i_i).innerHTML = ""; } else { document.getElementById("ad_" + i_i).style.zIndex = cfgLink.zindex + 1; showLink(true, i_i, true); } } function hideMsg(t_i) { if (t_i < i_msg) { return; } hideID("s_msg"); hideID("m_msg"); } function showMsg(t_c, t_t, t_i) { i_msg = i_msg + 1; if (t_c != "") { t_t = "" + t_t + ""; } setID("s_msg", t_t); showID("s_msg"); window.setTimeout(function () { hideMsg(i_msg); }, 5000); } function ajaxSearchMap() { var n_n, n_id, t_k, regX, regIP, regN; n_n = cfgMap.curr; n_id = cfgMap[n_n].id; if (cfgMap[n_n].status == false) { alert("待当前地图加载完成,才能查询。"); return; } hideID("s_msg"); var t_k = getID("s_t"); t_k = t_k.replace(/(^\s+)|(\s+$)/g, ""); if (t_k == "") { showMsg("fcr", "您还未输入呢?"); return; } setID("m_msg", "正在请求数据..."); showID("m_msg"); t_k = t_k.replace(/\<|\>|\(|\)|(|)/g, ""); t_k = t_k.replace(/\s+/g, " "); t_k = t_k.replace(/^(\s+|\,+)/g, ""); t_k = t_k.replace(/(\s+|\,+)$/g, ""); t_k = t_k.replace(/(\"|\'|\+|°|。|’|′|″)+/g, " "); t_k = t_k.replace(/(\,|,)+/g, ","); t_k = t_k.replace(/\.+/g, "."); t_k = t_k.replace(/(纬度|经度|北纬|东经)/g, ","); t_k = t_k.replace(/(南纬|西经)/g, ",-"); t_k = t_k.replace(/(N|n|E|e)([0-9]{1,3}(\s|\.))/g, ",$2"); t_k = t_k.replace(/(W|w|S|s)([0-9]{1,3}(\s|\.))/g, ",-$2"); t_k = t_k.replace(/\,+/g, ","); t_k = t_k.replace(/(\s+\,)/g, ","); t_k = t_k.replace(/(\,\s+)/g, ","); t_k = t_k.replace(/^\,+/g, ""); t_k = t_k.replace(/\,+$/g, ""); t_k = t_k.replace(/\,+/g, ","); t_k = t_k.replace(/\-+/g, "-"); //if (t_k == "") { showMsg("fcr", "关键词无效!"); hideID("m_msg"); return; } getData(t_k,1,n_id); } var currentIndex = 1; //当前页索引 function getData(t_k,pageIndex,n_id) { regX = /[0-9]{1,15}\,\-?[0-9]{1,3}(\.|\s)?/; regIP = /^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/; regN = /^[0-9]{3,18}$/; $.ajax({ url: 'OrganInfoInMap.aspx', dataType:'json', data:{Action:'getMapData',input: t_k, pageIndex: pageIndex}, success: function (result) { //清空当前列表 $("div[class='company_1 clearfix']").remove(); //清空当前地点上的Marker window.frames[n_id].clearAllMarker(); //设置页码 var recordCount = parseInt(result.recordCount); //当前记录数 var pageSum = recordCount % 8 == 0 ? parseInt(recordCount / 8) : parseInt(recordCount / 8) + 1; $("#alinkfirstPage").unbind( "click" ); $("#alinkfirstPage").bind( "click",function() { currentIndex = 1; //江苏快三官网 getData(t_k,currentIndex,n_id); }); $("#alinkpreviousPage").unbind("click"); $("#alinkpreviousPage").bind("click",function() { currentIndex = currentIndex-1; //上一页 if(currentIndex<=0){ currentIndex = 1;} getData(t_k,currentIndex,n_id); }); $("#alinkNextPage").unbind("click"); $("#alinkNextPage").bind("click",function() { currentIndex = currentIndex+1; //下一页 if(currentIndex>= pageSum) { currentIndex= pageSum;} getData(t_k,currentIndex,n_id); }); $("#alinkLastPage").unbind("click"); $("#alinkLastPage").bind("click",function() { currentIndex = pageSum; //尾页 getData(t_k,currentIndex,n_id); }); $(".ym_2").html("第"+currentIndex+"页/共"+pageSum+"页"); var itemIndex = 1; result = JSON.parse(result.dataListJson) if(result!= null && result.length>0) { //有记录,则隐藏 $("div[class='nonono']").hide(); } else { //如果查找没有记录 $("div[class='nonono']").show(); $("div[class='nonono'] img").attr("src","maps/images/nono.gif"); //结束搜索 hideID("m_msg"); return; } $(result).each(function(index,item) { // $.ajax({ // url: 'OrganInfoInMap.aspx', // dataType:'text', // data:{Action:'getOrganName', oguid: item.OGuid}, // success: function (mydata) { //获取的经纬度 var t_k = item.latitude+","+ item.longitude; $(".map011").html(""+item.OName+""); //企业名称 $(".map022").html(item.content); //简介 //$(".map022").attr("title",item.content); //简介 $(".map032").html(item.joblist); //招聘职位 $(".map032").attr("title",item.joblist); //招聘职位 $(".map042").html(item.OAddress); //地址 $(".map05 a").attr("href","http://www.jsfxm.com/JobDetail_"+item.OGuid+".html"); pophtml = $(".map .map_2").prop("outerHTML"); if (regX.test(t_k)) { t_k = t_k.replace(/[A-Za-z\u0391-\uFFE5]+/g, ""); t_k = t_k.replace(/^\s+/g, ""); t_k = t_k.replace(/\s+$/g, ""); var regA, regB, t_lat, t_lng, a_t; regA = /^-?[0-9]{1,3}(\.[0-9]{1,20})?\,-?[0-9]{1,3}(\.[0-9]{1,20})?$/; regB = /^-?[0-9]{1,3}([0-9\.\s]{1,20})?\,-?[0-9]{1,3}([0-9\.\s]{1,20})?$/; t_lat = 0; t_lng = 0; if (regA.test(t_k)) { a_t = t_k.split(","); t_lat = parseFloat(a_t[0]); t_lng = parseFloat(a_t[1]); } else if (regB.test(t_k)) { a_t = t_k.split(","); t_lat = getHMSXY(a_t[0]); t_lng = getHMSXY(a_t[1]); } else { t_lat = 300; } if (parseFloat(t_lat) > 90 || parseFloat(t_lng) > 180 || parseFloat(t_lat) < -90 || parseFloat(t_lng) < -180) { showMsg("fcr", "纬度,经度格式不正确!
(中间逗号,纬度在前,纬度介于-90~90,经度介于-180~180)"); hideID("m_msg"); return; } window.frames[n_id].searchLatLng(t_lat, t_lng, "0"); //加载左边的列表数据 var html = ""; $("div[class='companylist']").append(html); //序号+1 itemIndex = itemIndex+1; return; } else if (regIP.test(t_k)) { showMsg("fcr", "这是一个IP地址,暂时不能搜索IP。未来开放。"); hideID("m_msg"); return; } else if (regN.test(t_k)) { showMsg("fcr", "这是一个编号,暂时不能搜索编号。未来开放。"); hideID("m_msg"); return; } else { window.frames[n_id].searchAddress(t_k); } // }, // cache: false // }); //获取企业简介结束 }); //each循环结束 }, cache: false }); } var pophtml = ""; function goSearchMap(e) { var c_key = window.event ? e.keyCode : e.which; if (c_key == 13) { ajaxSearchMap(); } } function moveToAssigned(id) { //var id = id-1; window.frames["map_b"].showMarkerInfo(id,true); } function initButton() {jsAddEvent("s_btn", "onclick", ajaxSearchMap); jsAddEvent("s_t", "onkeydown", goSearchMap);} function getUrlValue(name) { var t_s = decodeURIComponent(window.location.search); if (t_s) { var reg = new RegExp("(^|&)" + name + "=(.[^&]*)(&|$)"); var r = t_s.substr(1).match(reg); if (r != null) return unescape(r[2]); } return null; } function initSearch() { if (b_url == true) { return; } var t_s, t_o; t_s = getUrlValue("s"); t_o = getUrlValue("ss"); b_url = true; if (t_s != null) { t_s = t_s.replace(/\<|\>|\(|\)/g, ""); if (isTest("(1|2|3|4)", t_o) == false) { t_o = 0; } if (isTest("^-?[0-9]{1,3}(\.[0-9]{1,20})?\,-?[0-9]{1,3}(\.[0-9]{1,20})?$", t_s) == true) { var n_f, a_t, t_lat, t_lng; n_f = cfgMap.curr; n_f = cfgMap[n_f].id; a_t = t_s.split(","); t_lat = parseFloat(a_t[0]); t_lng = parseFloat(a_t[1]); if (parseFloat(t_lat) > 90 || parseFloat(t_lng) > 180 || parseFloat(t_lat) < -90 || parseFloat(t_lng) < -180) { showMsg("fcr", "传入纬度,经度格式不正确!
(中间逗号,纬度在前,纬度介于-90~90,经度介于-180~180)"); hideID("m_msg"); return; } window.frames[n_f].searchLatLng(t_lat, t_lng, t_o); } else { setID("s_t", t_s); ajaxSearchMap(); } } } function loadMapsSelect() { var t_o = getUrlValue("ss"); if (t_o == "3") { switchMaps(2); return; } switchMaps(1); } initButton(); loadMapsSelect(); //-->