<!--#include file="admin_start.asp" -->

<body topmargin="30" marginwidth="10" marginheight="10">
<div id=search_open style='display:none'>
<table cellspacing=3 cellpadding=3 width=98% bgcolor='#f7f7f7' align=center style='border:1px dashed #b7b7b7 '>
<form name=search_news method=get action='admin_info_news_list.asp'>	
<tr>
	<td valign='middle' align=right width=10% >新闻标题:</td>
	<td valign='middle' align=left width=40% >
	<input size=45 name=news_title value='<%=request("news_title")%>' >
	</td>
	<td valign='middle' align=right width=10% >作者:</td>
	<td  valign='middle' align=left width=40% >
	<input size=45 name=news_writer value='<%=request("news_writer")%>' >
	</td>
</tr>
<tr>
	<td valign='middle' align=right width=10% >所属分类:</td>
	<td  valign='middle' align=left width=40% >
	<select name=sort_id >
	<%
	ti=timer
	dim s
	set s=MySys.temp.search
	if request("sort_id")="" then
	s.list_Sort "", "jins_news_sort",0,"根目录|0"
	else
	s.list_Sort "", "jins_news_sort",0,"根目录|"&request("sort_id")
	end if
	response.write s.sort_list
	set s=nothing
	%>
	</select>
	</td>
	<td  valign='middle' align=right width=10% >加入时间:</td>
	<td  valign='middle' align=left width=40% >
	 从 
	<input size=18 name=news_addtime_s value='<%=request("news_addtime_s")%>' > 
	 到 
	<input size=18 name=news_addtime_e value='<%if request("news_addtime_e")<>"" then response.write request("news_addtime_e") else response.write now() %>' > 
	 </td>
</tr>
<tr>
	<td  valign='middle' align=right width=10% >是否打开:</td>
	<td  valign='middle' align=left width=15% >
	<select name=news_open >
	<option value='' <%if request("news_open")="" then response.write "selected"%>>随便</option>
	<option value=1 <%if request("news_open")="1" then response.write "selected"%>>打开</option>
	<option value=0 <%if request("news_open")="0" then response.write "selected"%>>关闭</option>
	</select>
	</td>
	<td  valign='middle' align=right width=10% >浏览量:</td>
	<td  valign='middle' align=left width=40% >
	 从 
	<input size=18 name=news_clicknum_s value='<%=request("news_clicknum_s")%>' > 
	 到 
	<input size=18 name=news_clicknum_e value='<%=request("news_clicknum_e")%>' > 
	 </td>
</tr>
<tr>
<td height='1' width='100%' colspan='10' background='images/dot03.gif'></td>
</tr>
<tr>
<td height='1' width='100%' colspan='10' background='images/dot03.gif'></td>
</tr>
<tr>
	<td  valign='middle' colspan=10 align=center width=100% >
	<input type=hidden  name=s_n value="0,news_title,1|5,news_addtime|1,news_open,0|4,news_clicknum,0|6,sort_id,0" >
	<input type=image align=absmiddle border=0 src='Images/search.jpg'  alt='开始搜索！！'  hspace='3' ></td>
</tr>
</form>
</table>
<br>
</div>
<%

c_order="新闻标题$news_title|加入日期$news_addtime|作者$news_writer|是否开放$news_open|浏览量$news_clicknum,升序$|降序$desc"

c_h="<form name=jins_news_list action='admin_info_news_list_handle.asp' method=post>"
c_h=c_h+"<table cellspacing=0 cellpadding=0 align=center width=98% bgcolor=#F7F7F7 style='border-top: 1px solid #EBEBEB; '>"
c_h=c_h+"<tr>"
c_h=c_h+"<td height=30 width='5%' align=center>选择</td>"
c_h=c_h+"<td height=30 width='30%' align=left>新闻标题</td>"
c_h=c_h+"<td height=30 width='10%' align=center>作者</td>"
c_h=c_h+"<td height=30 width='15%' align=center>加入日期</td>"
c_h=c_h+"<td height=30 width='7%' align=center>开关</td>"
c_h=c_h+"<td height=30 width='5%' align=center>浏览量</td>"
c_h=c_h+"<td height=30 width='8%' align=center>操作</td>"
c_h=c_h+"<td height=30 width='5%' align=center>删除</td>"
c_h=c_h+"</tr>"
c_h=c_h+"<tr>"
c_h=c_h+"<td height='1' width='100%' colspan='10' background='images/dot03.gif'></td>"
c_h=c_h+"</tr>"
c_h=c_h+"</table>"

c="<table cellspacing=0 cellpadding=0 width=98% align=center >"
c=c+"<tr onmouseover=""this.style.background='#ebebeb';"" onmouseout=""this.style.background='#ffffff';"">"
c=c+"<td height=30  width='5%' align=center>"
c=c+"<input type=checkbox name=ids value='$$news_id$$'> "
c=c+"</td>"

c=c+"<td height=30  width='30%' align=left >"
'c=c+"<a title='[$$news_name$$] > 点击进行详细设置！' href='admin_info_news_edit.asp?id=$$news_id$$'>"
c=c+"<input name=news_title_$$news_id$$ type=text value='$$news_title$$' size=40>"
'c=c+"</a>"
c=c+"</td>"

c=c+"<td height=30  width='10%' align=left >"
'c=c+"<a title='[$$news_name$$] > 点击进行详细设置！' href='admin_info_news_edit.asp?id=$$news_id$$'>"
c=c+"<input name=news_writer_$$news_id$$ type=text value='$$news_writer$$' size=15>"
'c=c+"</a>"
c=c+"</td>"

c=c+"<td height=30  width='15%' align=center>"
c=c+"$$news_addtime$$"
c=c+"</td>"

c=c+"<td height=30  width='7%' align=center>"
c=c+"<select name=news_open_$$news_id$$ >"
c=c+"<option value=1 <%if $$news_open$$=1 then response.write ""selected""%\> >打开</option>"
c=c+"<option value=0 <%if $$news_open$$=0 then response.write ""selected""%\> >关闭</option>"
c=c+"</select>"
c=c+"</td>"

c=c+"<td height=30  width='5%' align=center><font color=blue style='font-size:10pt'>"
c=c+"$$news_clicknum,,0$$"
c=c+"</td>"

c=c+"<td height=30  width='8%' align=center>"
c=c+"<a title='新闻详细设置！' href='admin_info_news_edit.asp?id=$$news_id$$'><img hspace=3 border='0' src='Images/icon07_o.gif' align='bottom' alt='新闻详细设置！'></a>"
c=c+"<a title='查看相关评论！' href='admin_info_review_list.asp?s_n=3,id,0|6,sort_id,0&sort_id=2&id=$$news_id$$'><img hspace=3 border='0' src='Images/007.gif' align='bottom' alt='查看相关评论！！'></a>"
c=c+"<a title='手动刷新对应的静态页面！' href='../admin_basic_cache_refresh_handle.asp?tr=news|detail&id=$$news_id$$'><img hspace=0 border='0' src='Images/refresh2.gif' align='bottom' alt='手动刷新对应的静态页面！'></a>"
c=c+"</td>"
		
c=c+"<td height=30 width='5%' align=center>"
c=c+"<a title='点击删除此项！' href='admin_info_news_edit_handle.asp?action=delete&ids=$$news_id$$'>"
c=c+"<img border='0' src='Images/delete.gif' align='bottom' alt='点击删除此项！'></a>"
c=c+"</td></tr>"
c=c+"<tr>"
c=c+"<td height='1' width='100%' colspan='20' background='images/dot03.gif'></td>"
c=c+"</tr>"
c=c+"</table>"
dim ins(2)
dim sql

sql=MySys.search(trim(request("s_n")))

if sql<>"" then sql=" where 1=1 "&sql
'response.write sql
'response.end
MySys.ListThings c_order,c_h,c,sql,"jins_news_list","news_id",ins
%>
<!--#include file="admin_end.asp" -->