Ejemplo n.º 1
0
<?php

if (!_acl::isAllow('catalog')) {
    die("Access denied");
}
$dbtree = new dbtree(_DB_PREFIX_ . 'category', 'category', $db);
unset($parsed_res);
$header = 'Выгрузка товаров';
$ii = count($GLOBALS['IERA_LINKS']);
$GLOBALS['IERA_LINKS'][$ii]['title'] = "Каталог";
$GLOBALS['IERA_LINKS'][$ii++]['url'] = '/adm/cat/';
$GLOBALS['IERA_LINKS'][$ii]['title'] = $header;
$tpl->Assign('h1', $header);
$list = $dbtree->GetActiveCats();
$tpl->Assign('category_list', $list);
$parsed_res = array('issuccess' => true, 'html' => $tpl->Parse($GLOBALS['PATH_tpl'] . 'unload_products.tpl'));
if (true == $parsed_res['issuccess']) {
    $tpl_center .= $parsed_res['html'];
}