주소검색창후 창이 안닫힙니다.

주소검색창후 창이 안닫힙니다.

QA

주소검색창후 창이 안닫힙니다.

본문


<form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" autocomplete="off">
<input type=hidden name=null> 
<input type=hidden name=w        value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id    value="<?=$wr_id?>">
<input type=hidden name=sca      value="<?=$sca?>">
<input type=hidden name=sfl      value="<?=$sfl?>">
<input type=hidden name=stx      value="<?=$stx?>">
<input type=hidden name=spt      value="<?=$spt?>">
<input type=hidden name=sst      value="<?=$sst?>">
<input type=hidden name=sod      value="<?=$sod?>">
<input type=hidden name=page     value="<?=$page?>">
 
<div id="board_write">
 
	<div class="subject"><?=$title_msg?></div>
 
 
	<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0>
 
	<? if ($is_category) { ?>
	<tr>
		<td class="write_head">지 역</td>
		<td class="field"><select name=ca_name required itemname="지역"><option value="">선택하세요<?=$category_option?></select></td>
	</tr>
	<? } ?>
 
	<tr>
		<td class="write_head">지점명</td>
		<td class="field"><input class="field-input" style="width:200px;" name=wr_subject id="wr_subject" itemname="매장명" required value="<?=$subject?>"></td>
	</tr>
 
	<tr>
		<td class="write_head">대표전화</td>
		<td class="field">
			<input class="field-input" size='3' maxlength='3' name='tel01' itemname='전화번호' value='<?=$tel01?>' required> - <input class="field-input" size='4' maxlength='4' name='tel02' itemname='전화번호' value='<?=$tel02?>' required> - <input class="field-input" size='4' maxlength='4' name='tel03' itemname='전화번호' value='<?=$tel03?>' required>
		</td>
	</tr>
 
	<tr>
		<td class="write_head">주 소</td>
		<td class="field">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td style="line-height:30px;">
						<input class="field-input" size='5' maxlength='3' name='post01' itemname='우편번호 앞자리' value='<?=$post01?>' readonly> - 
						<input class="field-input" size='5' maxlength='3' name='post02' itemname='우편번호 뒷자리' value='<?=$post02?>' readonly> 
 
						<a href="javascript:;" onClick="win_zip('fwrite', 'post01', 'post02', 'add01', 'add02');"><img src="<?=$board_skin_path?>/img/post_search_btn.gif" border=0 align=absmiddle></a><br>
						
						<input class="field-input" type="text" size='60' name='add01' itemname='주소' value='<?=$add01?>' readonly placeholder='기본주소'><br>
						<input class="field-input" type="text" size='60' name='add02' itemname='상세주소' value='<?=$add02?>' placeholder='상세주소'>
					</td>
				</tr>
			</table>
		</td>
	</tr>
 
	<tr>
		<td class="write_head">영업시간</td>
		<td class="field">
			<select name=hour01 itemname='영업시간' >
				<?	$string = array ("AM","PM");
				for ($i = 0; $i<count($string); $i++) { ?>
					<option value='<?=$string[$i]?>' 
					<? if($hour01 == $string[$i]) echo "selected"; ?>><?=$string[$i]?></option>
				<? } ?>
			</select>
			<select name=hour02 itemname='영업시간' >
				<?	$string = array ("01","02","03","04","05","06","07","08","09","10","11","12");
				for ($i = 0; $i<count($string); $i++) { ?>
					<option value='<?=$string[$i]?>' 
					<? if($hour02 == $string[$i]) echo "selected"; ?>><?=$string[$i]?></option>
				<? } ?>
			</select> 시
			<select name=hour03  itemname='영업시간' >
				<?	$string = array ("00","30");
				for ($i = 0; $i<count($string); $i++) { ?>
					<option value='<?=$string[$i]?>' 
					<? if($hour03 == $string[$i]) echo "selected"; ?>><?=$string[$i]?></option>			
				<? } ?>
			</select> 분 -
			<select name=hour04  itemname='영업시간' >
				<?	$string = array ("AM","PM");
				for ($i = 0; $i<count($string); $i++) { ?>
					<option value='<?=$string[$i]?>' 
					<? if($hour04 == $string[$i]) echo "selected"; ?>><?=$string[$i]?></option>			
				<? } ?>
			</select>
			<select name=hour05  itemname='영업시간' >
				<?	$string = array ("01","02","03","04","05","06","07","08","09","10","11","12");
				for ($i = 0; $i<count($string); $i++) { ?>
					<option value='<?=$string[$i]?>' 
					<? if($hour05 == $string[$i]) echo "selected"; ?>><?=$string[$i]?></option>			
				<? } ?>
			</select> 시
			<select name=hour06  itemname='영업시간' >
				<?	$string = array ("00","30");
				for ($i = 0; $i<count($string); $i++) { ?>
					<option value='<?=$string[$i]?>' 
					<? if($hour06 == $string[$i]) echo "selected"; ?>><?=$string[$i]?></option>			
				<? } ?>
			</select> 분 까지
		</td>
	</tr>
 
	<tr>
		<td class="write_head">매장안내</td>
		<td class="field">
			<? if ($is_dhtml_editor) { ?>
				<?=cheditor2('wr_content', $content);?>
			<? } else { ?>
			<table width='100%' cellpadding=0 cellspacing=0>
			<tr>
				<td width='50%' align=left valign=bottom>
					<span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
					<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
					<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
				<td width='50%' align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
			</tr>
			</table>
			<textarea id="wr_content" class="field-textarea" name="wr_content" rows=8 itemname="내용" required 
			<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
			<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
			<? } ?>
		</td>
	</tr>
 
	<? if ($is_file) { ?>
	<tr>
		<td class="write_head">
			매장사진 
			<span onclick="add_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_add.gif" align=absmiddle></span> 
			<span onclick="del_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_minus.gif" align=absmiddle></span>
		</td>
		<td class="field">
			<table id="variableFiles" cellpadding=0 cellspacing=0></table>
			<span>매장사진은 가로사진만 가능 (사이즈 가로 800px이하)</span><?// print_r2($file); ?>
 
			<script type="text/javascript">
			var flen = 0;
			function add_file(delete_code)
			{
				var upload_count = <?=(int)$board[bo_upload_count]?>;
				if (upload_count && flen >= upload_count)
				{
					alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
					return;
				}
 
				var objTbl;
				var objRow;
				var objCell;
				if (document.getElementById)
					objTbl = document.getElementById("variableFiles");
				else
					objTbl = document.all["variableFiles"];
 
				objRow = objTbl.insertRow(objTbl.rows.length);
				objCell = objRow.insertCell(0);
 
				objCell.innerHTML = "<input type='file' name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
				if (delete_code)
					objCell.innerHTML += delete_code;
				else
				{
					<? if ($is_file_content) { ?>
					objCell.innerHTML += "<br><input type='text' size=50 name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.'>";
					<? } ?>
					;
				}
 
				flen++;
			}
 
			<?=$file_script; //수정시에 필요한 스크립트?>
 
			function del_file()
			{
				// file_length 이하로는 필드가 삭제되지 않아야 합니다.
				var file_length = <?=(int)$file_length?>;
				var objTbl = document.getElementById("variableFiles");
				if (objTbl.rows.length - 1 > file_length)
				{
					objTbl.deleteRow(objTbl.rows.length - 1);
					flen--;
				}
			}
			</script>
		</td>
	</tr>
	<? } ?>
 
	</table>
 
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="100%" align="center" valign="top" style="padding-top:30px;">
			<input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border=0 accesskey='s'> 
			<a href="./board.php?bo_table=<?=$bo_table?>"><img id="btn_list" src="<?=$board_skin_path?>/img/btn_list.gif" border=0></a></td>
	</tr>
	</table>
 
	</td></tr></table>
 
</div>
</form>
 
<script type="text/javascript">
 
with (document.fwrite) 
{
    if (typeof(wr_1) != "undefined")
        wr_1.focus();
    else if (typeof(wr_2) != "undefined")
        wr_2.focus();
    else if (typeof(wr_3) != "undefined")
        wr_3.focus();
 
    if (typeof(ca_name) != "undefined")
        if (w.value == "u")
            ca_name.value = "<?=$write[ca_name]?>";
}
 
function html_auto_br(obj) 
{
    if (obj.checked) {
        result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
        if (result)
            obj.value = "html2";
        else
            obj.value = "html1";
    }
    else
        obj.value = "";
}
 
function fwrite_submit(f) 
{
    /*
    var s = "";
    if (s = word_filter_check(f.wr_subject.value)) {
        alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
        return false;
    }
 
    if (s = word_filter_check(f.wr_content.value)) {
        alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
        return false;
    }
    */
 
    if (document.getElementById('char_count')) {
        if (char_min > 0 || char_max > 0) {
            var cnt = parseInt(document.getElementById('char_count').innerHTML);
            if (char_min > 0 && char_min > cnt) {
                alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
                return false;
            } 
            else if (char_max > 0 && char_max < cnt) {
                alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
                return false;
            }
        }
    }
 
    if (document.getElementById('tx_wr_content')) {
        if (!ed_wr_content.outputBodyText()) { 
            alert('내용을 입력하십시오.'); 
            ed_wr_content.returnFalse();
            return false;
        }
    }
 
    <?
    if ($is_dhtml_editor) echo cheditor3('wr_content');
    ?>
 
    var subject = "";
    var content = "";
    $.ajax({
        url: "<?=$board_skin_path?>/ajax.filter.php",
        type: "POST",
        data: {
            "subject": f.wr_subject.value,
            "content": f.wr_content.value
        },
        dataType: "json",
        async: false,
        cache: false,
        success: function(data, textStatus) {
            subject = data.subject;
            content = data.content;
        }
    });
/*
    if (subject) {
        alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
        f.wr_subject.focus();
        return false;
    }
*/
    if (content) {
        alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
        if (typeof(ed_wr_content) != "undefined") 
            ed_wr_content.returnFalse();
        else 
            f.wr_content.focus();
        return false;
    }
 
    document.getElementById('btn_submit').disabled = true;
    document.getElementById('btn_list').disabled = true;
 
    <?
    if ($g4[https_url])
        echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
    else
        echo "f.action = './write_update.php';";
    ?>
    
    return true;
}
</script>
 
<script type="text/javascript" src="<?="$g4[path]/js/board.js"?>"></script>
<script type="text/javascript"> window.onload=function() { drawFont(); } </script> 

 

제목그대로 주소검색하면 입력은 잘 되는데 우편번호 검색창이 안닫힙니다.

예전 제작했던 스킨하고 최신버전하고 변경된부분 <form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" autocomplete="off">​은 수정한것같은데..어디가 문제인지 모르겠네요..;;

어디가 잘못된걸까요??

이 질문에 댓글 쓰기 :

답변 1

이 부분은 우편검색창으로 띄워지는 팝업창에 관련된 소스를 보셔야 할듯 합니다.

현재 페이지에서는 닫기부분이 동작 안되는 이유를 확인하기 힘들다고 보여집니다.

다시 천천히 확인해보니 최신버전에 $mb_addr_jibeon코드가 hidden input으로 추가되었었네요..^^ 그걸 필요없어서 추가안한게 문제였네요..잘 해결되었습니다. 답변 감사합니다.

답변을 작성하시기 전에 로그인 해주세요.
전체 19
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT