<%@LANGUAGE="VBSCRIPT"%>
<% option explicit %>
<%
'--> controllo se ha passato il login
if Session("idUtente") = "" then
Response.Redirect("Login.asp")
end if
'<-- controllo se ha passato il login
%>
<html>
<head>
<title>Ricerca</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="Stile.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUpAvviso(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=200,height=299,left = 315,top = 312');");
}
// End -->
</script>
</head>
<div align="center">
<table border="0" width="780" id="table1" style="border-collapse: collapse; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px" bordercolor="#000000">
<tr>
<td width="184" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
<p style="margin-top: 0; margin-bottom: 0" align="center">
[img]images/logogif.gif[/img]</p>
</td>
<td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="4">Cerca opere per titolo</font></p>
<p style="margin-top: 0; margin-bottom: 0"></td>
</tr>
</table>
<p style="margin-top: 0; margin-bottom: 0"></div>
<body background="../immagini/BackgroundMusic.gif">
<div id="boxRicerca" class="nascondi">
<font face="Tahoma" style="font-size: 9pt">
<a name="top"></a>
</font>
<fieldset style="width: 780" align="center">
<legend title=""><font face="Tahoma" style="font-size: 9pt">Ricerca opere per titolo</font></legend>
<form action="<%=Request.ServerVariables("PATH_INFO") %>" method="POST" name="frmRicerca" id="frmRicerca" style="width: 780">
<font face="Tahoma"><span style="font-size: 9pt">Digita il titolo o una parte di esso:<input type="text" name="titoloTXT" value="" size="78"></span></font></p>
<font face="Tahoma"><span style="font-size: 9pt">
<input name="Cerca" type="submit" value="Cerca" style="font-family: Verdana; font-size: 8pt"><input name="Cancella" type="reset" value="Cancella tutto" style="font-family: Verdana; font-size: 8pt"></span></font></p>
</form>
</fieldset><font face="Tahoma"><span style="font-size: 9pt"> </span></font>
</div>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Tahoma" style="font-size: 9pt">
<%
'--> viene visualizzata solo se è stata inviata la form
if Request.ServerVariables("REQUEST_METHOD") = "POST" then
dim rstElenco, strSQL, condizioneWhere
strSQL = "SELECT * FROM Archivio"
condizioneWhere = ""
if Request.Form("titoloTXT") <> "" then
condizioneWhere = " WHERE Titolo LIKE '%" & Request.Form("titoloTXT") & "%'"
end if
strSQL = strSQL & condizioneWhere & " ORDER BY Compositore ASC, Titolo ASC"
set rstElenco = oConnMdb1.Execute(strSQL)
if not rstElenco.eof then
%>
</font>
</p>
<fieldset style="width: 780" align="center">
<legend title=""><font face="Tahoma" style="font-size: 9pt">Risultati ricerca</font></legend>
<table border="0" padding="2px" width="780">
<thead>
<tr>
<th align="center"><font face="Tahoma" style="font-size: 9pt">Codice</font></th>
<th align="center"><font face="Tahoma" style="font-size: 9pt">Compositore</font></th>
<th align="center"><font face="Tahoma" style="font-size: 9pt">Titolo</font></th>
<th align="center"><font face="Tahoma" style="font-size: 9pt">Durata</font></th>
<th align="center"><font face="Tahoma" style="font-size: 9pt">Formazione</font></th>
<th align="center"><font face="Tahoma" style="font-size: 9pt">Anno di
pubblicazione</font></th>
<th align="center"><font face="Tahoma" style="font-size: 9pt">Editore</font></th>
<th align="center"><font face="Tahoma" style="font-size: 9pt">Numero
di
catalogo</font></th>
</tr>
</thead>
<tbody>
<%
dim tmp_prezzo
do while not rstElenco.eof
%>
<tr bgcolor="#33CCFF">
<td bgcolor="#66FF66"><font face="Tahoma" style="font-size: 9pt"><%=rstElenco("IDOpera")%></font></td>
<td bgcolor="#66FF66"><font face="Tahoma" style="font-size: 9pt"><%=rstElenco("Compositore")%></font></td>
<td bgcolor="#66FF66"><font face="Tahoma" style="font-size: 9pt"><%=rstElenco("Titolo")%></font></td>
<td bgcolor="#66FF66"><font face="Tahoma" style="font-size: 9pt"><%=rstElenco("Durata")%></font></td>
<td align="center" bgcolor="#66FF66">
<font face="Tahoma" style="font-size: 9pt"><%=rstElenco("Formazione")%></font></td>
<td align="center" bgcolor="#66FF66">
<font face="Tahoma" style="font-size: 9pt"><%=rstElenco("Anno")%></font></td>
<td align="center" bgcolor="#66FF66">
<font face="Tahoma" style="font-size: 9pt"><%=rstElenco("Editore")%></font></td>
<td align="center" bgcolor="#66FF66">
<font face="Tahoma" style="font-size: 9pt"><%=rstElenco("Numero")%></font></td>
</tr>
</tbody>
<%
rstElenco.movenext
loop
%>
</table>
<font face="Tahoma" style="font-size: 9pt">
<span class="barraMenu">
Legenda
</span>
</font>
</fieldset>
<%
rstElenco.close
set rstElenco = nothing
else
Response.Write "<center><h1>Nessun'opera trovata nel database con il titolo o parte del titolo specificato.</h1>
Home</p></center>"
end if
set rstElenco = nothing
end if
%>
</font>
</body>
</html>
<%
set oConnMdb1 = nothing
%>