<!--#include file="../include/conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<BODY>
<%



	if request("name_key")<>"" then addsql=addsql+" and (NewsTitle like '%"&request("name_key")&"%')"
	
	if request("ShowType")="1" then addsql=addsql+" "
	if request("ShowType")="2" then addsql=addsql+" and Online=true"
	if request("ShowType")="3" then addsql=addsql+" and Online=false"
	if request("ShowType")="4" then addsql=addsql+" and uup=1"

if addsql="" then
response.cookies("wwwjiayi9com")("sql")=""
Response.Redirect("news.asp")
else

sql="select * from news where NewsTitle<>'' " + addsql
response.cookies("wwwjiayi9com")("sql")=sql
Response.Redirect("news.asp")
end if

%>
</body>
</html>
