%@ Language=VBScript %> <% Updated = Request.QueryString("Updated") %> <% PageTitle = "SiteManager - List Supplies" %> <% PageID=301 %> <% Header %> <% Menu PageID %> <%' Main body of page goes here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ %> <% SupplyList %> <%' End Of Main body ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ %> <% Footer %> <% Sub SupplyList OpenConnection1 Set rs = Server.CreateObject("ADODB.Recordset") If Request.QueryString("DS")<>"" then IPath= Server.MapPath("\") & "\Uploads\SupplyImages\" SupplyID=Request.QueryString("DS") sql="DELETE S_Specs WHERE nSupplyID=" & SupplyID DB.Execute(sql) SET del=Server.CreateObject("SoftArtisans.SAFile") SEL="SELECT txtImage FROM Supplies WHERE SupplyID=" & SupplyID rs.Open SEL,DB,1,3 If rs("txtImage")<>"" then del.Delete IPath & rs("txtImage") rs("txtImage")="" rs.Update rs.Close Else rs.Close End If sql="DELETE Supplies WHERE SupplyID=" & SupplyID DB.Execute(sql) End If CatID=Request.Form("selCat")%>
<%= FormatDateTime(Date,1) %>