📄 fava.asp
字号:
<!--#include file="Connections/connY.asp" -->
<!--#include file="Inc/Set.asp" -->
<%
'权限控制
If Session("SLevel")=0 Then Response.Redirect "Error.asp?Error=5"
'定义参数
I=Request.QueryString("I")
'取得文章参数
Set rsFava = Server.CreateObject("ADODB.Recordset")
Sql = "Select * From tArticleManage Where rID="&I
rsFava.Open Sql,ConnY,3,3
If rsFava.Eof And rsFava.Bof Then Response.Redirect "Error.asp?Error=3"
'添加到收藏夹
If Request.QueryString("I")<>"" Then
LiannID=Request.QueryString("I")
Flag=0
Set rsFav = Server.CreateObject("ADODB.Recordset")
Sql = "Select * From tUserManage Where rUserID='"&Session("SUserID")&"'"
rsFav.Open Sql,ConnY,3,3
LiannAray=rsFav("rFav")
LiannSplit=Split(LiannAray,",")
For i=1 To UBound(LiannSplit)
If LiannID=LiannSplit(i) Then
Flag=1
Note="该文章已被收藏"
BackToURL="View.asp?T="&rsFava("rType")&"&S="&rsFava("rSubject")&"&I="&rsFava("rID")
End If
Next
If Flag=0 Then
rsFav("rFav")=LiannAray & "," & LiannID
rsFav.Update
rsFav.Close
Note="文章收藏成功"
BackToURL="View.asp?S="&Forum_ID&"&I="&rsFava("rID")
End If
End If
rsFava.Close
Set rsFava=Nothing
%>
<html>
<head>
<title><%=Forum_Title%></title>
<meta http-equiv="Content-Type" content="text/html;">
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<!--#include file="Inc/Css.asp" -->
</head>
<body leftmargin="0" topmargin="0" bgcolor="<%=Forum_BgColor%>" vlink="<%=Forum_Css_A_Link_Color%>">
<!--#include file="Inc/Top.asp" -->
<table width="<%=Forum_Width%>" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="<%=Forum_BorderColor%>">
<tr>
<td height="20" bgcolor="<%=Forum_BgColor%>">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="font">
<tr>
<td> 您所在的位置: <a href="../" onFocus="this.blur()">首页</a> >>
<a href="List.asp" onFocus="this.blur()">讨论组</a> >> <a href="List.asp?T=<%=Forum_TypeID%>" onFocus="this.blur()"><%=Forum_TypeName%></a>
>> <a href="Board.asp?S=<%=Forum_ID%>" onFocus="this.blur()"><%=Forum_Name%></a>
>> <font color="<%=Forum_NavFontColor%>">收藏文章</font></td>
<td width="150"></td>
<td width="18"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="<%=Forum_Width%>" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height=1></td>
</tr>
</table>
<table width="<%=Forum_Width%>" border="0" cellspacing="1" cellpadding="2" align="center" class="font" bgcolor="<%=Forum_BorderColor%>">
<tr>
<td bgcolor="<%=Forum_BgColor%>" height="344">
<div align="center">
<table width="400" border="0" cellspacing="1" cellpadding="2" bgcolor="<%=Forum_BorderColor%>" class="font">
<tr>
<td height="100" bgcolor="<%=Forum_AlternateColor1%>">
<div align="center"><font color="<%=Forum_PFontColor%>"><%=Note%></font><br>
<br>
该页面将会在3秒钟后自动返回</div>
</td>
</tr>
</table>
<script language=javascript>
setTimeout("location.replace('<%=BackToURL%>')",3000)
</script>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
</td>
</tr>
</table>
<!--#include file="Inc/Bottom.asp" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -