<!--#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">
<style type="text/css">
<!--
.wb2 {font-family: "宋体";
	font-size: 12px;
	line-height: 180%;
	font-weight: normal;
	color: #999999;
}
-->
</style>
</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%" valign="top" 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"><table width="97%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="center" valign="top"  ><% 
					set rs=server.CreateObject("adodb.recordset")
					rs.open "select * from xinwen where id="&id,conn,1,1
					if not rs.eof then  
	            %>
                    <table width="96%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="25" colspan="3" align="center" valign="middle" class="black-wz"><%=rs("f01")%><br>
                            <table width="95%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td height="18" align="center" valign="bottom" class="wenben">&nbsp;</td>
                              </tr>
                              <tr>
                                <td height="18" align="center" valign="bottom" class="wz6"><span class="wz">来源:<%=rs("f02")%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布日期:<%=rs("f03")%> &nbsp; </span>
                                    <hr size="1" class="style50" width="95%"></td>
                              </tr>
                              <tr>
                                <td height="20" align="left" class="wz">
								<%if rs("xtp")<>"" then%>
								<p align="center"><img src="web/<%=rs("xtp")%>" width="250" border="0"></p>
								<%end if%>
								<%=rs("f04")%></td>
                              </tr>
                          </table></td>
                      </tr>
                      <tr>
                        <td height="13" colspan="3" valign="top">&nbsp;</td>
                      </tr>
                      <tr>
                        <TD width="66" class="wb2" >&nbsp;</TD>
                        <TD width="595" height="16" class="wb2" >&nbsp;</TD>
                        <TD width="29" rowspan="3" class="wb2" ><a href="#"></a></TD>
                      </tr>
                      <tr>
                        <TD valign="middle" class="wb2" ><font color="#999999" class="red-wz"> 上一条：</font></TD>
                        <TD width="595" height="29" valign="middle" class="wb2" ><table width="100%" border="0" cellspacing="0">
                            <tr>
                              <td valign="top"><% set rs=server.CreateObject("adodb.recordset")
					                   rs.open"select top 1 * from xinwen where id>"&id&" and  lb='"&lb&"'  order by id asc",conn,1,1%>
                                  <%if not rs.eof and not rs.bof Then 
%>
                                  <a href="newsdetail.asp?id=<%=rs("id")%>&lb=<%=rs("lb")%>" class="a1"><font color="#0000FF"><%=rs("f01")%></font></a>
                                  <%else %>
                                  <font color="#FF0000" class="wb2"><font color="#0000FF">这是第一条消息！</font></font>
                                  <%end if%>
                                  <%rs.close%></td>
                            </tr>
                        </table></TD>
                      </tr>
                      <tr>
                        <TD height="26" valign="middle" ><font color="#999999" class="red-wz">下一条：</font></TD>
                        <TD width="595" valign="middle" ><table width="100%" border="0" cellspacing="0">
                            <tr>
                              <td height="23" valign="top"><span class="a5">
                                <% set rs=server.CreateObject("adodb.recordset")
					                   rs.open"select top 1 * from xinwen where id<"&id&" and  lb='"&lb&"'  order by id desc",conn,1,1%>
                                <%if not rs.eof and not rs.bof Then 
%>
                                <a href="newsdetail.asp?id=<%=rs("id")%>&lb=<%=rs("lb")%>" class="a1"><font color="#0000FF"><%=rs("f01")%></font></a>
                                <%else %>
                                <font color="#FF0000" class="wb2"><font  color="#0000FF">这是最后一条消息！</font></font>
                                <%end if%>
                              </span></td>
                            </tr>
                        </table></TD>
                      </tr>
                      <tr>
                        <td height="25" colspan="3" align="center" valign="middle">&nbsp;</td>
                      </tr>
                    </table>
                  <% 
			  end if 
			  rs.close
			  set rs=nothing
			  %></td>
              </tr>
            </table></td>
          </tr>

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