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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
|
<? $dir = "."; include_once($dir."/_common.php"); ?> <? include("./include/header.php"); ?>
<? //*************µô·¯½ÂÀο©ºÎ È®ÀÎ*************** $SelectQry = "select Com_num from member where Mid = '{$_SESSION['USERID']}' "; $sSQL_result = mysql_query($SelectQry,$connect_web); $row = mysql_fetch_array($sSQL_result); if ($row['Com_num'] == 0) {
?>
<script> alert("Çù·ÂÁ¡ ½ÂÀÎ ÈÄ ÁÖ¹® ÇÒ ¼ö ÀÖ½À´Ï´Ù. \n\nÇù·ÂÁ¡ °¡ÀÔ¹®ÀÇ:02-401-5121"); 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($_SESSION["gd-image"]) && $_SESSION["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,$connect_web) 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,$connect_web) 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,$connect_web);
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 clear_text(){ if(document.getElementById("clicktime").value == "0"){ //Ŭ¸¯½Ã ±ÛÀÚ»èÁ¦
var str=""; var bb=document.getElementById("content"); bb.innerHTML= str; document.getElementById("clicktime").value = "1"; } }
function F3_submit_chk() { //ÁÖ¹®Çϱ⠹öưÀ» ´©¸£¸é ³»¿ëüũ var F = document.F3;
if(!($("#formText1").is(":checked"))){ alert('°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§¿¡ µ¿ÀÇ ÇϽñ⠹ٶø´Ï´Ù.'); return; } 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>
<div class="wrap">
<div class="contents"> <div class="asideMenu"> <? include("./include/leftNavi_customer.html"); ?> </div><!-- //leftNavi -->
<div class="subContents"> <h1> <img src="./img/titlebar/dealorder.jpg" alt="Çù·ÂÁ¡»óǰÁÖ¹®"> <p> <span class="home"><a href="intro.php">Home</a></span> <span class="depth">></span> <span class="depth1">°í°´¼¾ÅÍ</span> <span class="depth">></span> <span class="depth2">Çù·ÂÁ¡»óǰÁÖ¹®</span> </p> </h1>
<div class="section"> <h2><a href="dealdownload.php" target="_blank"><img src="./img/customer/deal_top.jpg" border="0"></a></h2>
<div class="dealMenu"> <h3><img src="./img/customer/dealmenu_title.jpg" alt="Çù·ÂÁ¡¸Þ´º"></h3> <div><? include("show_top_deal.php"); ?></div> <p class="text">¿¥Á¦À̼ÒÇÁÆ®´Â Çù·ÂÁ¡°ú ÇÔ²² ³ª³¯ÀÌ ¼ºÀåÇϰí ÀÖ½À´Ï´Ù.</p> <div class="info"> <p>- ½Ç±¸¸ÅÀÚÀÇ Á¤º¸¸¦ ÀÚ¼¼È÷ Àû¾îÁÖ¼¼¿ä.<font color="#ff7400"><b>(Çù·ÂÁ¡ ÁÖ¼Ò·Î ¹è¼Û¿äû½Ã Çù·ÂÁ¡ÀÇ ÁÖ¼Ò¸¦ ÀûÀ¸¼¼¿ä)</b></font></p> <p>- Á¦Ç°´ë±Ý <font color="#ff7400"><b>¼±°áÀç ÈÄ Á¦Ç°ÀÌ ¹è¼Û</b></font>µË´Ï´Ù.(Åë»ó ´çÀÏ ¹è¼ÛÀÌ¸ç »çÁ¤¿¡ µû¸¥ º¯µ¿°¡´É)</p> <p>- ¹è¼Û»óȲÀº <font color="#ff7400"><b>[ÁÖ¹®³»¿ªÈ®ÀÎ]</b></font>¿¡¼ °¡´ÉÇÕ´Ï´Ù.(PM3½Ã ÀÌÈÄ °áÀç½Ã ´ÙÀ½³¯ ¹è¼Û)</p> </div> </div><!-- dealList -->
<form name='F3' method='post' target='save_iframe' action='<?php if($MJSOFT_SSL_USE=='Y'){?>https://<?php echo $_SERVER['SERVER_NAME'];?>/<?php echo $millennium_dir;?>/dealOrderProcess.php<?php } else {?>dealOrderProcess.php<?php }?>'> <input type='hidden' name='d_num' value='<?=$d_num?>'> <input type='hidden' name='mode' value='insert'> <!-- ÁÖ¹®ÀÚÁ¤º¸ --> <table class="dealTable"> <caption><img src="./img/customer/deal_order_info.jpg" alt="ÁÖ¹®ÀÚÁ¤º¸"></caption>
<? //ÁÖ¹®ÀÚ Á¤º¸ Äõ¸® $sSQL = "SELECT Mcode, Mname, Mcompany, Com_num, Com_name FROM member WHERE Mid = '{$_SESSION['USERID']}' " ; $sSQL_result = mysql_query($sSQL,$connect_web); $row = mysql_fetch_array($sSQL_result); ?>
<tr> <th width="135">ÁÖ¹®ÀÚ»óÈ£</th> <td width="220"> <? echo $row['Mcompany']; ?> <input type='hidden' name='Ocode' value='<?=$row['Mcode']?>'> </td> <th width="135">ÁÖ¹®ÀÚ¸í</td> <td width="220"> <? echo $row['Mname']; ?> </td> </tr> <tr> <th>Çù·ÂÁ¡ ±¸ºÐ</th> <td> <? if ($row['Com_num']==1) { ?> ÀϹÝÇù·ÂÁ¡ <? } elseif ($row['Com_num']==2) { ?> ÆÇ¸ÅÇù·ÂÁ¡ <? } elseif ($row['Com_num']==3) { ?> Àü¹®Çù·ÂÁ¡ <? }; ?> </td> <th>Çù·ÂÁ¡¸¶Áø</th> <td> <? echo $row['Com_name']; ?>% </td> </tr> </table><!-- dealTable -->
<div class="tieupAgree"> <h2>°³ÀÎÁ¤º¸ ¼öÁý ¹× À̿뵿ÀÇ <span class="privacy_link">(ÀÚ¼¼ÇÑ ³»¿ëÀº '°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§'À» Âü°íÇØÁÖ¼¼¿ä.)</span></h2> <? include("./privacy_text.html"); ?> <p> <input type="radio" id="formText1" name="formText" value="1"><label for="formText1">µ¿ÀÇÇÔ</label> <input type="radio" id="formText2" name="formText" value="2" checked><label for="formText2">µ¿ÀǾÈÇÔ</label> </p> </div> <!-- ±¸¸ÅÀÚ ÀԷ¶õ --> <table class="tieupTable"> <caption><span><span class="red">* </span>´Â Çʼö Ç׸ñÀÔ´Ï´Ù.</span></caption> <tr> <th width="150" class="top_bd">½Ç»ç¿ëÀÚ»óÈ£</th> <td width="560" class="top_bd"><input name="buycomp" type="text" size="25" maxlength="30"></td> </tr> <tr> <th><span class="red">*</span>½Ç»ç¿ëÀÚ¸í</th> <td><input name="buyname" type="text" size="25" maxlength="20"></td> </tr> <tr> <th><span class="red">*</span>½Ç»ç¿ëÀÚÀüÈ</th> <td> <input name="tel1" type="text" size="3" maxlength="3"> - <input name="tel2" type="text" size="4" maxlength="4"> - <input name="tel3" type="text" size="4" maxlength="4"> </td> </tr> <tr> <th><span class="red">*</span>½Ç»ç¿ëÀÚÇÚµåÆù</th> <td> <input name="hp1" type="text" size="3" maxlength="3"> - <input name="hp2" type="text" size="4" maxlength="4"> - <input name="hp3" type="text" size="4" maxlength="4"> </td> </tr> <tr> <th><span class="red">*</span>½Ç»ç¿ëÀÚÁÖ¼Ò</th> <td><input name="add" type="text" size="50" maxlength="50"></td> </tr>
<tr> <th>Åùè¹ÞÀ»ÁÖ¼Ò</th> <td><!--input type="hidden" name="clicktime" id="clicktime" value="0"--> <textarea name="add2" onclick="clear_text()" id="content" rows="4" cols="78"> »óÈ£(À̸§) : ¿¬¶ôó : ÁÖ¼Ò : </textarea> <p>(°ø¶õÀÏ °æ¿ì ½Ç»ç¿ëÀÚ ÁÖ¼Ò·Î ¹ß¼ÛµË´Ï´Ù.)</p></td> </tr>
<tr> <th><span class="red">*</span>±¸¸ÅÁ¦Ç°</th> <td><textarea name="product" rows="4" cols="78"></textarea></td> </tr> <tr> <th>Ãß°¡¿É¼Ç</th> <td><textarea name="addoption" rows="4" cols="78"></textarea></td> </tr> <tr> <th>Àü´Þ»çÇ×</th> <td><textarea name="bigo" rows="4" cols="78"></textarea></td> </tr> <tr> <th>¹è¼Û¿äûÀÏ</th> <td><input name="senddate" type="text" value="<?echo($reg_date);?>" size="25" maxlength="30"> ÀԷ¿¹) 2008-12-31</td> </tr> </table><!-- dealTable --> <div><a href="javascript:F3_submit_chk();"><img src="./img/buy/paperorder_bt.jpg" alt="ÁÖ¹®Çϱâ" class="listBtn"></a></div> </form>
</div><!-- //section -->
</div><!-- //subContents --> </div><!-- //contents --> </div><!-- //wrap -->
<iframe name='save_iframe' width='0' height='0'></iframe> <iframe name='save_iframe' width='0' height='0'></iframe>
<? include("./include/footer.php"); ?>
|