select('item', 'id = 157'); $menu = $p->select('list', 'l.parent = 157'); if(!$section) $section = $menu[0]['id']; if($subSection and $subSection != 'gallery') { $content = $p->select('item',"id = $subSection"); $content['subTitle'] = $content['title']; $content['title'] = $db->getOne("select title$langExt from pages where id = $section"); } elseif($subSection != 'gallery') { $k = $db->getOne("select l.child from links l left join pages p on p.id = l.child where l.parent = $section and p.visible = 1 order by p.ordnum asc limit 1"); if(is_numeric($k)) { $content = $p->select('item',"id = $k"); $subSection = $content['id']; } else { $content = $p->select('item',"id = $section "); } } foreach ($menu as $k => $v) { if($v['id'] == $section and is_numeric($section)) { $menu[$k]['subMenu'] = $p->select('listAll', "l.parent = $section and visible = 1"); $quickInfoInner = $menu[$k]['text']; } } $quickInfoHead = $headSection['text']; if (isset($section) and ($section == '176')) { $quickInfo = $quickInfoHead; } else { $quickInfo = $quickInfoInner; } if($subSection == '168' or $subSection == '179' or $subSection == '182') { $page = $_GET['subSection']; $PageTitleNew = $content['title']; $SubTitle= $content['subTitle']; include("gallery.php"); } else if($subSection == '167' or $subSection == '177' or $subSection == '180') { include("pricelist.php"); } else if($subSection == '169') { include("3D/marina_en/index.php"); } else if($subSection == '178') { include("3D/hillside_en/index.php"); } else if($subSection == '181') { include("3D/marina_en/index.php"); } else if($section == '171') { include("request.php"); } else if($section == '222') { include("print_3D.php"); } else include("inner.php"); include("includes/footer.php"); ?>