<!--#include file="../Include/connect.asp"-->
<!--#include file="Inc/char.asp"-->
<!--#include file="top.asp"-->
<link href="CSS/right.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
<!--

function ask(msg) {
	
	if( msg=='' ) {
		msg='真的要这样做吗？';
	}

	if (confirm(msg)) {
		return true;
	} else {
		return false;
	}
}
//-->
</script>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tablecolor">
  <tr> 
    <td height="25" align="left" class="banner" style="PADDING-LEFT:15px">当前位置 &gt; 新闻管理</td>
  </tr>
</table>
<table border="0" align="center" cellpadding="0" cellspacing="1"  class="tablecolor">
  <tr > 
    <td height="25" align="center" class="tablebody">标题</td>
    <td align="center" class="tablebody">添加时间</td>
    <td align="center" class="tablebody">操作</td>
  </tr><form name="form2" method="post" action="?action=edit" onSubmit="return checkf(form2)">
<%
strFileName="newslist.asp"
pageno=15
set rs = server.CreateObject("adodb.recordset")
sql="select * from Show5_ALLNews Order By NewsID DESC"
rs.Open sql,cn,1,1
rscount=rs.recordcount
if rs.eof or rs.bof then
response.write "暂无新闻！"
else
call showsql(pageno)
rs.move(rsno)
for p_i=1 to loopno
%>
  <tr > 
    <td height="25" align="center" class="tablebody"><a href="../viewnews.asp?newsid=<%=rs("NewsID")%>" target="_blank"><%=rs("Topic")%></a></td>
    <td align="center" class="tablebody"><%=rs("Posttime")%></td>
    <td align="center" class="tablebody"><a href="editnews.asp?newsid=<%=rs("NewsID")%>"><font color="#ff6600">编辑</font></a> 
              |<a class="orange" href="javascript:if(ask('真的要删除吗？')) location.href='delnews.asp?newsid=<%=rs("NewsID")%>';"><font color="#ff6600"> 
              删除</font></a></td>
    </tr>
<%
rs.movenext
next
end if
rs.close
set rs=nothing
%>
<tr>
    <td height="25" colspan="10" align="center" class="tablebody"><%call showpage(strFileName,rscount,pageno,false,true,"个新闻")%></td>
  </tr></form>
  <tr> 
      <td colspan="10" align="right"  class="tablebody">&nbsp;</td>
  </tr>
</table>
<!--#include file="end.asp"-->