|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/yuchun/admin/Proc/ |
Upload File : |
<?include $_SERVER['DOCUMENT_ROOT']."/conf/conf_dir.php";?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?
if($idx){
if($mode == "del"){
$midx = get_db("select mbruid from shop_order where uid='$idx'");
$cashqry = "delete from shop_order where uid= '$idx'";
$result = mysql_query($cashqry);
$cashqry2 = "delete from shop_ordergoods where parent= '$idx'";
$result2 = mysql_query($cashqry2);
if($category == "m"){ //category m:회원 s:상품
$cashqry3 = "delete from user_cash where order_uid= '$idx'";
$result3 = mysql_query($cashqry3);
echo "<script>alert('삭제되었습니다.');location.href='../memberlist1.php?act=$act';</script>";
}else{
echo "<script>alert('삭제되었습니다.');location.href='../store_orderlist.php?act=$act&orderstep=$orderstep&category=$category';</script>";
}
}
}else if($mode == "alldel"){
/*
$QUERY = "SELECT * FROM shop_order";
$result= mysql_query($QUERY,$db_con);
while ($row = mysql_fetch_array($result)) {
$orderCode = $row[orderid];
$cashqry3 = "delete from user_cash where cash_no= '$orderCode'";
$result3 = mysql_query($cashqry3);
}
$cashqry = "delete from shop_order";
$result = mysql_query($cashqry);
$cashqry2 = "delete from shop_ordergoods";
$result2 = mysql_query($cashqry2);
echo "<script>alert('전체삭제함');location.href='../memberlist1.php?act=$act';</script>";
*/
}else{
echo "<script>alert('error. reflesh');location.href='../memberlist1.php?act=$act';</script>";
}
?>