assign('orders', $orders); /* ---------------------------------------------------------------------- 24.06.2022 Получаем список своих организаций ---------------------------------------------------------------------- */ $myOrgs = \DB::getAll("SELECT * FROM `org` WHERE `id` IN (SELECT `org` FROM `users_orgs` WHERE `user`=?)", $_SESSION['user_id']); //print_r($myOrgs); $smarty->assign('myOrgs', $myOrgs); /* ---------------------------------------------------------------------- 15.10.2022 Получаем список регионов ---------------------------------------------------------------------- */ $strana_id = \core::getSettings('strana'); $region = \DB::getAll('SELECT * FROM `region` WHERE `strana_id` = ' . $strana_id); $smarty->assign('region', $region); /* ---------------------------------------------------------------------- 15.10.2022 Получаем список городов ---------------------------------------------------------------------- */ $city = \DB::getAll('SELECT * FROM `city` WHERE `strana_id` = ' . $strana_id); $smarty->assign('city', $city); /* ---------------------------------------------------------------------- 14.10.2022 Меню личного кабинета ---------------------------------------------------------------------- */ $smarty->assign('mnulk', 'skin/inc/mnulk.html'); /* ---------------------------------------------------------------------- 02.06.2022 Получаем информацию о пользователе ---------------------------------------------------------------------- */ $user_info = \DB::getAll('SELECT * FROM `users` WHERE `id` = ? LIMIT 1', $_SESSION['user_id']); $smarty->assign('user_info', $user_info); $userOption = \DB::getAll('SELECT * FROM `userOption` WHERE `user_id` = ' . $_SESSION['user_id'] . ' LIMIT 1'); $smarty->assign('userOption', $userOption); ?>