-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
include_once( 'inc/cart.php') ;
include_once( 'inc/function.cart.php') ;
$skins = $skin->skin ( array (
'frm' => 'FORM' ,
'mfrm' => 'M GOODS' , 'mopt' => 'M OPTION DETAIL' , 'msize' => 'M OPTION SIZE' ,
'tfrm' => 'T GOODS' , 'topt' => 'T OPTION DETAIL' ,
'afrm' => 'A GOODS' , 'aopt' => 'A OPTION DETAIL' , 'asize' => 'A OPTION SIZE' ,
'nfrm' => 'N GOODS'
) , $skinfile ) ;
$execute = $exe->qry_one( " 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." . ( empty($total['loginno']) ? "cart_id = '{$cart_id}' " : "real_no = '{$total[loginno]}' " ) . " order by ct.write_date asc " ,
" it.* , ct.numid as cart_no , ct.file1 as userAttachfile , ct.contents as userComment " .
" , ct.totalqry , ct.top_qry , ct.bot_qry , ct.armS , ct.armL , ct.tn_use , ct.tn_text , ct.tn_arch , ct.tn_pos , ct.cr_opt " .
" , ct.Atype_np , ct.Atype_tnm , ct.Atype_tpos , ct.Atype_memo , ct.Atype_nfont , ct.Atype_arch " .
" , ct.file2 as userAttachfile2 , ct.file3 as userAttachfile3 , ct.file4 as userAttachfile4 " .
" , ct.MAtype_giftno , ( select numid from tbl_{$config[GFT][1]} where numid = ct.MAtype_giftno ) as gift_noisit , ( select title from tbl_{$config[GFT][1]} where numid = ct.MAtype_giftno ) as gift_title " .
" , ct.MAtype_hopedate , ct.MAtype_eventdate , ct.MAtype_payintype , ct.MAtype_payindate " .
" , ct.Atype_orderbottype " .
" , ct.hoooption_hp , ct.hoooption_schooly , ct.hoooption_classname , ct.hoooption_schoolname , ct.hoooption_teachername , ct.hoooption_teacherhp " .
" , ct.Atype_orderbotoption " ) ;
$frm_goods = '' ;
$goods_totalcount = 0 ;
$goods_sumprice = 0 ;
$order_sendprice = 0 ;
$s_sumprice = 0 ; // ´©ÀûÇÕ
$tmp_Rs = '' ;
while ( $rs = $exe->fetch($execute)) {
unset($tmp_Rs) ;
if ( $rs['salestate'] != '1' )
$frm_goods .= str_foreach( array(
'eMsg' => '<p style="color:red;font-weight:bold;margin:0 0 5px 0;">[ÁÖ¹®ºÒ°¡] <span style="font-size:11px;">ÁÖ¹®ÇÒ ¼ö ¾ø´Â »óǰÀÔ´Ï´Ù.</span></p>' ,
'title' => tit_setLink() ,
'numid' => $rs['cart_no'] ,
'goods_no' => $rs['numid'] ,
) , 'RS' , $skins['nfrm']) ;
elseif ( $rs['openstate'] != 'Y' )
$frm_goods .= str_foreach( array(
'eMsg' => '<p style="color:red;font-weight:bold;margin:0 0 5px 0;">[ÁÖ¹®ºÒ°¡] <span style="font-size:11px;">ÇöÀç ÆÇ¸ÅÁßÀÌ ¾Æ´Ñ »óǰÀÔ´Ï´Ù.</span></p>' ,
'title' => $rs['title'] ,
'numid' => $rs['cart_no'] ,
'goods_no' => $rs['numid'] ,
) , 'RS' , $skins['nfrm']) ;
else {
if ( $rs['formtype'] == 'M' ) $tmp_Rs = skn_M_CartList() ;
if ( $rs['formtype'] == 'T' ) $tmp_Rs = skn_T_CartList() ;
if ( $rs['formtype'] == 'Q' ) $tmp_Rs = skn_Q_CartList() ;
if ( $rs['formtype'] == 'S' ) $tmp_Rs = skn_S_CartList() ;
if ( $rs['formtype'] == 'A' ) $tmp_Rs = skn_A_CartList() ;
if ( $tmp_Rs[0] == 'Y' ) {
$frm_goods .= str_foreach( array(
'link-estimate-1' =>mk_estimate_viewlink( 1 ,'cart' , '' ,$rs['cart_no'] ) ,
'link-estimate-2' =>mk_estimate_viewlink( 2 ,'cart' , '' ,$rs['cart_no'] )
) , 'ARS' , $tmp_Rs[1] ) ;
}
else
$frm_goods .= str_foreach( array(
'eMsg' => '<p style="color:red;font-weight:bold;margin:0 0 5px 0;">[ÁÖ¹®ºÒ°¡] <span style="font-size:11px;">' . $tmp_Rs[1] . '</span></p>' ,
'title' => tit_setLink() ,
'numid' => $rs['cart_no'] ,
'goods_no' => $rs['numid'] ,
) , 'RS' , $skins['nfrm']) ;
}
}
$goods_sumprice += $s_sumprice ;
$order_sendprice = $goods_sumprice < $shop_set['send_order_min'] && $goods_sumprice > 0 ? $shop_set['send_price'] : 0 ;
$result = str_foreach( array(
'frm_goods' => $frm_goods ,
'total_count' => number_format($goods_totalcount) ,
'total_send_price' => number_format($order_sendprice) ,
'total_price' => number_format($goods_sumprice+$order_sendprice )
) , 'INFO' , $skins['frm'] ) ;
$total = array_merge( $total , array(
'btn_order' => ( $goods_sumprice > 0 ? '<input type="image" src="/img/bt/bt_bbuy.gif">' : '' ) , // href="' . $total['cmnall'] . '&mode=' . ( empty($total['loginno']) ? 'login' : 'orderfrm' ) . '"><img src="" alt="±¸¸ÅÇϱâ" style="margin-right:5px;"></a>':'' ),
'btn_shopping' => '<a href="' . $total['cmnall'] . '"><img src="/img/bt/bt_bshopping.gif" alt="¼îÇΰè¼ÓÇϱâ" style="margin-right:5px;"></a>' ,
'btn_print' => ( $goods_sumprice > 0 ? '<a href="javascript:printPage();"><img src="/img/bt/bt_bprint.gif" alt="ÁÖ¹®³»¿ªÇÁ¸°Æ®"></a>' : '' )
)) ;
?>
Copyright © 2017 || Recoded By Mr.Bumblebee