/home/mjc1/public_html/manage/postSearch_old.php


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");
    
$qry          =  " select * from zipcode where dong like '%$name%'";
    
$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_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;
    self.close();
    //    window.opener.put_postno(no1,no2,add1,add2,addr);

    }
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="400" border="0" cellspacing="1" cellpadding="5" bgcolor="#E3E3E3" align='center'>
    <tr>
        <td bgcolor="#F7F7F7">
            <table width="100%" border="0" cellspacing="0" cellpadding="5">
                <tr>
                    <td bgcolor="#FFFFFF">
                        <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#EFEFEF">
                            <tr>
                                <td bgcolor="#FFFFFF">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td height="40" valign="top"><img src="post_serch_01.gif" width="131" height="37"></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td width="25">&nbsp;</td>
                                                        <td>
                                                            <img src="icon.gif" width="11" height="9">
                                                            <span class="line">°Ë»öÇϽ÷Á´Â Áö¿ªÀÇ µ¿/À¾/¸éÀ» ÀÔ·ÂÇϽŠÈÄ Á¶È¸ ¹öưÀ»
                                                            Å¬¸¯Çϼ¼¿ä. ¿¹) ½Å»çµ¿, Á¤À¾, ±æ¸²3µ¿</span>
                                                        </td>
                                                        <td width="25">&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td width="25" height="10"></td>
                                                        <td height="10"></td>
                                                        <td width="25" height="10"></td>
                                                    </tr>
                                                    <tr>
                                                        <td width="25">&nbsp;</td>
                                                        <td class="line" height="60">
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                    <td background="post_serch_02.gif" height="45">
                                                                        <FORM METHOD=post name='search' ACTION="<?=$PHP_SELF?>" onSubmit="return post_search()">
                                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                            <tr>
                                                                                <td width="10">&nbsp;</td>
                                                                                <td align="center" width="70"> <b>Áö¿ª¸í</b></td>
                                                                                <td width="130">
                                                                                    <INPUT TYPE="text" name='mode' value='search'>
                                                                                    <INPUT TYPE="text" name='addr' value='<?=$addr?>'>
                                                                                    <input type="Text" name="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="postsearch2.gif" width="87" height="19" align="absmiddle"></td>
                                                                                <td width="10">&nbsp;</td>
                                                                            </tr>
                                                                            </FORM>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                        <td class="line" width="25">&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td width="25">&nbsp;</td>
                                                        <td>&nbsp;</td>
                                                        <td width="25">&nbsp;</td>
                                                    </tr>
<?
    
if($mode == "search" && $name){

        if( 
mysql_num_rows($result) > 0){
            echo(
"
            <tr>
            <td width='25'>&nbsp;</td>
            <td class='line'>&nbsp;<FONT COLOR='#6666FF'>¾Æ·¡ ÇØ´çÁÖ¼Ò¸¦ ¼±ÅÃÇÏ½Ã°í ³ª¸ÓÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.</FONT></td>
            <td width='25'>&nbsp;</td>
            </tr>
            <tr>
            <td width='25'>&nbsp;</td>
            <td>
            <FORM METHOD=POST ACTION='' name='find_code'>
            <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_no03);
                
$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> ³ª¸ÓÁö ÁÖ¼Ò : <INPUT TYPE='text' NAME='address'>
            <INPUT TYPE='text' NAME='no1'>
            <INPUT TYPE='text' NAME='no2'>
            <INPUT TYPE='text' 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;' size='20' >
            <img src='submit_bt.gif' width='53' height='27' align='absmiddle' onclick=\"return_post1();\" style='cursor:hand'></td>
            </tr></form>
            </table>
            </td>
            <td width='25'>&nbsp;</td>
            </tr>
            <tr>
            <td width='25'>&nbsp;</td>
            <td class='line' height='30' align='right' valign='bottom'>È®ÀιöưÀ»
            ´©¸£¸é ÀÚµ¿ÀԷ µË´Ï´Ù. </td>
            <td width='25'>&nbsp;</td>
            </tr>
            <tr>
            <td width='25'>&nbsp;</td>
            <td>&nbsp;</td>
            <td width='25'>&nbsp;</td>
            </tr>
            "
);
        }
    }


?>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</body>
</html>