assign( 'list', 'api/modules/' . MOD . '/list.html' ); $massiv=\core::getContentCategory('bib', 0, 30, $_GET['id']); $smarty -> assign( 'list_cat', $massiv ); $smarty -> assign( 'all_cats', \DB::getAll( "SELECT `id`, `title` FROM `content_category` WHERE `content_type`=? AND `status`=?", array('bib', 1)) ); $_GET['id']=($_GET['id'])?$_GET['id']:0; $smarty -> assign( 'info', \DB::getRow( "SELECT `title`, `category` FROM `content_category` WHERE `id`=? AND `site`=?", array($_GET['id'], $_SERVER['SERVER_NAME'])) ); /* ---------------------------------------------------------------------- 18.11.2023 Получаем список книг ---------------------------------------------------------------------- */ $books = \DB::getAll( 'SELECT `id`, `title`, `json`, `status` FROM `content` WHERE `category`=? AND `site`=?', array($_GET['id'], $_SERVER['SERVER_NAME'])); for ($i=0; $i assign( 'books', $books); //print_r($massiv); $_SESSION['id']=($_GET['id']>0)?$_GET['id']:''; ?>