-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/zbk_20220209_product/php/goods/
File Upload :
Current File : /var/www/html/zbk_20220209_product/php/goods/skn.view.php

<?
	if ( empty($numid)) script_bk(' À߸øµÈ Á¢±ÙÀÔ´Ï´Ù. ') ;
	$info = $exe->qry_fetch( " from tbl_{$total[table]}_item as it where numid = '{$numid}' "
												, " * , ( select title from tbl_{$total[table]}_brand where numid = it.g_brand ) as brandname "  ) ;
	if ( empty($info['numid'])) script_bk ( ' ¾ø´Â »óǰÀÔ´Ï´Ù. ') ;
	if ( $info['openstate'] != 'Y' ) script_bk( ' »óǰ Á¤º¸¸¦ È®ÀÎÇÒ ¼ö ¾ø½À´Ï´Ù. ') ;

# today view list
	if ( !isset($_COOKIE['p___shop_read_item'])) setcookie( 'p___shop_read_item' , $info['numid'] , 0 , '/' ) ;
	else {
		$tmp = $_COOKIE['p___shop_read_item'] ;
		$tmp = explode( ',' , $tmp ) ;
		if ( array_search( $info['numid'] , $tmp ) === false ) $tmp[] = $info['numid'] ;
		setcookie( 'p___shop_read_item' , implode(',',$tmp) , 0 , '/' ) ;
	}

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

	$info['view_skinserviceinfo'] = $exe->qry_fetch(" from tbl_{$total[table]}_itemc as itc where goods_no = '{$numid}' and (( c1_no = 1 and c2_no = 9 ) or ( c1_no = 1 and c2_no = 8 and c3_no = 727 ) or ( c1_no = 3 and c2_no = 3 )) " , " count(*) as cntnum " , "cntnum" ) < 1 ? '<img src="/img/gift_detail.jpg" alt="»çÀºÇ°¾È³»" />' : '' ;

	// category
	$cateInfo = $exe->qry_fetch(" from tbl_{$total[table]}_itemc as itc where goods_no = '{$numid}' order by seq asc limit 1 " , " c1_no , c2_no , c3_no , ( select title from tbl_{$total[table]}_category where numid = itc.c3_no ) as c3_title " ) ;
	$title_type['navi'] = '' ;
	if ( !empty($cateInfo['c1_no'])) {
		//$title_type['navi'] .= $define_shop['ºÐ·ù'][$cateInfo['c1_no']][0] ;
		if ( !empty($cateInfo['c2_no'])) {
			$title_type['navi'] .= ' <a href="?c1=' . $cateInfo['c1_no'] . '&c2=' . $cateInfo['c2_no'] . '">' . $define_shop['ºÐ·ù'][$cateInfo['c1_no']][1][$cateInfo['c2_no']][0] . '</a>' ;
			if ( !empty($cateInfo['c3_no']))
				$title_type['navi'] .= ' &gt; <a href="?c1=' . $cateInfo['c1_no'] . '&c2=' . $cateInfo['c2_no'] . '&c3=' . $cateInfo['c3_no'] . '">' . $cateInfo['c3_title'] . '</a>' ;
		}
	}

	// 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 ;
	$imge = $info['imgdetail'];
	$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'] ;

	$info['only_Mtype_view'] = $info['formtype'] == 'M' ? '' : 'none' ;

	// contents
	$info['contents'] = str_mode( $info['contents'] , 'HTML' ) ;
	$info['sizeinfo'] = $info['sizeinfo'] == 'Y' ? '<div align="center"><!--img src="/img/size2.jpg" alt="»çÀÌÁîÁ¤º¸" /--><br><img src="/img/size.jpg" alt="¸¶Å·°¡À̵å" /><br><!--img src="/img/marking2.jpg" alt="¸¶Å·Á¾·ù" /--><br><!--img src="/img/marking.jpg" alt="ÀÎ¼â¹æ½Ä" /--></div>' : '' ;
	$info['sendinfo'] = $info['sendinfo'] == 'Y' ? '<div align="center"><!--img src="/img/ship.jpg" alt="¹è¼Û,ȯºÒ,¹Ýǰ Á¤º¸" /--></div>' : '' ;

	// 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" style="color:red"' , '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__blankimage'] = $info['formtype'] != 'A' ? $goods__blankWhiteimage : '' ;
	$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;" /></div>
		<div style="margin-left:20px;margin-bottom:5px;">ÆÄÀÏ÷ºÎ 2 : <input type="file" name="orderMake2" class="txt" style="width: 400px;" /><br /></div>
		<div style="margin-left:20px;margin-bottom:5px;">ÆÄÀÏ÷ºÎ 3 : <input type="file" name="orderMake3" class="txt" style="width: 400px;" /><br /></div>
		<div style="margin-left:20px;">ÆÄÀÏ÷ºÎ 4 : <input type="file" name="orderMake4" class="txt" style="width: 400px;" /><br /></div>
	</div>' : '<div class="detail-comment-sendfile">
		ÆÄÀÏ÷ºÎ : <input type="file" name="orderMake" class="txt" style="width: 400px;" />
	</div>' ;
# formtype
	$skinfile .= 'view_' . $info['formtype'] . '.html' ;
	include_once( 'php/' . $total['design'] . '/skn.view_' . $info['formtype'] . '.php' ) ;

# modify(add) - skin
	if ( empty($info['frm_product_detailinfo']) ) $info['frm_product_detailinfo'] = '' ;
	else {
		$info['frm_product_detailinfo'] = '
                            <table width="100%" summary="¼±ÅÃÇÑ »óǰÀÇ »ó¼¼ÇÑ Á¤º¸¸¦ ³ªÅ¸³½ Ç¥" style="border-bottom:1px solid #333;" class="tbl_detail_info">
                              <caption>
                              »óǰ»ó¼¼¸ñ·Ï
                              </caption>
                              <colgroup>
                              <col width="100">
                              <col>
                              </colgroup>
                              <tbody>' . $info['frm_product_detailinfo'] . '
                              </tbody>
                            </table>
		' ;
	}
	// A type
	for ( $i = 1 ; $i <= 5 ; $i++ ) {
		if ( empty($info['frm_product_detailinfo' . $i]) ) $info['frm_product_detailinfo' . $i] = '' ;
		else {
			$info['frm_product_detailinfo' . $i] = '
								<table width="100%" summary="¼±ÅÃÇÑ »óǰÀÇ »ó¼¼ÇÑ Á¤º¸¸¦ ³ªÅ¸³½ Ç¥" ' . ( $i == 5 ? 'style="margin:0px 1px 1px 1px;"' : 'style="border-bottom:1px solid #333;"' ) . '>
								  <caption>
								  »óǰ»ó¼¼¸ñ·Ï
								  </caption>
								  <colgroup>
								  <col width="100">
								  <col>
								  </colgroup>
								  <tbody>' . $info['frm_product_detailinfo' . $i] . '
								  </tbody>
								</table>
			' ;
		}
	}

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


Copyright © 2017 || Recoded By Mr.Bumblebee