set('type', 'news_list'); $now = time(); $where = ''; $res = mysql_query("SELECT cat_id, category_text.cat_name, cat_ximg FROM category LEFT JOIN category_text ON ct_cat=cat_id AND ct_lang=$lang WHERE cat_list && cat_hidden=0{$where} ORDER BY cat_parent,cat_pos"); $i = 0; $N = count($news_bg); while ($rcat = @mysql_fetch_array($res)) { $j = 0; $tpl->clear('latest_item'); $j = make_news_list($tpl, $rcat['cat_id'], $GLOBALS['news_latest']); if ($j == 0) continue; $tpl->set($rcat); make_img($tpl, "ximg", "/upload/page/", $rcat['cat_ximg'], '', 'absmiddle'); $tpl->parse("latest_cat", ".latest_cat"); } @mysql_free_result($res); $tpl->parse("main", "main"); cache_store($tpl, "main"); } ?> CYPRUS MIRROR Daily News | LAST 24 HOURS