\''.$thetime.'\' AND sale_method=1 AND endstat=0 AND item_suspend=0 ORDER BY sale_end ASC LIMIT 6'; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { $i=0; $item_lelang .= ''."\n"; while($row = mysql_fetch_assoc($res)) { $image = $row['mainimagename'] != '' && is_file('./upload/thumb_'.$row['mainimagename']) ? ''.$row['mainimagename'].'' : ' '; $timer = timeDiff(strtotime($row['sale_end'])); $q = 'SELECT COUNT(bid_id) as bc, MAX(current_offer) as co FROM item_biding WHERE item_id=\''. $row['item_id'] .'\' '; $check_bid = @mysql_fetch_assoc(mysql_query($q)); if( is_array($check_bid) ) { $end_price = is_null($check_bid['co']) ? $row['item_price'] : intval($check_bid['co']); $row['end_price'] = $end_price; $row['bid_count'] = $check_bid['bc']; } $row['item_price'] = 'Rp. '.format_uang( $row['item_price'] , 0, ',', '.'); $sale_end = strtotime($row['sale_end']); $bg_color = $row['is_diffcolor'] == 1 ? ' bgcolor="#eeeeee" ' : ''; if($i == 0) { $item_lelang .= ''."\n"; } $item_lelang .= ''; $i++; if($i == 3) { $item_lelang .= ''."\n"; $i = 0; } } if($i > 0) { for($i=$i; $i<=2; $i++) { $item_lelang .= ''."\n"; } $item_lelang .= ''."\n"; } $item_lelang .= '
'.$row['item_name'].'
'.$image.'
'.format_uang($row['end_price']).'
'; if( ($sale_end - $thestrtime) < 3600 ) { $item_lelang .= ''.$timer.''; $count_down[$row['item_id']] = $sale_end; } else { $item_lelang .= ''.$timer.''; } $item_lelang .= '
 
'."\n"; } else { $item_lelang .= '

Maaf belum terdapat barang untuk kategori ini.'; } $item_jual = ''; $sql = 'SELECT * FROM `item_list` WHERE sale_end > \''.$thetime.'\' AND sale_method=2 AND endstat=0 AND item_suspend=0 ORDER BY rand() LIMIT 6'; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { $i=0; $item_jual .= ''."\n"; while($row = mysql_fetch_assoc($res)) { $image = $row['mainimagename'] != '' && is_file('./upload/thumb_'.$row['mainimagename']) ? ''.$row['mainimagename'].'' : ' '; $timer = timeDiff(strtotime($row['sale_end'])); $row['item_price'] = 'Rp. '.format_uang( $row['item_price'] , 0, ',', '.'); $sale_end = strtotime($row['sale_end']); $bg_color = $row['is_diffcolor'] == 1 ? ' bgcolor="#eeeeee" ' : ''; if($i == 0) { $item_jual .= ''."\n"; } $item_jual .= ''; $i++; if($i == 3) { $item_jual .= ''."\n"; $i = 0; } } if($i > 0) { for($i=$i; $i<=2; $i++) { $item_jual .= ''."\n"; } $item_jual .= ''."\n"; } $item_jual .= '
'.$row['item_name'].'
'.$image.'
'.$row['item_price'].'
'; $item_jual .= ''.$timer.''; $item_jual .= '
 
'."\n"; } else { $item_jual .= '

Maaf belum terdapat barang untuk kategori ini.'; } $item_hot = ''; $sql = 'SELECT * FROM `item_list` WHERE sale_end > \''.$thetime.'\' AND is_hotproduct=1 AND endstat=0 AND item_suspend=0 ORDER BY rand() LIMIT 12'; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { $i=0; $item_hot .= ''."\n"; while($row = mysql_fetch_assoc($res)) { $image = $row['mainimagename'] != '' && is_file('./upload/thumb_'.$row['mainimagename']) ? ''.$row['mainimagename'].'' : ' '; $timer = timeDiff(strtotime($row['sale_end'])); if($row['sale_method'] == 1) { $q = 'SELECT COUNT(bid_id) as bc, MAX(current_offer) as co FROM item_biding WHERE item_id=\''. $row['item_id'] .'\' '; $check_bid = @mysql_fetch_assoc(mysql_query($q)); if( is_array($check_bid) ) { $end_price = is_null($check_bid['co']) ? $row['item_price'] : intval($check_bid['co']); $row['end_price'] = $end_price; $row['bid_count'] = $check_bid['bc']; } $row['item_price'] = 'Rp. '.format_uang( $row['end_price'] , 0, ',', '.'); } else { $row['item_price'] = 'Rp. '.format_uang( $row['item_price'] , 0, ',', '.'); } $sale_end = strtotime($row['sale_end']); $bg_color = $row['is_diffcolor'] == 1 ? ' bgcolor="#eeeeee" ' : ''; if($i == 0) { $item_hot .= ''."\n"; } $item_hot .= ''; $i++; if($i == 6) { $item_hot .= ''."\n"; $i = 0; } } if($i > 0) { for($i=$i; $i<=5; $i++) { $item_hot .= ''."\n"; } $item_hot .= ''."\n"; } $item_hot .= '
'.$row['item_name'].'
'.$image.'
'.$row['item_price'].'
'; if( ($sale_end - $thestrtime) < 3600 && $row['sale_method'] == 1) { $item_hot .= ''.$timer.''; $count_down[$row['item_id']] = $sale_end; } else { $item_hot .= ''.$timer.''; } $item_hot .= '
 
'."\n"; } else { $item_hot .= '

Maaf belum terdapat barang untuk kategori ini.'; } ?> Rajalelang.com - Portal Lelang Online dan Jual Beli Terbesar di Indonesia - Online Auction and Online Shopping Portal
 
 
' : ' '; echo ''; } } ?>
 
 
Hot Product  
   
Lelang  
 
Jual  
     
'; while($row = mysql_fetch_assoc($res)) { $news_image = is_file('./upload/thumb_'. $row["mainimagename"].'') ? ''. $row[' : ''; echo ' '; } echo '
Berita  
 
Social Media  
 
         
  '.$news_image.'   '.$row['newstitle_en'].'
'.nl2br($row['newsopen_en']).'
 
         
'; } else { echo '

Maaf belum ada berita

'; } ?>