<!--#include file="conn.asp"-->
<%lb=replace(request("lb"),"'","")
id=replace(request("id"),"'","")
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
<!--
body,td,th {
	font-family: 宋体;
	font-size: 12px;
	color: #000000;
}
body {
	margin-left: 0px;
	margin-top: 00px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body>
<script language="JavaScript" type="text/javascript">
// src="anole.js"
// about this: javapig修改 源自 忘了。
// Date: 2006-04-29
function anole (
        str_tableid,        // table id
        num_header_offset, // 表头行数
        str_odd_color,        // 奇数行的颜色
        str_even_color,    // 偶数行的颜色
        str_mover_color,   // 鼠标经过行的颜色
        str_onclick_color  // 选中行的颜色
    ) {
    // 表格ID参数验证
    if (!str_tableid) return alert (str_tableid+"表格不存在！");
    var obj_tables = (document.all ? document.all[str_tableid] : document.getElementById(str_tableid));
    if (!obj_tables) return alert ("ID为 (" + str_tableid + ")不存在！");
    // 设置个参数的缺省值
    var col_config = [];
    col_config.header_offset = (num_header_offset ? num_header_offset : 0);
    col_config.odd_color = (str_odd_color ? str_odd_color : '#ffffff');
    col_config.even_color = (str_even_color ? str_even_color : '#dbeaf5');
    col_config.mover_color = (str_mover_color ? str_mover_color : '#6699cc');
    col_config.onclick_color = (str_onclick_color ? str_onclick_color : '#4C7DAB');
    // 初始化表格（可能多个表格用同一个ID）
    if (obj_tables.length)
        for (var i = 0; i < obj_tables.length; i++)
            tt_init_table(obj_tables[i], col_config);
    else
        tt_init_table(obj_tables, col_config);
}
function tt_init_table (obj_table, col_config) {
    var col_lconfig = [],
        col_trs = obj_table.rows;
    if (!col_trs) return;
    
    for (var i = col_config.header_offset; i < col_trs.length ; i++) { //i 从 表头以下开始
        col_trs[i].config = col_config;
        col_trs[i].lconfig = col_lconfig;
        col_trs[i].set_color = tt_set_color;
        col_trs[i].onmouseover = tt_mover;
        col_trs[i].onmouseout = tt_mout;
        col_trs[i].onmousedown = tt_onclick;
        col_trs[i].order = (i - col_config.header_offset) % 2;
        col_trs[i].onmouseout();
    }
}
function tt_set_color(str_color) {
    this.style.backgroundColor = str_color;
}
// 事件操作
function tt_mover () {
    if (this.lconfig.clicked != this)
        this.set_color(this.config.mover_color);
}
function tt_mout () {
    if (this.lconfig.clicked != this)
        this.set_color(this.order ? this.config.odd_color : this.config.even_color);
}
function tt_onclick () {
    if (this.lconfig.clicked == this) {
        this.lconfig.clicked = null;
        this.onmouseover();
    }
    else {
        var last_clicked = this.lconfig.clicked;
        this.lconfig.clicked = this;
        if (last_clicked) last_clicked.onmouseout();
        this.set_color(this.config.onclick_color);
    }
}
</script>
<script type="text/javascript" src="latentzoom/latentzoom.js"></script>
<script type="text/javascript" src="latentzoom/latentzoom-html.js"></script>
<table width="922" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="top.htm"--></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="18%" background="images/l_16.jpg"><!--#include file="l1.htm" --></td>
        <td width="82%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">

          <tr>
            <td height="38" background="images/index_131.jpg">&nbsp;&nbsp;&nbsp; &nbsp;<span class="qq">&nbsp;<strong><%=lb%></strong></span></td>
          </tr>
          <tr>
            <td height="376" align="center" valign="top"><br>
              <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><table id="demo" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
                          <%
				   set rs=server.CreateObject("adodb.recordset")
			       rs.open"select * from xinwen  where lb='"&lb&"' order by id desc",conn,1,1
			       if rs.eof then
				   response.Write"<tr><td class=wb2>暂时没有记录!</tr></td>"
				   else
					   rs.pagesize=11
					   page=request("page")
					   if isempty(page) or page="" or not isnumeric(page) then page=1
					   if cint(page)<1 then page=1
					   if cint(page)>rs.pagecount then page=rs.pagecount
					   rs.absolutepage=cint(page)
					   for i=1 to rs.pagesize
			%>
                          <tr>
                            <td width="58" align="right" valign="middle" class="xline1"><img src="images/hot1.gif" width="23" height="7"></td>
                            <td width="433" height="31" valign="middle" class="xline1"><a href="newsdetail.asp?id=<%=rs("id")%>&amp;lb=<%=server.URLEncode(rs("lb"))%>" class="a1"> &nbsp;&nbsp; <%=left(rs("f01"),25)%></a></td>
                            <td width="145" valign="middle" class="xline1"><%=year(rs("f03"))%>年<%=month(rs("f03"))%>月<%=day(rs("f03"))%>日
                              <% if datediff("d",rs("f03"),now())<=5 then%>
                                <img src="images/new.gif" width="28" height="11">
                                <% end if %>
                            </td>
                          </tr>
                          <%
					  rs.movenext
					  if rs.eof then exit for
					  next
					  end if
					%>
                      </table></td>
                    </tr>
                  </table>
                    <script language="JavaScript">
    anole('demo', 0,  '#ffffff', '#ffffff', '#eeeeee', '#ffffff');
                      </script></td>
              </tr>
              <tr>
                <td align="center"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <form action="news1.asp" method="post" >
                      <tr>
                        <td width="94" height="35" align="right" class="about">&nbsp;信息：</td>
                        <td width="137" class="about"> 共<font color="#ff0000"><%=rs.pagecount%></font>页&nbsp; 当前第<font color="#ff0000"><%=page%></font>页 </td>
                        <td width="231" align="left" class="about">&nbsp;[ <a href="news1.asp?page=<%=page-1%>&lb=<%=server.URLEncode(lb)%>" class="a1">上一页</a> <a href="news1.asp?page=<%=page+1%>&lb=<%=server.URLEncode(lb)%>" class="a1">下一页</a> <a href="news1.asp?lb=<%=server.URLEncode(lb)%>" class="a1">首页</a> <a href="news1.asp?page=<%=rs.pagecount%>&lb=<%=server.URLEncode(lb)%>" class="a1">末页</a> ]
                          <input name="page" type="text" class="wz" size="3" maxlength="4" />
                          页 </td>
                        <td width="142" class="wz"><label> &nbsp;
                              <input type="submit" name="Submit2" value="转到" />
                              <input type="hidden" name="lb" value="<%=lb%>" />
                        </label></td>
                      </tr>
                    </form>
                </table></td>
              </tr>
            </table></td>
              </tr>

            </table></td>
          </tr>

        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><!--#include file="bot.htm"--></td>
  </tr>
</table>
</body>
</html>
