/* ホスト設定 */ var sHost = "https://www.bukken-tanteidan.com"; /* 各種パラメータ初期化 */ var iPa = undefined; var iAi = undefined; var sTi = undefined; var sWo = undefined; var sSid = undefined; var sSo = undefined; var iLi = undefined; var iPs = undefined; var sId = undefined; var iW = undefined; var sCl = undefined; var objScript; /* 一覧表示 */ function vShowBukkenList(oData) { // ステージ作成 if (document.getElementById(oData["id"]) == null) { document.write('
'); } // 店舗保持 sSid = oData["from"]; var sLink = sHost + '/api/bukken_list.php' + sMakeParam(oData["from"],oData["page"]["cur"],oData["area"],oData["type"],oData["word"],oData["sort"],oData["page"]["limit"],oData["page"]["show"], oData["id"], oData["width"], oData["class"]); var sCategory = ''; var iCnt = 1; if (sTi.substr(0,1) != 'R') { sCategory += '
'; if (sTi == "S") { sCategory += '

全て

'; } else { sCategory += '全て'; } if (sTi == "SL") { sCategory += '

土地

'; } else { sCategory += '土地'; } if (sTi == "SH") { sCategory += '

建物

'; } else { sCategory += '建物'; } if (sTi == "SM") { sCategory += '

マンション

'; } else { sCategory += 'マンション'; } sCategory += '
'; sCategory += '
'; } if (sTi.substr(0,1) != 'S') { sCategory += '
'; if (sTi == "R") { sCategory += '

全て

'; } else { sCategory += '全て'; } if (sTi == "RL") { sCategory += '

土地

'; } else { sCategory += '土地'; } if (sTi == "RH") { sCategory += '

居住用建物

'; } else { sCategory += '居住用建物'; } if (sTi == "RS") { sCategory += '

事業用建物

'; } else { sCategory += '事業用建物'; } sCategory += '
'; sCategory += '
'; } var sPage = ''; if (oData["page"]["show"] == 1) { sPage += '
'; if (1 < parseInt(oData["page"]["cur"])) sPage += '< 前へ '; else sPage += '< 前へ '; for(var iCnt = parseInt(oData["page"]["from"]);iCnt <= parseInt(oData["page"]["to"]);iCnt++) { if (parseInt(oData["page"]["cur"]) != iCnt) sPage += '' + iCnt + ' '; else sPage += '' + iCnt + ' '; } if (parseInt(oData["page"]["cur"]) < parseInt(oData["page"]["max"])) sPage += '次へ > '; else sPage += '次へ > '; sPage += '
'; } // クラス吐出し用のプレフィックス(賃貸、売買で別物を出す) var append = (sCl) ? '_' + sCl : ''; var type = (sTi.substr(0, 1) == 'R') ? 'bukken' + append + '_rent_' : 'bukken' + append + '_sale_'; var sHtml = sCategory + sPage + '
'; sHtml += ''; sHtml += ''; sHtml += ''; if (oData["sort"] == "tya") { sHtml += ''; } else if (oData["sort"] == "tya") { sHtml += ''; } else { sHtml += ''; } sHtml += ''; sHtml += ''; if (oData["sort"] == "pra") { sHtml += ''; } else if (oData["sort"] == "pra") { sHtml += ''; } else { sHtml += ''; } if (oData["sort"] == "msa") { sHtml += ''; } else if (oData["sort"] == "msa") { sHtml += ''; } else { sHtml += ''; } sHtml += ''; sHtml += ''; for (var iCnt = 0;iCnt < oData["data"].length;iCnt++) { for(var sKey in oData["data"][iCnt]) oData["data"][iCnt][sKey] = decodeURIComponent(oData["data"][iCnt][sKey]); sHtml += ''; sHtml += ' '; sHtml += ' '; sHtml += ' '; sHtml += ' '; sHtml += ' '; switch(oData["data"][iCnt]["bi_type_id"]) { // 売土地 case 'SL': // 面積 if (oData["data"][iCnt]["bi_menseki_l"] != "") sHtml += ''; else sHtml += ''; // 間取り sHtml += ''; break; // 売建物 case 'SH': // 土地面積 sHtml += ''; // 間取り if (oData["data"][iCnt]["bi_madori"] != "") sHtml += ''; else sHtml += ''; break; // 売マンション case 'SM': // 専有面積 sHtml += ''; // 間取り if (oData["data"][iCnt]["bi_madori"] != "") sHtml += ''; else sHtml += ''; break; // 賃貸土地 case 'RL': // 土地面積 if (oData["data"][iCnt]["bi_menseki_l"] != "") { sHtml += ''; } else { sHtml += ''; } // 間取り sHtml += ''; break; // 賃貸居住用建物 case 'RH': // 面積 if (oData["data"][iCnt]["bi_menseki_h"] != "") { sHtml += ''; } else { sHtml += ''; } // 間取り if (oData["data"][iCnt]["bi_madori"] != "") { sHtml += ''; } else { sHtml += ''; } break; // 賃貸事業用建物 case 'RS': // 面積 if (oData["data"][iCnt]["bi_menseki_h"] != "") { sHtml += ''; } else { sHtml += ''; } // 間取り sHtml += ''; break; } sHtml += ''; } sHtml += '
画像▲タイプ▼タイプタイプ所在地交通▲価格(万円)▼価格(万円)価格(万円)▲面積(m2)▼面積(m2)面積(m2)間取り
'; sHtml += ' ' + oData['; //sHtml += ' 詳細はこちら'; sHtml += ' 詳細はこちら'; sHtml += ' '; sHtml += ' ' + oData["data"][iCnt]["bi_type"] + ''; sHtml += ' '; sHtml += ' ' + oData["data"][iCnt]["bi_city"] + '
'; sHtml += ' ' + oData["data"][iCnt]["bi_town"] + '
'; sHtml += ' ' + oData["data"][iCnt]["bi_access"] + '
'; sHtml += ' ' + oData["data"][iCnt]["bi_access2"] + '
'; sHtml += ' ' + oData["data"][iCnt]["bi_price"] + '

面積:' + oData["data"][iCnt]["bi_menseki_l"] + '

 '; if (oData["data"][iCnt]["bi_menseki_l"] != "") sHtml += '

土地:' + oData["data"][iCnt]["bi_menseki_l"] + '

'; else sHtml += '

'; // 建物面積 if (oData["data"][iCnt]["bi_menseki_h"] != "") sHtml += '

建物:' + oData["data"][iCnt]["bi_menseki_h"] + '

'; else sHtml += '

'; sHtml += '
' + oData["data"][iCnt]["bi_madori"] + ''; if (oData["data"][iCnt]["bi_menseki_h"] != "") sHtml += '

専有面積:' + oData["data"][iCnt]["bi_menseki_h"] + '

'; else sHtml += '

'; // バルコニー面積 if (oData["data"][iCnt]["bi_menseki_b"] != "") sHtml += '

バルコニー:' + oData["data"][iCnt]["bi_menseki_b"] + '

'; else sHtml += '

'; sHtml += '
' + oData["data"][iCnt]["bi_madori"] + '' + oData["data"][iCnt]["bi_menseki_l"] + ' ' + oData["data"][iCnt]["bi_menseki_h"] + '' + oData["data"][iCnt]["bi_madori"] + ' ' + oData["data"][iCnt]["bi_menseki_h"] + ' 

' + sPage; sHtml += ''; document.getElementById(sId).innerHTML = sHtml; } /* データ取得実行 */ function clickGetJSONP(iStore,iPage,iArea,sType,sWord,sSort,iLimit,iPageShow,sElemId,iWidth, sClass) { // 送信先設定 var url = sHost + "/api/bukken_list.php" + sMakeParam(iStore,iPage,iArea,sType,sWord,sSort,iLimit,iPageShow,sElemId, iWidth, sClass); // データ取得 if (objScript != undefined) document.getElementsByTagName("head")[0].removeChild(objScript); objScript = document.createElement("script"); objScript.src = url; document.getElementsByTagName("head")[0].appendChild(objScript); return false; } /* パラメータ部作成 */ function sMakeParam(iStore,iPage,iArea,sType,sWord,sSort,iLimit,iPageShow,sElemId,iWidth,sClass) { var sRet = ""; var sAdd = "?"; if (iStore != undefined) { sRet += sAdd + "si=" + iStore; sAdd = "&"; } if (iPage != undefined) { sRet += sAdd + "p=" + iPage; sAdd = "&"; } if (iArea != undefined) { sRet += sAdd + "ai=" + iArea; sAdd = "&"; } if (sType != undefined) { sRet += sAdd + "ti=" + sType; sAdd = "&"; } if (sWord != undefined) { sRet += sAdd + "word=" + sWord; sAdd = "&"; } if (sSort != undefined) { sRet += sAdd + "bs=" + sSort; sAdd = "&"; } if (iLimit != undefined) { sRet += sAdd + "l=" + iLimit; sAdd = "&"; } if (iPageShow != undefined) { sRet += sAdd + "ps=" + iPageShow; sAdd = "&"; } if (sElemId != undefined) { sRet += sAdd + "id=" + sElemId; sAdd = "&"; } if (iWidth != undefined) { sRet += sAdd + "w=" + iWidth; sAdd = "&"; } if (sClass != undefined) { sRet += sAdd + "cl=" + sClass; sAdd = "&"; } sRet += sAdd + "load=ok"; iPa = iPage; iAi = iArea; sTi = sType; sWo = sWord; sSid = iStore; sSo = sSort; iLi = iLimit; iPs = iPageShow; sId = sElemId; iW = iWidth; sCl = sClass; return sRet; } /* 詳細ページを開く */ function bOpenDetail(iBid) { // Windowをオープン var oWd = window.open('','bi_' + iBid,'width=1000,menubar=no,toolbar=no,location=no,status=no,scrollbars=yes'); var sHtml = ''; sHtml += ''; sHtml += ''; sHtml += '
'; sHtml += ''; sHtml += ''; oWd.document.open(); oWd.document.write(sHtml); oWd.document.close(); return false; } vShowBukkenList({id:"bukken_list_6632f858bd870",width:"700",class:"",area:"4",type:"S",word:"",sort:"",from:"KK",page:{max:"2",cur:"1",from:"1",to:"2",limit: "5",show: "1"},data:[{bi_id:"1768",bi_sto_id:"OR",bi_chuukai:"1",bi_type:"%E5%A3%B2%E5%9C%9F%E5%9C%B0",bi_type_id:"SL",bi_area_id:"4",bi_city:"%E6%B2%BC%E6%B4%A5%E5%B8%82",bi_town:"%E5%8E%9F",bi_access:"JR%E6%9D%B1%E6%B5%B7%E9%81%93%E7%B7%9A",bi_access2:"%E5%8E%9F%E9%A7%85",bi_price:"700",bi_madori:"",bi_kyoueki:"",bi_kanrihi:"",bi_syuuzen:"",bi_keitai:"",bi_menseki_l:"136.64",bi_menseki_h:"",bi_menseki_b:"",bi_reikin:"",bi_sikikin:"",bi_tiku:"",bi_kouzou:"",bi_chuusya:"",bi_setubi:"%E9%9B%BB%E6%B0%97",bi_timoku:"%E5%AE%85%E5%9C%B0",bi_genkyou:"%E6%9B%B4%E5%9C%B0",bi_keikaku:"1",bi_youto:"5",bi_kenpei:"70",bi_youseki:"200",bi_setudou:"%E5%8C%97%E6%9D%B14%EF%BD%8D%E3%80%81%E5%8C%97%E8%A5%BF2%EF%BD%8D",bi_tisei:"%E5%B9%B3%E5%9D%A6",bi_keiyaku:"",bi_nyuukyo:"",bi_hoken:"",bi_syubetu:"",bi_bikou:"",bi_taiyou:"%E5%AA%92%E4%BB%8B",bi_pr:"%E8%A7%92%E5%9C%B0%E3%81%AB%E3%81%A4%E3%81%8D%E9%99%BD%E5%BD%93%E3%81%9F%E3%82%8A%E8%89%AF%E5%A5%BD%EF%BC%81%0D%0A%0D%0A%E7%8F%BE%E5%9C%A8%E6%9C%88%E6%A5%B5%E9%A7%90%E8%BB%8A%E5%A0%B4%E3%81%A8%E3%81%97%E3%81%A6%E5%88%A9%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82",bi_gakku:"%E5%8E%9F%E5%B0%8F%E3%83%BB%E5%8E%9F%E4%B8%AD",bi_free:"",bi_entry_date:"2020-09-28+16%3A54%3A39",bi_open_flg:"1",am_name:"%E6%B2%BC%E6%B4%A5%E5%B8%82",ii_image:"NWY3MTk2ZWY1NTk4ZQ%3D%3D",ii_open:"1"},{bi_id:"1369",bi_sto_id:"DS",bi_chuukai:"",bi_type:"%E5%A3%B2%E5%9C%9F%E5%9C%B0",bi_type_id:"SL",bi_area_id:"4",bi_city:"%E6%B2%BC%E6%B4%A5%E5%B8%82",bi_town:"%E5%A4%A7%E5%B9%B3",bi_access:"",bi_access2:"",bi_price:"1%2C180",bi_madori:"",bi_kyoueki:"",bi_kanrihi:"",bi_syuuzen:"",bi_keitai:"",bi_menseki_l:"247.99",bi_menseki_h:"",bi_menseki_b:"",bi_reikin:"",bi_sikikin:"",bi_tiku:"",bi_kouzou:"",bi_chuusya:"",bi_setubi:"%E9%9B%BB%E6%B0%97%E3%83%BB%E4%B8%8A%E6%B0%B4%E9%81%93%E3%83%BBLPG%E3%83%BB%E5%80%8B%E5%88%A5%E6%B5%84%E5%8C%96%E6%A7%BD",bi_timoku:"%E5%AE%85%E5%9C%B0",bi_genkyou:"%E5%BB%BA%E4%BB%98%E5%9C%B0",bi_keikaku:"2",bi_youto:"13",bi_kenpei:"60",bi_youseki:"200",bi_setudou:"%E5%8C%97%E5%81%B45%EF%BD%8D",bi_tisei:"%E5%B9%B3%E5%9D%A6",bi_keiyaku:"",bi_nyuukyo:"",bi_hoken:"",bi_syubetu:"",bi_bikou:"",bi_taiyou:"%E5%AA%92%E4%BB%8B",bi_pr:"",bi_gakku:"%E5%A4%A7%E5%B9%B3%E5%B0%8F%E3%83%BB%E5%A4%A7%E5%B9%B3%E4%B8%AD",bi_free:"",bi_entry_date:"2017-01-24+12%3A23%3A51",bi_open_flg:"1",am_name:"%E6%B2%BC%E6%B4%A5%E5%B8%82",ii_image:"NTg4NmM4ZTZkZDg0ZA%3D%3D",ii_open:"1"},{bi_id:"1238",bi_sto_id:"FF",bi_chuukai:"1",bi_type:"%E5%A3%B2%E5%9C%9F%E5%9C%B0",bi_type_id:"SL",bi_area_id:"4",bi_city:"%E6%B2%BC%E6%B4%A5%E5%B8%82",bi_town:"%E5%8E%9F",bi_access:"JR%E6%9D%B1%E6%B5%B7%E9%81%93%E6%9C%AC%E7%B7%9A",bi_access2:"%E5%8E%9F%E9%A7%85",bi_price:"1%2C200",bi_madori:"",bi_kyoueki:"",bi_kanrihi:"",bi_syuuzen:"",bi_keitai:"",bi_menseki_l:"242.00",bi_menseki_h:"",bi_menseki_b:"",bi_reikin:"",bi_sikikin:"",bi_tiku:"",bi_kouzou:"",bi_chuusya:"",bi_setubi:"%E9%9B%BB%E6%B0%97%E3%83%BB%E9%83%BD%E5%B8%82%E3%82%AC%E3%82%B9%E3%83%BB%E5%85%AC%E5%96%B6%E6%B0%B4%E9%81%93%E3%83%BB%E5%85%AC%E5%85%B1%E4%B8%8B%E6%B0%B4%E9%81%93%EF%BC%88%E6%9C%AA%E6%95%B4%E5%82%99%E3%83%BB%E6%9C%AA%E5%BC%95%E8%BE%BC%EF%BC%89",bi_timoku:"%E5%AE%85%E5%9C%B0",bi_genkyou:"%E6%9B%B4%E5%9C%B0",bi_keikaku:"1",bi_youto:"5",bi_kenpei:"60",bi_youseki:"200",bi_setudou:"%E5%8C%97%E5%81%B44.0m",bi_tisei:"%E5%B9%B3%E5%9D%A6%E5%9C%B0",bi_keiyaku:"",bi_nyuukyo:"",bi_hoken:"",bi_syubetu:"",bi_bikou:"%E6%B2%B3%E5%B7%9D%E5%8D%A0%E7%94%A8%E8%A8%B1%E5%8F%AF%E8%A6%81%E3%83%BB%E5%BB%BA%E7%AF%89%E5%9F%BA%E6%BA%96%E6%B3%9543%E6%9D%A11%E9%A0%85%E8%A8%B1%E5%8F%AF%E8%A6%81",bi_taiyou:"%E5%AA%92%E4%BB%8B",bi_pr:"%E5%8E%9F%E5%B0%8F%E3%83%BB%E5%8E%9F%E9%A7%85%E8%BF%91%E3%81%8F%0D%0A%E7%94%9F%E6%B4%BB%E7%92%B0%E5%A2%83%E8%89%AF%E5%A5%BD",bi_gakku:"%E5%8E%9F%E5%B0%8F%E3%83%BB%E5%8E%9F%E4%B8%AD",bi_free:"",bi_entry_date:"2015-12-24+10%3A57%3A03",bi_open_flg:"1",am_name:"%E6%B2%BC%E6%B4%A5%E5%B8%82",ii_image:"NTZlOGM1OGI4YjI5NA%3D%3D",ii_open:"1"},{bi_id:"1159",bi_sto_id:"ZP",bi_chuukai:"1",bi_type:"%E5%A3%B2%E5%BB%BA%E7%89%A9",bi_type_id:"SH",bi_area_id:"4",bi_city:"%E6%B2%BC%E6%B4%A5%E5%B8%82",bi_town:"%E6%9D%B1%E6%A4%8E%E8%B7%AF",bi_access:"",bi_access2:"",bi_price:"2%2C680",bi_madori:"6SLDK",bi_kyoueki:"",bi_kanrihi:"",bi_syuuzen:"",bi_keitai:"",bi_menseki_l:"194.34",bi_menseki_h:"281.95",bi_menseki_b:"",bi_reikin:"",bi_sikikin:"",bi_tiku:"%E5%B9%B3%E6%88%906%E5%B9%B412%E6%9C%88",bi_kouzou:"%E6%9C%A8%E3%83%BB%E9%89%84%E7%AD%8B%E3%82%B3%E3%83%B3%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%88%E9%80%A03%E9%9A%8E%E5%BB%BA",bi_chuusya:"6%E5%8F%B0%E5%8F%AF",bi_setubi:"%E4%B8%8A%E6%B0%B4%E9%81%93%E3%83%BB%E6%B5%84%E5%8C%96%E6%A7%BD",bi_timoku:"",bi_genkyou:"",bi_keikaku:"",bi_youto:"",bi_kenpei:"",bi_youseki:"",bi_setudou:"%E5%8D%97%E5%81%B4%E7%A7%81%E9%81%93",bi_tisei:"",bi_keiyaku:"",bi_nyuukyo:"",bi_hoken:"",bi_syubetu:"",bi_bikou:"",bi_taiyou:"%E5%AA%92%E4%BB%8B",bi_pr:"%E6%97%A5%E5%BD%93%E3%81%9F%E3%82%8A%E8%89%AF%E5%A5%BD%EF%BC%81%E9%A7%90%E8%BB%8A%E5%A0%B46%E5%8F%B0%E5%8F%AF%EF%BC%81%E5%BA%83%E3%80%856%EF%BC%AC%EF%BC%A4%EF%BC%AB%EF%BC%81",bi_gakku:"%E6%B2%A2%E7%94%B0%E5%B0%8F%E3%83%BB%E9%87%91%E5%B2%A1%E4%B8%AD",bi_free:"",bi_entry_date:"2015-07-04+19%3A36%3A09",bi_open_flg:"1",am_name:"%E6%B2%BC%E6%B4%A5%E5%B8%82",ii_image:"NTU5N2I4Y2IzYzA1YQ%3D%3D",ii_open:"1"},{bi_id:"1023",bi_sto_id:"ZP",bi_chuukai:"1",bi_type:"%E5%A3%B2%E5%BB%BA%E7%89%A9",bi_type_id:"SH",bi_area_id:"4",bi_city:"%E6%B2%BC%E6%B4%A5%E5%B8%82",bi_town:"%E8%A5%BF%E6%B7%BB%E7%94%BA",bi_access:"JR",bi_access2:"%E5%8E%9F",bi_price:"4%2C600",bi_madori:"4LDK",bi_kyoueki:"",bi_kanrihi:"",bi_syuuzen:"",bi_keitai:"",bi_menseki_l:"496.32",bi_menseki_h:"138.24",bi_menseki_b:"",bi_reikin:"",bi_sikikin:"",bi_tiku:"%E6%98%AD%E5%92%8C62%E5%B9%B411%E6%9C%88",bi_kouzou:"%E6%9C%A8%E9%80%A0%E5%B9%B3%E5%B1%8B%E5%BB%BA",bi_chuusya:"%E6%9C%89",bi_setubi:"%E9%83%BD%E5%B8%82%E3%82%AC%E3%82%B9%E3%83%BB%E4%B8%8A%E6%B0%B4%E9%81%93%E3%83%BB%E4%B8%8B%E6%B0%B4%E9%81%93",bi_timoku:"",bi_genkyou:"",bi_keikaku:"",bi_youto:"",bi_kenpei:"",bi_youseki:"",bi_setudou:"%E5%8C%97%E5%81%B46%EF%BD%8D%E5%85%AC%E9%81%93",bi_tisei:"",bi_keiyaku:"",bi_nyuukyo:"",bi_hoken:"",bi_syubetu:"",bi_bikou:"",bi_taiyou:"%E5%AA%92%E4%BB%8B",bi_pr:"%E6%97%A5%E5%BD%93%E3%81%9F%E3%82%8A%E8%89%AF%E5%A5%BD%E3%80%80%E5%9C%9F%E5%9C%B0150%E5%9D%AA",bi_gakku:"%E5%8E%9F%E5%B0%8F%E3%83%BB%E5%8E%9F%E4%B8%AD",bi_free:"",bi_entry_date:"2014-05-22+17%3A10%3A27",bi_open_flg:"1",am_name:"%E6%B2%BC%E6%B4%A5%E5%B8%82",ii_image:"NTM3ZGIxM2YyNjJhYQ%3D%3D",ii_open:"0"}]});