select log('B2BLOG','[$username$]','[$wg$]:[$such$]','Artikelsuche', '[$mandant$]'); /shop/navileisteInc2.whtml /shop/checkSucheInc.whtml
select text from pgf_text where betreff='SHOPLIST1';
/shop/leftbarIncNEW.whtml

select distinct on (artwg) '', doif('[$withpic$]'='Mit Bildern',' '||pgf_wg.artbez||'', pgf_wg.wgktext),'  ', doif('[$wg$]'<>'','

Zurück zu: Alle Warengruppen - Gesamtübersicht

','') from pgf_artikel,pgf_wg where '[$picheader$]'='JA' and length(artwg)<>0 and pgf_wg.man='[$mandant$]' and pgf_wg.wg=artwg and pgf_wg.man=pgf_artikel.man and position(',' in artwg)=0 and pic_xs<>'' and (artwg='[$wg$]' or '[$wg$]'='') order by artwg,pgf_artikel.zustand desc;
 Ausgewählte Artikel
/shop/getRandomArtikel.whtml Select -- distinct on (substring(pgf_Artikel.artbez,4,length(pgf_Artikel.artbez))) distinct on --(pgf_Artikel.artbez) (substring(pgf_Artikel.artbez,0,3)||' 5'||substring( pgf_Artikel.artbez,5,length(pgf_Artikel.artbez))) '', '' from pgf_artikel,pgf_wg where pgf_wg.man='[$mandant$]' and active<>'0' and pgf_artikel.man='[$mandant$]' and position(','||pgf_wg.wg||',' in ','||artwg||',')>0 --and '[$username$]'=auth and ( ( ( position(upper('[$such$]') in upper(pgf_Artikel.artnr||pgf_Artikel.artbez||pgf_Artikel.arttext||pgf_Artikel.hl||pgf_artikel.hl2||pgf_wg.wgsuch))>0 or position(upper(pgfencode('[$such$]')) in upper(pgf_Artikel.artnr||pgf_Artikel.artbez||pgf_Artikel.arttext||pgf_Artikel.hl||pgf_artikel.hl2||pgf_wg.wgsuch))>0 ) or position(upper(replace('[$such$]',' ','')) in upper(pgf_Artikel.artnr||replace(pgf_Artikel.artbez,' ','')||pgf_Artikel.arttext))>0 -- or position('[$wordliste$]' in lower(pgf_Artikel.arttext))>0 ) and -- '[$such$]'='[\$such\$]' -- or ( ( length('[$such$]')>0 and '[$wg$]'='' ) or sub_search_or(replace('[$wg$]', ',' ,', '),artwg||',')<>-1) -- ('[$wg$]'<>'') and position(',[$wg$],' in ','||artwg||',')>0) ) -- order by substring(pgf_Artikel.artbez,4,length(pgf_Artikel.artbez)) order by --pgf_Artikel.artbez substring(pgf_Artikel.artbez,0,3)||' 5'||substring( pgf_Artikel.artbez,5,length(pgf_Artikel.artbez)) offset [$offset$] limit 25; -- or hl2 in ('Angebot','Billiger','NEU') order by lastviewed desc limit 1;
Ansicht Detailinformationen (Preise per Stück/Set/Pack)

-----------------------------------

Suchergebnis select doif('[$wg$]'<>'',' den Untergruppe(n) "[$wg$]":', 'aus allen Untergruppen:')

select '"',wgktext,'"   ' from pgf_wg where '[$wg$]'<>'' and sub_search_or(replace('[$wg$]', ',' ,', '),wg||',')<>-1      
select '
Suchbegriff: "[$such$]" ' where ('[$such$]'<>'[\$such\$]') and '[$such$]'<>''; - Gefundene Artikel:[$foundcount$]
[$seite$] [$thispage$] [$von$] [$pages$] select '           Blättern Sie hier: ', scrollbar('   [$withpic$]&wg=[$wg$]&such=[$such$]&offset=',25,numeric_part('0[$offset$]'),numeric_part('0[$foundcount$]')) where numeric_part('0[$pages$]')>1

select '

',wgktext,'

