select('item', 'id = 5'); $menu = $p->select('list', 'l.parent = 5'); if(!$section) $section = $menu[0]['id']; if($subSection) { $content = $p->select('item',"id = $subSection"); $content['subTitle'] = $content['title']; $content['title'] = $db->getOne("select title$langExt from pages where id = $section"); } elseif ($section) { $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"); } $quickInfo = $headSection['text']; include("inner.php"); include("includes/footer.php"); ?>