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
|
<?php include_once("./_common2.php"); ?> <? include($_SERVER["DOCUMENT_ROOT"]."/lib/common2.lib.php");
if( !isset($_COOKIE[USERID]) && $_COOKIE[USERID] == "" ){ ?> <script> location.href = "intro.php"; </script>
<? }
include("../../manage/category/common.php");
if( $mode == "insert" ){
$sql = "select count(*) as cnt from member where Mcode = '$Ocode' "; $res = mysql_query($sql); $info = mysql_fetch_array($res); if($info['cnt']=='0'){ echo "<script>alert('ȸ¿øÀÌ À߸øµÇ¾ú½À´Ï´Ù.');window.history.go(-1);</script>"; exit; }
$reg_date = date('Y-m-d (H:i)',Time()); //ÁÖ¹®ÀÏÀÚ $btellephone = $tel1."-".$tel2."-".$tel3; //ÀüȹøÈ£ ÇÕÄ¡±â $bhendphone = $hp1."-".$hp2."-".$hp3; //ÇÚµåÆù¹øÈ£ ÇÕÄ¡±â
$insertQry = "INSERT INTO dealerorder (odate, ocode, bname, bcomp, btell, bhp, badd, badd2, bproduct, boption, bigo, sdate, bmoney, bsend, bdate, bnum, bdeliver, endgubun) VALUES ('$reg_date' , $Ocode , '$buyname' , '$buycomp' , '$btellephone' , '$bhendphone' , '$add' , '$add2' , '$product' , '$addoption' , '$bigo' , '$senddate' , 0 , 0 , '' , '' , '' , 0 )";
MYSQL_QUERY($insertQry); order_log("dealerorder", $insertQry);
?> <meta charset="euc-kr"> <script> alert("Á¤»óÀûÀ¸·Î ÁÖ¹®¿Ï·á µÇ¾ú½À´Ï´Ù."); location.href = "http://<?php echo $_SERVER['SERVER_NAME'];?>/html/millennium/dealorder.php?location=2"; </script>
<? } else { ?>
<script> alert("·Î±×ÀÎ ¿À·ù ´Ù½Ã ·Î±×ÀÎ Çϼ¼¿ä."); </script>
<? } ?>
|