%@ LANGUAGE="VBSCRIPT" %>
<%
dim noid
categ = request("categ")
noid = request("noid")
nophoto = request("nophoto")
if nophoto = "" or isnull(nophoto) then nophoto = 1
if noid <> "" and not isnull(noid) then
pageredirect = "article.asp?noid=" & noid & "&nophoto=" & nophoto & "&categ=" & categ
else
pageredirect = "actualite.asp"
end if
%>
<%
dim nomarticle
dim resultat
dim message
dim messageresultat
dim idartvedette
dim prixspecial
idartvedette = ""
Set Fichier = Server.CreateObject("Scripting.FileSystemObject")
SQL = "SELECT * FROM articledetail WHERE article.noid=" & noid & ";"
set rs = db.execute(SQL)
if not rs.BOF and not rs.EOF then
if langue = "f" then
nomarticle = rs("nomfr")
description = rs("descfr")
tagprixreg = "PRIX"
tagprixspec = "Prix spécial"
tagdimension = "DIMENSIONS"
tagpoid = "POIDS"
boutonadd = "ajouter"
else
nomarticle = rs("nomen")
description = rs("descen")
tagprixreg = "PRICE"
tagprixspec = "Special price"
tagdimension = "DIMENSIONS"
tagpoid = "WEIGHT"
boutonadd = "add"
end if
%>
<%=nomarticle%><% if description = "N/A" then description = "" %><%= formathtml(description) %> |
<%
if Fichier.FileExists(server.MapPath("produits/" & noid & "-" & nophoto & ".JPG")) Then
response.write "
| ||