Jual'; $sql = 'SELECT item_id FROM `item_list` WHERE sale_end > \''.$thetime.'\' AND sale_method=2 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=2 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_jual .= ''; $item_jual .= ' '; $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'])); $item_jual .= ' '; $no++; } $item_jual .= '
Keterangan Barang Harga Waktu berakhir Detil
'.$row['item_name'].'
'.$image.'
'.format_uang($row['item_price']).' '.$timer.' '; $item_jual .= 'Lihat detil..
'."\n"; } $item_jual .= '

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

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