',wgltext,'
' from pgf_wg where wg='[$wg$]' and man='[$mandant$]';
select doif('[$wg$]'<>'','
Ich möchte in der gesamten Preisliste suchen', '') from pgf_wg where wg='[$wg$]';
', '', doif('[$withpic$]'='Mit Bildern' and pic_xs<>'', piclinks(pic_xs,'/artpics/'), doif(pic_xs='','kein Bild','Bilder ausgeschaltet')), doif(pgf_artikel.hl2<>'','

'||pgf_artikel.hl2||'

',''), '
Bestellen
Bestell-Nummer: ',pgf_Artikel.artbez, '
', replace_ignore_case(pgfencode(pgf_artikel.arttext), '[$such$]',''||upper('[$such$]')||''), doif(bestand=0,'
[$vergriffen$]',''), doif(bestand=-1,'
[$ausgelaufen$]',''), doif(bestand<-1,'
[$baldwieder$]',''), '
VPE: ',pgf_Artikel.vpe, '
Preis: ', -- trunc(pgf_Artikel.vpreis::numeric,2), trunc((pgf_Artikel.vpreis+5.5*(13*random()))::numeric,2), ' €', '
 Ausgewählte Artikel

select 'Gefundene Artikel:',count(distinct pgf_artikel.artbez) as foundcount, '
Sie befinden sich auf Seite:' as seite, numeric_part('0[$offset$]')/25+1 as thispage, ' von ' as von, count(distinct pgf_artikel.artbez)/25+1 as pages from pgf_artikel,pgf_wg where pgf_wg.man='[$mandant$]' and active<>'0' and pgf_artikel.man='[$mandant$]' and position(','||pgf_wg.wg||',' in ','||artwg||',')>0 --and '[$username$]'=auth and ( ( ( position(upper('[$such$]') in upper(pgf_Artikel.artnr||pgf_Artikel.artbez||pgf_Artikel.arttext||pgf_Artikel.hl||pgf_artikel.hl2||pgf_wg.wgsuch))>0 or position(upper(pgfencode('[$such$]')) in upper(pgf_Artikel.artnr||pgf_Artikel.artbez||pgf_Artikel.arttext||pgf_Artikel.hl||pgf_artikel.hl2||pgf_wg.wgsuch))>0 ) or position(upper(replace('[$such$]',' ','')) in upper(pgf_Artikel.artnr||replace(pgf_Artikel.artbez,' ','')||pgf_Artikel.arttext))>0 -- or position('[$wordliste$]' in lower(pgf_Artikel.arttext))>0 ) and -- '[$such$]'='[\$such\$]' -- or ( ( length('[$such$]')>0 and '[$wg$]'='' ) or sub_search_or(replace('[$wg$]', ',' ,', '),artwg||',')<>-1) -- ('[$wg$]'<>'') and position(',[$wg$],' in ','||artwg||',')>0) )
select '           Blättern Sie hier: ', scrollbar('   [$withpic$]&wg=[$wg$]&such=[$such$]&offset=',25,numeric_part('0[$offset$]'),numeric_part('0[$foundcount$]')) where numeric_part('0[$pages$]')>1 select '' where numeric_part('0[$foundcount$]]')>0
select '

Warengruppenliste

', '' from pgf_artlistcache where ('[$showliste$]'='JA' or '[$wg$]'='') and length(wg)<>0 and wgktext<>'' and man='[$mandant$]' ; select '
Anzahl / Gruppe Beschreibung' where '[$showliste$]'='JA' or '[$wg$]'=''; select check_artlistcache('[$mandant$]') select '
',lpad(acount,3,'0'),' ',wg as wg2,'', doif(level>0 and '[$showlevel$]'='t','('||level||') ',' '), '
', replace(substring('--------------',0,2*(0||artbez)::integer+1), '-','   '), '', doif(acount>0, '[$withpic$]>'||wgktext||'',''||wgktext||''), -- doif(wgltext<>'','
',''), -- wgltext, '
' where ('[$showliste$]'='JA' or '[$wg$]'='');
Ihre persönliche Kunden-Nummer: [$username$]

/shop/navi.whtml /shop/rightSucheInc.whtml