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
326
|
<? include("./include/header.php");
//*************µô·¯½ÂÀο©ºÎ È®ÀÎ*************** $SelectQry = "select Com_num from member where Mid = '$_COOKIE[USERID]' ";
$sSQL_result = mysql_query($SelectQry);
$row = mysql_fetch_array($sSQL_result); if ($row[Com_num] == 0) {
?>
<script> alert("µô·¯½ÂÀÎ ÈÄ ÁÖ¹® ÇÒ ¼ö ÀÖ½À´Ï´Ù. \n\nµô·¯°¡ÀÔ¹®ÀÇ:02-401-5121 / 011-522-0911"); location.href = "deallist.php"; </script> <? }
$reg_date = date('Y-m-d',Time()); //¹è¼Û¿äûÀÏ ±âº»À¸·Î ¿À´ÃÀ» ³ÖÀ½
$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 F3_submit_chk() { var F = document.F3; if(!F.buyname.value) { alert('½Ç»ç¿ëÀÚ¸íÀ» ÀÔ·ÂÇϼ¼¿ä.'); F.buyname.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.hp1.value) { alert('ÇÚµåÆù¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); F.hp1.focus(); return ; }
if(!F.hp2.value) { alert('ÇÚµåÆù¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); F.hp2.focus(); return ; }
if(!F.hp3.value) { alert('ÇÚµåÆù¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); F.hp3.focus(); return ; } if(!F.add.value) { alert('½Ç»ç¿ëÀÚ ÁÖ¼Ò¸¦ ÀÔ·ÂÇϼ¼¿ä.'); F.add.focus(); return ; } if( F.product.value == "" ){ alert("±¸¸ÅÁ¦Ç°À» Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä."); F.product.focus(); return ; } if(confirm('ÀÛ¼ºÇϽг»¿ëÀ¸·Î ÁÖ¹®ÇϽðڽÀ´Ï±î?')) { F.submit(); } } </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/dealorder.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> <!-- Á¦Ç°¼Ò°³»ó´Ü --> <form name='F3' method='post' target='save_iframe' action='dealOrderProcess.php'> <input type='hidden' name='d_num' value='<?=$d_num?>'> <input type='hidden' name='mode' value='insert'> <div class="dealSection txt04"> <? include("show_top_deal.php"); ?> <p class="dealText first">±¸¸ÅÀÚÀÇ Á¤º¸¸¦ ÀÚ¼¼È÷ Àû¾îÁÖ¼¼¿ä.</p> <p class="dealText">Á¦Ç°´ë±Ý ¼±°áÀç ÈÄ Á¦Ç°ÀÌ ¹è¼ÛµË´Ï´Ù.(¹è¼Û±â°£Àº Åë»ó 1ÀÏÀ̸ç Åùè»ç »çÁ¤¿¡ µû¸¥ º¯µ¿°¡)</p> <p class="dealText">±¸¸ÅÁ¦Ç°Àº ´çÀÏ Åùè·Î ¹ß¼ÛµÇ¸ç(¿ÀÈÄ3½ÃÀÌÀü°áÁ¦) ¹è¼Û»óȲÀº [ÁÖ¹®³»¿ªÈ®ÀÎ]¿¡¼ °¡´ÉÇÕ´Ï´Ù.</p> <p class="dotLine"></p> <? //ÁÖ¹®ÀÚ Á¤º¸ Äõ¸® $sSQL = "SELECT Mcode, Mname, Mcompany, Com_num, Com_name FROM member WHERE Mid = '$_COOKIE[USERID]' " ;
$sSQL_result = mysql_query($sSQL);
$row = mysql_fetch_array($sSQL_result);
?>
<table class="boardTable txt04"> <caption><img src="./img/titlebar/deal3sub1.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><? echo $row[Mcompany]; ?><input type='hidden' name='Ocode' value='<?=$row[Mcode]?>'></td> <th>ÁÖ¹®ÀÚ¸í</td> <td><? echo $row[Mname]; ?></td> </tr> <tr> <th>µô·¯±¸ºÐ</td> <td> <? if ($row[Com_num]==1) { ?> ÀϹݵô·¯ <? } elseif ($row[Com_num]==2) { ?> ÆÇ¸Åµô·¯ <? } elseif ($row[Com_num]==3) { ?> Àü¹®µô·¯ <? }; ?> </td> <th>µô·¯¸¶Áø</td> <td><? echo $row[Com_name]; ?>%</td> </tr> </table> <table class="boardTable txt04"> <caption style="padding:30px 0 0;"><img src="./img/titlebar/deal3sub2.gif" alt="±¸¸ÅÀÚÁ¤º¸"></caption> <colgroup> <col style="width:120px;" /><col style="width:580px;" /> </colgroup> <tr> <th>½Ç»ç¿ëÀÚ»óÈ£</th> <td><input name="buycomp" type="text" class="log" size="25" maxlength="30"></td> </tr> <tr> <th>½Ç»ç¿ëÀÚ¸í</th> <td><input name="buyname" type="text" class="log" size="25" maxlength="20"></td> </tr> <tr> <th>½Ç»ç¿ëÀÚÀüÈ</th> <td> <input name="tel1" type="text" class="log" size="3" maxlength="3"> - <input name="tel2" type="text" class="log" size="4" maxlength="4"> - <input name="tel3" type="text" class="log" size="4" maxlength="4"> </td> </tr> <tr> <th>½Ç»ç¿ëÀÚÇÚµåÆù</th> <td><input name="hp1" type="text" class="log" size="3" maxlength="3"> - <input name="hp2" type="text" class="log" size="4" maxlength="4"> - <input name="hp3" type="text" class="log" size="4" maxlength="4"></td> </tr> <tr> <th>½Ç»ç¿ëÀÚÁÖ¼Ò</th> <td><input name="add" type="text" class="log" size="50" maxlength="50"></td> </tr> <tr> <th>±¸¸ÅÁ¦Ç°</th> <td><textarea name="product" rows="5" cols="75"></textarea></td> </tr> <tr> <th>Ãß°¡¿É¼Ç</th> <td><textarea name="addoption" rows="5" cols="75"></textarea></td> </tr> <tr> <th>Àü´Þ»çÇ×</th> <td><textarea name="bigo" rows="5" cols="75"></textarea></td> </tr> <tr> <th>¹è¼Û¿äûÀÏ</th> <td><input name="senddate" type="text" class="log" value="<?echo($reg_date);?>" size="25" maxlength="30"> <span>(¿¹: 2008-12-31)</span></td> </tr> </table>
<div class="btnArea"> <a href="javascript:F3_submit_chk();"><img src="../millennium/img/buy/paperorder_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>
|