assign( 'zametka', $zametka ); $smarty -> assign( 'userInfo', \core::getUserInfo( $_SESSION['user_id'] ) ); $tasks=\DB::getAll("SELECT * FROM `tasks` WHERE `user_id`=? OR `isp_id`=? ORDER BY `id` DESC LIMIT 10", array($_SESSION['user_id'], $_SESSION['user_id'])); $smarty -> assign( 'tasks', $tasks ); ?>