%@ LANGUAGE="VBSCRIPT" %> <% Dim FileName ' ********************************** ' Function to check file Existance ' ********************************** Function IsFileExists(byVal FileName) If FileName = "" Then IsFileExists = False Exit Function End If Dim objFSO Set objFSO = Server.CreateObject("Scripting.FileSystemObject") If (objFSO.FileExists( FileName ) = True) Then IsFileExists = True Else IsFileExists = False End If Set objFSO = Nothing End Function %> <% '/////////////////////////////////////////////////////////////////////////////// ' displayp.asp - Display Products page' ' This active server page displays the information for products. 'It has several different ways of displaying product information depending on the 'op and CategoryID variables that are sent into it via the querystring. ' 'When CategoryID has no value, the information for all products is displayed 'in HTML format. Otherwise, the information only for products that belong 'to the category referenced by CategoryID is displayed in HTML format. ' 'When the op variable is "Update", an additional column will be added to the 'product information table that contains "Update" buttons. The buttons allow 'the user to update the products' information. ' 'When the op variable is "Remove", 'an additional column is added to the HTML output table that contains checkboxes 'and a "Remove Product(s)" button is added to the bottom of the page. 'The checkboxes allow the user to select as many products as they wish from the 'table to be removed when the "Remove Product(s)" button is pressed. ' 'If the op variable has no value, then no extra columns are added and just the 'product information is displayed. '////////////////////////////////////////////////////////////////////////////// 'Set the page to expire so that the page is refresed everytime the 'user requests it. Response.Expires = 0 %>
|
<%
IF Image = " " THEN
Response.Write " | |||||||||||||
| " & ProductInfo.Fields(i).Name & " | " NEXT %>|||||||||||||
| " Response.Write ProductInfo.Fields(i).Value Response.Write " | " NEXT Response.Write "|||||||||||||