‰PNG  IHDR�wSÞ IDATxœcøÏÀÉþ’ïIEND®B`‚ SELECT #request.sitepref#items.id, iname, imodel, iline, ishow, rid, category, razdel, imgs, imgb, inew, akcia, brand, bid, ipost, disc, cashback, (SELECT Count(id) FROM #request.sitepref#imgs WHERE #request.sitepref#imgs.iid = #request.sitepref#items.id) as imgses FROM ((#request.sitepref#items LEFT JOIN #request.sitepref#razdely ON #request.sitepref#razdely.id = #request.sitepref#items.rid) LEFT JOIN #request.sitepref#categories ON #request.sitepref#categories.id = #request.sitepref#razdely.cid) LEFT JOIN #request.sitepref#brands ON #request.sitepref#brands.id = #request.sitepref#items.bid WHERE rid = #Arguments.rid# AND (bid = #Arguments.bid#) ORDER BY cline, category, rline, razdel, bline, brand, iline, iname SELECT * FROM #request.sitepref#items WHERE id = #Arguments.id# SELECT DISTINCT #request.sitepref#brands.id, brand FROM ((#request.sitepref#items LEFT JOIN #request.sitepref#razdely ON #request.sitepref#razdely.id = #request.sitepref#items.rid) LEFT JOIN #request.sitepref#categories ON #request.sitepref#categories.id = #request.sitepref#razdely.cid) LEFT JOIN #request.sitepref#brands ON #request.sitepref#brands.id = #request.sitepref#items.bid WHERE rid = #Arguments.rid# ORDER BY bline, brand SELECT id, brand FROM #request.sitepref#brands ORDER BY bline, brand SELECT DISTINCT #request.sitepref#razdely.id, razdel, rline, rshow, category, cline, cid, (SELECT Count(id) FROM #request.sitepref#items WHERE rid = #request.sitepref#razdely.id) as pcount FROM #request.sitepref#razdely INNER JOIN #request.sitepref#categories ON #request.sitepref#razdely.cid = #request.sitepref#categories.id ORDER BY cline, category, rline, razdel INSERT INTO #request.sitepref#items(rid, bid, iname, ianonce, imodel, inote, iinclude, iline, ishow, inew, akcia, ptitle, pkws, pdesc, icarry, ipost, disc, cashback) VALUES(#Val(Arguments.rid)#, #Val(Arguments.bid)#, , '#Trim(Arguments.ianonce)#', , '#Trim(Arguments.inote)#', '#Trim(Arguments.iinclude)#', #Min(Max(Val(Arguments.iline), 1), 255)#, #Arguments.ishow#, #Arguments.inew#, #Arguments.akcia#, '#Trim(Arguments.ptitle)#', '#Trim(Arguments.pkws)#', '#Trim(Arguments.pdesc)#', #Arguments.icarry#, #Arguments.ipost#, #Ceiling(Val(Arguments.disc))#, #Ceiling(Val(Arguments.cashback))#) UPDATE #request.sitepref#items SET iname = , ianonce = '#Trim(Arguments.ianonce)#', imodel = , inote = '#Trim(Arguments.inote)#', iinclude = '#Trim(Arguments.iinclude)#', iline = #Min(Max(Val(Arguments.iline), 1), 255)#, rid = #Val(Arguments.rid)#, bid = #Val(Arguments.bid)#, ishow = #Arguments.ishow#, inew = #Arguments.inew#, ptitle = '#Trim(Arguments.ptitle)#', pkws = '#Trim(Arguments.pkws)#', pdesc = '#Trim(Arguments.pdesc)#', akcia = #Arguments.akcia#, icarry = #Arguments.icarry#, ipost = #Arguments.ipost#, disc = #Ceiling(Val(Arguments.disc))#, cashback = #Ceiling(Val(Arguments.cashback))# WHERE id = #Val(Arguments.id)# UPDATE #request.sitepref#items SET ishow = 1 WHERE (id IN (#Arguments.items.ishow#)) AND (rid = #Arguments.rid#) AND (bid = #Arguments.items.bid#) UPDATE #request.sitepref#items SET ishow = 0 WHERE (id NOT IN (#Arguments.items.ishow#)) AND (rid = #Arguments.rid#) AND (bid = #Arguments.items.bid#) UPDATE #request.sitepref#items SET akcia = 1 WHERE (id IN (#Arguments.items.akcia#)) AND (rid = #Arguments.rid#) AND (bid = #Arguments.items.bid#) UPDATE #request.sitepref#items SET akcia = 0 WHERE (id NOT IN (#Arguments.items.akcia#)) AND (rid = #Arguments.rid#) AND (bid = #Arguments.items.bid#) UPDATE #request.sitepref#items SET ipost = 1 WHERE (id IN (#Arguments.items.ipost#)) AND (rid = #Arguments.rid#) AND (bid = #Arguments.items.bid#) UPDATE #request.sitepref#items SET ipost = 0 WHERE (id NOT IN (#Arguments.items.ipost#)) AND (rid = #Arguments.rid#) AND (bid = #Arguments.items.bid#) SELECT * FROM #request.sitepref#items WHERE id = #Arguments.id# INSERT INTO #request.sitepref#items(rid, bid, iname, ianonce, imodel, inote, iinclude, iline, ishow, inew, akcia, ptitle, pkws, pdesc, imgs, imgb, ptitle3, pkws3, pdesc3, imgh, icarry, ipost, disc, cashback) VALUES(#Arguments.rid#, #theItem.bid#, '#theItem.iname#', '#theItem.ianonce#', '#theItem.imodel#', '#theItem.inote#', '#theItem.iinclude#', #theItem.iline#, #theItem.ishow#, #theItem.inew#, #theItem.akcia#, '#theItem.ptitle#', '#theItem.pkws#', '#theItem.pdesc#', '#theItem.imgs#', '#theItem.imgb#', '#theItem.ptitle3#', '#theItem.pkws3#', '#theItem.pdesc3#', '#theItem.imgh#', #theItem.icarry#, #theItem.ipost#, #theItem.disc#, #theItem.cashback#) SELECT Max(id) as maxid FROM #request.sitepref#items SELECT * FROM #request.sitepref#arts WHERE iid = #Arguments.id# INSERT INTO #request.sitepref#arts (iid, art, pak, price, price2, price3, aline, ashow, isnow, akcya, akcya3, ashow3,aprice, aprice2,aprice3) VALUES (#theItemNew.maxid#, '#theItemArts.art#', '#theItemArts.pak#', #theItemArts.price#, #theItemArts.price2#, #theItemArts.price3#, #theItemArts.aline#, #theItemArts.ashow#, #theItemArts.isnow#, #theItemArts.akcya#, #theItemArts.akcya3#, #theItemArts.ashow3#, #theItemArts.price#, #theItemArts.aprice2#, #theItemArts.aprice3#) SELECT * FROM #request.sitepref#items WHERE id = #Arguments.id# INSERT INTO #request.sitepref#items(rid, bid, iname, ianonce, imodel, inote, iinclude, iline, ishow, inew, akcia, ptitle, pkws, pdesc, imgs, imgb, ptitle3, pkws3, pdesc3, imgh, icarry, ipost, disc, cashback) VALUES(#Arguments.rid#, #Arguments.bid#, '#theItem.iname#', '#theItem.ianonce#', '#theItem.imodel#', '#theItem.inote#', '#theItem.iinclude#', #theItem.iline#, #theItem.ishow#, #theItem.inew#, #theItem.akcia#, '#theItem.ptitle#', '#theItem.pkws#', '#theItem.pdesc#', '#theItem.imgs#', '#theItem.imgb#', '#theItem.ptitle3#', '#theItem.pkws3#', '#theItem.pdesc3#', '#theItem.imgh#', #theItem.icarry#, #theItem.ipost#, #theItem.disc#, #theItem.cashback#) SELECT Max(id) as maxid FROM #request.sitepref#items SELECT * FROM #request.sitepref#arts WHERE iid = #Arguments.id# INSERT INTO #request.sitepref#arts (iid, art, pak, price, price2, price3, aline, ashow, isnow, akcya, akcya3, ashow3,aprice, aprice2,aprice3) VALUES (#theItemNew.maxid#, '#theItemArts.art#', '#theItemArts.pak#', #theItemArts.price#, #theItemArts.price2#, #theItemArts.price3#, #theItemArts.aline#, #theItemArts.ashow#, #theItemArts.isnow#, #theItemArts.akcya#, #theItemArts.akcya3#, #theItemArts.ashow3#, #theItemArts.price#, #theItemArts.aprice2#, #theItemArts.aprice3#) SELECT * FROM #request.sitepref#arts WHERE (iid = #Arguments.id#) AND (ashow3 = 0) SELECT ch1, ch2, ch3, ch4, dis1, dis2, dis3, dis4, dis5 FROM #request.sitepref#brands WHERE id = #Arguments.bid# SELECT ch13 as ch1, ch23 as ch2, ch33 as ch3, ch43 as ch4, dis13 as dis1, dis23 as dis2, dis33 as dis3, dis43 as dis4, dis53 as dis5 FROM #request.sitepref#brands WHERE id = #Arguments.bid# INSERT INTO #request.sitepref#arts (iid, art, pak, price, price2, price3, aline, ashow, isnow, akcya, aprice3) VALUES (#Arguments.newItem.id#, '#Arguments.newItem.art#', '#Arguments.newItem.pak#', #Arguments.newItem.price#, #Arguments.newItem.price2#, #Arguments.newItem.price*k2#, #Arguments.newItem.aline#, #Arguments.newItem.ashow#, #Arguments.newItem.isnow#, #Arguments.newItem.akcya#, #Arguments.newItem.price*k3#) UPDATE #request.sitepref#arts SET price = , price2 = , price3 = , aprice3 = , aline = , ashow = , isnow = , akcya = , art = , pak = WHERE (id = #iii#) AND (iid = #Val(Arguments.newItem.formData.id)#) DELETE FROM #request.sitepref#arts WHERE (id = #Arguments.artDel.iid#) AND (iid = #Arguments.artDel.id#) SELECT imgs, imgb FROM #request.sitepref#items Where id = #Arguments.newFoto.formData.id# UPDATE #request.sitepref#items SET imgs = '#Arguments.newFoto.img_name#', imgb = '#Arguments.newFoto.img_name#' WHERE id = #Arguments.newFoto.formData.id# SELECT * FROM #request.sitepref#razdely WHERE id = #Arguments.rid# SELECT id FROM #request.sitepref#items Where imgs = '#Arguments.newFoto#' SELECT id, imgalt, imgs, ishow, imline FROM #request.sitepref#imgs WHERE iid = #Arguments.id# ORDER BY imline, id SELECT imgs FROM #request.sitepref#imgs Where id = #Arguments.newFoto.formData.f# UPDATE #request.sitepref#imgs SET imgs = '#Arguments.newFoto.img_name#' WHERE (id = #Arguments.newFoto.formData.f#) AND (iid = #Arguments.newFoto.formData.id#) INSERT INTO #request.sitepref#imgs (iid, imgs, ishow) VALUES (#Arguments.newFoto.formData.id#, '#Arguments.newFoto.img_name#', 1) SELECT id FROM #request.sitepref#imgs WHERE iid = #Arguments.newFoto.id# UPDATE #request.sitepref#imgs SET imgalt = '#Trim(Evaluate("Arguments.newFoto.formData.imgalt" & ListGetAt(imglist, i)))#', ishow = #Evaluate("Arguments.newFoto.formData.ishow" & ListGetAt(imglist, i))#, imline = #Min(Max(Val(Evaluate("Arguments.newFoto.formData.imline" & ListGetAt(imglist, i))), 1), 255)# WHERE (id = #ListGetAt(imglist, i)#) AND (iid = #Arguments.newFoto.id#) DELETE FROM #request.sitepref#imgs WHERE id = #Arguments.b#