1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527
|
<%
'----------------------------------------------------------------
' Projet :
' Application : Site public
' Description : Page d'affichage de la fiche descriptive d'un produit
' Sur le clic ajouter au panier on rapelle le formulaire pour ajouter le produit au panier
' Parametres GET/POST : Famille_Id obligatoire
' SSFamille_Id obligatoire
' CodeProduit obligatoire
' achat
' prix
' kdo si kdo
' identelech si identifiation telechargement ok
' typeTel si identifiation telechargement ok
' Parametres Entre : Famille_Id obligatoire
' SSFamille_Id obligatoire
' CodeProduit obligatoire
' kdo si kdo
' Variable de session : CodeClient,PointsRestants,nom_download,prenom_download,email_download
'
' Auteur | Date | Historique
' ----------------------+-------------+--------------------------
' **** | 2000-05-10 | Création du cartouche
' ---------------------------------------------------------------
' **** | 2000-06-14 | Affichage du bouton forum si il y a lieu
' ---------------------------------------------------------------
%>
<!--#include file="../../secure/site/constant.asp"-->
<!--#include file="../../secure/site/function.asp"--><%
Response.Expires = 0
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "cache-control", "private"
Response.AddHeader "pragma", "no-cache"
'parametres en entree
Connecter()
'recuperation des parametres
Famille_Id = Request("Famille_Id")
SSFamille_Id = Request("SSFamille_Id")
CodeProduit = Request("CodeProduit")
nbPoints=clng(request.querystring("NbPoints"))
'ajout au panier
If Request("Qte") <> "" Then
If Request("Qte") > 0 Then
Qte = Request("Qte")
Else
Qte = 1
End If
Else
Qte = 1
End If
If Request("Achat") = "oui" Then
if request.querystring("kdo")="oui" then
'c est un cadeau
AjoutPanier Request("CodeProduit"), 1, Qte, Request("Prix")
Session("PointsRestants") = Session("PointsRestants") - Request("Prix")%>
<script>
window.location="commande/panier_client.asp"
</script><%
else
'c est un produit
'On regarde si c un produit catalogue, star ou promotion
TypeProduit = 0
SQL = "SELECT PDT_PRODUIT.CodeProduit FROM PDT_PRODUIT RIGHT OUTER JOIN PDT_PROMOTIONS ON PDT_PRODUIT.CodeProduit = PDT_PROMOTIONS.CodeProduit WHERE PDT_PRODUIT.CodeProduit = " &StrCSQL(Request("CodeProduit"))
'response.write(sql)
Set RSTypePdt = Connexion.Execute(SQL)
If Not RSTypePdt.EOF Then
TypeProduit = 2
End If
RSTypePdt.Close
Set RSTypePdt = Nothing
sql = "SELECT CodeProduit FROM PDT_PRODUITSTAR WHERE (PDT_PRODUITSTAR.Mois = { fn MONTH(GETDATE()) }) AND (PDT_PRODUITSTAR.Annee = { fn YEAR(GETDATE()) }) And CodeProduit = " &StrCSQL(Request("CodeProduit"))
Set RSTypePdt = Connexion.Execute(SQL)
If Not RSTypePdt.EOF Then
TypeProduit = 3
End If
RSTypePdt.Close
Set RSTypePdt = Nothing
AjoutPanier Request("CodeProduit"), TypeProduit, Qte, Request("Prix")%>
<script>
alert('Votre commande a bien été prise en compte, pour modifier votre quantité, allez dans votre panier.');
</script><%
Qte = 1
end if
End If
Select Case LangueSite
Case 1
SQL = "Select Reappro, CodeProduit, Stock, CodeTarif, Poids, UnitePoids, CmdClient, DesignationFR as Titre From PDT_Produit Where CodeProduit = " &strCSQL(CodeProduit)
Case 2
SQL = "Select Reappro, CodeProduit, Stock, CodeTarif, Poids, UnitePoids, CmdClient, DesignationGB as Titre From PDT_Produit Where CodeProduit = " &strCSQL(CodeProduit)
End Select
Set RSProduit = Connexion.Execute(SQL) %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>ESL</title>
<meta http-equiv="content-type" content="text/html;charset=windows-1252">
<script language="JavaScript1.1" src="../css/testnav.js"></script>
<script>
function popup(nomfichier,scroll) {
parent.frames[1].location.reload(true);
var a;
a=window.open(nomfichier, 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scroll+',resizable=no,width=510,height=360');
}
function popup2(nomfichier,x,y) {
var a;
a=window.open(nomfichier, 'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + x + ',height=' + y);
}
function fStopError(){
return true;
}
window.onerror = fStopError;
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#ffffff">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42251146-1', 'esl-france.com');
ga('send', 'pageview');
</script>
<form name="ficheproduit" action="fiche_produit.asp"><%
If Not RSProduit.EOF Then
'c est un produit
'On regarde si c un produit catalogue, star ou promotion
TypeProduit = 0
SQL = "SELECT PDT_PRODUIT.CodeProduit FROM PDT_PRODUIT RIGHT OUTER JOIN PDT_PROMOTIONS ON PDT_PRODUIT.CodeProduit = PDT_PROMOTIONS.CodeProduit WHERE PDT_PRODUIT.CodeProduit = " &StrCSQL(RSProduit("CodeProduit"))
'response.write(sql)
Set RSTypePdt = Connexion.Execute(SQL)
If Not RSTypePdt.EOF Then
TypeProduit = 2
End If
RSTypePdt.Close
Set RSTypePdt = Nothing
sql = "SELECT CodeProduit FROM PDT_PRODUITSTAR WHERE (PDT_PRODUITSTAR.Mois = { fn MONTH(GETDATE()) }) AND (PDT_PRODUITSTAR.Annee = { fn YEAR(GETDATE()) }) And CodeProduit = " &StrCSQL(RSProduit("CodeProduit"))
Set RSTypePdt = Connexion.Execute(SQL)
If Not RSTypePdt.EOF Then
TypeProduit = 3
End If
RSTypePdt.Close
Set RSTypePdt = Nothing
If TypeProduit <> 2 Then%><a href="javascript:parent.frames[2].location='listeproduit.asp?famille_id=<%=famille_Id%>&ssfamille_id=<%=SSFamille_Id%>';" class="retourbleu">> retour à la sous-famille</a><%
End If
Prix = CalculPrix(RSProduit("CodeProduit"), 1) %>
<input type ="hidden" name="CodeProduit" value="<%=RSProduit("CodeProduit")%>">
<input type ="hidden" name="famille_Id" value="<%=famille_Id%>">
<input type ="hidden" name="SSFamille_Id" value="<%=SSFamille_Id%>">
<input type ="hidden" name="Achat" value="oui">
<input type ="hidden" name="Prix" value="<%=Round(Prix, 2)%>"><%
if Famille_Id = 7 then %>
<input type ="hidden" name="kdo" value="oui"><%
End If %>
<table width="625" border="0" cellspacing="0" cellpadding="0" align=left>
<tr>
<td>
<table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr>
<td valign=top align=left colspan=2> <font style="font-family : Arial, Helvetica, sans-serif;font-size: 16pt"><b><%=RSProduit("Titre")%></b></font></td>
</tr><tr>
<td height=5 colspan=2><img src="../images/1ptrans.gif" width="1" height="5"></td>
</tr><tr>
<td valign=top align=left colspan=2><img src="../images/sous_titre_points_long.gif" height="7"></td>
</tr><tr>
<td height=10 colspan=2><img src="../images/1ptrans.gif" width="1" height="10"></td>
</tr><tr height="170">
<td width=280 align=center height="170"><%
If FileExists (PathImage_ProduitNormal(RSProduit("CodeProduit"))) Then %>
<img src="<%=PathImage_ProduitNormal(RSProduit("CodeProduit"))%>" border="0"><%
Else %>
<img src="<%=PathImage &"produits/rien_n.jpg"%>" border="0"><%
End If %>
</td>
<td valign="top" width=400 height="170">
<table cellspacing=0 cellpadding=0 border="0">
<tr valign="top" height="30">
<td width=10 height="30"><img src="../images/1ptrans.gif" width=10 height=1></td>
<td align=left class="text" valign="top" height="30"><%=Stock(RSProduit("Stock"),RSProduit("Reappro"))%> <%=CodeProduit%> </td>
<td align="right" class="text" valign="top" height="30"><%
if Session("CodeClient")<>"" And Not kdo then
prix_red = CalculPrix_Client(RSProduit("CodeProduit"), 1)%>
<font class="textrouge"><b><%=Round(prix_red, 2)%> </b></font><img src="../images/eurorouge.gif" width=6 height=9> <font size=1 color="#FF9000"><%=Round(enEuro(prix_red), 2)%> F HT<br>
<%
Else
if Famille_Id=7 then 'c est un cadeau
kdo=true%><b><%=prix%> lux</b><%
else%>
<font size=2><b><%=Round(Prix, 2)%> </b></font><img src="../images/euronorm.gif" border=0 width=6 height=9> <font size=1 color="#FF9000"><%=Round(enEuro(prix), 2)%> F HT<br>
<font style="font-size:7pt"><%=AfficheListePrix(RSProduit("CodeProduit"))%><%
end if
End If%></font></b>
</td>
</tr><%
SQL = "SELECT PDT_SOUSFAMILLE_ASSOC.SousFamille_Id AS ssfamille_id, PDT_SOUSFAMILLE.Famille_Id, Libelle FROM PDT_SOUSFAMILLE_ASSOC LEFT OUTER JOIN PDT_SOUSFAMILLE ON PDT_SOUSFAMILLE_ASSOC.SousFamille_Id = PDT_SOUSFAMILLE.SousFamille_Id WHERE CodeProduit = " &StrCSQL(CodeProduit) &" And CodeLangue = " &LangueSite &"Order By PDT_SOUSFAMILLE_ASSOC.Ordre"
Set RSSSFamilleAssoc = Connexion.Execute(SQL)
If Not RSSSFamilleAssoc.EOF Then %>
<tr>
<td><img src="../images/1ptrans.gif" width="1" height="1" alt="" border="0"></td>
<td align=left colspan="2" valign="bottom"><img src="../images/pa.gif" width="113" height="16"></td>
</tr><tr>
<td><img src="../images/1ptrans.gif" width="1" height="1" alt="" border="0"></td>
<td colspan="2">
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td width=113 height=1 bgcolor="black"><img src="../images/1ptrans.gif" width=113 height=1></td>
<td><img src="../images/degrag_noir.gif" width="132" height="1" border="0" alt=""></td>
</tr>
</table>
</td>
</tr><tr>
<td colspan="3" height=5><img src="../images/1ptrans.gif" width=1 height=7></td>
</tr>
<tr>
<td> </td>
<td align=left colspan="2"><%
While Not RSSSFamilleAssoc.EOF%>
<img src="../images/point_rouge.gif" width="16" height="9"><a href="javascript:parent.frames[2].location='<%=pathRacine%>script/listeproduit.asp?famille_id=<%=RSSSFamilleAssoc("famille_id")%>&ssfamille_id=<%=RSSSFamilleAssoc("SsFamille_Id")%>';" class="liengris"><%=RSSSFamilleAssoc("Libelle")%></a><br><%
RSSSFamilleAssoc.MoveNext
Wend %>
</td>
</tr><%
End If
RSSSFamilleAssoc.Close
Set RSSSFamilleAssoc = Nothing%>
</table>
</td>
</tr><tr>
<td height=15 colspan=2><img src="../images/1ptrans.gif" width="1" height="5"></td>
</tr>
</table>
</td>
</tr><tr>
<td><%
'Affichage des liens : zoom,telechargement,panier,conseils,forum...
nb_liens=0 'indique le nb de liens sur une meme ligne%>
<table cellspacing=0 cellpadding=0 border="0">
<tr><%
'le zoom si existe
If FileExists (PathImage_ProduitZoom(RSProduit("CodeProduit"))) Then
nb_liens=nb_liens+1%>
<td align=left width=200>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td align=left width=30 height=30><a onMouseOver="document.btp0.src='../images/zoom_o.gif';document.btp01.src='../images/tit_zoom_o.gif';" onMouseOut="document.btp0.src='../images/zoom.gif';document.btp01.src='../images/tit_zoom.gif';" href="javascript: popup('viewimg.asp?image=<%=PathImage_ProduitZoom(RSProduit("CodeProduit"))%>','no');"><img src="../images/zoom.gif" border=0 name=btp0 alt=""></a></td>
<td align=left valign=middle> <a onMouseOver="document.btp0.src='../images/zoom_o.gif';document.btp01.src='../images/tit_zoom_o.gif';" onMouseOut="document.btp0.src='../images/zoom.gif';document.btp01.src='../images/tit_zoom.gif';" href="javascript: popup('viewimg.asp?image=<%=PathImage_ProduitZoom(RSProduit("CodeProduit"))%>','no');"><img src="../images/tit_zoom.gif" border=0 alt="" name=btp01></a></td>
</tr>
</table>
</td><%
End If
'si telechargement de manuel
SQL = "SELECT PDT_TELECHARGEMENT.Telechargement_Id FROM PDT_TELECHARGEMENT WHERE Produit_Id = " &StrCSQL(RSProduit("CodeProduit")) &" And TypeTelechargement_Id = 3"
Set RSTel = Connexion.Execute(SQL)
If Not RSTel.EOF Then
'verififer si on doit demander de s enregistrer
If Request.Cookies("ESL")("nom_download")<>"" AND Request.Cookies("ESL")("prenom_download")<>"" AND Request.Cookies("ESL")("email_download")<>"" then
'l utilisateur s'est deja enregitre -> cookie
Session("nom_download")=Request.Cookies("ESL")("nom_download")
Session("prenom_download")=Request.Cookies("ESL")("prenom_download")
Session("email_download")=Request.Cookies("ESL")("email_download")%>
<td align=left width=200>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td align=left width=30 height=30><a onMouseOver="document.btp1.src='../images/manuel_o.gif';document.btp11.src='../images/tit_manuel_o.gif';" onMouseOut="document.btp1.src='../images/manuel.gif';document.btp11.src='../images/tit_manuel.gif';" href="javascript: popup('Telechargement/telecharg.asp?type=3&produit=<%=RSProduit("CodeProduit")%>','yes');"><img src="../images/manuel.gif" border=0 alt="" name=btp1></a></td>
<td align=left valign=middle> <a onMouseOver="document.btp1.src='../images/manuel_o.gif';document.btp11.src='../images/tit_manuel_o.gif';" onMouseOut="document.btp1.src='../images/manuel.gif';document.btp11.src='../images/tit_manuel.gif';" href="javascript: popup('Telechargement/telecharg.asp?type=3&produit=<%=RSProduit("CodeProduit")%>','yes')"><img src="../images/tit_manuel.gif" border=0 alt="" name=btp11></a></td>
</tr>
</table>
</td><%
elseif Session("nom_download")<>"" AND Session("prenom_download")<>"" AND Session("email_download")<>"" then
'l utilisateur s est enregistre auparavant%>
<td align=left width=200>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td align=left width=30 height=30><a onMouseOver="document.btp1.src='../images/manuel_o.gif';document.btp11.src='../images/tit_manuel_o.gif';" onMouseOut="document.btp1.src='../images/manuel.gif';document.btp11.src='../images/tit_manuel.gif';" href="javascript: popup('Telechargement/telecharg.asp?type=3&produit=<%=RSProduit("CodeProduit")%>','yes');"><img src="../images/manuel.gif" border=0 alt="" name=btp1></a></td>
<td align=left valign=middle> <a onMouseOver="document.btp1.src='../images/manuel_o.gif';document.btp11.src='../images/tit_manuel_o.gif';" onMouseOut="document.btp1.src='../images/manuel.gif';document.btp11.src='../images/tit_manuel.gif';" href="javascript: popup('Telechargement/telecharg.asp?type=3&produit=<%=RSProduit("CodeProduit")%>','yes')"><img src="../images/tit_manuel.gif" border=0 alt="" name=btp11></a></td>
</tr>
</table>
</td><%
else
'l utilisateur doit s enregistrer%>
<td align=left width=200>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td align=left width=30 height=30><a onMouseOver="document.btp1.src='../images/manuel_o.gif';document.btp11.src='../images/tit_manuel_o.gif';" onMouseOut="document.btp1.src='../images/manuel.gif';document.btp11.src='../images/tit_manuel.gif';" href="javascript: popup2('Telechargement/rens_tele.asp?from=bas&produit=<%=RSProduit("CodeProduit")%>&typeTel=3','250','220');"><img src="../images/manuel.gif" border=0 alt="" name=btp1></a></td>
<td align=left valign=middle> <a onMouseOver="document.btp1.src='../images/manuel_o.gif';document.btp11.src='../images/tit_manuel_o.gif';" onMouseOut="document.btp1.src='../images/manuel.gif';document.btp11.src='../images/tit_manuel.gif';" href="javascript: popup2('Telechargement/rens_tele.asp?from=bas&produit=<%=RSProduit("CodeProduit")%>&typeTel=3','250','220');"><img src="../images/tit_manuel.gif" border=0 alt="" name=btp11></a></td>
</tr>
</table>
</td><%
end if
nb_liens=nb_liens+1
End If
RSTel.close
set RSTel=nothing
'ajout de l article au panier (toujours)
nb_liens=nb_liens+1
if kdo then
lien="fiche_produit.asp?CodeProduit="&RSProduit("CodeProduit")&"&famille_Id="&famille_Id&"&SSFamille_Id="&SSFamille_Id&"&Achat=oui&Prix="&Round(Prix, 2)&"&kdo=oui"
else
lien="fiche_produit.asp?CodeProduit="&RSProduit("CodeProduit")&"&famille_Id="&famille_Id&"&SSFamille_Id="&SSFamille_Id&"&Achat=oui&Prix="&Round(Prix, 2)
end if
If Kdo Then
'response.write(Prix &" - " &NbPoints)
If Prix <= NbPoints Then%>
<td align=left width=200>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td align=left width=30 height=30><a onMouseOver="document.btp3.src='../images/kdo_o.gif';document.btp31.src='../images/ajouter_o.gif';" onMouseOut="document.btp3.src='../images/kdo.gif';document.btp31.src='../images/ajouter.gif';" href="<%=lien%>"><img src="../images/kdo.gif" border=0 alt="" name=btp3></a></td>
<td align=left valign=middle> <a onMouseOver="document.btp3.src='../images/kdo_o.gif';document.btp31.src='../images/ajouter_o.gif';" onMouseOut="document.btp3.src='../images/kdo.gif';document.btp31.src='../images/ajouter.gif';" href="<%=lien%>"><img src="../images/ajouter.gif" border=0 alt="" name=btp31></a></td>
</tr>
</table>
</td><%
Else
nb_liens=nb_liens-1
End If
Else %>
<td align=left width=200>
<table cellpadding=1 cellspacing=0 border=0 bgcolor=Black><tr><td><table cellspacing=0 cellpadding=3 border=0 bgcolor=White>
<tr>
<td align=left width=30 height=30><input type="image" src="../images/achat.gif" border="0"></td>
<td align=left valign=middle> <input type="text" size="3" maxlength="4" alt="" name="Qte" value="<%=Qte%>"> <input type="image" src="../images/tit_achat.gif" border="0"></td>
</tr>
</table></td></tr></table>
</td><%
End If
if nb_liens>=3 then
nb_liens=0%>
</tr><tr>
<td colspan=6 height=10><img src="..//images/1ptrans.gif" width="1" height="10"></td>
</tr><tr><%
end if
'si telechargement de logiciel
SQL = "SELECT PDT_TELECHARGEMENT.Telechargement_Id FROM PDT_TELECHARGEMENT WHERE Produit_Id = " &StrCSQL(RSProduit("CodeProduit")) &" And TypeTelechargement_Id = 5"
Set RSTel = Connexion.Execute(SQL)
If Not RSTel.EOF Then
'verififer si on doit demander de s enregistrer
If Request.Cookies("ESL")("nom_download")<>"" AND Request.Cookies("ESL")("prenom_download")<>"" AND Request.Cookies("ESL")("email_download")<>"" then
'l utilisateur s'est deja enregitre -> cookie
Session("nom_download")=Request.Cookies("ESL")("nom_download")
Session("prenom_download")=Request.Cookies("ESL")("prenom_download")
Session("email_download")=Request.Cookies("ESL")("email_download")%>
<td align=left width=200>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td align=left width=30 height=30><a onMouseOver="document.btp4.src='../images/logiciel_o.gif';document.btp41.src='../images/tit_logiciel_o.gif';" onMouseOut="document.btp4.src='../images/logiciel.gif';document.btp41.src='../images/tit_logiciel.gif';" href="javascript: popup('Telechargement/telecharg.asp?type=5&produit=<%=RSProduit("CodeProduit")%>','yes')"><img src="../images/logiciel.gif" border=0 alt="" name=btp4></a></td>
<td align=left valign=middle> <a onMouseOver="document.btp4.src='../images/logiciel_o.gif';document.btp41.src='../images/tit_logiciel_o.gif';" onMouseOut="document.btp4.src='../images/logiciel.gif';document.btp41.src='../images/tit_logiciel.gif';" href="javascript: popup('Telechargement/telecharg.asp?type=5&produit=<%=RSProduit("CodeProduit")%>','yes')"><img src="../images/tit_logiciel.gif" border=0 alt="" name=btp41></a></td>
</tr>
</table>
</td><%
elseif Session("nom_download")<>"" AND Session("prenom_download")<>"" AND Session("email_download")<>"" then
'l utilisateur s est enregistre auparavant%>
<td align=left width=200>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td align=left width=30 height=30><a onMouseOver="document.btp4.src='../images/logiciel_o.gif';document.btp41.src='../images/tit_logiciel_o.gif';" onMouseOut="document.btp4.src='../images/logiciel.gif';document.btp41.src='../images/tit_logiciel.gif';" href="javascript: popup('Telechargement/telecharg.asp?type=5&produit=<%=RSProduit("CodeProduit")%>','yes')"><img src="../images/logiciel.gif" border=0 alt="" name=btp4></a></td>
<td align=left valign=middle> <a onMouseOver="document.btp4.src='../images/logiciel_o.gif';document.btp41.src='../images/tit_logiciel_o.gif';" onMouseOut="document.btp4.src='../images/logiciel.gif';document.btp41.src='../images/tit_logiciel.gif';" href="javascript: popup('Telechargement/telecharg.asp?type=5&produit=<%=RSProduit("CodeProduit")%>','yes')"><img src="../images/tit_logiciel.gif" border=0 alt="" name=btp41></a></td>
</tr>
</table>
</td><%
else
'l utilisateur doit s enregistrer%>
<td align=left width=200>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td align=left width=30 height=30><a onMouseOver="document.btp4.src='../images/logiciel_o.gif';document.btp41.src='../images/tit_logiciel_o.gif';" onMouseOut="document.btp4.src='../images/logiciel.gif';document.btp41.src='../images/tit_logiciel.gif';" href="javascript: popup2('Telechargement/rens_tele.asp?from=bas&produit=<%=RSProduit("CodeProduit")%>&typeTel=5','250','220');"><img src="../images/logiciel.gif" border=0 alt="" name=btp4></a></td>
<td align=left valign=middle> <a onMouseOver="document.btp4.src='../images/logiciel_o.gif';document.btp41.src='../images/tit_logiciel_o.gif';" onMouseOut="document.btp4.src='../images/logiciel.gif';document.btp41.src='../images/tit_logiciel.gif';" href="javascript: popup2('Telechargement/rens_tele.asp?from=bas&produit=<%=RSProduit("CodeProduit")%>&typeTel=5','250','220');"><img src="../images/tit_logiciel.gif" border=0 alt="" name=btp41></a></td>
</tr>
</table>
</td><%
end if
nb_liens=nb_liens+1
End If
if nb_liens>=3 then
nb_liens=0%>
</tr><tr>
<td colspan=6 height=10><img src="../images/1ptrans.gif" width="1" height="10"></td>
</tr><tr><%
end if
RSTel.close
set RSTel=nothing
'conseil technique
SQL = "SELECT PDT_TELECHARGEMENT.Telechargement_Id FROM PDT_TELECHARGEMENT WHERE Produit_Id = " &StrCSQL(RSProduit("CodeProduit")) &" And TypeTelechargement_Id = 4"
Set RSTel = Connexion.Execute(SQL)
If Not RSTel.EOF Then'verififer si on doit demander de s enregistrer
If Request.Cookies("ESL")("nom_download")<>"" AND Request.Cookies("ESL")("prenom_download")<>"" AND Request.Cookies("ESL")("email_download")<>"" then
'l utilisateur s'est deja enregitre -> cookie
Session("nom_download")=Request.Cookies("ESL")("nom_download")
Session("prenom_download")=Request.Cookies("ESL")("prenom_download")
Session("email_download")=Request.Cookies("ESL")("email_download")%>
<td align=left width=200>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td align=left width=30 height=30><a onMouseOver="document.btp5.src='../images/conseil_o.gif';document.btp51.src='../images/tit_conseil_o.gif';" onMouseOut="document.btp5.src='../images/conseil.gif';document.btp51.src='../images/tit_conseil.gif';" href="javascript: popup('Telechargement/telecharg.asp?type=4&produit=<%=RSProduit("CodeProduit")%>','yes')"><img src="../images/conseil.gif" border=0 alt="" name=btp5></a></td>
<td align=left valign=middle> <a onMouseOver="document.btp5.src='../images/conseil_o.gif';document.btp51.src='../images/tit_conseil_o.gif';" onMouseOut="document.btp5.src='../images/conseil.gif';document.btp51.src='../images/tit_conseil.gif';" href="javascript: popup('Telechargement/telecharg.asp?type=4&produit=<%=RSProduit("CodeProduit")%>','yes')"><img src="../images/tit_conseil.gif" border=0 alt="" name=btp51></a></td>
</tr>
</table>
</td><%
elseif Session("nom_download")<>"" AND Session("prenom_download")<>"" AND Session("email_download")<>"" then
'l utilisateur s est enregistre auparavant%>
<td align=left width=200>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td align=left width=30 height=30><a onMouseOver="document.btp5.src='../images/conseil_o.gif';document.btp51.src='../images/tit_conseil_o.gif';" onMouseOut="document.btp5.src='../images/conseil.gif';document.btp51.src='../images/tit_conseil.gif';" href="javascript: popup('Telechargement/telecharg.asp?type=4&produit=<%=RSProduit("CodeProduit")%>','yes')"><img src="../images/conseil.gif" border=0 alt="" name=btp5></a></td>
<td align=left valign=middle> <a onMouseOver="document.btp5.src='../images/conseil_o.gif';document.btp51.src='../images/tit_conseil_o.gif';" onMouseOut="document.btp5.src='../images/conseil.gif';document.btp51.src='../images/tit_conseil.gif';" href="javascript: popup('Telechargement/telecharg.asp?type=4&produit=<%=RSProduit("CodeProduit")%>','yes')"><img src="../images/tit_conseil.gif" border=0 alt="" name=btp51></a></td>
</tr>
</table>
</td><%
else
'l utilisateur doit s enregistrer%>
<td align=left width=200>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td align=left width=30 height=30><a onMouseOver="document.btp5.src='../images/conseil_o.gif';document.btp51.src='../images/tit_conseil_o.gif';" onMouseOut="document.btp5.src='../images/conseil.gif';document.btp51.src='../images/tit_conseil.gif';" href="javascript: popup2('Telechargement/rens_tele.asp?from=bas&produit=<%=RSProduit("CodeProduit")%>&typeTel=4','250','220');"><img src="../images/conseil.gif" border=0 alt="" name=btp5></a></td>
<td align=left valign=middle> <a onMouseOver="document.btp5.src='../images/conseil_o.gif';document.btp51.src='../images/tit_conseil_o.gif';" onMouseOut="document.btp5.src='../images/conseil.gif';document.btp51.src='../images/tit_conseil.gif';" href="javascript: popup2('Telechargement/rens_tele.asp?from=bas&produit=<%=RSProduit("CodeProduit")%>&typeTel=4','250','220');"><img src="../images/tit_conseil.gif" border=0 alt="" name=btp51></a></td>
</tr>
</table>
</td><%
end if
nb_liens=nb_liens+1
End If
if nb_liens>=3 then
nb_liens=0%>
</tr><tr>
<td colspan=6 height=10><img src="../images/1ptrans.gif" width="1" height="10"></td>
</tr><tr><%
end if
'forum
'Modif Apporté par Gaël Duhamel le 14/06/2001
'On regarde si il y a des forums associés à ce produit
SQL = "Select count(FOR_ASSOC.Theme_Id) As Cpt FROM FOR_ASSOC LEFT OUTER JOIN FOR_THEME ON FOR_ASSOC.Theme_id = FOR_THEME.Theme_id Where CodeProduit Like " &StrCSQL(RSProduit("CodeProduit")) &" And FOR_THEME.visible = 1"
Set RsCpt = Connexion.Execute(SQL)
If RsCpt("Cpt") > 0 Then%>
<td align=left width=200>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td align=left width=30 height=30><a onMouseOver="document.btp2.src='../images/forum_o.gif';document.btp21.src='../images/tit_forum_o.gif';" onMouseOut="document.btp2.src='../images/forum.gif';document.btp21.src='../images/tit_forum.gif';" href="forum/forum_liste_produit.asp?CodeProduit=<%=RSProduit("CodeProduit")%>&famille_Id=<%=Famille_Id%>&SSFamille_Id=<%=SSFamille_Id%>&CptEnr=<%=RsCpt("Cpt")%>"><img src="../images/forum.gif" border=0 alt="" name=btp2></a></td>
<td align=left valign=middle> <a onMouseOver="document.btp2.src='../images/forum_o.gif';document.btp21.src='../images/tit_forum_o.gif';" onMouseOut="document.btp2.src='../images/forum.gif';document.btp21.src='../images/tit_forum.gif';" href="forum/forum_liste_produit.asp?CodeProduit=<%=RSProduit("CodeProduit")%>&famille_Id=<%=Famille_Id%>&SSFamille_Id=<%=SSFamille_Id%>&CptEnr=<%=RsCpt("Cpt")%>"><img src="../images/tit_forum.gif" border=0 alt="" name=btp21></a></td>
</tr>
</table>
</td><%
End If
RsCpt.Close
Set RsCpt = Nothing%>
</tr>
</table>
</td>
</tr><tr>
<td height=15 colspan=2><img src="../images/1ptrans.gif" width="1" height="5"></td>
</tr><tr>
<td class="text"><font size=2><%
End If
'informations complementaires du produit
sql="SELECT DesignationLongue FROM Pdt_LibelleProduit WHERE CodeProduit=" & strCSQL(CodeProduit) & " AND CodeLangue=" & langueSite
set RSDetails=connexion.execute(sql)
if not RSDetails.EOF then
details = RSDetails("DesignationLongue") %><%=textCHTML(details)%><%
end if
RSDetails.close
set RSDetails=nothing %>
<br><br></font>
</td>
</tr><tr>
<td align=center>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=250 height=1><img src="../images/1pgris.gif" width="250" height="1"></td>
</tr><tr>
<td width=1 height=5><img src="../images/1ptrans.gif" width="1" height="5"></td>
</tr><tr>
<td>
<table cellpadding=0 cellspacing=0 border=0 align=center>
<tr>
<td width="13" height="14"><img src="../images/flag_vert.gif" width="13" height="14"></td>
<td class="text" valign=top><font size=1> en stock</font></td>
<td width=15><img src="../images/1ptrans.gif" width="10" height="1"></td>
<td width="13" height="14"><img src="../images/flag_orange.gif" width="13" height="14"></td>
<td class="text" valign=top><font size=1> dispo en<br> 10 jours</font></td>
<td width=15><img src="../images/1ptrans.gif" width="10" height="1"></td>
<td width="13" height="14"><img src="../images/flag_rouge.gif" width="13" height="14"></td>
<td class="text" valign=top><font size=1> dispo en<br> 1 mois</font></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=30><img src="../images/1ptrans.gif" width=1 height=30></td>
</tr><tr>
<td class="gris" align=center><%if Session("CodeClient")<>"" then%>Les prix en rouge tiennent compte de vos réductions client<br><%end if%>
Photos non contractuelles.</td>
</tr><tr>
<td height=5><img src="../images/1ptrans.gif" width=1 height=5></td>
</tr><tr>
<td height="1"><table cellpadding="0" cellspacing="0" border="0" width=100% height="1"><tr><td width=80% bgcolor="#838383" height="1"><img src="../images/1ptrans.gif" width=1 height=1></td><td width=20% height="1"><img src="../images/home/fin_fleche.gif" width="27" height="1" border="0" alt=""></td></tr></table></td>
</tr><tr>
<td height=20><img src="../images/1ptrans.gif" width=1 height=20></td>
</tr>
</table><br></form>
</body>
</html><%
RSProduit.Close
Set RSProduit = Nothing
Deconnecter()
'si l identification a reussi : on ouvre la popup de telechargement
if request.querystring("identelech")="ok" then %>
<script>
popup('Telechargement/telecharg.asp?type=<%=request.querystring("typeTel")%>&produit=<%=CodeProduit%>','yes');
</script>
<%
end if
%> |
Partager