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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
<? include("category/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); ?> <html> <head> <title>¿ìÆí¹øÈ£ °Ë»ö</title> <meta http-equiv="Content-Type" content="text/html; charset=euc-kr"> <script language='javascript' src='ch_form.js'></script> <script src='http://mjsoft.co/js/jquery-1.8.3.min.js'></script> <style type="text/css"> <!-- .line { line-height: 150%; } --> </style> <style type=text/css> table { font-color;#000000;font-size:9pt } .td {BACKGROUND-COLOR:#C1CDD8} .nontd {BACKGROUND-COLOR:#ffffff} </style> <script> function return_post1(){ var form = document.find_code; var no1 = form.no1.value; var no2 = form.no2.value; var add1 = form.address.value; var add2 = form.add_address.value; var addr = form.addr.value;
if (add1 == "") { alert("°Ë»öÇϽŠÁÖ¼Ò¸¦ ¼±ÅÃÇÏÁö ¾ÊÀ¸¼Ì½À´Ï´Ù.");
} else {
//window.opener.document.memberJoin.post1.value = no1.replace(" ",""); //window.opener.document.memberJoin.post2.value = no2.replace(" ",""); //window.opener.document.memberJoin.Madd.value = add1+" "+add2;
/*window.opener.document.getElementById("post1").value = no1.replace(" ",""); window.opener.document.getElementById("post2").value = no2.replace(" ",""); window.opener.document.getElementById("Madd").value = add1+" "+add2;*/
if($("input[name='post2']",opener.document).val()==undefined){ $("input[name='post1']",opener.document).val(no1.replace(" ","")+no2.replace(" ","")); } else { $("input[name='post1']",opener.document).val(no1.replace(" ","")); $("input[name='post2']",opener.document).val(no2.replace(" ","")); }
$("input[name='Madd']",opener.document).val(add1+" "+add2);
self.close(); // window.opener.put_postno(no1,no2,add1,add2,addr);
} } </script> </head> <body> <table width="400" align="center" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="400" height="35" style="padding:5px 0 0 95px;" background="./img/post_bg.jpg" ><b>¿ìÆí¹øÈ£ ã±â</td> </tr>
<tr> <td style="padding:20px 0 10px 0;"><img src="./img/post_01.jpg"></td> </tr>
<tr> <td> <FORM METHOD=post name='search' ACTION="<?=$PHP_SELF?>" onSubmit="return post_search()"> <table width="400" height="50" background="./img/post_bg2.jpg"> <tr> <td width="130" style="padding-left:130px;"> <input type="hidden" name='mode' value='search'> <input type="hidden" name='addr' value='<?=$addr?>'> <input type="Text" name="name" id="name" style="width:120; height:19; border-style:solid; background-color=#FFFFFF; border-color:#CCCCCC; border-width:1; margin-top:2; font-size:12px; color:#333333;" size="20"> </td> <td><input type='image' src="./img/find_bt.jpg" width="52" height="22" align="absmiddle"></td> <td width="10"> </td> </tr> </table> </FORM> </td> </tr>
<tr> <td style="padding:5px 0 10px 0;"><img src="./img/post_02.jpg"></td> </tr>
<tr><td height="2" bgcolor="#878c90"></td><tr>
<tr> <td bgcolor="#f9f9f9"> <table width="400" border="0" cellspacing="0" cellpadding="0">
<? if($mode_new == "search" && $name_new){
if( mysql_num_rows($result) > 0){ echo(" <tr> <td align='center' style='padding:10px 0 10px 0;'><FONT COLOR='#3578d4'>¾Æ·¡ ÇØ´çÁÖ¼Ò¸¦ ¼±ÅÃÇÏ½Ã°í ³ª¸ÓÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.</FONT></td> </tr>
<tr> <td> <FORM METHOD=POST ACTION='' name='find_code' onSubmit='return_post1()'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td height='35' align='center'> ");
echo " <select style='width:320px;font-size:9pt;color:#4b4B4B;font-family:'µ¸¿ò'' name='select' onchange='return_focus(this.value);' size='5'>"; 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("
</td> </tr>
<tr> <td align='center' style='padding-top:10px;'>³ª¸ÓÁöÁÖ¼Ò :<INPUT TYPE='hidden' NAME='address'> <input type='hidden' NAME='no1'><INPUT TYPE='hidden' NAME='no2'><INPUT TYPE='hidden' NAME='addr' value='$addr'>
<input type='text' name='add_address' style='width:170; height:19; border-style:solid; background-color=#FFFFFF; border-color:#CCCCCC; border-width:1; margin-top:2; font-size:12px; color:#333333;'>
<input type='image' src='./img/close_bt.jpg' width='57' height='29' align='absmiddle' onclick='return_post1(); 'style='cursor:hand'> </td> </tr> </table> </form> </td> </tr>
<tr> <td align='center' style='padding-bottom:10px;'>È®ÀιöưÀ» ´©¸£¸é ÀÚµ¿ÀÔ·Â µË´Ï´Ù.</td> </tr> <tr><td height='1' bgcolor='#e1e1e1'></td><tr>
"); } }
?>
</td> <tr>
</table> </body> </html>
|