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
|
<? include("./include/header.php");
$string = substr(strtolower(md5(uniqid(rand(),1))),0,5); $string = str_replace('1','a',$string);
if( isset($_COOKIE["gd-image"]) && $_COOKIE["gd-image"] !== "" ){
setcookie( "gd-image" , $string , 0 ) ; } else{
setcookie( "gd-image" , $string , 0 ) ;
}
$cm_nCount = 30; $cm_item_nCount = 30;
function pageListing($cur_page, $total_page, $n, $url) {
$retValue .= "<table width=600 border=0 cellspacing=0 cellpadding=0 height=40 align=center><tr><td align=center valign=middle>"; if ($cur_page > 1) {
$retValue .= "<span style=font-size:9pt;><font face=Verdana><a href='" . $url . ($cur_page-1) ."'>ÀÌÀü</a></font></span>"; } else { $retValue .= " "; $retValue .= " "; } $retValue .= " "; $start_page = ( ( (int)( ($cur_page - 1 ) / 10 ) ) * 10 ) + 1; //echo (int)(($cur_page - 1) / 10); $end_page = $start_page + 9; if ($end_page >= $total_page) $end_page = $total_page; if ($start_page > 1) $retValue .= " <span style=font-size:9pt;><font face=Verdana><a href='" . $url . ($start_page-1) . "'>...</a></font></span> "; if ($total_page > 1) for ($k=$start_page;$k<=$end_page;$k++) if ($cur_page != $k) $retValue .= " <span style=font-size:9pt;><font face=Verdana><a href='$url$k'>$k</a> </font></span>"; else $retValue .= " <b>$k</b> "; if ($total_page > $end_page) $retValue .= "<span style=font-size:9pt;><font face=Verdana><a href='" . $url . ($end_page+1) . "'>...</a></font></span> "; $retValue .= " "; if ($cur_page < $total_page) { $retValue .= "<span style=font-size:9pt;><font face=Verdana><a href='$url" . ($cur_page+1) ."'>´ÙÀ½</a></font></span>";
} else { $retValue .= " "; $retValue .= " "; } $retValue .= "</td></tr></table>"; return $retValue; }
$total_sql .= " select * from mBoard_dealer ";
$result = mysql_query($total_sql) or die (mysql_error()); $nTotalCount = mysql_num_rows($result); $nPage = ceil($nTotalCount / $cm_nCount); if ($pg == "") $pg = 1; $nFrom = ($pg - 1) * $cm_nCount;
$sql = $total_sql . " order by d_date DESC limit $nFrom, $cm_nCount ";
$total_result = mysql_query($sql) or die (mysql_error());
if($mode=="update_chk"&& $d_num) { $d_r = " select * from mBoard_dealer where d_num='$d_num' and d_pass='$pass' "; $d_rResult = mysql_query($d_r);
if( mysql_num_rows($d_rResult) > 0) { $d_d = mysql_fetch_array($d_rResult); $d_d_code = explode("-",$d_d[d_code]); $d_d_tel = explode("-",$d_d[d_tel]); $d_d_mob = explode("-",$d_d[d_mob]); $d_d_info = stripslashes($d_d[d_info1]); } else { echo "<script>alert('ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.');location.href = 'deal.php';</script>"; $d_num = ""; } }
?> <script> function submit_chk() { var F = document.F; if(!F.uname.value) { alert('À̸§À» ÀÔ·ÂÇϼ¼¿ä'); F.uname.focus(); return ; } if(!F.tel1.value) { alert('ÀüȹøÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä'); F.tel1.focus(); return ; } if(!F.tel2.value) { alert('ÀüȹøÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä'); F.tel2.focus(); return ; } if(!F.tel3.value) { alert('ÀüȹøÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä'); F.tel3.focus(); return ; } if(!F.pass.value) { alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä'); F.pass.focus(); return ; } if( F.encodeNum.value == "" ){ alert("º¸¾ÈÄÚµå 5ÀÚ¸®¸¦ ÀÔ·ÂÇϼ¼¿ä"); F.encodeNum.focus(); return ; } if(confirm('µô·¯ Á¤º¸¸¦ ÀúÀåÇϽðڽÀ´Ï±î?')) { F.submit(); } } function reseller_view(T) { if(document.all('reseller').style.display=="none") { document.all('reseller').style.display = ""; document.all('reseller2').style.display = ""; T.value='´Ý ±â'; } else { document.all('reseller').style.display = "none"; document.all('reseller2').style.display = "none"; T.value='Ãß Ãµ ÇÏ ±â'; } }
function DownloadAnne(){ //µô·¯½ÂÀÎüũ ÈÄ ¾È³»¹® ´Ù¿î¹Þ±â ifrm.location.replace('dealdownload.php'); } </script>
<table style="margin:0 auto;width:942px;"> <tr> <td style="height:30px;" colspan="3"></td> </tr> <tr> <td width="212" valign="top"> <table> <caption class="sound_only">ÁÂÃø¸Þ´º</caption> <tr> <td> <? include("./include/aside_deal.html"); ?> </td> </tr> <tr> <td height="25"> </td> </tr> </table> </td> <td width="12"><span class="sound_only">¸Þ´º¿©¹é</span></td> <td valign="top"> <table> <caption class="sound_only">³»¿ë¿µ¿ª</caption> <tr> <td> <table background="./img/titlebar/dealjoin.gif" width="718" height="44"> <tr> <td class="txt04" style="text-align:right">HOME > <font color="000000"><b>µô·¯ °¡ÀÔ½Åû</b></td> </tr> <tr> <td colspan="2" height="12"></td> </tr> </table> </td> </tr> <tr> <td> <!-- Á¦Ç°¼Ò°³»ó´Ü --> <div class="dealSection txt04"> <? include("show_top_deal.php"); ?> <p class="dealText first">Ä«¸ÞÀÌÆ® µô·¯°¡ 500¾÷ü¸¦ µ¹ÆÄ ÇÏ¿´½À´Ï´Ù.</p> <p class="dealText">´ç»çÀÇ µô·¯°¡ µÇ½Ã¸é Ưº°ÇÑ ÇýÅÃÀ» µå¸³´Ï´Ù.</p> <p class="dealText">½Å±Ôµô·¯ °¡ÀÔÀ» ȯ¿µÇÕ´Ï´Ù. Áö±Ý µî·Ï ÇØ ÁÖ¼¼¿ä.</p> <p class="dealText">µô·¯ºÐµé°ú ÇÔ²² ¼ºÀåÇÏ´Â Ä«¸ÞÀÌÆ® µÉ°ÍÀ» ¾à¼ÓÇÕ´Ï´Ù.</p> <p class="dealText">µô·¯°¡ÀÔ/Ãë±ÞÁ¡¹®ÀÇ : (02)401-5121 ¿À»ó¸ñ ÆÀÀå <a Onclick="javascript:DownloadAnne();" style="cursor:pointer;">[µô·¯¾È³»¹® ´Ù¿î·Îµå]</a></p> <p class="dotLine"></p> <table class="boardTable txt04"> <caption><img src="./img/titlebar/deal2sub1.gif" alt="µô·¯°¡ÀÔ"></caption> <colgroup> <col style="width:120px;" /><col style="width:230px;" /> <col style="width:120px;" /><col style="width:230px;" /> </colgroup> <tr> <th>Áö¿ª</th> <td> <select name='area'> <?
$qry = " select area_name from area_code order by area_name "; $result = mysql_query($qry);
while($data=mysql_fetch_array($result ) ){ ?> <option value="<?=$data[0];?>" <? if( $data[0] == $d_d[d_area]){ echo "selected"; }?>><?=$data[0];?></option> <? } ?> </select> </td> <th>»ç¾÷ÀÚ¹øÈ£</th> <td><input name="code1" type="text" class="log" size="3" maxlength="3" value='<?=$d_d_code[0]?>'> - <input name="code2" type="text" class="log" size="2" maxlength="2" value='<?=$d_d_code[1]?>'> - <input name="code3" type="text" class="log" size="6" maxlength="6" value='<?=$d_d_code[2]?>'></td> </tr> <tr> <th>»óÈ£</th> <td><input name="cname" type="text" class="log" size="25" maxlength="30" value='<?=$d_d[d_cname]?>'></td> <th>¼º¸í</th> <td><input name="uname" type="text" class="log" size="25" maxlength="30" value='<?=$d_d[d_name]?>'></td> </tr> <tr> <th>¾÷ÅÂ</th> <td><input name="type" type="text" class="log" size="25" maxlength="30" value='<?=$d_d[d_type]?>'></td> <th>¾÷Á¾</th> <td><input name="kind" type="text" class="log" size="25" maxlength="30" value='<?=$d_d[d_kind]?>'></td> </tr> <tr> <th>ÀüÈ</th> <td><input name="tel1" type="text" class="log" size="4" maxlength="4" value='<?=$d_d_tel[0]?>'> - <input name="tel2" type="text" class="log" size="4" maxlength="4" value='<?=$d_d_tel[1]?>'> - <input name="tel3" type="text" class="log" size="4" maxlength="4" value='<?=$d_d_tel[2]?>'></td> <th>ÇÚµåÆù</th> <td><input name="mob1" type="text" class="log" size="4" maxlength="4" value='<?=$d_d_mob[0]?>'> - <input name="mob2" type="text" class="log" size="4" maxlength="4" value='<?=$d_d_mob[1]?>'> - <input name="mob3" type="text" class="log" size="4" maxlength="4" value='<?=$d_d_mob[2]?>'> </td> </tr> <tr> <th>À̸ÞÀÏ</th> <td><input name="email" type="text" class="log" size="25" maxlength="30" value='<?=$d_d[d_email]?>'></td> <th>ºñ¹Ð¹øÈ£</th> <td><input name="pass" type='password' class="log" size="25" maxlength="30" value='<?=$d_d[d_pass]?>'></td> </tr> <tr> <th>Ãë±Þ¾÷¹«</th> <td colspan="3"><textarea name="info1" cols="80" rows="10" class="log"><?=$d_d_info?></textarea></td> </tr> <tr> <th>º¸¾ÈÄÚµå</th> <td colspan="3"><iframe src="code_ifr.php" style="float:left;width:100px;height:30px;" frameborder='0' scroll='no'></iframe><input type='text' name='encodeNum' size="11" maxlength="5" style="height:30px;border:1px solid #CFCFCF;"> <span>º¸¾È¹øÈ£ 5ÀÚ¸®¸¦ ÀÔ·ÂÇϼ¼¿ä.</span></td> </tr> </table>
<div class="btnArea"> <a href="javascript:submit_chk();"><img src="./img/mypage/join_bt.gif" alt="µô·¯°¡ÀÔ"></a> </div> </div><!--//dealSection-->
<!-- ³»¿ë --------------- ³¡ -----> </td> </tr> </table> <!-- Áß°£ -------------- ³¡ --> </td> </tr>
<? include('./include/footer.php'); ?>
<iframe name="ifrm" width="0" height="0"></iframe> <iframe name='save_iframe' width='0' height='0'></iframe>
|