query('select NAME_'.strtoupper($l).' as NAME from '.$dbt['menu'].' where ID=\''.$idc.'\' limit 1'); $mtit=$db->fetchRow(); if(!isset($idc1) || trim($idc1)=='') { $db->query('select ID,NAME_'.strtoupper($l).' as CNAME from '.$dbt['menu2'].' where FKEY=\'a\' AND VISIBLE=1 '.(isset($idc) && trim($idc)!=''?'AND ID_PARENT=\''.$idc.'\' ORDER BY ':'ORDER BY ID_PARENT,').' ORD ASC LIMIT 1'); } else { $db->query('select ID,NAME_'.strtoupper($l).' as CNAME from '.$dbt['menu2'].' where FKEY=\'a\' AND VISIBLE=1 AND ID=\''.$idc1.'\' LIMIT 1'); } if($db->resultCount()>0) { $TopCaption=$db->fetchRow(); $idc1=$TopCaption['ID']; } ?>

query('select ID,AUXFILE,NAME_'.strtoupper($l).' as CNAME from '.$dbt['menu2'].' where FKEY=\'a\' AND VISIBLE=1 '.(isset($idc) && trim($idc)!=''?'AND ID_PARENT=\''.$idc.'\' ORDER BY ':'ORDER BY ID_PARENT,').' ORD ASC'); $SMenu=$db->getResult(); for($i=0;$i '.stripslashes($SMenu[$i]['CNAME']).''; } else { ?>
 
query('select ID from '.$dbt['types'].' where FKEY=\'a\' limit 1'); $idt=$db->fetchRow(); $db->query('select * from '.$dbt['tppub'].' where VISIBLE=1 AND ID_CAT=\''.$idc1.'\' and IDT=\''.$idt['ID'].'\''); $Items=$db->getResult(); ?>
 
()

'.$msg['address'].': '.stripslashes($Items[$j]['CFIELD1']).'
':'')?> '.$msg['tel'].' '.stripslashes($Items[$j]['CFIELD2']).'
':'')?> '.$msg['fax'].' '.stripslashes($Items[$j]['CFIELD3']).'
':'')?> '.$msg['email'].': '.stripslashes($Items[$j]['CFIELD4']).'
':'')?> '.$msg['site'].': '.stripslashes($Items[$j]['CFIELD5']).'':'')?>