-=[ Mr. Bumblebee ]=-
_Indonesia_
<?
include_once( 'inc/cart.php') ;
if ( empty($_POST['goods_no'])) script_re ( '/' , ' À߸øµÈ Á¢±ÙÀÔ´Ï´Ù. ') ;
if ( empty($_POST['cart_no'])) script_re ( '/' , ' À߸øµÈ Á¢±ÙÀÔ´Ï´Ù. ') ;
$cartno = $_POST['cart_no'] ;
$info = $exe->qry_fetch( " from {$tblCart} as ct left outer join tbl_{$total[table]}_item as it on ct.goods_no = it.numid " .
" where ct.Ltype = 'C' and ct.numid = '{$cartno}' and ct." . ( empty($total['loginno']) ? "cart_id = '{$cart_id}' " : "real_no = '{$total[loginno]}' " ) ,
" it.* , ct.file1 as userAttachfile , ct.file2 as userAttachfile2 , ct.file3 as userAttachfile3 , ct.file4 as userAttachfile4 ") ;
if ( empty($info['numid'])) script_re ( '/' , ' »óǰ Á¤º¸¸¦ ºÒ·¯¿À´Âµ¥ ½ÇÆÐÇÏ¿´½À´Ï´Ù. ') ;
if ( $info['openstate'] != 'Y' ) script_re ( '/' , ' À¯È¿ÇÏÁö ¾ÊÀº Á¢±Ù ') ;
# base info
$exe->qry_delete( $tblCartStk , " cart_no = '{$cartno}' ") ;
$exe->qry_delete( $tblCartpos , " cart_no = '{$cartno}' ") ;
$exe->qry_delete( $tblCartsize , " cart_no = '{$cartno}' ") ;
include_once('inc/inCart_detailopt.php' );
$afile1 = $info['userAttachfile'] ;
if ( !empty($_FILES['orderMake']['name']) || $_POST['del_orderMake'] == 'Y' ) {
file_delete( 'files/order/' . $info['userAttachfile'] ) ;
$afile1 = '' ;
if ( !empty($_FILES['orderMake']['name']) )
$afile1 = file_upload( $_FILES['orderMake']['tmp_name'] , $_FILES['orderMake']['name'] , 'files/order' ) ;
}
for ( $i = 2 ; $i <= 4; $i++ ) {
${'afile' . $i} = $info['userAttachfile' . $i] ;
if ( !empty($_FILES['orderMake' . $i]['name']) || $_POST['del_orderMake' . $i] == 'Y' ) {
file_delete( 'files/order/' . $info['userAttachfile' . $i] ) ;
${'afile' . $i} = '' ;
if ( !empty($_FILES['orderMake' . $i]['name']) )
${'afile' . $i} = file_upload( $_FILES['orderMake' . $i]['tmp_name'] , $_FILES['orderMake' . $i]['name'] , 'files/order' ) ;
}
}
$action = array_merge( $action , array(
'last_mdate' => $total['now'] ,
'ip' => $total['ip'] ,
'contents' => str_convert($_POST['comment']) ,
'top_qry' => $top_qry ,
'bot_qry' => $bot_qry ,
'armS' => $armS ,
'armL' => $armL ,
'totalqry' => $totalqry ,
'file1' => $afile1 ,
'file2' => $afile2 ,
'file3' => $afile3 ,
'file4' => $afile4
) ) ;
if ( $info['formtype'] == 'A' ) {
$action = array_merge( $action , array (
// A type only
'Atype_np' => ( $_POST['pos1'] == 'Y' ? 'Y' : 'N' ) . ( $_POST['pos2'] == 'Y' ? 'Y' : 'N' ) . ( $_POST['pos3'] == 'Y' ? 'Y' : 'N' ) ,
'Atype_tnm' => $_POST['tmname'] ,
'Atype_tpos' => ( $_POST['t_pos1'] == 'Y' ? 'Y' : 'N' ) .
( $_POST['t_pos2'] == 'Y' ? 'Y' : 'N' ) .
( $_POST['t_pos3'] == 'Y' ? 'Y' : 'N' ) .
( $_POST['t_pos4'] == 'Y' ? 'Y' : 'N' ) .
( $_POST['t_pos5'] == 'Y' ? 'Y' : 'N' ) ,
'Atype_memo' => str_convert($_POST['s_memo']) ,
'Atype_nfont' => ( $_POST['nftype'] == 'C' ? 'C' : 'S' ) ,
'Atype_arch' => ( $_POST['nftype'] == 'C' ?$_POST['arch_c'] : $_POST['arch_s'] ) ,
'Atype_orderbottype' => $_POST['orderbot'] ,
'Atype_orderbotoption' => $_POST['orderbot'] == 'Y' ? $_POST['orderbotopt'] : '' ,
)) ;
}
if ( $info['formtype'] == 'A' || $info['formtype'] == 'M' ) {
$action = array_merge( $action , array (
// M or A type only
'MAtype_giftno' => intval($_POST['service_no']) ,
'MAtype_hopedate' => $_POST['date_hopeday'] ,
'MAtype_eventdate' => $_POST['date_eventday'] ,
'MAtype_payintype' => ( $_POST['payintype'] == 'A' ? 'A' : 'B' ) ,
'MAtype_payindate' => $_POST['date_ipdate'],
'hoooption_hp' => $_POST['payintype'] == 'B' ? trim($_POST['ordtel1']) . '-' . trim($_POST['ordtel2']) . '-' . trim($_POST['ordtel3']) : '' ,
'hoooption_schooly' => $_POST['payintype'] == 'B' ? str_convert($_POST['schlyear']) : '' ,
'hoooption_classname' => $_POST['payintype'] == 'B' ? str_convert($_POST['schlclass']) : '' ,
'hoooption_schoolname' => $_POST['payintype'] == 'B' ? str_convert($_POST['schlname']) : '' ,
'hoooption_teachername' => $_POST['payintype'] == 'B' ? str_convert($_POST['tchname']) : '' ,
'hoooption_teacherhp' => $_POST['payintype'] == 'B' ? trim($_POST['tchtel1']) . '-' . trim($_POST['tchtel2']) . '-' . trim($_POST['tchtel3']) : ''
)) ;
}
$exe->qry_update( $action , $tblCart , " numid = '{$cartno}' ") ;
//str_print($_POST) ;
script_re ( '?mode=cart' ) ;
?>
Copyright © 2017 || Recoded By Mr.Bumblebee