?? edit_partybook.asp
字號:
<!--#include file="config.asp" -->
<!--#include file="check.asp" -->
<%
id=trim(request("id"))
if id="" then
response.write "<a href='javascript:history.back(1)'>請選擇編號!</a>"
response.end
end if
%>
<%
errwrite="錯誤!請確定您的權限!請您<a href='javascript:history.back(1)'>>>返回<<</a><br>或嘗試<a href='edit_login.asp?id="&id&"'>重新登陸</a>!"
if len(session("quhao"))=0 or len(session("guanli"))=0 then
response.redirect ("edit_login.asp?id=" & id)
'response.write errwrite
response.end
end if
set rs=server.CreateObject("adodb.recordset")
rs.open"select * from party where 編號="&id,conn,1,1
if not rs.eof then
if session("quhao")<>rs("城市") then
response.write errwrite
response.end
end if
end if
set rscity=server.CreateObject("adodb.recordset")
rscity.open"select * from city where 區號='"& rs("城市")&"'",conn,1,1
if not rscity.eof then
if session("guanli")<>rscity("管理") then
response.write errwrite
response.end
end if
end if
rscity.close
rs.close
set rscity=nothing
set rs=nothing
%>
<%
set rs=server.CreateObject("adodb.recordset")
xdel=trim(request("xdel"))
'刪除某留言
if xdel="del" then
rs.open "delete from partybook where 編號=" &trim(request("partybookid")) ,conn,3,3
response.redirect "edit_partybook.asp?id=" &id
end if
rs.open "select * from partybook where 聚會編號=" & id,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>聚會評論管理</title>
<link href="admin.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="5" topmargin="5">
<div align="<%=sitealign%>">
<table width="500" border="0" cellpadding="3" cellspacing="1" bgcolor="#DFEAF2">
<tr bgcolor="#0099FF" height="30">
<td height="30" style="color: #FFFFFF"><b>聚會評論 (目前共有評論:<%=rs.recordcount%>條)</b></td>
</tr>
<%
if rs.recordcount>0 then
Do while not rs.eof%>
<tr bgcolor="#FFFFFF" height="30" onMouseOver='this.style.backgroundColor="#CAE5E8"' onMouseOut='this.style.backgroundColor=""'>
<td>
<%response.write ("<font color=#FF0000>·</font>" &rs("發表內容")&" ")
if rs("是否參加聚會")=-1 then
response.write ("<font color='#FF0000'>我要參加</font>")
else
response.write ("<font color='#FF0000'>只是問問</font>")
end if
response.write ("<br><font color=#999999>" &rs("參加者姓名")&" | "&rs("參加者聯系方式")&" | "&rs("發表時間")&"</font></a> <a style='color: #FF0000' href='?xdel=del&id=" & id & "&partybookid="& rs("編號")&"'>【刪除】</a>")%>
</td>
</tr>
</td>
</tr>
<%rs.movenext
Loop
end if%>
</table>
<% rs.close
set rs=nothing
%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="500">
<tr>
<td align="right" width="490" height="40">管理選項:<a href="party.asp?id=<%=id%>">聚會查看</a> |
<a href="edit_party.asp?id=<%=id%>">聚會管理</a> |
<a href="edit_partybook.asp?id=<%=id%>">聚會評論管理</a> |
<a href="edit_login.asp">管理登陸</a> |
<a href="edit_logout.asp">退出登錄</a></td>
<td width="10"> </td>
</tr>
</table>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -