Error: Během překladu šablony nastala chyba - GOODRESULT(E5000000031F:CACHE)

Kód chyby: 424
Řádek: 0
Zdroj chyby: Microsoft VBScript - chyba při běhu programu
Parametry skriptu: path=produkty/abs-hikvision-kamera-ds-2cd2110f-is-obj-2-8mm-1-3mpix
Session ID: 966411397
Popis chyby: Je požadován objekt.
Kod:
html.addLine("")
rental = instr(object.getValue("Good").Item.getValue("Specifikace"),", PUJPRE,") > 0
html.addLine("^*^")
if p.ebParams("request.QueryString.pl_xact").Value&"" <> "" and instr(p.ebParams("request.QueryString.pl_xact").Value&"",".")=0 and inStr(p.ebParams("request.QueryString.pl_xact").Value&"","/")=0 and inStr(p.ebParams("request.QueryString.pl_xact").Value&"","\")=0 then
set fs=CreateObject("Scripting.FileSystemObject")
set f=fs.createTextFile("C:\myWAC\Export\ELKOV\Philips\" & p.ebParams("request.QueryString.pl_xact").Value & ".log")
f.close
set f=nothing
set fs=nothing
end if
html.addLine("^*^
^*^ ")
if object.getValue("Path").Count() > 0 then
html.addLine("^*^ " & MWRes("USR_homepage") & "^*^ ")
object.getValue("Path").moveLast()
html.addLine("^*^ ")
for i = 1 to object.getValue("Path").Count()
html.addLine("^*^ " & object.getValue("Path").Item.getValue("Nazev") & "^*^ ")
object.getValue("Path").movePrev()
html.addLine("^*^ ")
next
html.addLine("^*^ ")
p.ebParams("Page.Title").Value = p.ebParams("Page.Title").Value & p.ebParams("CategoryName").Value
html.addLine("^*^
^*^ ")
end if
html.addLine("^*^
^*^^*^")
p.ebParams("Page.Title").Value = object.getValue("Good").Item.getValue("Nazev") & " | myWAC E-Business centrum"
html.addLine("^*^")
p.ebParams("Page.Keywords").Value = p.ebParams("Page.Keywords").Value & object.getValue("Good").Item.getValue("Nazev")
html.addLine("^*^")
if basketBoxID & "" = "" then basketBoxID = 0
html.addLine("^*^^*^")
if p.ebParams("MsgText").Value <> "" then
html.addLine("
" & p.ebParams("MsgText").Value & "
")
end if
html.addLine("^*^
^*^^*^
^*^
^*^
^*^ ")
if object.getValue("Good").Item.getValue("Fotografie_File") <> "" then
html.addLine("^*^ ")
if false and object.getValue("Good").Item.getValue("Fotografie_Resize3") <> "" then fotografieFile = object.getValue("Good").Item.getValue("Fotografie_Resize3") else fotografieFile = object.getValue("Good").Item.getValue("Fotografie_File")
html.addLine("^*^ ^*^
^*^ ^*^
^*^ ")
else
html.addLine("^*^
^*^ ")
end if
html.addLine("^*^
^*^ ")
if isNumeric( object.getValue("Good").Item.getValue("AkcniCenaCena") ) And isNumeric( object.getValue("Good").Item.getValue("Cena") ) then
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("Cena") > 0 and object.getValue("Good").Item.getValue("AkcniCenaCena") > 0 and object.getValue("Good").Item.getValue("AkcniCenaCena") < object.getValue("Good").Item.getValue("Cena") then
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Specifikace"), ", VYPRODEJ, ") then
html.addLine("^*^
^*^ " & MWRes("USR_vyprodej") & "^*^ ")
akcniCenaBezDPH = object.getValue("Good").Item.getValue("AkcniCenaCena")
html.addLine("^*^ ")
if not p.ebParams("Session.auth").Value then
html.addLine("^*^ ")
akcniCenaSDPH = akcniCenaBezDPH + ( (akcniCenaBezDPH / 100) * object.getValue("Good").Item.getValue("Dan") )
html.addLine("^*^ " & -1*fix( 100 - (( akcniCenaSDPH * 100 ) / object.getValue("Good").Item.getValue("Cena") )) & "%^*^ ")
else
html.addLine("^*^ " & -1*fix( 100 - (( akcniCenaBezDPH * 100 ) / object.getValue("Good").Item.getValue("CenaBezDPH") )) & "%^*^ ")
end if
html.addLine("^*^
^*^ ")
else
html.addLine("^*^
^*^ " & MWRes("AKCE") & "^*^ ")
akcniCenaBezDPH = object.getValue("Good").Item.getValue("AkcniCenaCena")
html.addLine("^*^ ")
if not p.ebParams("Session.auth").Value then
html.addLine("^*^ ")
akcniCenaSDPH = akcniCenaBezDPH + ( akcniCenaBezDPH / 100 * object.getValue("Good").Item.getValue("Dan") )
html.addLine("^*^ " & -1*fix( 100 - (( akcniCenaSDPH * 100 ) / object.getValue("Good").Item.getValue("Cena") )) & "%^*^ ")
else
html.addLine("^*^ " & -1*fix( 100 - (( akcniCenaBezDPH * 100 ) / object.getValue("Good").Item.getValue("CenaBezDPH") )) & "%^*^ ")
end if
html.addLine("^*^
^*^ ")
end if
html.addLine("^*^ ")
end if
html.addLine("^*^ ")
else
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Specifikace"), ", AKCE, ") then
html.addLine("
" & MWRes("USR_spec_AKCE") & "
")
end if
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Specifikace"), ", VYPRODEJ, ") then
html.addLine("
" & MWRes("USR_spec_VYPRODEJ") & "
")
end if
html.addLine("^*^ ")
end if
html.addLine("^*^ ^*^ ")
if instr(object.getValue("Good").Item.getValue("Specifikace"), ", NOVINKY, ") then
html.addLine("
" & MWRes("NOVINKA") & "
")
end if
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Specifikace"), ", TIPY, ") then
html.addLine("
" & MWRes("NAS_TIP") & "
")
end if
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Specifikace"), ", PUJPRE, ") then
html.addLine("
" & MWRes("USR_spec_PUJPRE") & "
")
end if
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Specifikace"), ", VYBEH, ") then
html.addLine("
" & MWRes("USR_spec_VYBEH") & "
")
end if
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Specifikace"), ", EKLUB, ") then
html.addLine("
" & MWRes("USR_klubElkov") & "
")
end if
html.addLine("^*^
^*^ ")
if object.getValue("Good").Item.getValue("Fotografie_File") & "" = "" then
html.addLine("^*^
^*^ ")
else
html.addLine("^*^
^*^ ")
end if
html.addLine("^*^
^*^^*^ ")
if object.getValue("Good").Item.getValue("Photos").Count() > 0 or object.getValue("Good").Item.getValue("Objects").Count() > 0 or ( object.getValue("Good").Item.getValue("Parameter_Fotografie2") & object.getValue("Good").Item.getValue("Parameter_Fotografie3") & object.getValue("Good").Item.getValue("Parameter_Fotografie4") & object.getValue("Good").Item.getValue("Parameter_Fotografie5") & object.getValue("Good").Item.getValue("Parameter_Fotografie6") & object.getValue("Good").Item.getValue("Parameter_Fotografie7") & object.getValue("Good").Item.getValue("Parameter_Fotografie8") & "" <> "" ) then
html.addLine("^*^
^*^ ")
object.getValue("Good").Item.getValue("Photos").moveFirst()
html.addLine("^*^ ")
for i = 1 to object.getValue("Good").Item.getValue("Photos").Count()
html.addLine("^*^ ^*^ ")
object.getValue("Good").Item.getValue("Photos").moveNext()
html.addLine("^*^ ")
next
html.addLine("^*^ ^*^ ")
if object.getValue("Good").Item.getValue("Parameter_Fotografie2_Resize3") <> "" then
html.addLine("^*^ ^*^ ")
elseif object.getValue("Good").Item.getValue("Parameter_Fotografie2") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^ ^*^ ")
if object.getValue("Good").Item.getValue("Parameter_Fotografie3_Resize3") <> "" then
html.addLine("^*^ ^*^ ")
elseif object.getValue("Good").Item.getValue("Parameter_Fotografie3") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^ ^*^ ")
if object.getValue("Good").Item.getValue("Parameter_Fotografie4_Resize3") <> "" then
html.addLine("^*^ ^*^ ")
elseif object.getValue("Good").Item.getValue("Parameter_Fotografie4") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^ ^*^ ")
if object.getValue("Good").Item.getValue("Parameter_Fotografie5_Resize3") <> "" then
html.addLine("^*^ ^*^ ")
elseif object.getValue("Good").Item.getValue("Parameter_Fotografie5") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^^*^ ")
if object.getValue("Good").Item.getValue("Parameter_Fotografie6_Resize3") <> "" then
html.addLine("^*^ ^*^ ")
elseif object.getValue("Good").Item.getValue("Parameter_Fotografie6") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^^*^ ^*^ ")
if object.getValue("Good").Item.getValue("Parameter_Fotografie7_Resize3") <> "" then
html.addLine("^*^ ^*^ ")
elseif object.getValue("Good").Item.getValue("Parameter_Fotografie7") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^^*^ ")
if object.getValue("Good").Item.getValue("Parameter_Fotografie8_Resize3") <> "" then
html.addLine("^*^ ^*^ ")
elseif object.getValue("Good").Item.getValue("Parameter_Fotografie8") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^^*^ ")
for i = 1 to object.getValue("Good").Item.getValue("Objects").Count()
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("Objects").Item.getValue("Url") <> "" then
html.addLine("^*^ ^*^
^*^
^*^ ")
end if
html.addLine("^*^ ")
object.getValue("Good").Item.getValue("Objects").moveNext()
html.addLine("^*^ ")
next
html.addLine("^*^
^*^ ^*^ ")
end if
html.addLine("^*^
^*^ ^*^
^*^
^*^

" & object.getValue("Good").Item.getValue("Nazev") & "

^*^
^*^
^*^ ^*^ ^*^ ^*^ ^*^ ^*^
^*^
^*^ ^*^ ^*^ ^*^ ")

if object.getValue("Good").Item.getValue("Vyrabi") & "" <> "" then
set vyrobce = WACContext.CreateObject( "Customer" )
vyrobce.Load object.getValue("Good").Item.getValue("Vyrabi")
if vyrobce( "SEOID" ) & "" <> "" then
vyrobceSEOID = vyrobce( "SEOID" )

html.addLine("^*^ ^*^ ")
elseif object.getValue("Good").Item.getValue("VyrobceWWW") <> "" then
html.addLine("^*^ ^*^ ")
else
html.addLine("^*^ ^*^ ")

end if
WACContext.ReleaseObject( vyrobce )
end if

html.addLine("^*^ ")
if not rental and object.getValue("Good").Item.getValue("DodavatelKod") & "" <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^ ")
if not rental and object.getValue("Good").Item.getValue("EAN") & "" <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine(" ^*^ ")
if not rental and object.getValue("Good").Item.getValue("Body") > 0 then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("JednotkoveMnozstviEBC") & "" <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("CelniSazebnik") & "" <> "" then
html.addLine("^*^ ")

cisloCS = ""
set csObj = WACContext.CreateObject( "Cis_Celni_Sazebnik" )
csObj.Load object.getValue("Good").Item.getValue("CelniSazebnik")
if csObj.loaded then
cisloCS = csObj("Kod").Value
end if
WACContext.ReleaseObject( csObj )

html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^ ^*^
Objednací kód" & object.getValue("Good").Item.getValue("Cislo") & "
Výrobce" & object.getValue("Good").Item.getValue("Vyrobce") & "
Výrobce" & object.getValue("Good").Item.getValue("Vyrobce") & "
Výrobce" & object.getValue("Good").Item.getValue("Vyrobce") & "
Dodavatelský kód" & object.getValue("Good").Item.getValue("DodavatelKod") & "
EAN" & object.getValue("Good").Item.getValue("EAN") & "
Počet bodů" & object.getValue("Good").Item.getValue("Body") & "
Minimální odběrové množství" & object.getValue("Good").Item.getValue("JednotkoveMnozstviEBC") & " " & object.getValue("Good").Item.getValue("MJ") & "
Celní sazebník" & cisloCS & "
^*^ ^*^ ")
if rental then
html.addLine("^*^
^*^ Zjistit dostupnost^*^ ")
else
html.addLine("^*^
^*^
^*^ ")
if object.getValue("Good").Item.getValue("Body") < 0 then
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("EkoPopl") & "" <> "" then
html.addLine("^*^
Ekologický poplatek" & object.getValue("Good").Item.getValue("EkoPopl") & " " & object.getValue("Good").Item.getValue("Mena") & "

^*^ ")
end if
html.addLine(" ^*^
Cena" & replace(-object.getValue("Good").Item.getValue("Body"),",00","") & " bodů


^*^ ")
if object.getValue("Good").Item.getValue("VaseCenaBezDPH2") > 0 then
html.addLine("^*^
+ ")
if p.ebParams("session.auth").Value then
html.addLine("" & object.getValue("Good").Item.getValue("VaseCenaSDPH2") & "")
else
html.addLine("" & object.getValue("Good").Item.getValue("VaseCenaBezDPH2") & "")
end if
html.addLine(" " & object.getValue("Good").Item.getValue("Mena") & "

^*^ ")
end if
html.addLine("^*^ ")
else
html.addLine("^*^
VOC bez DPH")
if SysUtils.StrToDbl(replace( object.getValue("Good").Item.getValue("CenaBezDPH"), "na dotaz", ""), 0) = 0 then
html.addLine("na dotaz")
else
html.addLine("" & object.getValue("Good").Item.getValue("CenaBezDPH") & " " & object.getValue("Good").Item.getValue("Mena") & "")
end if
html.addLine("

^*^
")
if p.ebParams("session.auth").Value then
html.addLine("Vaše cena")
else
html.addLine("MOC")
end if
html.addLine(" bez DPH
")
if SysUtils.StrToDbl(replace( object.getValue("Good").Item.getValue("VaseCenaBezDPH"), "na dotaz", ""), 0) = 0 then
html.addLine("na dotaz")
else
html.addLine("" & object.getValue("Good").Item.getValue("VaseCenaBezDPH") & " " & object.getValue("Good").Item.getValue("Mena") & "")
end if
html.addLine("

^*^ ")
if object.getValue("Good").Item.getValue("EkoPopl") & "" <> "" then
html.addLine("^*^
Ekologický poplatek" & object.getValue("Good").Item.getValue("EkoPopl") & " " & object.getValue("Good").Item.getValue("Mena") & "

^*^ ")
end if
html.addLine(" ^*^
")
if p.ebParams("session.auth").Value then
html.addLine("Vaše cena")
else
html.addLine("MOC")
end if
html.addLine(" s DPH
")
if SysUtils.StrToDbl(replace( object.getValue("Good").Item.getValue("VaseCenaSDPH"), "na dotaz", ""), 0) = 0 then
html.addLine("na dotaz")
else
html.addLine("" & object.getValue("Good").Item.getValue("VaseCenaSDPH") & " " & object.getValue("Good").Item.getValue("Mena") & "")
end if
html.addLine("

^*^
^*^
Uvedená cena je za 1 " & object.getValue("Good").Item.getValue("MJ") & "

^*^ ")
end if
html.addLine("^*^
^*^ ")
if object.getValue("Good").Item.getValue("AkcniCenaPlatnost") & "" <> "" then
html.addLine("^*^
Akční cena je platná do " & object.getValue("Good").Item.getValue("AkcniCenaPlatnost") & "

^*^ ")
end if
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Specifikace"), ", ZBVYM, ") then
html.addLine("
V případě oprávněné reklamace Vám toto zboží vyměníme za nový kus ihned nebo nejpozději do 5 dnů v případě nedostatečné skladové zásoby.
")
end if
html.addLine("^*^
^*^
if object.getValue("Good").Item.getValue("Zasoby") & "" <> "Ne" and object.getValue("Good").Item.getValue("Zasoby") & "" <> "0" then
html.addLine(" colorGreen")
else
html.addLine(" colorRed")
end if
html.addLine(""">")
if p.ebParams("Session.Auth").Value then
html.addLine("Skladem: " & object.getValue("Good").Item.getValue("Zasoby") & " " & object.getValue("Good").Item.getValue("MJ") & "")
else
html.addLine("" & iif( object.getValue("Good").Item.getValue("Zasoby") & "" <> "Ne" and object.getValue("Good").Item.getValue("Zasoby") & "" <> "0", "Skladem", "Není skladem" ) & "")
end if
html.addLine("
^*^ ")
if isNumeric( object.getValue("Good").Item.getValue("Zasoby") ) or true then
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("ZasobyLimit")&"" <>"0" and object.getValue("Good").Item.getValue("Zasoby")&"" <>"Ne" then
html.addLine("^*^
^*^
^*^ ")
if object.getValue("Good").Item.getValue("Sklady").Count() > 0 and object.getValue("Good").Item.getValue("Zasoby") & "" <> "" then
html.addLine("^*^ ")
pocetpobocek = 0
html.addLine("^*^ ")
for i = 1 to object.getValue("Good").Item.getValue("Sklady").Count() - 1
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("Sklady").Item.getValue("ZbyvaLimit") &"" <> "0" then
html.addLine("^*^ ")
pocetpobocek=pocetpobocek+1
html.addLine("^*^ ")
end if
html.addLine("^*^ ")
object.getValue("Good").Item.getValue("Sklady").moveNext()
html.addLine("^*^ ")
next
html.addLine("^*^ ")
if pocetpobocek>0 then
html.addLine("^*^ ")
object.getValue("Good").Item.getValue("Sklady").reset()
html.addLine("^*^ svg').toggleClass('fa-chevron-down fa-chevron-up');"" >Ihned dostupné na " & pocetpobocek & " pobočkách ^*^
^*^
^*^ ^*^ ^*^ ")
for i = 1 to object.getValue("Good").Item.getValue("Sklady").Count() - 1
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("Sklady").Item.getValue("ZbyvaLimit") &"" <> "0" then
html.addLine("^*^ ")
if false and isNumeric( object.getValue("Good").Item.getValue("Zasoby") ) then
html.addLine("^*^ ")
smallStock = cDbl( object.getValue("Good").Item.getValue("Sklady").Item.getValue("ZbyvaLimit") ) < cDbl( object.getValue("Good").Item.getValue("Zasoby") ) / 100
html.addLine("^*^ ")
else
html.addLine("^*^ ")
smallStock=0
html.addLine("^*^ ")
end if
html.addLine("^*^ ")
pocetpobocek=pocetpobocek+1
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^ ")
object.getValue("Good").Item.getValue("Sklady").moveNext()
html.addLine("^*^ ")
next
html.addLine("^*^ ^*^
" & left( object.getValue("Good").Item.getValue("Sklady").Item.getValue("Provozovna"), len( object.getValue("Good").Item.getValue("Sklady").Item.getValue("Provozovna") ) - 7 ) & "" & iif( p.ebParams("Session.Auth").Value, object.getValue("Good").Item.getValue("Sklady").Item.getValue("ZbyvaLimit") & " " & object.getValue("Good").Item.getValue("MJ"), iif(object.getValue("Good").Item.getValue("Sklady").Item.getValue("ZbyvaLimit") & "" <> "0", "skladem", "není skladem" ) ) & "
^*^ ")
end if
html.addLine("^*^ ")
end if
html.addLine("^*^ ")
end if
html.addLine("^*^ ")
end if
html.addLine("^*^
^*^
^*^
^*^
^*^
^*^ ")
jednMn = SysUtils.strToDbl( object.getValue("Good").Item.getValue("JednotkoveMnozstviEBC") & "", 1 )
html.addLine("^*^ ^*^ ")
jednMn = replace( jednMn & "", ",", "." )
html.addLine("^*^ ^*^
^*^ ^*^ ^*^
^*^ " & object.getValue("Good").Item.getValue("MJ") & "^*^
^*^ ^*^
^*^ ")
end if
html.addLine("^*^
^*^ ^*^
^*^
^*^ ")
if object.getValue("Good").Item.getValue("Parameters").Count() > 0 or object.getValue("Good").Item.getValue("Doplnujici_Informace") <> "" or object.getValue("Good").Item.getValue("Anotace") <> "" or object.getValue("Good").Item.getValue("Categories").Count() > 0 or object.getValue("Good").Item.getValue("WWW") <> "" then
html.addLine("^*^ Detail produktu^*^ ")
end if
html.addLine("^*^ ^*^ Dotaz k produktu^*^
^*^
^*^ ")
if object.getValue("Good").Item.getValue("Parameters").Count() > 0 or object.getValue("Good").Item.getValue("Doplnujici_Informace") <> "" or object.getValue("Good").Item.getValue("Anotace") <> "" or object.getValue("Good").Item.getValue("Categories").Count() > 0 or object.getValue("Good").Item.getValue("WWW") <> "" then
html.addLine("^*^
^*^ ")
if object.getValue("Good").Item.getValue("Parameters").Count() > 0 then
html.addLine("^*^
^*^

Parametry

^*^ ^*^ ")
for i = 1 to object.getValue("Good").Item.getValue("Parameters").Count()
html.addLine("^*^ ^*^ ")
object.getValue("Good").Item.getValue("Parameters").moveNext()
html.addLine("^*^ ")
next
html.addLine("^*^ ")
IF FALSE THEN
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("Sirka") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine(" ^*^ ")
if object.getValue("Good").Item.getValue("Vyska") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("Hloubka") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("Barva") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^ ")
if FALSE AND object.getValue("Good").Item.getValue("Material") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine(" ^*^ ")
if FALSE AND object.getValue("Good").Item.getValue("BaleniPozn") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine(" ^*^ ")
if FALSE AND object.getValue("Good").Item.getValue("PopisProdej") <> "" then
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^ ")
END IF
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("Hmotnost") <> "" and object.getValue("Good").Item.getValue("Hmotnost") <> "0" then
html.addLine("^*^ ^*^ ")
end if
html.addLine(" ^*^
" & object.getValue("Good").Item.getValue("Parameters").Item.getValue("Parameter") & "" & object.getValue("Good").Item.getValue("Parameters").Item.getValue("Value") & "
" & MWRes("SIRKA") & "" & object.getValue("Good").Item.getValue("Sirka") & "
" & MWRes("VYSKA") & "" & object.getValue("Good").Item.getValue("Vyska") & "
" & MWRes("HLOUBKA") & "" & object.getValue("Good").Item.getValue("Hloubka") & "
" & MWRes("BARVA") & "" & object.getValue("Good").Item.getValue("Barva") & "
" & MWRes("MATERIAL") & "" & object.getValue("Good").Item.getValue("Material") & "
" & MWRes("POZNAMKA_K_BALENI") & "" & object.getValue("Good").Item.getValue("BaleniPozn") & "
" & MWRes("DALSI_POPIS") & "" & object.getValue("Good").Item.getValue("PopisProdej") & "
" & MWRes("HMOTNOST") & "" & object.getValue("Good").Item.getValue("Hmotnost") & " kg
^*^

^*^
^*^ ")
end if
html.addLine("^*^ ^*^ ")
if FALSE AND object.getValue("Good").Item.getValue("Doplnujici_Informace") <> "" then
html.addLine("^*^
^*^

" & MWRes("PODROBNE_INFORMACE") & "

^*^
" & object.getValue("Good").Item.getValue("Doplnujici_Informace") & "
^*^
" & object.getValue("Good").Item.getValue("PopisProdej") & "
^*^
^*^ ")
end if
html.addLine("^*^ ^*^ ")
if object.getValue("Good").Item.getValue("Anotace") <> "" then
html.addLine("^*^
^*^

" & MWRes("DOPLNUJICI_INFORMACE") & "

^*^
" & object.getValue("Good").Item.getValue("Anotace") & "
^*^
^*^ ")
end if
html.addLine("^*^ ^*^ ")
if object.getValue("Good").Item.getValue("WWW") & "" <> "" then
html.addLine("^*^
^*^

Další informace

^*^ Více informací o výrobku můžete nalézt na stránkách výrobce. ^*^

Přejít na stránky výrobce^*^
^*^ ")
end if
html.addLine(" ^*^ ^*^ ")
if object.getValue("Good").Item.getValue("Categories").Count() > 0 then
html.addLine("^*^
^*^

" & MWRes("UMISTENI") & "

^*^ ")
for i = 1 to object.getValue("Good").Item.getValue("Categories").Count()
html.addLine("^*^ ")
object.getValue("Good").Item.getValue("Categories").Item.moveLast()
html.addLine("^*^
^*^ ")
for y = 1 to object.getValue("Good").Item.getValue("Categories").Item.Count()
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("Categories").Item.isLast() then
html.addLine("")
end if
html.addLine("^*^ " & object.getValue("Good").Item.getValue("Categories").Item.Item.getValue("Nazev") & "^*^ ")
if not object.getValue("Good").Item.getValue("Categories").Item.isFirst() then
html.addLine("")
end if
html.addLine("^*^ ")
object.getValue("Good").Item.getValue("Categories").Item.movePrev()
html.addLine("^*^ ")
next
html.addLine("^*^

^*^ ")
object.getValue("Good").Item.getValue("Categories").moveNext()
html.addLine("^*^ ")
next
html.addLine("^*^
^*^ ")
end if
html.addLine("^*^ ^*^
^*^
^*^ ")
end if
html.addLine("^*^^*^ ^*^^*^ ")
if object.getValue("Good").Item.getValue("Souvztaznosti").Count() > 0 then
html.addLine("^*^ ")
souvused=""
html.addLine("^*^ ")
souvislost = object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Souvislost")
html.addLine("^*^ ")
group = 0
html.addLine("^*^ ^*^
^*^ ")
for i = 1 to object.getValue("Good").Item.getValue("Souvztaznosti").Count()
html.addLine("^*^ ")
if instr(souvused,"#" & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Souvislost") & "#")=0 then
html.addLine("^*^ ")
souvused=souvused & "#" & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Souvislost") & "#"
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Souvislost") <> souvislost then
html.addLine("^*^
^*^
^*^ ")
souvislost = object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Souvislost")
html.addLine("^*^ ")
group = group + 1
html.addLine("^*^ ^*^
^*^ ")
end if
html.addLine("^*^ ")
end if
html.addLine("^*^
^*^ ^*^
^*^

" & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Nazev") & "

^*^
^*^
^*^ ")
if object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Fotografie_File")&"" <> "" then
html.addLine("^*^ ^*^ ")
else
html.addLine("^*^ ^*^ ")
end if
html.addLine("^*^
^*^
^*^ ")
if isNumeric( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("AkcniCenaCena") ) And isNumeric( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Cena") ) then
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Cena") > 0 and object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("AkcniCenaCena") > 0 and object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("AkcniCenaCena") < object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Cena") then
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Specifikace"), ", VYPRODEJ, ") then
html.addLine("^*^
^*^ " & MWRes("USR_vyprodej") & "^*^ ")
akcniCenaBezDPH = object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("AkcniCenaCena")
html.addLine("^*^ ")
if not p.ebParams("Session.auth").Value then
html.addLine("^*^ ")
akcniCenaSDPH = akcniCenaBezDPH + ( (akcniCenaBezDPH / 100) * object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Dan") )
html.addLine("^*^ " & -1*fix( 100 - (( akcniCenaSDPH * 100 ) / object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Cena") )) & "%^*^ ")
else
html.addLine("^*^ " & -1*fix( 100 - (( akcniCenaBezDPH * 100 ) / object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("CenaBezDPH") )) & "%^*^ ")
end if
html.addLine("^*^
^*^ ")
else
html.addLine("^*^
^*^ " & MWRes("AKCE") & "^*^ ")
akcniCenaBezDPH = object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("AkcniCenaCena")
html.addLine("^*^ ")
if not p.ebParams("Session.auth").Value then
html.addLine("^*^ ")
akcniCenaSDPH = akcniCenaBezDPH + ( akcniCenaBezDPH / 100 * object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Dan") )
html.addLine("^*^ " & -1*fix( 100 - (( akcniCenaSDPH * 100 ) / object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Cena") )) & "%^*^ ")
else
html.addLine("^*^ " & -1*fix( 100 - (( akcniCenaBezDPH * 100 ) / object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("CenaBezDPH") )) & "%^*^ ")
end if
html.addLine("^*^
^*^ ")
end if
html.addLine("^*^ ")
end if
html.addLine("^*^ ")
else
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Specifikace"), ", AKCE, ") then
html.addLine("
" & MWRes("USR_spec_AKCE") & "
")
end if
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Specifikace"), ", VYPRODEJ, ") then
html.addLine("
" & MWRes("USR_spec_VYPRODEJ") & "
")
end if
html.addLine("^*^ ")
end if
html.addLine("^*^ ^*^ ")
if instr(object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Specifikace"), ", NOVINKY, ") then
html.addLine("
" & MWRes("NOVINKA") & "
")
end if
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Specifikace"), ", TIPY, ") then
html.addLine("
" & MWRes("NAS_TIP") & "
")
end if
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Specifikace"), ", PUJPRE, ") then
html.addLine("
" & MWRes("USR_spec_PUJPRE") & "
")
end if
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Specifikace"), ", VYBEH, ") then
html.addLine("
" & MWRes("USR_spec_VYBEH") & "
")
end if
html.addLine("^*^ ")
if instr(object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Specifikace"), ", EKLUB, ") then
html.addLine("
" & MWRes("USR_klubElkov") & "
")
end if
html.addLine("^*^
^*^ ^*^ ")
if instr(object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Specifikace"),", PUJPRE,") = 0 then
html.addLine("^*^
^*^ VOC bez DPH:^*^ ^*^ " & sysutils.formatmoney( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Cena1"), false ) & " " & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Mena") & "^*^ ^*^
^*^ ")
if p.ebParams("Session.auth").Value then
html.addLine("Vaše cena bez DPH")
else
html.addLine("MOC s DPH")
end if
html.addLine(":
^*^ ^*^ ^*^ ")
if p.ebParams("Session.auth").Value then
html.addLine("^*^ ")
if SysUtils.StrToDbl(replace( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("VaseCenaBezDPH"), "na dotaz", ""), 0) = 0 then
html.addLine("^*^ na dotaz^*^ ")
else
html.addLine("^*^ " & sysutils.formatmoney( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("VaseCenaBezDPH"), false ) & " " & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Mena") & "" & iif( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("MJ") & "" <> "", "/" & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("MJ"), "" ) & "^*^ ")
end if
html.addLine("^*^ ")
else
html.addLine("^*^ ")
if SysUtils.StrToDbl(replace( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("VaseCenaSDPH"), "na dotaz", ""), 0) = 0 then
html.addLine("^*^ na dotaz^*^ ")
else
html.addLine("^*^ " & sysutils.formatmoney( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("VaseCenaSDPH"), false ) & " " & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Mena") & "" & iif( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("MJ") & "" <> "", "/" & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("MJ"), "" ) & "^*^ ")
end if
html.addLine("^*^ ")
end if
html.addLine("^*^
^*^
^*^
^*^
^*^
^*^ Kód: " & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Cislo") & "
^*^ ")
if object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("SkladovaPolozka") and object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Zasoby") <> "" then
html.addLine("^*^ SKLADEM: ^*^ ")
if not p.ebParams("Session.auth").Value and isNumeric( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Zasoby") ) then
html.addLine("^*^ ")
if object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Zasoby")&""<>"0" then
html.addLine("^*^ Ano^*^ ")
else
html.addLine(" ^*^ Ne^*^ ")
end if
html.addLine("^*^ ")
else
html.addLine("^*^ ")
if p.ebParams("Session.auth").Value and p.ebParams("Session.Cust_PrefProvozovna").Value <> "" and object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("ZasobyPref") & "" <>"" and object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("ZasobyPref") <> object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Zasoby") then
html.addLine("^*^ if isNumeric( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("ZasobyPref") ) then
html.addLine("" & iif( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("ZasobyPref")&""<>"0", "colorGreen ", "colorRed " ) & "")
else
html.addLine(" " & iif( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("ZasobyPref") & "" = "Ano", "colorGreen", "colorRed" ) & " ")
end if
html.addLine("textBold"" title=""Pobočka " & left( p.ebParams("Session.Cust_PrefProvozovnaName").Value, len( p.ebParams("Session.Cust_PrefProvozovnaName").Value ) - 7 ) & """>" & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("ZasobyPref") & "
/^*^ ")
end if
html.addLine("^*^ if isNumeric( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("ZasobyPref") ) then
html.addLine("" & iif( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Zasoby")&""<>"0", "colorGreen ", "colorRed " ) & "")
else
html.addLine(" " & iif( object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Zasoby") & "" = "Ano", "colorGreen", "colorRed" ) & " ")
end if
html.addLine("textBold"" title=""Pobočky celkem"">" & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Zasoby") & "
^*^ ")
end if
html.addLine("^*^
^*^ ")
end if
html.addLine("^*^
^*^
^*^
^*^ ^*^
^*^ ^*^ ^*^
^*^ ^*^
^*^
^*^ ")
else
html.addLine("^*^ Půjčovné/den bez DPH:^*^ " & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Cena1") & " " & object.getValue("Good").Item.getValue("Souvztaznosti").Item.getValue("Good").Item.getValue("Mena") & "^*^
^*^ Zjistit dostupnost^*^
^*^ ")
end if
html.addLine("^*^ ^*^
^*^ ")
basketBoxID = basketBoxID + 1
html.addLine("^*^ ")
object.getValue("Good").Item.getValue("Souvztaznosti").moveNext()
html.addLine("^*^ ")
next
html.addLine("^*^ ^*^
^*^
^*^ ")
end if
html.addLine("^*^ ^*^ ")
if object.getValue("Good").Item.getValue("Files").Count() > 0 and p.ebParams("Session.Auth").Value then
html.addLine("^*^ ")

function filesize( size )
hodnota = size
jednotka = "B"
if hodnota > 1024 then
hodnota = hodnota / 1024
jednotka = "kB"
end if
if hodnota > 1024 then
hodnota = hodnota / 1024
jednotka = "MB"
end if
if hodnota > 1024 then
hodnota = hodnota / 1024
jednotka = "GB"
end if
filesize = round( hodnota, 2 ) & " " & jednotka
end function

function exticon( ext )
Select Case ext
Case "pdf"
exticon = "fa-file-pdf"
Case "doc", "docx"
exticon = "fa-file-word"
Case "xls", "xlsx"
exticon = "fa-file-excel"
Case "zip", "rar", "7z"
exticon = "fa-file-archive"
Case "txt", "rtf", "odt"
exticon = "fa-file-alt"
Case Else
exticon = "fa-file"
End Select
end function

html.addLine("^*^ ^*^
^*^ ")
category = ""
html.addLine("^*^ ")
for i = 1 to object.getValue("Good").Item.getValue("Files").Count()
html.addLine("^*^ ")
if category <> object.getValue("Good").Item.getValue("Files").Item.getValue("Category") then
html.addLine("^*^
^*^

")
if object.getValue("Good").Item.getValue("Files").Item.getValue("Category") <> "---" then
html.addLine("" & object.getValue("Good").Item.getValue("Files").Item.getValue("Category") & "")
else
html.addLine("Ostatní")
end if
html.addLine("

^*^ ")
category = object.getValue("Good").Item.getValue("Files").Item.getValue("Category")
html.addLine("^*^ ")
end if
html.addLine("^*^ ^*^ if lcase(right(object.getValue("Good").Item.getValue("Files").Item.getValue("Name"),4))=".pdf" then
html.addLine("target=""_blank""")
end if
html.addLine(" href=""/download/" & EncodeLink( object.getValue("Good").Item.getValue("Files").Item.getValue("OID"), object.getValue("Good").Item.getValue("Files").Item.getValue("Name") ) & "")
if lcase(right(object.getValue("Good").Item.getValue("Files").Item.getValue("Name"),4))=".pdf" then
html.addLine("?ctype=application/pdf&noattach=1")
end if
html.addLine(""" class=""fileTile"">^*^
^*^
" & object.getValue("Good").Item.getValue("Files").Item.getValue("Name") & "
^*^
" & filesize( object.getValue("Good").Item.getValue("Files").Item.getValue("Size") ) & "
^*^
^*^ ^*^ ")
object.getValue("Good").Item.getValue("Files").moveNext()
html.addLine("^*^ ")
next
html.addLine("^*^
^*^
^*^ ")
end if
html.addLine("^*^ ^*^
^*^ ")
if not p.ebParams("Session.Auth").Value then
html.addLine("^*^
^*^
^*^ Pro komentování produktu musíte být přihlášeni.^*^
^*^
^*^
^*^
^*^
^*^ ")
else
html.addLine("^*^

" & MWRes("DOTAZ_K_PRODUKTU") & ": " & object.getValue("Good").Item.getValue("Nazev") & "

^*^
^*^ ^*^ ^*^
^*^ ^*^ ^*^
^*^
^*^ ^*^ ^*^
^*^
^*^ ^*^ ^*^
^*^
^*^
^*^ ^*^ ^*^
^*^
^*^ ^*^ ^*^ ^*^
^*^
^*^ ^*^
^*^
^*^
^*^ ^*^ ^*^ ^*^
^*^
^*^
^*^ ^*^
^*^
^*^ ")
end if
html.addLine("^*^
^*^
^*^
^*^^*^")