index = request("index")
page = request("page")
stype = request("stype")
searchstr = request("searchstr")
sql = "SELECT date, readNum, title, name, comment FROM AdminBBS "
sql = sql & " WHERE idx = " & index & " "
set rs = DbCon.Execute (sql)
if not rs.EOF then
sql = "UPDATE AdminBBS SET readNum=readNum+1 WHERE idx=" & index
DBCon.Execute (sql)
name = trim(rs("name"))
if name = "菂菂" or name = "rd52099" then name = ""
text = rs("comment")
text = replace(text, CRLF, "")
text = replace(text,"''","'")
text = replace(text,"&","&")
text = replace(text,"<"," text = replace(text,">",">")
text = replace(text," "," ")
%>
function action (mode)
{
if (mode == "modify" || mode == "delete")
{
document.board.mode.value = mode;
if (mode=='delete')
{
if (confirm ("该公告已被删除?"))
{
document.board.action = "community_notice_write.asp";
}
else
{
return;
}
}
document.board.submit ();
}
}
, 点击:
else
%>
alert("目前还没有公告.");
location.href = "community_notice.asp";
//-->
end if
%>