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
|
<?php include_once("../../_common.php"); ?> <? if ($_SERVER['REMOTE_ADDR'] == "112.155.34.10"){ //error_reporting(E_ALL); //ini_set("display_errors", 1); } include("../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"> <link href="../../css/import.css" rel="stylesheet" type="text/css"> <script language='javascript' src='ch_form.js'></script>
<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;
if (add1 == "") { alert("°Ë»öÇϽŠÁÖ¼Ò¸¦ ¼±ÅÃÇÏÁö ¾ÊÀ¸¼Ì½À´Ï´Ù.");
} else {
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();
} } </script>
<style> .findPostContents{ width:445px; height:495px; border:5px solid #777; background:url('../../images/member/login_popup.png') no-repeat top right; } .findPostContents h2{ padding-top:20px; color:#231f20; font-size:35px; line-height:110%; text-align:center; } .findPostContents h2 span{ display:block; padding:5px 0 10px; width:100%; color:#666; font-size:13px; line-height:110%; overflow:hidden; } .findPostSection{ width:400px; margin:0 auto; border-top:2px solid #231f20; }
.postTab { width:400px; margin-bottom:20px; } .postTab ul#tabs { width:100%; height:35px; } .postTab ul#tabs li { width:200px; float:left; height:35px; } .postTab ul#tabs li a{ display:block; width:200px; height:35px; color:#231f20; font-size:14px; font-weight:600; line-height:35px; text-align:center; background:#eee; } .postTab ul#tabs li a:hover{ background-color:#231f20; color:#fff; }
.addrContainer h4{ margin:10px 0; height:36px; font-size:13px; line-height:18px; } .addrContainer form{ padding:15px 0; background:#f8f8f8; } .addrContainer form label{ margin-left:15px; font-size:13px; line-height:35px; font-weight:600; } .addrContainer form input[type=text]{ margin:0 10px 0 5px; padding:0 3px; width:210px; height:33px; line-height:33px; border:1px solid #ccc; } .addrContainer form input[type=image]{ vertical-align:middle; } .addrContainer p.postText{ margin:10px 0; font-size:13px; line-height:15px; text-align:center; } .addrContainer .postResult{ margin-left:15px; width:370px; height:100px; font-family:Dotum; font-size:12px; } .addrContainer .addrDetail{ margin:10px 0 0 5px; width:380px; height:35px; } .addrContainer .addrDetail label, .addrContainer .addrDetail input, .addrContainer .addrDetail a{ float:left; } .addrContainer .addrDetail a{ display:block;width:70px; height:35px; overflow:hidden; } </style> </head>
<body>
<div class="findPostContents"> <h2>¿ìÆí¹øÈ£ ã±â<span>µµ·Î¸íÁÖ¼Ò ¶Ç´Â Áö¹øÁÖ¼Ò·Î °Ë»öÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.</span></h2>
<div class="findPostSection">
<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"; obj.style.backgrund = "#231f20"; } else { obj.style.display = "none"; obj.style.backgrund = "#eee"; } } } </script>
<div class="postTab"> <ul id="tabs"> <li><a onclick='location.href="?premier=1";' id='premier_button1'>»õÁÖ¼Ò(µµ·Î¸íÁÖ¼Ò)</a></li> <li><a onclick='location.href="?premier=2";' id='premier_button2'>±¸ÁÖ¼Ò(Áö¹øÁÖ¼Ò)</a></li> </ul>
<!------- »õÁÖ¼Ò(µµ·Î¸í) --------> <span id='premier1' style='display:block;'> <div class="addrContainer"><? include("street_post.php"); ?></div> </span><!-- //premier1 -->
<!------- ±¸ÁÖ¼Ò(Áö¹øÁÖ¼Ò) --------> <span id='premier2' style='display:none;'> <div class="addrContainer"><? include("number_post.php"); ?></div> </span><!-- //premier2 -->
</div><!-- //postTab --> <!--- ÅǸ޴º ³¡ ---->
</div><!-- //outloginSection --> </div><!-- //outloginContents -->
<? if(!isset($_GET['premier'])) $_GET['premier'] = ""; if($_GET['premier']){ echo "<script>premier(".$_GET['premier'].");</script>"; } ?>
</body> </html>
|