';
if($r['super_promocja']=="tak")
echo'
';
if($r['ostatnie_sztuki']=="tak")
echo'
';
if ($r['promocja'] == 'tak')
{
echo '
';
}
if(isset($_SESSION['kosz']['di_'.$r['id']]))
echo'
';
if($r['nowosc']=="tak" and $r['nowosc_data']>=$data )
echo'
';
if(isset($_SESSION['kosz']['di_'.$r['id']]))
$sztuk=$_SESSION['kosz']['di_'.$r['id']];
else
$sztuk=0;
if (file_exists('foto/mini/'.$r['id_nasz'].'.jpg'))
{
if (file_exists('foto/'.$r['id_nasz'].'.jpg'))
{
echo '
';
}
else
{
echo '
';
}
}
elseif (file_exists('foto/mini/'.$r['id_nasz'].'.JPG'))
{
if (file_exists('foto/'.$r['id_nasz'].'.JPG'))
{
echo '
';
}
else
{
echo '
';
}
}
else
{}
/*
if (file_exists('foto/mini/'.$r['id_nasz'].'.jpg'))
{
echo '
';
}
else if (file_exists('foto/'.$foto_dir.'/mini/'.$r['id_nasz'].'.jpg'))
{
if (file_exists('foto/'.$foto_dir.'/'.$r['id_nasz'].'.jpg'))
{
echo '
';
}
else
{
echo '
';
}
}
*/
echo '
';
echo '
'.$r['nazwa'].' ';
echo '
'.$r['id_nasz'].'
';
if (isset($_SESSION['LogIn']) && isset($_SESSION['N_User']) && isset($_SESSION['N_id']))
{
//===== ceny hurtowe
if ($_SESSION['TYP']=='hurt')
{
echo '
'.$r['cena'].' zł netto + '.$vat.'% VAT
';
}
//===== ceny dla sklepow
else if ($_SESSION['TYP']=='sklep')
{
echo '
'.$r['cena_det'].' zł netto + '.$vat.'% VAT
';
}
//===== ceny detaliczne
else
{
echo '
'.cena_Brutto($r['cena_det'], $marza, $vat).' zł brutto
';
}
}
//===== ceny detaliczne
else
{
echo '
'.cena_Brutto($r['cena_det'], $marza, $vat).' zł brutto
';
}
//if ($r['ilosc'] == '0')
if ($r['dostepny'] == 'nie' and $r['dostepny_zawsze'] == 'nie')
{
echo '
niedostępny
';
}
else
{
echo '
'.$MSG_130.': '.$r['jm'].'
';
}
echo '
';
echo '