'; $trs=''; $tre=''; $tds=''; $tde=''; $tbs=''; $tbe='
'; echo $tbs; echo $trs.$tds1.'Indeks'.$tde.$tds1.'Nazwa'.$tde.$tds1.'Kategoria'.$tde.$tds1.'EAN'.$tde.$tre; $w=$GLOBALS['db']->query("select name,code,id,product_category_name,product_category_id from ecmproducts where product_active='1' and code!='' and code is not null order by code asc"); while($r=$GLOBALS['db']->fetchByAssoc($w)){ $ean=""; $eans=array(); $ww=$GLOBALS['db']->query("select ean from ecmproduct_language where ean!='' and ean is not null and ecmproduct_id='".$r['id']."'"); while($rr=$GLOBALS['db']->fetchByAssoc($ww)){ if($rr['ean'])$eans[$rr['ean']]=$rr['ean']; } $ean=implode("
",$eans); echo $trs.$tds.$r['code'].$tde.$tds.''.$r['name'].''.$tde.$tds.''.$r['product_category_name'].''.$tde.$tds.$ean.' '.$tde.$tre; } echo $tbe; ?>