%@ LANGUAGE="VBSCRIPT" %>
<%
' First, the subroutines...
sub cleanup
if ucase(TypeName(RS)) = "OBJECT" then
RS.Close
Set RS=nothing
End If
if ucase(TypeName(RS2)) = "OBJECT" then
RS2.Close
Set RS2=nothing
End If
if ucase(TypeName(RS3)) = "OBJECT" then
RS3.Close
Set RS3=nothing
End If
if ucase(TypeName(RS4)) = "OBJECT" then
RS4.Close
Set RS4=nothing
End If
if ucase(TypeName(RS5)) = "OBJECT" then
RS5.Close
Set RS5=nothing
End If
if ucase(TypeName(RS6)) = "OBJECT" then
RS6.Close
Set RS6=nothing
End If
if ucase(TypeName(MyConn)) = "OBJECT" then
MyConn.Close
Set MyConn = Nothing
end if
end sub
' End of subroutines.
%>
Automation Displays Catalog
<%
dim RS
dim RS2
dim RS3
dim RS4
dim RS5
dim RS6
dim MyConn
call cleanup 'Just in case.
Set MyConn = Server.CreateObject("ADODB.Connection")
MyConn.Open Application("Database1_ConnectionString")
Set RS = Server.CreateObject ("ADODB.Recordset")
Set RS2 = Server.CreateObject ("ADODB.Recordset")
Set RS3 = Server.CreateObject ("ADODB.Recordset")
Set RS4 = Server.CreateObject ("ADODB.Recordset")
Set RS5 = Server.CreateObject ("ADODB.Recordset")
Set RS6 = Server.CreateObject ("ADODB.Recordset")
strSQL = "SELECT * FROM Catalog ORDER BY Category ASC"
If (request("PN")<>"") Then
strSQL = "SELECT * FROM Catalog where part_number LIKE "
strSQL = strSQL & "'%" & request("PN") & "%'"
strSQL4 = "SELECT * FROM Options where part_number LIKE "
strSQL4 = strSQL4 & "'%" & request("PN") & "%'"
strSQL5 = "SELECT * FROM flipbook where image_name LIKE "
strSQL5 = strSQL5 & "'%" & request("PN") & "%'"
End If
If (Request("k")<>"") Then
tempk=request("k")
strSQL = "SELECT * FROM Catalog where part_number LIKE "
strSQL = strSQL & "'%" & tempk & "%'"
strSQL4 = "SELECT * FROM Options where part_number LIKE "
strSQL4 = strSQL4 & "'%" & tempk & "%'"
strSQL5 = "SELECT * FROM flipbook where image_name LIKE "
strSQL5 = strSQL5 & "'%" & tempk & "%'"
End If
RS.Open strSQL, MyConn, 3
If (RS.EOF) Then Response.redirect "psmerr.html"
If (not RS.EOF) Then RS.MoveFirst
psmatrix=request("PSM")
if psmatrix="" Then Response.redirect "psmerr.html"
'strSQL6 = "SELECT * FROM Product_Selection_Matrix where PSM LIKE '%J924%' ORDER BY short_description, value ASC"
strSQL6 = "SELECT * FROM Product_Selection_Matrix where PSM LIKE '%"
strSQL6 = strSQL6 & psmatrix
strSQL6 = strSQL6 & "%' ORDER BY short_description, value ASC"
RS6.Open strSQL6, MyConn, 3
If (RS6.EOF) Then Response.redirect "psmerr.html"
If (not RS6.EOF) Then RS6.MoveFirst
%>
 |
|
|
Automation Displays, Inc.
|
|
|
|
|
|
|
|
|
Product Selection Matrix for <% If Not RS6.EOF Then Response.Write RS6("PSM") %>
|
|
Part # <% If Not RS6.EOF Then Response.Write RS6("PSM") %>-
|
<%
tabstr="tab3.png"
'If (RS("Category")="All Items") Then tabstr="tab1.png"
If (request("S")="0") Then tabstr="tab1.png"
Response.Write "| "
%>
All Items |
<%
tabstr="tab3.png"
'If (RS("Category")="Audio") Then tabstr="tab1.png"
If (request("S")="1") Then tabstr="tab1.png"
Response.Write ""
%>
Audio |
<%
tabstr="tab3.png"
'If (RS("Category")="Numeric Display") Then tabstr="tab1.png"
If (request("S")="2") Then tabstr="tab1.png"
Response.Write ""
%>
Displays |
<%
tabstr="tab3.png"
'If (RS("Category")="Hardware") Then tabstr="tab1.png"
If (request("S")="3") Then tabstr="tab1.png"
Response.Write ""
%>
Hardware |
<%
tabstr="tab3.png"
'If (RS("Category")="Intercom") Then tabstr="tab1.png"
If (request("S")="4") Then tabstr="tab1.png"
Response.Write ""
%>
Intercom |
<%
tabstr="tab3.png"
'If (RS("Category")="I/O Card") Then tabstr="tab1.png"
If (request("S")="5") Then tabstr="tab1.png"
Response.Write ""
%>
i/O |
<%
tabstr="tab3.png"
'If (RS("Category")="Z-Card") Then tabstr="tab1.png"
If (request("S")="6") Then tabstr="tab1.png"
Response.Write ""
%>
Z-Card |
<%
tabstr="tab3.png"
'If (RS("Category")="Free!") Then tabstr="tab1.png"
If (request("S")="7") Then tabstr="tab1.png"
Response.Write "| "
%>
Free! |
<%
tabstr="tab3.png"
'tabstr="lgrey040.jpg"
If (request("S")="8") Then tabstr="tab1.png"
Response.Write ""
%>
<%
tabstr="tab3.png"
If (request("S")="9") Then tabstr="tab1.png"
Response.Write " | "
%>
Environment |
<%
tabstr="tab3.png"
'tabstr="lgrey040.jpg"
If (request("S")="10") Then tabstr="tab1.png"
Response.Write ""
%>
SERA |
<%
tabstr="tab3.png"
'tabstr="lgrey040.jpg"
If (request("S")="11") Then tabstr="tab1.png"
Response.Write ""
%>
Steel |
<%
tabstr="tab3.png"
'tabstr="lgrey040.jpg"
If (request("S")="12") Then tabstr="tab1.png"
Response.Write ""
%>
<%
tabstr="tab3.png"
'tabstr="lgrey040.jpg"
If (request("S")="13") Then tabstr="tab1.png"
Response.Write " | "
%>
|
|
3533 N. White Ave.
Eau Claire, WI 54703 715.834.9595 (voice) 715.834.9596 (fax)
adi@adipanel.com |
|
| |
<% call cleanup %>