www.gusucode.com > 绿色环保工作企业网站源码程序 > shownews.asp

    <!--#Include File="inc/Check_Sql.asp"-->
<!--#include file="inc/conn.asp"-->
<!-- #include file="inc/config.asp" -->
<!--#include file="inc/Function.asp"-->
<!-- #include file="Head.asp" -->
<%owen=request("id")%>
<script language="JavaScript" type="text/JavaScript">
function fontZoom(size){
 document.getElementById('fontZoom').style.fontSize=size+'px'
}
</SCRIPT>
<SCRIPT language=JavaScript>
var currentpos,timer;

function initialize()
{
timer=setInterval("scrollwindow()",50);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
</SCRIPT>
<% 
id=cstr(request("id"))
Set rsnews=Server.CreateObject("ADODB.RecordSet") 
sql="update news set hits=hits+1 where id="&id
conn.execute sql
sql="select * from news where id="&owen
rsnews.Open sql,conn,1,1
title=rsnews("title")
if rsnews.eof and rsnews.bof then
response.Write("数据库出错")
else
%>




<DIV id=index_container>
  <div id="index_left">
    <div id="left">
      <div id="left_title">新闻中心</div>
      <div id="left_content">
        <DIV id=elem-FrontProductCategory_slideTree-001 name="商品分类"><LINK href="imgbyy/css2.css" type=text/css rel=stylesheet>

<DIV class=FrontProductCategory_slideTree-default id=FrontProductCategory_slideTree-001>
<DIV class=left_bottom>
<DIV class=right_bottom>
<DIV class=left_top>
<DIV class=right_top>


<UL id=treemenu1>


<%
Set rslist = Server.CreateObject("ADODB.Recordset")
sql="select BigClassName from BigClass_New order by BigClassID"
rslist.open sql,conn,1,3
do while not rslist.eof
%>

<LI><a href="NewsClass.asp?BigClass=<%=rslist("BigClassName")%>"><%=rslist("BigClassName")%></a></LI>
    
<%rslist.movenext 
loop
rslist.close
set rslist=nothing
%>




  </UL>
 <table width="100" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="10"></td>
  </tr>
</table>
 
  
  
</DIV>


</DIV></DIV></DIV></DIV>
</DIV>
      </div>
      <div id="left_btm"></div>
    </div>
	<table width="100" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="6"></td>
  </tr>
</table>

<!--#include file="searchinc.asp"-->
    <div id="index_contact">
      <div id="index_contact1"></div>
      <div id="index_contact2">
        <div id="elem-FrontSpecify_show-001" name="联系我们说明页">
          <link href="about_files/css3.css" type="text/css" rel="stylesheet" />
          <div class="FrontSpecify_show-default" id="FrontSpecify_show-001">
            <div class="content">
              <div class="style1"><!--#include file="qq.asp" --></div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>


  <DIV id=index_right><!--<div id="right_title">新闻中心</div> -->
<DIV id=right_content>
<DIV ><LINK href="about_files/FrontCommonContent_showDetailByList.css" type=text/css rel=stylesheet>
<DIV class=FrontCommonContent_showDetailByList-default id=>
<DIV class=content>
<DIV id=right_title><%= rsnews("BigClassName") %></DIV>
<DIV class=text>
<table width="100" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="10"></td>
  </tr>
</table>






  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <!--DWLayoutTable-->
    <tr>
      <td width="804" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="50" align="center" class="tit"><font  style="font-size:14px"><b><%= rsnews("title") %></b></font></td>
          </tr>
          <tr align="center">
            <td width="80%" height="30"  style="BORDER-RIGHT: #e9e9e9 1px solid; BORDER-TOP: #e9e9e9 1px solid; BORDER-LEFT: #e9e9e9 1px solid; BORDER-BOTTOM: #e9e9e9 1px solid" >发布者:<%= rsnews("Author") %> 发布时间:<%=FormatDateTime(rsnews("AddDate"),2)%> 阅读:<font color="#FF0000"><%= rsnews("hits") %></font>次 </td>
          </tr>
          <tr>
            <td class="black" id="fontzoom"><br />
                 <%=rsnews("content") %></td>
          </tr>
          <tr align="right">
            <td>&nbsp;</td>
          </tr>
          <tr align="right">
            <td>&nbsp;</td>
          </tr>
                    <% 
		end if
		rsnews.close
		set rsnews=nothing
		%>
        </table>
          <br />
          <table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td align="right"><a href="javascript:window.print()" class="n1">打印本页</a> || <a href="javascript:window.close()" class="n1">关闭窗口</a></td>
            </tr>
        </table></td>
    </tr>
  </table>





</DIV>
</DIV></DIV></DIV></DIV>
<DIV class=clear></DIV></DIV>
<DIV class=clear></DIV>
</DIV></DIV>
<DIV class=clear></DIV>

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