도로명 주소 출력변환 함수 추가
This commit is contained in:
@ -185,7 +185,7 @@ $colspan = 15;
|
|||||||
if ($intercept_title == '')
|
if ($intercept_title == '')
|
||||||
$intercept_title = '차단하기';
|
$intercept_title = '차단하기';
|
||||||
|
|
||||||
$address = $row['mb_zip1'] ? $row['mb_addr1'].' '.$row['mb_addr2'] : '';
|
$address = $row['mb_zip1'] ? print_address($row['mb_addr1'], $row['mb_addr2']) : '';
|
||||||
|
|
||||||
$bg = 'bg'.($i%2);
|
$bg = 'bg'.($i%2);
|
||||||
|
|
||||||
|
|||||||
@ -2501,4 +2501,21 @@ function get_address2($addr2, $addr3)
|
|||||||
|
|
||||||
return $addr2;
|
return $addr2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 도로명주소 출력
|
||||||
|
// 주소출력
|
||||||
|
function print_address($addr1, $addr2)
|
||||||
|
{
|
||||||
|
$address = trim($addr1);
|
||||||
|
$addr2 = trim($addr2);
|
||||||
|
|
||||||
|
if($addr2) {
|
||||||
|
if(preg_match('/^\(/', $addr2))
|
||||||
|
$address .= ' '.$addr2;
|
||||||
|
else
|
||||||
|
$address .= ', '.$addr2;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $address;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user