Lelang Online '; $sql = 'SELECT item_id FROM `item_list` WHERE sale_end > \''.$thetime.'\' AND sale_method=1 AND endstat=0 AND item_suspend=0 ORDER BY sale_end ASC '; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { $page = isset($_GET['page']) && intval($_GET['page']) >= 1 ? intval($_GET['page']):1; $perpage = 10; $pagination = paging($perpage, $num, $page, $param); $sql = 'SELECT * FROM `item_list` WHERE sale_end > \''.$thetime.'\' AND sale_method=1 AND endstat=0 AND item_suspend=0 ORDER BY sale_end ASC LIMIT '.$pagination['from'].', '.$perpage.' '; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { $item_lelang .= ''; $item_lelang .= ' '; $no = $pagination['from']+1; while($row = mysql_fetch_assoc($res)) { $image = $row['mainimagename'] != '' && is_file('./upload/thumb_'.$row['mainimagename']) ? ''.$row['mainimagename'].'' : ' '; $bgcolor = $bgcolor == 'style1' ? 'style2' : 'style1'; $sale_end = strtotime($row['sale_end']); $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']; } $item_lelang .= ' '; $no++; } $item_lelang .= '
Keterangan Barang Harga terakhir Waktu berakhir Detil
'.$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 .= ' '; $item_lelang .= 'Lihat detil..
'."\n"; } $item_lelang .= '

'.$pagination['first'].$pagination['prev'].''.$pagination['page'].''.$pagination['next'].$pagination['last'].'

'; } else { $item_lelang .= 'Maaf belum terdapat lelang untuk kategori ini. '; } $display = $item_lelang; ?> Rajalelang.com - Portal Lelang Online dan Jual Beli Barang Terbesar di Indonesia - Online Auction and Online Shopping Portal