<!-- #include file="const.asp" -->
<!-- #include file="../public/public.asp" -->
<!-- #include file="admin_judge.asp" -->
<html>
<head>
<title>新闻管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script language="JavaScript">
function cdel(id,page){
var id;
if (confirm("你真的要删除这条记录吗？")){
	document.location.href="news_manage.asp?action=dete&id="+id+"&pageno="+page;
	}
}
</script>
<link href="../css/admin_style.css" rel="stylesheet" type="text/css" media="all"/>
<script src="../js/public.js" type="text/javascript"></script>
</head>
<body>
<%
  page_name = "新闻管理"	
%>
<!-- #include file="welcome_head.asp" -->
<form name="form1" method="post" action="member.asp">
</form>
<%
dim rs,sql,sqlwhere
set rs = server.createobject("adodb.recordset")
if request("action")="dete" then
	sql = "delete from t_news where id=" & request("id")
	conn.execute sql
response.write "<script type='text/javascript'>location.href='news_manage.asp'</script>"
end if
response.write "<br><br>"
tablename = "t_news"
sqlstr = "select * from t_news order by id asc"
address = "news_manage.asp"
call ordertable(tablename, sqlstr, "news_manage.asp")
%>
<!-- #include file="welcome_footer.asp" -->
</body>
</html>
<%Connclose()%>