/home/mjc1/public_html/html/Order_02_demo.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
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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
<?
  
include("../manage/category/common.php");
  
  
$tempTime   =  Time();
  
//ȸ¿øÀÏ °æ¿ì
 
if( isset($_COOKIE[USERID]) && $_COOKIE[USERID] !== ""){ 
  
$memberQry       =  " select * from member WHERE Mid = '$_COOKIE[USERID]' ";
  
$memberResult    =    mysql_query($memberQry);
  
$memberRow       =    mysql_fetch_array($memberResult);
  
  
$postArr         =    explode("-",$memberRow[Maddnum]);
  
$telArr          =    explode("-",$memberRow[Mtel1]);
  
$hpArr          =    explode("-",$memberRow[Mhp]);
  }
  
  if(
$ProductCode !==""){
    
   
$startQry     =   "select * from Product WHERE ProductCode = '$ProductCode' ";
   
$startResult  =    mysql_query($startQry);
   
$startRow     =    mysql_fetch_array($startResult); 
    
    }
?>    
<html>
<head>
<title>¾÷¹«¿ë ¼ÒÇÁÆ®¿þ¾î Àü¹®°³¹ß¾÷ü::::¹ÌÁø¼ÒÇÁÆ®::::</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="../css/style.css" rel="stylesheet" type="text/css">
<script language='javascript' src='../js/left_menu.js'></script>
<script language='javascript' src='../js/img.js'></script>
</head>
<script>
  
  function Settle(c){
    
   if( frmAGS_pay.Mname.value == ""){
     alert("À̸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
     frmAGS_pay.Mname.focus();
     return ;
     }
  if( frmAGS_pay.Madd.value == ""){
     alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
     frmAGS_pay.Madd.focus();
     return ;
     }   
  if( frmAGS_pay.tel1.value == "" || frmAGS_pay.tel2.value == "" || frmAGS_pay.tel3.value == ""){
     alert("¿¬¶ô󸦠ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
     frmAGS_pay.tel1.focus();
     return;
     }
 
  if( frmAGS_pay.Amt.value  == "0" || frmAGS_pay.Amt.value  == "Call"  ||  frmAGS_pay.Amt.value  == "ÇÒÀÎÀû¿ë" ){
     alert("À§ ÇÁ·Î±×·¥ÀÇ ±¸¸Å¿¡ ´ëÇÑ ¹®ÀǴ 1566-8680 À¸·Î ÇϽñ⠹ٶø´Ï´Ù");
     return;
    }
    
  if(frmAGS_pay.bank.value  == ""){
     alert("ÀÔ±ÝÀºÇàÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä");
     frmAGS_pay.bank.focus();
     return;   
    }        
<?
   
if( isset($_COOKIE[USERID]) && $_COOKIE[USERID] !== "") {  $idCode  =  $_COOKIE[USERID]; }
   else                                                    {  
$idCode  =  "GUEST";}

?>    
  frmAGS_pay.OrdNo.value       =   "PAPER-<?=$idCode;?>-"+frmAGS_pay.ProductCode.value +"-<?=$tempTime;?>";  
  frmAGS_pay.UserId.value      =    "<?=$idCode;?>";
  frmAGS_pay.OrdNm.value       =   frmAGS_pay.Mname.value;  
  frmAGS_pay.OrdPhone.value    =   frmAGS_pay.tel1.value+"-"+frmAGS_pay.tel2.value+"-"+frmAGS_pay.tel3.value;
  frmAGS_pay.UserEmail.value   =   frmAGS_pay.Memail.value;
  frmAGS_pay.RcpNm.value       =   frmAGS_pay.Mname.value;
  frmAGS_pay.RcpPhone.value    =   frmAGS_pay.tel1.value+"-"+frmAGS_pay.tel2.value+"-"+frmAGS_pay.tel3.value;
  frmAGS_pay.DlvAddr.value     =   frmAGS_pay.Madd.value;
  frmAGS_pay.DlvPost.value     =   frmAGS_pay.post1.value+"-"+frmAGS_pay.post2.value;

  if(confirm("                         À§ ³»¿ëÀ¸·Î ÁÖ¹®À» ÇϽðڽÀ´Ï±î? \n \n ¿Â¶óÀΠÀԱݽàÀÔ·ÂÇϽŠÀ̸§°ú ¿¹±ÝÁÖ°¡ ´Ù¸¥ °æ¿ì¿¡´Â 1566-8680 À¸·Î È®ÀÎÀüÈ­ ÁֽʽÿÀ.")){

         frmAGS_pay.submit();    
     
     }
 }
 
   function postSearch(){
   
   window.open("postSearch.php","","width=450,height=300,scrollbars=yes");
   
   }
   
  function commaSplit(srcNumber) {        
    var txtNumber = '' + srcNumber;
    //¿©±â¼­ ºÎÅÍ 3ÀÚ¸®¸¶´Ù ÄÞ¸¶¸¦ Âï¾î ÁØ´Ù.
    var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
    var arrNumber = txtNumber.split('.');
    arrNumber[0] += '.';
    do {
        arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
    } while (rxSplit.test(arrNumber[0]));

           if (arrNumber.length > 1) {
           return arrNumber.join('');
           }else {
          
           return arrNumber[0].split('.')[0];
           }
}

 function priceChk(divNum,ProductCode){
   
   var FrmName2   =    eval( "document.frmAGS_pay.rProdNm" +divNum );
   
   var  s_index   =    FrmName2.selectedIndex;
   var  val       =    FrmName2.options[s_index].value;
   var  val2      =    eval("document.frmAGS_pay.r_" + val ) ;
   var  price     =     val2.value;
                   
   var FrmName3   =  eval("document.frmAGS_pay.Pcnt"+divNum  ) ;
   var  s_index3  =    FrmName3.selectedIndex;
   var  cnt       =    FrmName3.options[s_index3].value;
   
   //À̹ÌÁö
   var pimg       =  eval("document.frmAGS_pay.img_" + val ) ;
   var Large_img  =  pimg.value;
   
   Div_img           =  eval("view"+divNum);
   Div_img.innerHTML =  "<img src='btn_view.gif' border=0 style='cursor:hand'; onClick=showPicture('"+Large_img +"')>";
   
  ////////////////  
   var par_val2   = eval( price ); 
   var par_val3   = eval( cnt );
   var  r_price   = par_val2  * par_val3;
   
  frmAGS_pay.Amt.value   =  r_price;
   var input_price    =    eval( "document.frmAGS_pay.paper_price" +divNum );
  input_price.value   =  r_price;
 
  var t   = commaSplit(r_price);
  
  dis_totalPrice.innerHTML =  "<b>°áÁ¦±Ý¾×: &nbsp;&nbsp;" + t + "</b> ¿ø&nbsp;&nbsp;&nbsp;" ;
  
   PriceText =  eval("PriceText"+divNum);
   PriceText.innerHTML =  "<b>" + t + "</b> ¿ø" ;
    
  }
   
  function PcntCh(divNum,num){
      
   var FrmName2   =    eval( "document.frmAGS_pay.rProdNm" +divNum );
   
   var  s_index   =    FrmName2.selectedIndex;
   var  val       =    FrmName2.options[s_index].value;
   var  val2      =    eval("document.frmAGS_pay.r_" + val ) ;
   var  price     =     val2.value;
                   
   var par_val2   = eval( price ); 
   var par_val3   = eval( num );
   var  r_price   = par_val2  * par_val3;
  

 var input_price    =    eval( "document.frmAGS_pay.paper_price" +divNum );
 input_price.value  =  r_price;
 
  //Àüü±Ý¾×±¸Çϱâ
  if(document.frmAGS_pay.paper_price1.value !== "") {  var paper_price1 = eval(document.frmAGS_pay.paper_price1.value);} else{var paper_price1 = 0}
  if(document.frmAGS_pay.paper_price2.value !== "") {  var paper_price2 = eval(document.frmAGS_pay.paper_price2.value);} else{var paper_price2  =0}
  if(document.frmAGS_pay.paper_price3.value !== "") {  var paper_price3 = eval(document.frmAGS_pay.paper_price3.value);} else{var paper_price3  =0}
  if(document.frmAGS_pay.paper_price4.value !== "") {  var paper_price4 = eval(document.frmAGS_pay.paper_price4.value);} else{var paper_price4  =0}
 
  var inputtotal  = paper_price1 + paper_price2 + paper_price3 + paper_price4;
  var total      = commaSplit(inputtotal);
    
  dis_totalPrice.innerHTML = "°áÁ¦±Ý¾×: &nbsp;&nbsp;<b>" + total + "</b> ¿ø&nbsp;&nbsp;&nbsp;" ;

 
     
  frmAGS_pay.Amt.value   =  inputtotal;
  
  var t   = commaSplit(r_price);
  
   PriceText =  eval("PriceText"+divNum);
   PriceText.innerHTML =  "<b>" + t + "</b> ¿ø" ;
    
    } 
 
  function rProdNmCh(divNum,ProductCode){
    
    if(ProductCode == ""){
     // alert("ÁÖ¹®ÇϽǠ»óǰÀ» ¼±ÅÃÇϼ¼¿ä");
      
  var FrmName2   =    eval( "document.frmAGS_pay.rProdNm" +divNum );
      
   PriceText =  eval("PriceText"+divNum);
   PriceText.innerHTML =  "" ;
   
  var input_price       =    eval( "document.frmAGS_pay.paper_price" +divNum );
  
   a =  eval(frmAGS_pay.Amt.value );
   b =  eval(input_price.value);
  frmAGS_pay.Amt.value       =  a - b ;

  input_price.value      =  "";
  
    var total      = commaSplit(eval(frmAGS_pay.Amt.value ));
    
   dis_totalPrice.innerHTML = "°áÁ¦±Ý¾×: &nbsp;&nbsp;<b>" + total + "</b> ¿ø&nbsp;&nbsp;&nbsp;" ;
   FrmName2.focus();  
      return;
    }
   else{   

   var  val2      =    eval("document.frmAGS_pay.r_" + ProductCode ) ;
   var  price     =     val2.value;
                   
   var FrmName3   =  eval("document.frmAGS_pay.Pcnt"+divNum  ) ;
   var  s_index3  =    FrmName3.selectedIndex;
   var  cnt       =    FrmName3.options[s_index3].value;
    
   var par_val2   = eval( price ); 
   var par_val3   = eval( cnt );
   var  r_price   = par_val2  * par_val3;
   
 
    //À̹ÌÁö
   var pimg       =  eval("document.frmAGS_pay.img_" + ProductCode ) ;
   var Large_img  =  pimg.value;
   
   Div_img           =  eval("view"+divNum);
   Div_img.innerHTML =  "<img src='btn_view.gif' border=0 style='cursor:hand'; onClick=showPicture('"+Large_img +"')>";
   
  ////////////////  
 
   var input_price       =    eval( "document.frmAGS_pay.paper_price" +divNum );
  input_price.value      =  r_price;
 
  //Àüü±Ý¾×±¸Çϱâ
  if(document.frmAGS_pay.paper_price1.value !== "") {  var paper_price1 = eval(document.frmAGS_pay.paper_price1.value);} else{var paper_price1 = 0}
  if(document.frmAGS_pay.paper_price2.value !== "") {  var paper_price2 = eval(document.frmAGS_pay.paper_price2.value);} else{var paper_price2  =0}
  if(document.frmAGS_pay.paper_price3.value !== "") {  var paper_price3 = eval(document.frmAGS_pay.paper_price3.value);} else{var paper_price3  =0}
  if(document.frmAGS_pay.paper_price4.value !== "") {  var paper_price4 = eval(document.frmAGS_pay.paper_price4.value);} else{var paper_price4  =0}
 
  var inputtotal  = paper_price1 + paper_price2 + paper_price3 + paper_price4;
  var total       = commaSplit(inputtotal);
    
  dis_totalPrice.innerHTML = "°áÁ¦±Ý¾×: &nbsp;&nbsp;<b>" + total + "</b> ¿ø&nbsp;&nbsp;&nbsp;" ;
 
  frmAGS_pay.Amt.value   =  inputtotal;
  var t   = commaSplit(r_price);
  
   PriceText =  eval("PriceText"+divNum);
   PriceText.innerHTML =  "<b>" + t + "</b> ¿ø" ;
   }
 }
       
</script>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" style="background: url(../img/common/bg_community_top.jpg) #ffffff repeat-x" onLoad='priceChk(1,1);'>
<? include("top_com.php"); ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="frmAGS_pay" method=post action="Order_02_Process.php">
  <tr> 
    <td width="220" height="100%" valign="top"><table width="220" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="25" height="100%" valign="top"><table width="25" height="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="5"></td>
              </tr>
              <tr>
                <td background="../img/common/bg_bar.gif"></td>
              </tr>
            </table></td>
          <td width="195" align="right" valign="top"><table width="190" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td colspan="3"><img src="../img/community/tit.gif" width="190" height="110"></td>
              </tr>
              <tr> 
                <td width="10" valign="top"><img src="../img/common/left_tit_bg.gif" width="10" height="189"></td>
                <td width="170" valign="top"><? include("left_com.php"); ?>
                  <br>
                  <? include("banner.php"); ?>
                  <br>
                </td>
                <td width="10" valign="top"><img src="../img/common/left_tit_bg01.gif" width="10" height="163"></td>
              </tr>
            </table></td>
        </tr>
      </table> </td>
    <td width="755" align="center" valign="top"><table width="755" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td colspan="2"><img src="../img/community/top.jpg" width="755" height="110"></td>
        </tr>
        <tr> 
          <td width="765" align="center" valign="top"><table width="735" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="735" height="30" align="right" class="txt01"><img src="../img/common/history.gif" width="63" height="13" align="absmiddle"> 
                  <img src="../img/common/history_icon.gif" width="4" height="5" hspace="7" align="absmiddle">HOME<img src="../img/common/history_icon.gif" width="4" height="5" hspace="7" align="absmiddle">Ä¿¹Â´ÏƼ<img src="../img/common/history_icon.gif" width="4" height="5" hspace="7" align="absmiddle">°áÁ¦¼­ºñ½º&nbsp;&nbsp;&nbsp;</td>
              </tr>
            </table>
            <table width="725" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="../img/community/tit_08.gif" width="725" height="35"></td>
              </tr>
            </table>
            <br>
            <table width="680" border="0" cellpadding="15" cellspacing="5" bgcolor="f3f3f3">
              <tr> 
                <td valign="top" bgcolor="#FFFFFF" class="txt03"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="txt03">
                    <tr> 
                      <td height="20"><img src="../img/common/box_orange.gif" width="3" height="3" hspace="10" align="absmiddle">


         ±¸¸Å°ü·Ã ºÒÆí½Å°í(24½Ã°£) : TEL 011-522-0911, ´ã´çÀÚ : ±èÇö½Ä
     

                      </td>
                    </tr>
                    <tr> 
                      <td><img src="../img/common/box_orange.gif" width="3" height="3" hspace="10" align="absmiddle"> 
                      ÁÖ¹®ÇϽŠ¿ëÁö´Â ÀÔ±ÝÈ®ÀΠÈÄ Áï½Ã ¹è¼ÛµÇ¸ç µµÂø½Ã±îÁö 1~2 ÀÏ ¼Ò¿äµË´Ï´Ù.(Åë»ó 1ÀÏ ¼Ò¿ä)</td>
                    </tr>
                  </table>
                  <br>
   <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="EAEAEA" >
             <tr bgcolor="f6f6f6"> 
                      <td class="txt04" width=100>°áÁ¦»óǰ ¨ç</td>
                      <td class="txt04" >
       <select name='rProdNm1' onChange="rProdNmCh('1',this.value);"> 
<?
   $productQry     
=   "select * from Product WHERE substring( ProductCode ,1,2) = '02' order by idx ";
   
$productResult  =    mysql_query($productQry);
  
   while ( 
$productRow mysql_fetch_array($productResult) ){
?>                     
   <option  <? if($productRow[ProductCode] == $ProductCode){ echo "selected"; }?> value='<?=$productRow[ProductCode];?>' ><?=$productRow[ProductName];?></option>                
               
<?
    
}
?>               
  </select>                   
                      </td><td bgcolor=ffffff width=40><div id='view1'><img src="btn_view.gif"  border="0" style=cursor:hand></div></td>
                      <td class="txt04" width=100>
                        
                         ¼ö·®&nbsp;&nbsp;
              <select name="Pcnt1" onChange="PcntCh('1',this.value);">
                       
                       <option value="1">1</option>
                       <option value="2">2</option>
                       <option value="3">3</option>
                       <option value="4">4</option>
                       <option value="5">5</option>
                       <option value="6">6</option>
                       <option value="7">7</option>
                       <option value="8">8</option>
                       <option value="9">9</option>
                       <option value="10">10</option>
                      </select>
                        </td>
                       <td class="txt04" width=50>±Ý¾×</td>
                      <td class="txt04" width=100><div id='PriceText1'></div></td>
                    </tr>
 <!----------  µÎ¹øÂ° »óǰ --------------->
 <tr bgcolor="f6f6f6"> 
                      <td class="txt04" width=100>°áÁ¦»óǰ ¨è</td>
                      <td class="txt04" >
        <select name='rProdNm2' onChange="rProdNmCh('2', this.value);"> 
                     <option value=''>¼±ÅÃ</option>
<?
   $productQry     
=   "select * from Product WHERE substring( ProductCode ,1,2) = '02' order by idx ";
   
$productResult  =    mysql_query($productQry);
  
   while ( 
$productRow mysql_fetch_array($productResult) ){
?>                     
   <option value='<?=$productRow[ProductCode];?>' ><?=$productRow[ProductName];?></option>                
               
<?
    
}
?>               
  </select>
                    
                      </td>
  </td><td bgcolor=ffffff width=40><div id='view2'><img src="btn_view.gif"  border="0" style=cursor:hand></div></td>
                    
                      <td class="txt04">
                        
                         ¼ö·®&nbsp;&nbsp;
          <select name="Pcnt2" onChange="PcntCh('2',this.value);">
                       
                       <option value="1">1</option>
                       <option value="2">2</option>
                       <option value="3">3</option>
                       <option value="4">4</option>
                       <option value="5">5</option>
                       <option value="6">6</option>
                       <option value="7">7</option>
                       <option value="8">8</option>
                       <option value="9">9</option>
                       <option value="10">10</option>
                      </select>
                        </td>
                       <td class="txt04">±Ý¾×</td>
                      <td class="txt04"><div id='PriceText2'></div></td>
                    </tr>
 <!------------µÎ¹øÂ° »óǰ³¡ -------------> 
 
  <!----------  ¼¼¹øÂ° »óǰ --------------->
 <tr bgcolor="f6f6f6"> 
                      <td class="txt04" width=100>°áÁ¦»óǰ ¨é</td>
                      <td class="txt04" >
          <select name='rProdNm3' onChange="rProdNmCh('3', this.value);"> 
                     <option value=''>¼±ÅÃ</option>
<?
   $productQry     
=   "select * from Product WHERE substring( ProductCode ,1,2) = '02' order by idx ";
   
$productResult  =    mysql_query($productQry);
  
   while ( 
$productRow mysql_fetch_array($productResult) ){
?>                     
   <option value='<?=$productRow[ProductCode];?>' ><?=$productRow[ProductName];?></option>                
               
<?
    
}
?>               
  </select>                   
                      </td>
                        </td><td bgcolor=ffffff width=40><div id='view3'><img src="btn_view.gif"  border="0" style=cursor:hand ></div></td>
                    
                      <td class="txt04">
                        
                         ¼ö·®&nbsp;&nbsp;
          <select name="Pcnt3" onChange="PcntCh('3',this.value);">
                      
                       <option value="1">1</option>
                       <option value="2">2</option>
                       <option value="3">3</option>
                       <option value="4">4</option>
                       <option value="5">5</option>
                       <option value="6">6</option>
                       <option value="7">7</option>
                       <option value="8">8</option>
                       <option value="9">9</option>
                       <option value="10">10</option>
                      </select>
                        </td>
                       <td class="txt04">±Ý¾×</td>
                      <td class="txt04"><div id='PriceText3'></div></td>
                    </tr>
 <!------------¼¼¹øÂ° »óǰ³¡ ------------->
 
  <!----------  ³×¹øÂ° »óǰ --------------->
 <tr bgcolor="f6f6f6"> 
                      <td class="txt04" width=100>°áÁ¦»óǰ ¨ê</td>
                      <td class="txt04" >
              <select name='rProdNm4' onChange="rProdNmCh('4', this.value);"> 
                     <option value=''>¼±ÅÃ</option>
<?
   $productQry     
=   "select * from Product WHERE substring( ProductCode ,1,2) = '02' order by idx ";
   
$productResult  =    mysql_query($productQry);
  
   while ( 
$productRow mysql_fetch_array($productResult) ){
?>                     
   <option value='<?=$productRow[ProductCode];?>' ><?=$productRow[ProductName];?></option>                
               
<?
    
}
?>               
  </select>                   
                      </td>
                        </td><td bgcolor=ffffff width=40><div id='view4'><img src="btn_view.gif"  border="0" style=cursor:hand></div></td>
                    
                      <td class="txt04">
                        
                         ¼ö·®&nbsp;&nbsp;
                      <select name="Pcnt4" onChange="PcntCh('4',this.value);">
                       
                       <option value="1">1</option>
                       <option value="2">2</option>
                       <option value="3">3</option>
                       <option value="4">4</option>
                       <option value="5">5</option>
                       <option value="6">6</option>
                       <option value="7">7</option>
                       <option value="8">8</option>
                       <option value="9">9</option>
                       <option value="10">10</option>
                      </select>
                        </td>
                       <td class="txt04">±Ý¾×</td>
                      <td class="txt04"><div id='PriceText4'></div></td>
                    </tr>
 <!------------³×¹øÂ° »óǰ³¡ ------------->    
  <tr bgcolor="f6f6f6"> 
   <td class="txt04" align=right colspan=6><div id='dis_totalPrice'></div></td>
  </tr>                   
                    <tr bgcolor="#FFFFFF"> 
                      <td width="120" class="txt04">ÀÔ±ÝÀÚ¸í</td>
                      <td width="580" class="txt04" colspan=5><input name="Mname" type="text" value='<?=$memberRow[Mname];?>'  class="log" style="height:20px;" size="15" maxlength="20">
                        (¹Ýµå½Ã ÀÔ±ÝÀÚ¸í°ú µ¿ÀÏÇØ¾ß ÇÕ´Ï´Ù) </td>
                    </tr>
                    <tr bgcolor="f6f6f6"> 
                      <td class="txt04">ÁÖ¼Ò</td>
                      <td class="txt04" colspan=5><input name="post1" value='<?=$postArr[0];?>' type="text" class="log" style="height:20px;"  size="3" maxlength="3">
                        - 
                        <input name="post2" type="text" value='<?=$postArr[1];?>' class="log" style="height:20px;"  size="3" maxlength="3"> 
                        <img src="../img/common/btn_address_find.gif" Onclick="postSearch();" style='cursor:hand;' width="88" height="19" vspace="5" align="absmiddle"> 
                        <br> <input name="Madd" type="text" value='<?=$memberRow[Madd];?>' class="log" style="height:20px;"  size="60" maxlength="70"> 
                      </td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td class="txt04">¿¬¶ôó</td>
                      <td class="txt04" colspan=5><input name="tel1" value='<?=$telArr[0];?>' type="text" class="log" style="height:20px;"  size="3" maxlength="3">
                        - 
                        <input name="tel2" type="text" value='<?=$telArr[1];?>' class="log" style="height:20px;"  size="4" maxlength="4">
                        - 
                        <input name="tel3" type="text" value='<?=$telArr[2];?>'  class="log" style="height:20px;"  size="4" maxlength="4">
                        (ÀϹÝÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä)</td>
                    </tr>
                     <tr bgcolor="#FFFFFF"> 
                      <td class="txt04">¿¬¶ôó</td>
                      <td class="txt04" colspan=5><input name="hp1" value='<?=$hpArr[0];?>' type="text" class="log" style="height:20px;"  size="3" maxlength="3">
                        - 
                        <input name="hp2" type="text" value='<?=$hpArr[1];?>' class="log" style="height:20px;"  size="4" maxlength="4">
                        - 
                        <input name="hp3" type="text" value='<?=$hpArr[2];?>'  class="log" style="height:20px;"  size="4" maxlength="4">
                        (ÈÞ´ëÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä)</td>
                    </tr>
                    <tr bgcolor="f6f6f6"> 
                      <td class="txt04">ÀüÀÚ¿ìÆí</td>
                      <td class="txt04" colspan=5><input name="Memail" type="text" value='<?=$memberRow[Memail];?>' class="log" style="height:20px;"  size="60" maxlength="70"></td>
                    </tr>
                     <tr bgcolor="#FFFFFF"> 
                      <td class="txt04">ÀÔ±ÝÀºÇà¸í</td>
                      <td class="txt04" colspan=5>
                      <select name="bank">
                       <option value="">¼±ÅÃ</option>
                       <option value="1">±¹¹ÎÀºÇà 818102-01-020855</option>
                       <option value="2">³óÇù 717-12-054922</option>
                      </select>
                        </td>
                         <tr bgcolor="#FFFFFF"> 
                      <td class="txt04">¿¹±ÝÁÖ</td>
                      <td class="txt04" colspan=5>ÀÌÀºÈñ</td>
                    </tr>
                    </tr>
                    <tr align="center" bgcolor="#FFFFFF"> 
                      <td colspan="6"><img src="../manage/btn_nobook.gif" onClick="Settle('noBook');" style="cursor:hand;"  width="96" height="24" hspace="10" vspace="10"></td>
                    </tr>
                  </table> </td>
              </tr>
            </table>
            <br>
          </td>
          <td valign="top"><img src="../img/common/right_tit_bg.gif" width="10" height="153"></td>
<?
   $productQry     
=   "select * from Product WHERE substring( ProductCode ,1,2) = '02' order by idx ";
   
$productResult  =    mysql_query($productQry);
  
   while ( 
$productRow mysql_fetch_array($productResult) ){
      
$LargeImage      =  "../manage/LargeImage/".$productRow[LargeImage];
?>                     
   <INPUT TYPE="hidden" NAME="r_<?=$productRow[ProductCode];?>" value="<?=$productRow[PriceOpt1];?>">  
   <INPUT TYPE="hidden" NAME="img_<?=$productRow[ProductCode];?>" value="<?=$LargeImage;?>">              
<?
  
    
}
?>  
<INPUT TYPE="hidden" NAME="paper_price1" >
<INPUT TYPE="hidden" NAME="paper_price2" >
<INPUT TYPE="hidden" NAME="paper_price3" >
<INPUT TYPE="hidden" NAME="paper_price4" >
       
<INPUT TYPE="hidden" NAME="AuthTy" value="noBook">
<INPUT TYPE="hidden" NAME="OrdNo"> <!-- ÁÖ¹® ¹øÈ£ -->
<INPUT TYPE="hidden" NAME="ProdNm" value='<?=$productRow[ProductName];?>'> <!-- »óǰ¸í -->
<INPUT TYPE="hidden" NAME="Amt"> <!-- ÁÖ¹® ±Ý¾× -->
<INPUT TYPE="hidden" NAME="PriceOpt1" value="<?=$startRow[PriceOpt1];?>">
<INPUT TYPE="hidden" NAME="UserId"> <!-- È¸¿ø ¾ÆÀ̵ð -->
<INPUT TYPE="hidden" NAME="OrdNm"> <!-- ÁÖ¹®ÀÚ¸í -->
<INPUT TYPE="hidden" NAME="OrdPhone"> <!-- ÁÖ¹®ÀÚÀüÈ­¹øÈ£ -->
<INPUT TYPE="hidden" NAME="UserEmail"> <!-- ÁÖ¹®ÀÚÀ̸ÞÀÏ -->
<INPUT TYPE="hidden" NAME="RcpNm"> <!-- ¼ö½ÅÀÚ¸í -->
<INPUT TYPE="hidden" NAME="RcpPhone"> <!-- ¼ö½ÅÀÚ ÀüÈ­¹øÈ£ -->
<INPUT TYPE="hidden" NAME="DlvAddr"> <!-- ¼ö½ÅÀÚÁÖ¼Ò -->
<INPUT TYPE="hidden" NAME="DlvPost"> <!-- ¿ìÆí¹øÈ£ -->
<input type=hidden name='ProductCode' value='<?=$ProductCode;?>'>

  
  </form>        
        </tr>
      </table> </td>
    <td valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="100"></td>
        </tr>
        <tr>
          <td background="../img/common/bg_bar.gif">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
<? include("foot.php"); ?>
</body>
</html>