%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<% response.redirect "http://www.blockshaft.it/catalogo_modello.asp?i=" &request("i_modello") %>
<%
id_modello = request.QueryString("i_modello")
if isNumeric(id_modello) = false then id_modello = 0 else id_modello = CInt(id_modello)
set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = conn_db_piantoni
rs.Source = "SELECT * FROM modelli WHERE ID = " &id_modello
rs.CursorType = 0
rs.CursorLocation = 3
rs.LockType = 3
rs.Open()
if rs.eof then
rs.Close
set rs = nothing
response.write "default.asp"
else
id_marca = rs("IDMARCA")
modello = rs("MODELLO")
end if
set rs2 = Server.CreateObject("ADODB.Recordset")
rs2.ActiveConnection = conn_db_piantoni
rs2.Source = "SELECT * FROM marche WHERE ID = " &id_marca
rs2.CursorType = 0
rs2.CursorLocation = 3
rs2.LockType = 3
rs2.Open()
if not rs2.Eof then marca = rs2("MARCA")
rs2.Close
set rs2 = nothing
%>
BlockShaft.it | Catalogo <%=marca &" " &modello%>
Catalogo <%=marca &" " &modello%>
scegli l'antifurto
| |
|
|
<% while not rs.Eof
if len(rs("FOTO1")) = 0 or isnull(rs("FOTO1")) = true then immagine_1 = "nada_100x100.jpg" else immagine_1 = rs("FOTO1")
if len(rs("FOTO2")) = 0 or isnull(rs("FOTO2")) = true then immagine_2 = "nada_100x100.jpg" else immagine_2 = rs("FOTO2")
if rs("PRODUZIONE") = True then part_produzione = "in" else part_produzione = "fuori"
%>
|
|
"> " border="0" /> |
"> " border="0" /> |
| Modello d'auto <%=part_produzione%> produzione |
| |
|
|
<% rs.MoveNext
wend
rs.Close
set rs = nothing %>
Specifiche tecniche
|
Contattare
il tecnico |
Solo su
originale |
Foto
antifurto |
Codice costo
antifurto |
<%
set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = conn_db_piantoni
rs.Source = "SELECT * FROM qGenerale WHERE IDMODELLO = " &id_modello &" ORDER BY PRIORITA ASC"
rs.CursorType = 0
rs.CursorLocation = 3
rs.LockType = 3
rs.Open()
while not rs.Eof
If rs("TECNICO") = True Then tecnico = " " Else tecnico = " "
If rs("PRODOTTA") = True Then prodotta = " " Else prodotta = " "
specifiche = ""
If Len(rs("CARATTERISTICA1")) > 0 Then specifiche = specifiche & rs("CARATTERISTICA1") & ": " & rs("PARAMETRO1") & " "
If Len(rs("CARATTERISTICA2")) > 0 Then specifiche = specifiche & rs("CARATTERISTICA2") & ": " & rs("PARAMETRO2") & " "
If Len(rs("CARATTERISTICA3")) > 0 Then specifiche = specifiche & rs("CARATTERISTICA3") & ": " & rs("PARAMETRO3") & " "
If Len(rs("CARATTERISTICA4")) > 0 Then specifiche = specifiche & rs("CARATTERISTICA4") & ": " & rs("PARAMETRO4") & " "
If Len(rs("CARATTERISTICA5")) > 0 Then specifiche = specifiche & rs("CARATTERISTICA5") & ": " & rs("PARAMETRO5") & " "
If Len(rs("CONFIGURAZIONE")) > 0 Then specifiche = specifiche & "CONFIGURAZIONE: " & vbCrLf & "" & rs("CONFIGURAZIONE") & " "
%>
<%=rs("CODICE")%>
<%=specifiche%> |
<%=tecnico%> |
<%=prodotta%> |
',620,450);return false;"> |
<%=rs("COSTO")%> |
|
<% rs.MoveNext
wend
rs.close
set rs = nothing %>
|