|
|
| |
File |
Tag ID |
Type |
Edit |
Delete |
<%
dim fileurl as string=""
dim isasset as string=""
dim conn as New SqlConnection(connectionstr)
dim mycommand as New SqlCommand("xlaANMsp_edit_article_files",conn)
mycommand.Parameters.Add( "@articleid" , articleid)
mycommand.Parameters.Add( "@kill", kill)
mycommand.CommandType = CommandType.StoredProcedure
mycommand.connection = conn
conn.open()
dim dr as SqlDataReader=mycommand.ExecuteReader()
if dr.read() then deletefile(dr("filename"),dr("urlfile"))
dr.nextresult()
do while dr.read()
if dr("urlfile")=0 then
fileurl="articlefiles/" & dr("articleid") & "-" & dr("filename")
else
fileurl=dr("filename")
if instr(1,fileurl,"./articlefiles/r.asp?f=",1)<>0 then fileurl=replace(fileurl,"./articlefiles/r.asp?f=", appsettings.applicationurl & "articlefiles/r.aspx?f=",1,-1,1)
if instr(1,fileurl,"../articlefiles/",1)<>0 then fileurl=replace(fileurl,"../articlefiles/", appsettings.applicationurl & "articlefiles/",1,-1,1)
end if
if dr("isasset")<>"" then isasset=" (Asset) " else isasset=""
%>
.gif" alt="<%=dr("filetype")%>" border=0> |
<%=left(dr("filetitle"),255)%>
<%=isasset%>
<%=dr("filecomment")%> |
<%=getreference(dr("filetype"),dr("tagid"),dr("isasset"))%> |
<%=dr("filetype")%> |
);"> |
);">
 |
<%
loop
dr.close()
conn.close()
%>