Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
system->language->load('com_zoo');
// init vars
$path = dirname(__FILE__);
//register base path
$zoo->path->register($path, 'mod_zooitem');
$yucat=$params->get('yucat', "");
if (!empty($yucat) and !empty($_GET[category_id])) {
/*$db= &JFactory::getDBO();
$count='';
$ret='';
$field='val';
$db->setQuery("SELECT id as val FROM jos_zoo_category
WHERE parent={$_GET[category_id]} and name=\"{$yucat}\"", 0, $count);
$rows = $db->loadObjectList();
if (count($rows)<>0)
foreach ($rows as $row) {$ret=$row->$field;};
$params->set('category',$ret);*/
$db= &JFactory::getDBO();
$list = $db->setQuery("SELECT id FROM jos_zoo_category WHERE parent={$_GET[category_id]} and name=\"{$yucat}\"")->loadAssoc();
if ($list['id']=='')
{
$step1 = $db->setQuery("SELECT id FROM jos_zoo_category WHERE parent={$_GET[category_id]}")->loadAssoc();
if ($step1['id']<>'')
{
$list = $db->setQuery("SELECT id FROM jos_zoo_category WHERE parent={$step1['id']} and name=\"{$yucat}\"")->loadAssoc();
}
}
$params->set('category',$list['id']);
}
if ($application = $zoo->table->application->get($params->get('application', 0))) {
$items = $zoo->module->getItems($params);
// load template
if (!empty($items)) {
// set renderer
$renderer = $zoo->renderer->create('item')->addPath(array($zoo->path->path('component.site:'), dirname(__FILE__)));
$layout = $params->get('layout', 'default');
include(JModuleHelper::getLayoutPath('mod_zooitem', $params->get('theme', 'list')));
}
}