False response.write "___________________" & VbCrLf
rs.MoveNext
loop
response.write "Transport: " & FormatNumber(transporttotal/100,2,-2,-2,-1) & " €
"
response.write "___________________" & VbCrLf
response.write "TOTAL: " & FormatNumber(total/100,2,-2,-2,-1) & "
" & VbCrLf
response.write "" & VbCrLf
response.write "" & VbCrLf
end if
if show = "yes" then
'··· Open DB ···
Call OpenDB(1,conn,rs)
SQLSTMT = "SELECT * FROM products WHERE P_mainpage = 1 AND U_id = " & U_id
rs.Open SQLSTMT,conn
if rs.BOF or rs.EOF then
else
do while not rs.EOF
P_id = rs("P_id")
if lang = 1 then
P_name = rs("P_name1")
elseif lang = 2 then
P_name = rs("P_name2")
elseif lang = 3 then
P_name = rs("P_name3")
end if
P_price = rs("P_price")
P_price = P_price/100
P_pricediscount = rs("P_pricediscount")
P_pricediscount = P_pricediscount/100
P_photo1 = rs("P_photo1")
PT_id = rs("PT_id")
if PT_id <> 1 then
'··· Open DB ···
Call OpenDB(2,conn2,rs2)
SQLSTMT2 = "SELECT * FROM ProductTypes WHERE PT_id = " & PT_id & " AND U_id = " & U_id
rs2.Open SQLSTMT2,conn2
PT_name = rs2("PT_name1")
PT_name = URLDecode(PT_name)
end if
P_name = URLDecode(P_name)
P_photo1 = URLDecode(P_photo1)
response.write "
| " & VbCrLf
response.write "" & VbCrLf
if P_photo1 <> "" then
response.write " " & VbCrLf end if response.write "" & P_name & " " & PT_name & " " if U_type = "shop" then if P_pricediscount = 0 then response.write ""&FormatNumber(P_price,2,-2,-2,-1)&" € " & VbCrLf elseif P_pricediscount > 0 then response.write ""&FormatNumber(P_price,2,-2,-2,-1)&" € " & VbCrLf response.write ""&FormatNumber(P_pricediscount,2,-2,-2,-1)&" € " & VbCrLf end if response.write " |
| " & VbCrLf response.write "" & VbCrLf end if response.write " |