sql_query("SELECT id, title_".$_SESSION['site_lang']." AS title, sdesc_".$_SESSION['site_lang']." AS descr FROM simple_pages WHERE id = 1"); $data = $db->fetch(); $db->sql_query("SELECT id, title_".$_SESSION['site_lang']." AS title, desc_".$_SESSION['site_lang']." AS descr, pic0 FROM news WHERE publish_main=1 ORDER BY position"); $news = $db->fetched_array(); $db->sql_query("SELECT id, title_".$_SESSION['site_lang']." AS title, desc_".$_SESSION['site_lang']." AS descr FROM simple_pages3 ORDER BY position"); $pages = $db->fetched_array(); $smarty->clear_all_assign(); $smarty->assign('base', $basehref); $smarty->assign('path_news', $path_news); $smarty->assign('data', $data); $smarty->assign('pages', $pages); $smarty->assign('news', $news); $smarty->assign('lang', $_SESSION['site_lang']); $smarty->assign('curr_url', TPL_NAME); $smarty->display($_SESSION['site_lang'].'/'.TPL_NAME); ?>