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
|
<?php include("./_common.php");
$sql = "set names euckr"; mysql_query($sql,$connect_web);
@extract($_POST); @extract($_GET);
if($mode=='ch_state'){ // 󸮻óÅ ¼öÁ¤ $sql = "update mBoard_cus_recommend set state = '{$state}' where idx = '{$idx}' "; $res = mysql_query($sql,$connect_web);
echo "ok";
exit;
} else if($mode == "ch_chk") { // »çÀå´Ô È®ÀΠüũ
$sql = "update mBoard_cus_recommend set ceo_chk = '{$chk_flg}' where idx = '{$uid}' "; $res = mysql_query($sql,$connect_web);
echo "ok";
exit;
} else if($mode == "resultmode") {
$mode_txt = "resultmode"; $mode_ok = "Y";
$result_txt = iconv("utf-8","euc-kr",$result_txt);
$sql = "update mBoard_cus_recommend set result = '{$result_txt}' where idx = {$idx}"; $res = mysql_query($sql,$connect_web);
echo "<?php xml version='1.0' encoding='utf-8'?><output>"; echo "<mode>".$mode_txt."</mode>"; echo "<mode_ok>".$mode_ok."</mode_ok>"; echo "<msg>".$msg."</msg>"; echo "</output>"; exit; }
if($sel_del=='Y'){ foreach($code_idx as $key=>$val){ $idx = $codes[$val]; //echo "<script>alert('".$idx."');</script>"; $sql = "delete from mBoard_cus_recommend where idx = '{$idx}' "; mysql_query($sql,$connect_web); } ?> <script> document.location.href = "./m_cusrecommend.php"; </script> <?php } ?>
|