<!--#include file="connpic.asp"-->
<% 
id=request("id")
set rs=server.createobject("ADODB.recordset") 
sql="select * from 照片 where id=" & id 
rs.open sql,conn,1,1 
If Session("cwjh_grade")>=10 or Session("cwjh_name")=rs("name") Then
	sql = "delete from 照片 where id=" & id
	conn.Execute sql
else
Response.write "<br><br><br><br><br>对不起，你不是官府工作人员或此照片的主人，无权删除此张照片"
response.end
end if
rs.close 
set rs=nothing 
set conn=nothing 
%> 
<html><head>
<meta http-equiv='content-type' content='text/html; charset=gb2312'>
<title>提示信息</title>
</head>
<link rel="stylesheet" href="../../css.CSS" type="text/css">
<body background=../../bg.gif>
<br><br><br><br><br><br><p class=p16 align=center>你已经成功的删除了此张照片！<p>
<p class=p9 align=center><a href='photo.asp'>按此直接返回</a></p><br><br><br><br><br><br><br><br><br>
</body></html>