-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/z_product.bk.230817/php/cart/
File Upload :
Current File : /var/www/html/z_product.bk.230817/php/cart/skn.modify.php

<?
	if ( empty($numid)) script_bk(' À߸øµÈ Á¢±ÙÀÔ´Ï´Ù. ') ;

	include_once( 'inc/cart.php') ;

	$info = $exe->qry_fetch( " from {$tblCart} as ct left outer join tbl_{$total[table]}_item as it on ct.goods_no = it.numid " .
		  " left outer join tbl_{$config[GFT][1]} as gft on ct.MAtype_giftno = gft.numid " .
		  " where ct.Ltype = 'C' and ct.numid = '{$numid}' and ct." . ( empty($total['loginno']) ? "cart_id = '{$cart_id}' " : "real_no = '{$total[loginno]}' " ) ,
		  " 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  " .
		  " , ( select title from tbl_{$total[table]}_brand where numid = it.g_brand ) as brandname " .
		  " , ct.Atype_np , ct.Atype_tnm , ct.Atype_tpos , ct.Atype_memo , ct.Atype_memo , ct.Atype_nfont , ct.Atype_arch " .
		  " , ct.file2 as userAttachfile2 , ct.file3 as userAttachfile3 , ct.file4 as userAttachfile4 " .
		  " , ct.MAtype_giftno , gft.numid as gift_noisit , gft.title as gift_title , gft.img1 as gift_image " .
		  " , 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 "   ) ;
	if ( empty($info['numid'])) script_bk ( ' ¾ø´Â »óǰÀÔ´Ï´Ù. ') ;
	if ( $info['openstate'] != 'Y' ) script_bk( ' »óǰ Á¤º¸¸¦ È®ÀÎÇÒ ¼ö ¾ø½À´Ï´Ù. ') ;
	$numid = $total['numid'] = $info['numid'] ;
	$cart_no = $info['cart_no'] ;

# common data
	$skins = $skin->skin ( array ( 'frm' => 'FORM' , 'gi' => 'GOODS INFO' ) , $skinfile . 'modify.html' ) ;

	// icons
	if ( !empty($info['selecticons'])) {
		$act_icons = explode( ',' , $info['selecticons'] );
		$info['selecticons'] = '' ;
		foreach ( $act_icons as $v ) {
			$info['selecticons'].= $define_shop_icons[$v] . ' ' ;
		}
		$info['selecticons'].= '' ;
	}

	// zoom popup size
	$d_imgsize = file_s_down ( 'files/' . $total['options']['view_dir'] . '/' . $info['imgdetail'] , $zoom_goods_w, $zoom_goods_h ) ;
	$info['imgDetail_w'] = empty($d_imgsize['width']) ? 0 : $d_imgsize['width'] ;
	$info['imgDetail_h'] = $d_imgsize['height'] + 30 ;

	$info['imgdetail'] = !empty($info['imgdetail']) ? create_image( 'files/' . $total['options']['view_dir'] . '/' . $info['imgdetail'] , $total['options']['view_w'] , $total['options']['view_h'] , ' class="imgDetail" onerror="this.src=\'img/noimgA.jpg\'" alt="Å«»çÁø" id="goods_img_detail" ') : '' ;


	//$info['seller'] = $shop_set['seller'] ;
	//$info['siteUrl'] = $shop_set['siteUrl'] ;

	// price
	$info['sumprice'] = $info['g_price'] ;
	$info['sumprice'] += $info['topstate'] == 'Y' ? $info['topprice'] : 0 ;
	$info['sumprice'] += $info['botstate'] == 'Y' ? $info['botprice'] : 0 ;

	$info['new_g_normalp'] = number_format($info['g_normalp']);
	$info['new_sumprice'] = number_format($info['sumprice']);

	$info['min_qry'] = empty($info['min_qry']) ? 0 : $info['min_qry'] ;
	$info['goods_price'] = empty($info['g_price']) ? 0 : $info['g_price'] ;

	// contents
	$info['contents'] = str_mode( $info['contents'] , 'HTML' ) ;

	// common option
	$info['userComment'] = $info['userComment'] ;


	$info['sizeinfo'] = $info['sizeinfo'] == 'Y' ? '<table><tr><td><img src="/img/washing_info.gif" /></td></tr><tr><td height="10"></td></tr><tr><td><img src="/img/de_info.gif" /></td></tr></table>' : '' ;
	$info['sendinfo'] = $info['sendinfo'] == 'Y' ? '<table><tr><td><img src="/img/pro_info.gif" /></td></tr><tr><td height="10"></td></tr><tr><td><img src="/img/size_info.gif" /></td></tr></table>' : '' ;

	// construct
	$info['frm_product_detailinfo'] = '' ;
	$info['frm_product_detailinfo'] .= empty($info['title']) ? '' : str_foreach( array( 'title' => '»óǰ¸í' , 'option' => ' class="price1"' , 'data' => '<strong>' . $info['title'] . '</strong>' ) , 'INFO' , $skins['gi']) ;
	$info['frm_product_detailinfo'] .= empty($info['brandname']) ? '' : str_foreach( array( 'title' => 'ºê·£µå¸í' , 'data' => $info['brandname'] ) , 'INFO' , $skins['gi']) ;
	$info['frm_product_detailinfo'] .= empty($info['g_matter']) ? '' : str_foreach( array( 'title' => 'Á¦Ç°¼ÒÀç' , 'data' => $info['g_matter'] ) , 'INFO' , $skins['gi']) ;
	$info['frm_product_detailinfo'] .= empty($info['g_origin']) ? '' : str_foreach( array( 'title' => '¿ø»êÁö' , 'data' => $info['g_origin'] ) , 'INFO' , $skins['gi']) ;
	$info['frm_product_detailinfo'] .= empty($info['g_normalp']) ? '' : str_foreach( array( 'title' => 'Á¤»ó°¡' , 'option' => '  class="price4" ' ,  'data' => '<strike>' . number_format($info['g_normalp']) . '¿ø</strike>' ) , 'INFO' , $skins['gi']) ;
	$info['frm_product_detailinfo'] .= empty($info['g_price']) ? '' : str_foreach( array( 'title' => 'ÆÇ¸Å°¡' , 'option' => '  class="price4" ' ,  'data' => number_format($info['g_price']) . '¿ø' ) , 'INFO' , $skins['gi']) ;
	$info['frm_product_detailinfo'] .= $info['topstate'] != 'Y' ? '' : str_foreach( array( 'title' => '»óÀÇ ÆÇ¸Å°¡' , 'option' => '' ,  'data' => '' . number_format($info['topprice']) . '¿ø' ) , 'INFO' , $skins['gi']) ;
	$info['frm_product_detailinfo'] .= $info['botstate'] != 'Y' ? '' : str_foreach( array( 'title' => 'ÇÏÀÇ ÆÇ¸Å°¡' , 'option' => '' ,  'data' => '' . number_format($info['botprice']) . '¿ø' ) , 'INFO' , $skins['gi']) ;
	$info['frm_product_detailinfo'] .= empty($info['sumprice']) ? '' : str_foreach ( array( 'title' => '<strong>ÇÕ°è±Ý¾×</strong>' , 'option' => ' class="price2"' , 'data' => '<strong>' . number_format($info['sumprice']) . '¿ø</strong>' ) , 'INFO' , $skins['gi']) ;
	$info['frm_product_detailinfo'] .= empty($info['sumprice']) ? '' : str_foreach ( array( 'title' => 'Àû¸³±Ý' , 'data' => ( $info['g_point'] == 'Y' ? number_format($info['sumprice'] * $define_shop_point_p) . '¿ø' : '0¿ø' )) , 'INFO' , $skins['gi']) ;
	$info['frm_product_detailinfo'] .= empty($info['g_memo']) ? '' : str_foreach( array( 'title' => '»óǰ¸Þ¸ð' , 'option' => ' style="font-size: 11px;" ' , 'data' => $info['g_memo'] ) , 'INFO' , $skins['gi']) ;

	$info['frm__attachfileform'] = $info['formtype'] == 'A' || $info['formtype'] == 'M' ? '<div class="detail-comment-sendfile">
		÷ºÎÇÏ½Ç ÆÄÀÏÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.<br />
		<div style="margin-left:20px;margin-top:5px;margin-bottom:5px;">ÆÄÀÏ÷ºÎ 1 : <input type="file" name="orderMake" class="txt" style="width: 400px;" /> ' . ( !empty($info['userAttachfile']) ? '<input type="checkbox" name="del_orderMake" value="Y"/> ÆÄÀÏ»èÁ¦' : '' ) . '</div>
		<div style="margin-left:20px;margin-bottom:5px;">ÆÄÀÏ÷ºÎ 2 : <input type="file" name="orderMake2" class="txt" style="width: 400px;" /> ' . ( !empty($info['userAttachfile2']) ? '<input type="checkbox" name="del_orderMake2" value="Y"/> ÆÄÀÏ»èÁ¦' : '' ) . '<br /></div>
		<div style="margin-left:20px;margin-bottom:5px;">ÆÄÀÏ÷ºÎ 3 : <input type="file" name="orderMake3" class="txt" style="width: 400px;" /> ' . ( !empty($info['userAttachfile3']) ? '<input type="checkbox" name="del_orderMake3" value="Y"/> ÆÄÀÏ»èÁ¦' : '' ) . '<br /></div>
		<div style="margin-left:20px;">ÆÄÀÏ÷ºÎ 4 : <input type="file" name="orderMake4" class="txt" style="width: 400px;" /> ' . ( !empty($info['userAttachfile4']) ? '<input type="checkbox" name="del_orderMake4" value="Y"/> ÆÄÀÏ»èÁ¦' : '' ) . '<br /></div>
	</div>' : '<div class="detail-comment-sendfile">
		ÆÄÀÏ÷ºÎ : <input type="file" name="orderMake" class="txt" style="width: 400px;" /> ' . ( !empty($info['userAttachfile']) ? '<input type="checkbox" name="del_orderMake" value="Y"/> ÆÄÀÏ»èÁ¦' : '' ) . '
	</div>' ;

# formtype
	$skinfile .= '../goods/view_' . $info['formtype'] . '.html' ;
	include_once( 'php/cart/skn.modify_' . $info['formtype'] . '.php' ) ;

	$result = str_foreach($info , 'INFO' , $skins['frm'] ) ;


?>

Copyright © 2017 || Recoded By Mr.Bumblebee