$cfg['from'],'toNumber'=>$cfg['number']), $order); $its = array(); foreach($rows as $row) { if ( $row['idx_category_type'] == CATE_MALL ) $row['url'] = "?cate=mall&mode=read&idx=$row[idx]"; $it = &$row; $image = NULL; $images = fileImages($it['idx'], NULL); if ( $images ) $image = $images[0]; if ( empty($image) ) { $image['url'] = "{$GLOBALS['sd']}/image_default.gif"; } $it['image'] = $image; $its [] = $it; } ?>