테스트 사이트 - 개발 중인 베타 버전입니다

개별 PHP에서 그누보드 우편번호 사용하기

· 13년 전 · 5924
btn_post.gif
그누보드에서 제공하는 우편번호 찾기를 이용하는 방법입니다.
그누보드 글쓰기에 삽입할때는 별도의 function 을 선언하지 않고 사용합니다.

win_open() 를 window.open() 으로 변경해야 크롬에서 작동하더군요.
그럴경우 아래와 같이 아래와 같이 function 을 변경해서 페이지 상단에 추가합니다.


<?php
$g4_path = ".."; // 그누보드의 common.php이 위치한 경로를 지정해주세요
include_once("$g4_path/common.php");
?>
<html>
<head>
<script type="text/javascript">
<!--
function win_zip(frm_name, frm_zip1, frm_zip2, frm_addr1, frm_addr2)
{
url = "<?php echo $g4[path]; ?>/bbs/zip.php?frm_name="+frm_name+"&frm_zip1="+frm_zip1+"&frm_zip2="+frm_zip2+"&frm_addr1="+frm_addr1+"&frm_addr2="+frm_addr2;
window.open(url, "winZip", "left=50,top=50,width=616,height=460,scrollbars=1");
}
//-->
</head>

<body>
<form name="hpwrite" method="post" action="">
<input size="4" name="zip1" itemname="우편번호 앞자리" readonly value="">-<input size="4" name="zip2" itemname="우편번호 뒷자리" readonly value="">
<a href="javascript:;" onClick="win_zip('hpwrite', 'zip1', 'zip2', 'add1', 'add2');"><img src="img/btn_post.gif" border="0" align="absmiddle" /></a><br />
<input name="add1" type="text" style="width:300px" value="" readonly /><br />
<input name="add2" type="text" style="width:300px" value="" />
</form>
</body>
</html>


[ 참고 ] 그누보드 글쓰기 스킨에서 우편번호 삽입하기
http://happyjung.com/bbs/board.php?bo_table=lecture&wr_id=285

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
34021
33994
33922
33895
33889
33882
33868
33863
33859
33857
33849
33842
33835
33830
33828
33807
33797
33796
33791
33786