Верхнее меню:

 
select("i_menu",array("menu"=>"top_menu","id_head"=>0),"id_sort"); while($res=mysql_fetch_array($select)) { $popup=$ob->select("i_menu",array("id_head"=>$res['id']),"id_sort"); echo ''; if(mysql_num_rows($popup)>0) { while($popup_res=mysql_fetch_array($popup)) { echo ''; } } } ?>
    '.$res['name'].'
   

Нижнее меню:

 
select("i_menu",array("menu"=>"bottom_menu","id_head"=>0),"id_sort"); while($res=mysql_fetch_array($select)) { $popup=$ob->select("i_menu",array("id_head"=>$res['id']),"id_sort"); echo ''; if(mysql_num_rows($popup)>0) { while($popup_res=mysql_fetch_array($popup)) { echo ''; } } } ?>
    '.$res['name'].'
   

КАТАЛОГ ТОВАРОВ


    '.$r["name_block"].' '; $sss=mysql_query("select * from i_block where id_section=".$r["id"]." order by id asc"); if ($sss) { while($rrr=mysql_fetch_array($sss)) { echo'    
    '.$rrr['name_block'].'
'; } } echo ''; } } ?>