-=[ Mr. Bumblebee ]=-
_Indonesia_
<?
$str = '' ;
$c = 3 ;
$r = 0 ;
switch ( $maincode ) {
case '1' : $r = 2 ; break ; // ·¹Çø®Ä«
case '2' : $r = 2 ; break ; // º£½ºÆ®
case '3' : $r = 2 ; break ; // ½Å»óǰ
}
$execute = $exe->qry_one( " from tbl_{$config[SHP][1]}_item as it where openstate = 'Y' and mainview LIKE '%{$maincode}%' order by seq desc limit " . ($c*$r) , " it.numid , it.imglist , it.title , it.g_normalp , it.g_price , it.topprice , it.botprice , it.salestate , it.selecticons , it.g_point " ) ;
$rs = $exe->fetch($execute) ;
for ( $i = 0 ; $i < $r ; $i++ ) {
if ( empty($rs['numid'])) break ;
$str .= '
<tr>
' ;
for ( $j = 0 ; $j < $c ; $j++ ) {
if ( empty($rs['numid'])) {
$str .= '
<td width="20%" align="center" style="padding:0px;"> </td>
' ;
continue ;
}
$rs['imglist'] = empty($rs['imglist']) ? '' : create_image( 'files/' . $config['SHP'][4]['list_dir'] . '/' . $rs['imglist'] , 188 , 200) ;
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>' ;
}
$rs['title'] = str_cut($rs['title'] . '' , 30) ;
$str .= '
<td width="20%" align="center"><table width="281" height="350" align="center" style="padding-bottom:0; border: 1px solid #d4d4d4;">
<tbody>
<tr>
<td class="pro-thumb" style="width: 280px; height:335px; text-align: center; vertical-align: top; padding-top: 9px; padding-bottom:0px;"><a href="/product/?mode=detailView&numid=' . $rs['numid'] . '">' . $rs['imglist'] . '</a></td>
</tr>
<tr>
<td class="pro-thumb" style="text-align: left; height:0px; padding-left: 20px; padding-top: 1px; padding-bottom:2px;">' . $rs['selecticons'] . '<div class="pro-title">
<span style="font-family:Nanum Gothic;font-size:14px;color:gray;font-weight:bold;"><a href="/product/?mode=detailView&numid=' . $rs['numid'] . '">
' . $rs['title'] . '
</a></div></td>
</tr>
<tr>
<td style="text-align: left; height: 20px; padding-left: 20px; padding-bottom: 5px;"><div class="pro-price">' . ( $rs['salestate'] == '1' ? '<img src="/img/icon_won.gif"> <strike><span style="font-family:Nanum Gothic;font-size:12px;color:gray;font-weight:bold;">' . number_format($rs['g_normalp']) . '</strike> <span style="font-family:Nanum Gothic;font-size:16px;color:black;font-weight:bold;">' . number_format($rs['g_price'] + $rs['topprice'] + $rs['botprice']) . '</span>' : $define_shop['»óÅÂ'][$rs['salestate']] ) . '<span style="font-family:Nanum Gothic;font-size:16px;color:gray;">¿ø</span></div></td>
</tr>
' ;
if ( $rs['g_point'] == 'Y' && $rs['salestate'] == '1' ) {
$str .= '
<!--tr>
<td style="text-align: left; height: 20px; padding-left: 20px;"><div class="pro-price"><img src="/img/icon_point.gif"> ' . number_format(($rs['g_price'] + $rs['topprice'] + $rs['botprice'])*$define_shop_point_p) . '</div></td>
</tr-->
' ;
}
$str .= '
</tbody>
</table></td>
' ;
$rs = $exe->fetch($execute) ;
}
$str .= '
</tr>
<tr>
<td colspan="9" height="20"></td>
</tr>
' ;
if ( empty($rs['numid'])) break ;
}
if ( !empty($str)) {
$str = '
<table width="100%" cellspacing="0" cellpadding="0">
<tbody>
' . $str . '
</tbody>
</table>
' ;
echo $str ;
}
?>
Copyright © 2017 || Recoded By Mr.Bumblebee