-=[ Mr. Bumblebee ]=-
_Indonesia_

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

<?php
	if ( empty($numid)) script_re($total['cmnall'] , ' Á¢±ÙÇÒ ¼ö ¾ø½À´Ï´Ù. ' ) ;

	$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_re( $total['cmnall'] , ' »èÁ¦µÇ¾ú°Å³ª ¾ø´Â µ¥ÀÌÅÍÀÔ´Ï´Ù. ' ) ;

# buttons 
	$total['btn_list'] = '<a href="' . $total['cmnall'] . '">' . $button_adminmode['btn_list'] . '</a>' ;
	$total['btn_write'] = '<a href="' . $total['cmnall'] . '&mode=write"><img src="/img/admin/bt/bt_good_add.gif" align="absmiddle"/></a>' ;
	$total['btn_delete'] = '<a href="javascript: confirmmsg(\'»èÁ¦ÇÕ´Ï´Ù.\' , \'' . $total['cmnnb'] . '&mode=delete\'); ">' . $button_adminmode['btn_delete'] . '</a>' ;
	$total['btn_modify'] = '<a href="' . $total['cmnnb'] . '&mode=modify">' . $button_adminmode['btn_modify'] . '</a>' ;
	$total['btn_copy'] = '<a href="' . $total['cmnnb'] . '&mode=copy">' . $button_adminmode['btn_copy'] . '</a>' ;

# skin file
	$skins = $skin->skin (	array ( 'frm' => 'FORM' , 'o_frm' => 'MOVE RECORD' ) , $skinfile ) ;

# get image 
	$info['imglist'] = empty($info['imglist']) ?  '' : create_image( 'files/' . $total['options']['list_dir'] . '/' . $info['imglist'] , $total['options']['list_w'] , $total['options']['list_h']) ;
	$info['imglist_w'] = $total['options']['list_w'] + 10 ;
	$info['imglist_h'] = $total['options']['list_h'] + 10 ;
	
# get category 
	$cexe = $exe->qry_one(" from tbl_{$total[table]}_itemc as ic where goods_no = '{$numid}' order by seq asc " , " c1_no , c2_no , c3_no , ( select title from tbl_{$total[table]}_category where numid = ic.c3_no ) as c3_title " ) ;
	$info['category'] = '' ; 
	while ( $crs = $exe->fetch($cexe)) {
		$info['category'].= '<p>' ;
		if ( !empty($crs['c1_no'])) {
			$info['category'].= $define_shop['ºÐ·ù'][$crs['c1_no']][0] ;
			if ( !empty($crs['c2_no'])) {
				$info['category'].= ' > ' . $define_shop['ºÐ·ù'][$crs['c1_no']][1][$crs['c2_no']][0] ;
				if ( !empty($crs['c3_no'])) $info['category'].= ' > ' . $crs['title'] ;
			} 			
		}
		$info['category'].= '</p>' ;
	}

# get price 
	$sumprice = $info['topprice'] + $info['botprice'] + $info['g_price'] ;
	$price_comment = '' ; 
	if ( $info['topstate'] == 'Y' && $info['topprice'] > 0 ) $price_comment .= ' »óÀÇ + ' . number_format($info['topprice']) ;
	if ( $info['botstate'] == 'Y' && $info['botprice'] > 0 )	$price_comment .= ' ÇÏÀÇ + ' . number_format($info['botprice']) ; 
	$price_comment = empty($price_comment) ? '' : ' <span class="sf">(' . $price_comment . ')</span>' ; 
	$info['g_normalp'] = number_format($info['g_normalp']) ;
	$info['sumprice'] = number_format($sumprice) ;   
	
# get state 
	$info['salestate'] = $define_shop['»óÅÂ'][$info['salestate']] ;
	$info['openstate'] = $define_shop['°ø°³'][$info['openstate']] ;


	$info['contents'] = str_mode( $info['contents'] , 'HTML' ) ;
	
# end
	$result = str_foreach ( $info , 'INFO' , $skins['frm'] ) ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee