-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/zbk_product.bk.20210326/php/favorite/
File Upload :
Current File : /var/www/html/zbk_product.bk.20210326/php/favorite/skn.list.php

<?
	$skins = $skin->skin ( array ( 'frm' => 'FORM' , 'tr' => 'TR' , 'td' => 'TD' , 'n_td' => 'N TD' , '/tr' => '/TR') , $skinfile ) ;
	
	$now = date('Y-m-d');
	$max_row = 7 ;
	$max_col = 4 ;
	if ( is_numeric($ps)) $max_row = ceil( $ps/$max_col ) ;
	$total['pagesize'] = $max_row * $max_col ;
	
	$oQuery = ' it.seq desc ' ;   

# search Query 
	$wQuery = array() ; 
	$wQuery[] = " it.openstate = 'Y' " ;    // °ø°³µÈ »óǰ
	$wQuery[] = " numid in ( select DISTINCT goods_no from tbl_{$total[table]}_favorite as itf where real_no = '{$total[loginno]}' ) " ;
	$title_type['navi'] = '°ü½É»óǰ' ;
	
# get data
	$total = $exe->qry_list(" from tbl_{$total[table]}_item as it " . ( count($wQuery) > 0 ? ' where ' . implode( ' and ' , $wQuery ) : '' ) . ' order by ' . $oQuery , 
										    " it.numid , it.imglist , it.title , it.g_price , it.topprice , it.botprice , it.salestate , it.selecticons " , $total ) ;
	$rs = $exe->fetch($total['execute']) ;
	$repeat = '' ; 
	if ( !empty($rs['numid'])) {
		for ( $i = 0 ; $i < $max_row ; $i++ ) {
			$repeat.= $skins['tr'] ;
			for ( $j = 0 ; $j < $max_col ; $j++ ) {
				if ( empty($rs['numid'])) { $repeat.= $skins['n_td'] ; continue ; }
				$rs['imglist'] = empty($rs['imglist']) ?  '' : create_image( 'files/' . $total['options']['list_dir'] . '/' . $rs['imglist'] , $total['options']['list_w'] , $total['options']['list_h']) ;
				$rs['w'] = $total['options']['list_w']  + 20 ;
				$rs['h'] = $total['options']['list_h']  + 10 ;  
				$rs['sumprice'] = $rs['salestate'] == '1' ? '<img src="/img/icon_won.gif" style="vertical-align:top">' . number_format($rs['g_price'] + $rs['topprice'] + $rs['botprice']) : $define_shop['»óÅÂ'][$rs['salestate']] ;
				$rs['title'] = str_cut($rs['title'] . '' , 30)  ;
				$title_len = 20 ;
				if ( !empty($rs['selecticons'])) {
					$act_icons = explode( ',' , $rs['selecticons'] );
					$rs['selecticons'] = '<div style="padding-bottom:5px;">' ;
					foreach ( $act_icons as $v ) {
						$rs['selecticons'].= $define_shop_icons[$v] . ' ' ;
					}
					$rs['selecticons'].= '</div>' ;
				}
				$repeat.= str_foreach($rs , 'RS' , $skins['td']) ;
				$rs = $exe->fetch($total['execute']) ;
			} 
			$repeat.= $skins['/tr'] ; 
			if ( empty($rs['numid'])) break ; 
		}
	}
	$info['repeat'] = $repeat ; 
	$total = $exe->paging( $total['cmnval'] . ( $total['cmnval'] == $total['selfurl'] ? '?' : '&' ) . 'mode=' . $total['mode'] , $total ) ;
	$result = str_foreach( $info , 'INFO' , $skins['frm']) ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee