1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
<?php include_once("../../_common.php"); ?> <? if (!isset($addr)) $addr = "";//20130910
/*20130809 º¯¼ö¼±¾ð*/ if (isset($_REQUEST['name'])) { $name_new = $_REQUEST['name']; } else { $name_new = ""; }
if (isset($_REQUEST['mode'])) { $mode_new = $_REQUEST['mode']; } else { $mode_new = ""; }
$qry = " select * from zipcode where dong like '%$name_new%'"; $result = mysql_query($qry); ?>
<h4> <p>°Ë»ö¹æ¹ý : <span class="red">Áö¿ªÀÇ µ¿/À¾/¸éÀ» ÀÔ·Â</span></p> <p>¿¹) ¼¿ïƯº°½Ã °³²±¸ »ï¼ºµ¿ 1¹øÁö : <b>»ï¼ºµ¿</b> °Ë»ö</p> </h4>
<form method="post" name='search' action="<?=$PHP_SELF?>?premier=2" onSubmit="return post_search()"> <input type="hidden" name='mode' value='search'> <input type="hidden" name='addr' value='<?=$addr?>'> <label for="name">Áö¿ª¸í : </label> <input type="text" name="name" id="name2" size="20"><input type="image" src="../../images/common/post_btn.png" alt="¿ìÆí¹øÈ£ °Ë»ö"></td> </form>
<p class="postText">ÇØ´ç ÁÖ¼Ò¸¦ ¼±ÅÃÇϽðí, <span class="blue">³ª¸ÓÁö ÁÖ¼Ò¸¦ ¹Ýµå½Ã ÀÔ·Â</span>ÇØ ÁֽʽÿÀ.</p>
<? if($mode_new == "search" && $name_new){
if( mysql_num_rows($result) > 0){ echo(" <form method='post' action='' name='find_code' id='find_code' onSubmit='return_post1()'>"); echo " <select name='select' onchange='return_focus2(this.value);' size='5' class='postResult'>"; while( $row = mysql_fetch_array($result)){ $zipcode_no = $row['zipcodeno']; $sido = $row['sido']; $gugun = $row['gugun']; $dong = $row['dong']; $note1 = $row['note1']; $note2 = $row['note2']; $no1 = substr($zipcode_no, 0, 3); $no2 = substr($zipcode_no, -3); $address = $sido . " " . $gugun . " " . $dong ." " . $note1 ." " ."|" ." ". "$no1" ."-" . "$no2"; $address2 = $sido . " " . $gugun . " " . $dong ." " ."|" ." ". "$no1" ."-" . "$no2"; echo(" <option value='$address2'>$address</option> "); } echo "</select>";
echo(" <div class='addrDetail'> <label>³ª¸ÓÁöÁÖ¼Ò : </label> <input type='text' name='add_address' id='add_address'> <a onclick='return_post1();'><img src='../../images/common/post_ok_btn.png' alt='È®ÀÎ' ></a>
<input type='hidden' name='address' id='address'> <input type='hidden' name='no1' id='no1'> <input type='hidden' name='no2' id='no2'> <input type='hidden' name='addr' id='addr' value='$addr'>
</div> </form>
<p class='postText'><b>[È®ÀÎ]</b> ¹öưÀ» ´©¸£¸é ÀÚµ¿ÀÔ·Â µË´Ï´Ù.</p>
"); } }
?>
|