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
|
<?php include_once("./_common2.php"); ?> <? header("Content-type:text/html;charset=euc-kr"); include("../../manage/category/common.php");
if($_POST['pos_mode']=='mobile'){ foreach($_POST as $key=>$val){ $_POST[$key] = iconv('utf-8', 'euc-kr', $val); } @extract($_POST); }
$reg_date = date("Y-m-d H:i:s"); $tel = $tel1."-".$tel2."-".$tel3;
$msg = ""; if(strlen($cont_work)<100){ $msg = "¾÷¹«ÇüŸ¦ 100ÀÚÀÌ»ó ÀÔ·ÂÇϽñ⠹ٶø´Ï´Ù."; } if(strlen($cont_before)<300){ $msg = "µµÀÔ Àü ºÒÆí»çÇ×À» 300ÀÚÀÌ»ó ÀÔ·ÂÇϽñ⠹ٶø´Ï´Ù."; } if(strlen($cont_after)<300){ $msg = "µµÀÔ ÈÄ È¿°ú¸¦ 300ÀÚÀÌ»ó ÀÔ·ÂÇϽñ⠹ٶø´Ï´Ù."; }
if($msg==''){ $insertQry = "INSERT INTO event_review ( company , cpyear , cptype , cpitem , employee , sales , cont_work , cont_before , cont_after , name , tel , paper , post , address , reg_date
) VALUES ( '$company' , '$cpyear' , '$cptype' , '$cpitem' , '$employee' , '$sales' , '$cont_work' , '$cont_before' , '$cont_after' , '$name' , '$tel' , '$paper' , '$post' , '$address' , '$reg_date'
)"; //echo $insertQry; exit; mysql_query($insertQry);
$msg = "ÈıⰡ µî·ÏµÇ¾ú½À´Ï´Ù. Âü¿©ÇØÁּż °¨»çÇÕ´Ï´Ù."; if($pos_mode=='mobile'){ //$msg = iconv('utf-8', 'euc-kr', $msg); } }
?>
<script> alert("<?php echo $msg;?>"); //parent.location.href='http://<?php echo $_SERVER['SERVER_NAME']?>/html/millennium/event.php'; <?php if($pos_mode=='mobile'){?> parent.location.href='http://<?php echo $_SERVER['SERVER_NAME']?>/html/m/myevent.php'; <?php } else {?> parent.location.href='http://<?php echo $_SERVER['SERVER_NAME']?>/html/millennium/review_event.php'; <?php }?> </script>
|