Prihláste sa
$GLOBALS['xoopsTpl']->assign('subcategories', gallery_moto_get_sub_categories(0, $GLOBALS['cattree']));
$GLOBALS['xoopsTpl']->assign('category_options', gallery_moto_get_cat_options());
$criterib = new Criteria('`pid`', $parent_id, '=');
$criterib->setSort('cid');
$criterib->setOrder('DESC');