query('select * from ziar where VISIBLE=1 ORDER BY CREATED DESC LIMIT 1'); $ZiarID=$db->fetchRow(); }else{ $db->query('select * from ziar where VISIBLE=1 AND ID = \''.$zid.'\''); $ZiarID=$db->fetchRow(); } if(empty($zid)) { $db->query('select ID,NAME_'.strtoupper($l).' AS ZNAME,CREATED from '.$dbt['ziar'].' WHERE VISIBLE=1 ORDER BY CREATED DESC LIMIT 1'); } else { $db->query('select ID,NAME_'.strtoupper($l).' AS ZNAME,CREATED from '.$dbt['ziar'].' WHERE VISIBLE=1 AND ID=\''.trim($zid).'\' ORDER BY CREATED DESC LIMIT 1'); } if($db->resultCount()>0) { $FZiar=$db->fetchRow(); $idc1=$FZiar['ID']; $CDate=hDate($FZiar['CREATED']); } ?>
 
 
 
query('select NAME_'.strtoupper($l).' AS CNAME,FILE from '.$dbt['menu'].' where VISIBLE=1 AND ID=\''.$idc.'\' LIMIT 1'); $FMenu=$db->fetchRow(); } ?>

  
 
,
 Arhiva ziar
query('select *, NAME_RO AS CNAME from ziar_categorii where VISIBLE=1 ORDER BY ORD ASC'); $ZiarCat=$db->getResult(); for($i=0;$iquery('select * from ziar_articole WHERE VISIBLE=1 AND ID_ZIAR=\''.$ZiarID[ID].'\' AND ID_CAT = \''.$ZiarCat[$i][ID].'\' ORDER BY ORD ASC'); $ZiarArts=$db->getResult(); if($db->resultCount($ZiarArts)>0) { ?>
()