<%@ LANGUAGE = VBScript %>
<% Option Explicit %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Point of View</title>
</head>
<body bgcolor="#f8f5eb">
<table align="center" width="1024" cellpadding="0" cellspacing="0" border="0">
<tr height="300">
<td colspan="3" width="1024" align="center">
[img]images/header.jpg[/img]
</td>
</tr>
<tr valign="top">
<td width="200" height="704" rowspan="2">
[img]images/p_home.jpg[/img]
[img]images/p_fotocamere_digitali.jpg[/img]
[img]images/p_fotocamere_reflex.jpg[/img]
[img]images/p_obiettivi.jpg[/img]
[img]images/p_borse.jpg[/img]
[img]images/p_photoframe.jpg[/img]
[img]images/p_stampanti.jpg[/img]
[img]images/p_carte_fotografiche.jpg[/img]
[img]images/p_contatti.jpg[/img]
</td>
<td width="694" height="30" align="center">
[img]images/prodotti.jpg[/img]
</td>
<td width="200" height="704" valign="top" rowspan="2">
[img]images/carrello.jpg[/img]
</td>
</tr>
<tr>
<td width="300" height="738" align="center" valign="top">
<%
Dim oConn
Dim oRs
Dim filePath
Dim Index
filePath = Server.MapPath("database.mdb")
response.write(filePath)
response.end(
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath
Set oRs = oConn.Execute("SELECT cod_prod, Marca, Modello, Sezione, Descrizione, Prezzo, Immagine From tProdotti")
%>
<table width="250" height="51" border="1">
<tr>
<td>Codice</td>
<td>Marca</td>
<td>Modello</td>
<td>Sezione</td>
<td>Descrizione</td>
<td>Prezzo</td>
<td>Immagine</td>
</tr>
<%
if oRs.eof then
Response.Write "NON ESISTE"
ELSE
Do while Not oRs.eof
%>
<tr align="center">
<td><%Response.Write (oRs("cod_prod"))%></td>
<td><%Response.Write (oRs("Marca"))%></td>
<td><%Response.Write (oRs("Modello"))%></td>
<td><%Response.Write (oRs("Sezione"))%></td>
<td><%Response.Write (oRs("Descrizione"))%></td>
<td><%Response.Write (oRs("Prezzo"))%></td>
<td>[img]<%Response.Write(oRs([/img]"</td>
</tr>
<% oRs.MoveNext
Loop
END IF
oRs.close
oConn.close
%>
</table>
</td>
</tr>
<tr height="20">
<td colspan="3" align="center">
<font style="font-family:Arial, Helvetica, sans-serif;color:#a7872f; font-size:12px" >sito realizzato da - Copyright 2008</font>
</td>
</tr>
</table>
</body>
</html>