<%@ LANGUAGE="VBSCRIPT" %> <%if Request.Cookies("Situ")<>"CM" then%> <%Response.Cookies("Situ")="CM"%> <%Response.Cookies("nbprod")=0%> <%end if%> <%ref=request.querystring("ref") %> <%if Request.Cookies("nbprod")="" then%> <%nbprod=0%> <%else%> <%nbprod=Request.Cookies("nbprod")%> <%end if%> <% if (ref<> "") AND (nbprod<>18) then%> <%inser=1%> <%for i=1 to nbprod%> <%if Request.Cookies("refprod"&i)=ref then%> <%inser=0%> <%end if%> <%next%> <%if (inser=1) then%> <%nbprod=nbprod+1%> <%Response.Cookies("refprod"&nbprod)=ref%> <%end if%> <%end if%> <%Response.Cookies("nbprod")=nbprod%>
Nombre de produits dans le panier : <%=nbprod%> <% if nbprod = 18 then%>
Nombre de commandes maximum atteint !<%end if%>
Panier de commande (gestion/validation)