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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
|
<? if ($_SERVER['REMOTE_ADDR'] == "112.155.34.10"){ //error_reporting(E_ALL); //ini_set("display_errors", 1); } include("category/common.php"); /* jyh µð¹ö±ë ÇÔ¼ö */ function prt($data=null, $size=0) { //if (!isdev()) return; ob_start(); print_r($data); $content_text = ob_get_contents(); ob_end_clean(); $content_list = explode("\n", $content_text); $rows = count($content_list); $cols = 0; foreach ($content_list as $line) { if (($col = mb_strlen($line)) > $cols) { $cols = $col; if ($cols > 128) $rows++; } } $rows += 2; $cols += 2; if (!headers_sent()) { header('Content-type: text/html; charset=euc-kr'); } echo '<textarea cols="' . $cols . '" rows="' . $rows . '"'; echo ' style="display:block; margin:0; padding:5px; border:1px solid #999;'; if ($size) echo ' width:' . $size . 'px;'; echo ' font-family:Hwsr_9pt, Gulimche; font-size:9pt;">'; echo $content_text; echo '</textarea>'; } // Notice Error ¹æÁö $name_new = isset($name_new) ? "" : ""; $mode_new = isset($mode_new) ? "" : ""; $addr = isset($addr) ? "" : "";
if(isset($_GET['premier'])){ if($_GET['premier'] == 1){ /*20130809 º¯¼ö¼±¾ð*/ if (isset($_REQUEST['name'])) { $name_new = $_REQUEST['name']; } else { $name_new = ""; } if (isset($_REQUEST['mode'])) { $mode_new = $_REQUEST['mode']; } else { $mode_new = ""; } // µµ·Î¸í ÁÖ¼Ò´Â ¾÷µ¥ÀÌÆ®°¡ ÀÚÁÖ ¹ß»ýÇϹǷÎ, DBÀÇ doro_tbl1, doro_tbl2 °¡ ¹ø°¥¾Æ°¡¸ç Ãֽŵ¥ÀÌÅ͸¦ À¯ÁöÇÔ. // ±×·¡¼ doro_tbl_ver Å×ÀÌºí¿¡ Á¢±ÙÇÏ¿© ÃֽŠÅ×À̺íÀÇ À̸§À» °¡Á®¿Í º¯¼ö·Î ´ã¾ÆµÎ°í »ç¿ëÇÑ´Ù. $qry = " SELECT tbl_name FROM doro_tbl_ver WHERE idx = '1'"; $result = mysql_query($qry); $doro_tbl_name = mysql_fetch_array($result); if($name_new){ $qry = " SELECT d_sido, d_gugun, d_road, d_zipcode, d_nBdNo01, d_nBdNo02, d_dum02 FROM ".$doro_tbl_name[0]." WHERE d_road LIKE '$name_new%' ORDER BY d_sido, d_gugun, d_road, d_nBdNo01"; $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> <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_focus2(info){ var form = document.search; //var form2 = document.find_code; var form2 = document.getElementById('find_code'); var str = "|"; var strto ="-";
var add = info.split(str); var code = add[1].split(strto); document.getElementById('address').value = add[0]; document.getElementById('no1').value = code[0]; document.getElementById('no2').value = code[1]; document.getElementById('add_address').focus();
}
function return_post1(){ var form = document.getElementById("find_code"); var no1 = document.getElementById("no1").value; var no2 = document.getElementById("no2").value; var add1 = document.getElementById("address").value; var add2 = document.getElementById("add_address").value; var addr = document.getElementById("addr").value; /* 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;
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 height="20"></td></tr>
<!-------ÅǸ޴º ½ÃÀÛ--------> <script> function premier(n) { for(var i = 1; i <= 2; i++) { obj = document.getElementById('premier'+i); img = document.getElementById('premier_button'+i); if ( n == i ) { obj.style.display = "block"; img.src = "doro_tab"+i+"_on.jpg"; } else { obj.style.display = "none"; img.src = "doro_tab"+i+"_off.jpg"; } } } </script>
<table width="400" height="30" border="0" align="center" cellpadding="0" cellspacing="0" background="../html/millennium/img/product/product_tab.jpg"> <tr> <td align="left"> <table border="0" cellpadding="0" cellspacing="0"> <tr valign="bottom"> <td width="9"></td>
<!-- »õÁÖ¼Ò(µµ·Î¸í) --> <td height="30"><img src="doro_tab1_on.jpg" OnClick='location.href="?premier=1";' id='premier_button1' style="cursor:hand;"></td> <td width="6"></td>
<!-- ±¸ÁÖ¼Ò(Áö¹øÁÖ¼Ò) --> <td><img src="doro_tab2_off.jpg" OnClick='location.href="?premier=2";' id='premier_button2' style="cursor:hand;"></td> <td width="6"></td> </tr> </table> </td> </tr> </table>
<table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> <!------- »õÁÖ¼Ò(µµ·Î¸í) --------> <span id='premier1' style='display:block;'> <p style="padding-top:15px;"><font color="black"><b>°Ë»ö¹æ¹ý : </font><font color="red">µµ·Î¸íÀ» ÀÔ·Â</b></font><br />
¿¹) ¼¿ïƯº°½Ã °³²±¸ ¿µµ¿´ë·Î 101 ÀÏ °æ¿ì <b>¿µµ¿´ë·Î</b> °Ë»ö</p>
<FORM style="height:55px; padding-top:7px; border-top:1px solid #e1e1e1; border-bottom:1px solid #e1e1e1" METHOD="post" name='search' ACTION="<?=$PHP_SELF?>?premier=1" onSubmit="return doro_search()"> <input type="hidden" name='mode' value='search'> <label for="name" style="padding-left:15px;">µµ·Î¸í : </label> <input type="text" name="name" id="name" style="width:230px; vertical-align:middle;" value="<?echo isset($_POST['name']) ? $_POST['name'] : ""; ?>"><input type="image" src="search.jpg" alt="°Ë»ö" style="margin-left:10px; vertical-align:middle;"> <br />
</FORM> <p style="margin-bottom:10px;"><img src="./img/post_02.jpg" alt="³ª¸ÓÁö ÁÖ¼Ò¸¦ ¹Ýµå½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä."></p>
<!-- <hr width="400"> -->
<tr> <td> <? if($mode_new == "search" && $name_new){ if( mysql_num_rows($result) > 0){ echo(" <table style='width:400px; background:#f9f9f9; border-top:1px solid #e1e1e1; border-bottom:1px solid #e1e1e1'> <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' id='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_focus2(this.value);' size='5'>"; while( $row = mysql_fetch_array($result)){ // ÁÖ¼Ò : d_sido + d_gugun + d_road // ¿ìÆí¹øÈ£ : d_zipcode Á¶È¸ ÈÄ 3ÀÚ¸®¾¿ ²÷¾î¼ - À» ºÙ¿©ÁØ´Ù. $zipcode_no = $row['d_zipcode']; $sido = $row['d_sido']; $gugun = $row['d_gugun']; $dong = $row['d_road']; $d_nBdNo01 = $row['d_nBdNo01']; $d_nBdNo02 = $row['d_nBdNo02']; if($d_nBdNo02 == 0) $d_nBdNo02 = ""; $d_dum02 = $row['d_dum02']; $no1 = substr($zipcode_no, 0, 3); $no2 = substr($zipcode_no, -3); // d_nBdNo01, d_nBdNo02, d_dum02 $address = $sido . " " . $gugun . " " . $dong ." " . $d_nBdNo01 ." " . $d_nBdNo02 . " " . $d_dum02; $address2 = $sido . " " . $gugun . " " . $dong ." " . $d_nBdNo01 ." " . $d_nBdNo02 . " " . $d_dum02 . " " . "|" ." ". "$no1" ."-" . "$no2"; echo(" <option value='$address2'>$address</option>
"); } echo "</select>";
//<input type='image' src='./img/close_bt.jpg' width='57' height='29' align='absmiddle' onclick='return_post1(); 'style='cursor:hand'> echo("
</td> </tr>
<tr> <td align='center' style='padding-top:10px;'>³ª¸ÓÁöÁÖ¼Ò :<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'>
<input type='text' name='add_address' id='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;'>
<img 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;'><b>[È®ÀÎ]</b> ¹öưÀ» ´©¸£¸é ÀÚµ¿ÀÔ·Â µË´Ï´Ù.</td> </tr>
"); } }
?>
</td> <tr>
<!-- ¿ìÆí¹øÈ£ ¸®½ºÆ® s --> <div height="300"> <ul style="background-color:f3f3f3; display;"></ul> </div> <!--// ¿ìÆí¹øÈ£ ¸®½ºÆ® e -->
</span> </td>
<td valign="top"> <!------- ±¸ÁÖ¼Ò(Áö¹øÁÖ¼Ò) --------> <span id='premier2' style='display:none;'> <? include("doro_post.php"); ?> </span> </td> </tr> </table>
<!--- ÅǸ޴º ³¡ ---->
</table> <? if(!isset($_GET['premier'])) $_GET['premier'] = ""; if($_GET['premier']){ echo "<script>premier(".$_GET['premier'].");</script>"; } ?> </body> </html>
|