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
setQuery('SELECT id FROM jos_zoo_item where type="product" order by modified desc')->loadObjectList(); $m[]=""; $m[]=" "; foreach($list as $row) { $f=''; $list2 = $db->setQuery('SELECT c.params val FROM jos_zoo_category_item ci, jos_zoo_category c where ci.category_id=c.id and ci.item_id='.$row->id)->loadObjectList(); foreach($list2 as $row2) { if ($f=='') { $a=json_decode($row2->val,true); if ($a['metadata.title']=="Бизнес-планы") {$f='bp';} if ($a['metadata.title']=="Маркетинговые исследования") {$f='mi';} } } if ($f=='bp') { $item = $db->setQuery('SELECT id,name,modified,elements FROM jos_zoo_item where id='.$row->id)->loadObject(); $a=json_decode($item->elements,true); //С этим БП покупают if (count($a['89a94924-6bec-43db-953f-71e1be6570ed']['item'])<>0) { foreach($a['89a94924-6bec-43db-953f-71e1be6570ed']['item'] as $fld) { $linkwork = $db->setQuery('SELECT id,name FROM jos_zoo_item where id='.$fld)->loadObject(); $m[]=" "; } } //Другие версии работы if (count($a['7b18a4ef-f209-4c68-a854-03c04184955d']['item'])<>0) { foreach($a['7b18a4ef-f209-4c68-a854-03c04184955d']['item'] as $fld) { $linkwork = $db->setQuery('SELECT id,name FROM jos_zoo_item where id='.$fld)->loadObject(); $m[]=" "; } } //Связанная работа по фин. модели if (count($a['7b18a4ef-f209-4c68-a854-03c04184955d']['item'])<>0) { foreach($a['7b18a4ef-f209-4c68-a854-03c04184955d']['item'] as $fld) { $linkwork = $db->setQuery('SELECT id,name FROM jos_zoo_item where id='.$fld)->loadObject(); $m[]=" "; } } } } $m[]="
Тип связи ID Имя изменяемой работы Дата изменения >> ID Имя связанной работы
С этим БП покупают {$item->id} {$item->name} {$item->modified} >> {$linkwork->id} {$linkwork->name}
Другие версии работы {$item->id} {$item->name} {$item->modified} >> {$linkwork->id} {$linkwork->name}
Связанная работа по фин. модели {$item->id} {$item->name} {$item->modified} >> {$linkwork->id} {$linkwork->name}
"; return implode("\r\n",$m); }*/ static function getData( $params ) { $m=array(); $db = JFactory::getDbo(); //$list = $db->setQuery('SELECT * FROM jos_zoo_item where type="product"')->loadAssocList(); $m[]=""; return implode("\r\n",$m); } }