lib('post');
lib('string');
lib('filesystem');
$kvs = $order = array();
$kvs['idx_category_type'] = CATE_BBS;
$kvs['idx_category_type cond'] = '=';
$order['hits'] = 'DESC';
$rows = articles(array(), $kvs, array('fromNumber'=>50,'toNumber'=>6), $order);
$its = array();
foreach($rows as $row)
{
$it = &$row;
$images = fileImages($it['idx'], NULL);
$image = $images[0];
if ( empty($image) )
{
$image['url'] = "$sd/image_default.gif";
}
$it['image'] = $image;
$its [] = $it;
}
?>
=$it[title]?>
=strcut(strip_tags($it[description]), 250)?>
}?>
skin_cache_end() ?>