core/api/modules/tovar_cat/index.php

22 lines
910 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
ini_set('display_errors', 0 );
$smarty -> caching = true;
$smarty -> cache_lifetime = 3600;
//модуль отображает список страниц определенной категории
$mod = new main(BD_NAME, BD_TYPE, BD_HOST, BD_USER, BD_PWD, MOD);
$mod->db=$db;
$smarty->assign('page_info', @$mod->get_info(ID));//получаем инфо о категории
$smarty->assign('list', @$mod->get_sub_cats(ID, 'tovarCat'));//получаем дочерние категории
$smarty->assign('list2', @$mod->get_sub_cats(ID, 'tovar'));//получаем дочерние категории
/* ----------------------------------------------------------------------
19.09.2022
Узнаем обложку раздела
---------------------------------------------------------------------- */
$smarty->assign('oblozhka', @$mod->getOblozhka(ID));
?>