")
%>
第<%=rsbook("I_ID")%>条留言
">
> <%
if lcase(trim(rsbook("VC_AccountName")))="guest" then
response.Write(""&rsbook("VC_AccountName")&"")
else
'开始判断用户是否被删除
if getUser_ID(rsbook("VC_AccountName"))=0 then
response.Write(rsbook("VC_AccountName") & "[已删]")
else
if instr(1,getPermission(),",5,")<>0 or instr(1,getPermission(),",1,")<>0 or instr(1,getPermission(),",2,")<>0 then %>','',400,500)" alt="察看<%=rsbook("VC_AccountName")%>会员资料"><%=rsbook("VC_AccountName")%> <% else
response.write rsbook("VC_AccountName")
end if
end if
end if
%>
<%if trim(rsbook("VC_homepage"))<>"" then %>">他的主页<%else
response.write ("没有主页")
end if %>
<% if rsbook("B_Email_Serect")=true then
if instr(1,getPermission(),",6,")<>0 or (get_AccountName()=rsbook("VC_AccountName") and lcase(get_AccountName())<>"guest")then
response.Write("写信给他")
else
response.write "Email 保密"
end if
else
%>">写信给他
<% end if %>
<% if trim(rsbook("VC_Contact"))<>"0" then %>
.gif" width="18" height="18">
<% if ucase(trim(rsbook("VC_Contact")))="QQ" then response.Write trim(rsbook("VC_Contact_Number"))
if ucase(trim(rsbook("VC_Contact")))="MSN" then response.Write "MSN No."
if ucase(trim(rsbook("VC_Contact")))="ICQ" then response.Write trim(rsbook("VC_Contact_Number"))
if ucase(trim(rsbook("VC_Contact")))="YAHOO" then response.Write "Yahoo No."
%>
<%end if %> |
[发布者] :<%=rsbook("VC_Name")%> [发表于] :<%=rsbook("DT_Add_Time")%> [状态]:<%
if rsbook("B_FixTop")=True or rsbook("I_Lock")=1 or rsbook("I_Lock")=2 or rsbook("I_Lock")=3 or rsbook("B_AdminRead")=True or rsbook("B_Admin_Reply")=True then
if (rsbook("B_Admin_Reply")=true or rsbook("B_AdminRead")=true) then
response.write " 禁回"
else
if rsbook("I_Lock")=3 then response.write " 不限回复"
end if
if rsbook("B_FixTop")=True then response.write " 置顶"
if rsbook("I_Lock")=1 or rsbook("I_Lock")=2 then response.write " 锁定"
if rsbook("B_AdminRead")=True then response.write " 保密"
else
response.write "正常"
end if %> |
<%
''''开始判断是否是保密留言
if rsbook("B_AdminRead")=true and not (instr(1,getPermission(),",6,")<>0 or (get_AccountName()=rsbook("VC_AccountName") and lcase(get_AccountName())<>"guest")) then
response.write "
->您目前没有权限查看此留言的内容和其所有回复.
->发布者设置为保密.如果不能查看,请登陆后再试!"
else
%>
:<%=rsbook("VC_Title")%>
:<%=ubbcode((rsbook("T_Content")))%>
<%
if trim(rsbook("Dt_UpDate_Time"))<>"" then response.write "---更新于"&rsbook("Dt_UpDate_Time")&" "%>
<%
sql="select * from B_Reply where I_I_ID= "& rsbook("I_ID")
set rsReply=server.createobject("adodb.recordset")
rsReply.Open sql,conn,1,1
if not rsReply.eof then
%>
<%
do until rsReply.eof
%>
|
|
<%
ii=ii+1 '回复数+1
rsReply.movenext
loop
rsreply.close '关闭记录及
end if
%>
<%'结束判断三否是保密留言
end if
%> |
0 or (get_AccountName()=rsbook("VC_AccountName") and lcase(get_AccountName())<>"guest")) then
response.Write(rsbook("VC_ip"))
else
response.Write("IP已经记录,你没有权限察看!")
end if%>" > 记录
<%
''''''''开始判断是否开放游客留言
if B_Check=true or lcase(get_AccountName())<>"guest" then%>
<%else
response.Write("")
end if %> 新留言
<% if lcase(trim(rsbook("VC_AccountName")))<>"guest" then %>
','短消息',500,400)" > PM
<% end if %>
<% if (rsbook("B_Admin_Reply")=true or rsbook("B_AdminRead")=true) and not (instr(1,getPermission(),",6,")<>0 or instr(1,getPermission(),",2,")<>0 or (get_AccountName()=rsbook("VC_AccountName") and lcase(get_AccountName())<>"guest")) then
response.write "无权限回复"
else
if (rsbook("I_Lock")=1 or rsbook("I_Lock")=2) and instr(1,getPermission(),",6,")=0 then
response.Write "回复锁定"
else
''''''''开始判断是否开放游客回复
if B_Check=true or lcase(get_AccountName())<>"guest" then%>
" >
<%else
response.Write("")
end if %>
回复
<%
end if
end if %>
<% if instr(1,getPermission(),",6,")<>0 or instr(1,getPermission(),",1,")<>0 then '如果 删除留言权限 %>
" onClick="{if(confirm('注意!此操作是不可恢复的。\n确定要删除该留言以及所有属于此留言的回复吗?')){return true;}return false;}"> 删除
" onClick="{if(confirm('确定要将该留言的位置提升到顶端吗?')){return true;}return false;}"> 提升
<% if rsbook("B_FixTop")=false then %>
" onClick="{if(confirm('确定要将该留言置顶吗?')){return true;}return false;}"> 置顶
<% else%>
" onClick="{if(confirm('确定要将该留言解除置顶吗?')){return true;}return false;}"> 取消置顶
<%end if %>
<% if rsbook("I_Lock")=0 or rsbook("I_Lock")=3 then %>
" onClick="{if(confirm('注意!锁定此留言后,其他人将无法回复!发布人也无法再编辑!\n确定要将该留言锁定吗?')){return true;}return false;}"> 锁定
<%else%>
" onClick="{if(confirm(' 确定要将该留言解除锁定吗?')){return true;}return false;}"> 解锁
<%end if
end if %>
<% if ((instr(1,getPermission(),",6,")<>0 or get_AccountName()=rsbook("VC_AccountName")) and lcase(get_AccountName())<>"guest") or instr(1,getPermission(),",1,")<>0 then '如果 编辑留言权限
%>
<%
if rsbook("I_Lock")=1 and instr(1,getPermission(),",6,")=0 then
response.Write "修改锁定"
else
%>
" > 修改
<%
end if
end if %>
<% if instr(1,getPermission(),",6,")<>0 or instr(1,getPermission(),",1,")<>0 then %> " alt="加入批量删除留言的列表里" onClick="javascript:checknoI_ID(this)" >
批删
<% end if %>
<%'VC_Subject
' sql="select top 1 * from A_Advert order by newid()" 'SQL Sever 版本
Randomize
sql="select top 1 * from A_Advert order by Rnd(I_ID)" 'Access版本SQL语句
set rsid=server.CreateObject("adodb.recordset")
rsid.open sql,conn,1,1
if rsid("B_URL")=true then response.Write "[推荐]:" & rsId("VC_Subject") & ""
if rsid("B_URL")=false then %>','广告',550,400)" alt="察看广告资料">[推荐]:<%= rsid("VC_Subject") %>.
<%
end if
rsid.close
%> |
<%
j=j+1
i=1-i
rsbook.movenext
' response.Write(" |
")
loop
else
response.Write("