assign( 'userInfo', \core::getUserInfo( $_SESSION['user_id'] ) ); $set['showNoPublic']=\core::getSettings('showNoPublic', 'a_tovar_cat'); /* ---------------------------------------------------------------------- 15.12.2022 Получаем список категорий ---------------------------------------------------------------------- */ $_GET['id'] = ($_GET['id']) ? $_GET['id'] : 0; $cats=\DB::getAll("SELECT `id`, `title` FROM `tovar_category` WHERE `status`=1 ORDER BY `title`"); for ( $i=0; $i assign( 'cats', $cats ); $smarty -> assign( 'cat_list', 'api/modules/' . MOD . '/cat_list.html' ); $smarty -> assign( 'pages_list', 'api/modules/' . MOD . '/pages_list.html' ); $smarty -> assign( 'modal_new_cat', 'api/modules/' . MOD . '/modal_new_cat.html' ); $smarty -> assign( 'modal_del_page', 'api/modules/' . MOD . '/modal_del_page.html' ); $smarty -> assign( 'set', $set ); ?>