¾È³çÇϼ¼¿ä.
±âÁ¸ÀÇ °Ë»ö°á°ú¿¡¼ À¾À̳ª ¸éÀÏ°æ¿ì °ýÈ£¾È¿¡ Ç¥±âµÇ´ø°ÍÀ» ÁÖ¼Ò¿¡ Æ÷ÇԵǵµ·Ï ¼öÁ¤Çß½À´Ï´Ù.
¾Æ·¡ ¼Ò½ºÁß ºÓÀº»ö ºÎºÐÀ» ±âÁ¸ zip.php ÆÄÀÏ°ú ±³Ã¼ÇØ ÁÖ½Ã¸é µÇ°Ú½À´Ï´Ù.
for(var i=0; i<data.juso.length; i++) {
num1 = data.juso[i].num1; //¿ìÆí¹øÈ£ ¾Õ 3ÀÚ¸®
num2 = data.juso[i].num2; //¿ìÆí¹øÈ£ µÚ 3ÀÚ¸®
sido = data.juso[i].sido; //½Ãµµ¸í
gugun = data.juso[i].gugun; //½Ã±º±¸¸í
uname = data.juso[i].uname; //¹ýÁ¤À¾¸éµ¿¸í
lname = data.juso[i].lname; //¹ýÁ¤¸®¸í
jibun = data.juso[i].jibun; //Áö¹øº»¹ø-ºÎ¹ø
doro = data.juso[i].doro; //µµ·Î¸í
gbun = data.juso[i].gbun; //°Ç¹°º»¹ø-°Ç¹°ºÎ¹ø
gname = data.juso[i].gname; //°Ç¹°¸í
dname = data.juso[i].dname; //»ó¼¼°Ç¹°¸í
hdong = data.juso[i].hdong; //ÇàÁ¤µ¿¸í
// »ê, ÁöÇÏ¿©ºÎ Ç¥½Ã Ãß°¡(2012³â 6¿ù 20ÀÏ)
gubun = data.juso[i].gubun; //»ê, ÁöÇÏ ¿©ºÎ
//½Ãµµ + ½Ã±º±¸ + ¹ýÁ¤À¾¸éµ¿ + ¹ýÁ¤¸®¸í + Áö¹øº»¹ø-ºÎ¹ø
juso1 = sido + " " + gugun + " " + uname + " " + lname + " " + gubun+ jibun;
//¹ýÁ¤¸®¸íÀÌ ¾øÀ¸¸é ...
if(lname.replace(/\s/g,'') == "") {
// °Ç¹°¸íÀÌ ¾øÀ¸¸é
if(gname.replace(/\s/g,'') == "") juso3 = "(" + uname + ")";
else juso3 = "(" + uname + ", " + gname + ")";
uname = ""; //¹ýÁ¤À¾¸éµ¿ »ý·«
}
else {
if(gname.replace(/\s/g,'') == "") juso3 = "";
else juso3 = "(" + gname + ")";
}
juso2 = sido + " " + gugun + " " + uname + " " + doro + " " + gbun + dname;
juso1 = juso1.replace(" ", " "); // ºó¹®ÀÚ¿ÀÌ ÀÖÀ¸¸é °ø¹é 2ÄÀÌ »ý±â¹Ç·Î 1ÄÀ¸·Î ġȯ
juso2 = juso2.replace(" ", " "); // ºó¹®ÀÚ¿ÀÌ ÀÖÀ¸¸é °ø¹é 2ÄÀÌ »ý±â¹Ç·Î 1ÄÀ¸·Î ġȯ
s += '<tr>';
s += '<input type="hidden" name="num1" value="'+ num1 +'" />';
s += '<input type="hidden" name="num2" value="'+ num2 +'" />';
s += '<input type="hidden" name="juso2" value="'+ juso2 +'" />';
s += '<input type="hidden" name="juso3" value="'+ juso3 +'" />';
s += '<td class="txt post center">' + num1 + "-" + num2 + '</td>';
s += '<td class="txt jibun">' + juso1 + " " + gname + '</td>';
s += '<td class="txt doro"><a href="#" onclick="juso_Send(' + i + '); return false;">' + juso2 + " " + juso3 + '</a></td>';
s += '</tr>';
}