<head>

<!--#include file="include/conn.asp"-->
<!--#include file="include/config.asp"-->
<!--#include file="include/ContentAutoPage.asp"-->

<%
owen=clng(request.querystring("id"))
a=request.servervariables("server_name")
b=request.servervariables("script_name")
if request("action")="save" then
id=clng(request.querystring("id"))
	if id="" then
	response.write "<script language='javascript'>alert('对不起，参数不正确！');history.back();</script>" 
	response.end
end if
action=request.querystring("action")
end if
%>

<script language="javascript" type="text/javascript">

function ReImgSize(){
	for (i=0;i<document.images.length;i++) {
		if (document.images[i].width>450) { //图片尺寸最大不能超过的值
			document.images[i].width="450"  //调整尺寸
		}
	}
}
</script>
  <script       Language="JavaScript">         
      //***********默认设置定义.*********************         
      tPopWait=50;//停留tWait豪秒后显示提示。         
      tPopShow=5000;//显示tShow豪秒后关闭提示         
      showPopStep=20;         
      popOpacity=99;         
            
      //***************内部变量定义*****************         
      sPop=null;         
      curShow=null;         
      tFadeOut=null;         
      tFadeIn=null;         
      tFadeWaiting=null;         
            
    document.write("<style       type='text/css'id='defaultPopStyle'>");         
      document.write(".cPopText       {   background-color: #F8F8F5;color:#000000;  border: 3px  #ff0000 solid;font-color:#ff0000;   font-family:宋体; font-weight:bold;  font-size: 14px;       padding-right:  4px;       padding-left:  4px;   height:30px;       padding-top: 12px;       padding-bottom:2px;       filter: Alpha(Opacity=0)}");         
      document.write("</style>");         
      document.write("<div       id='dypopLayer'       style='position:absolute;z-index:1000;'       class='cPopText'></div>");         
                 
            
            
      function       showPopupText(){         
      var       o=event.srcElement;         
      MouseX=event.x;         
      MouseY=event.y;         
      if(o.alt!=null       &&       o.alt!=""){o.dypop=o.alt;o.alt=""};         
                                      if(o.title!=null       &&       o.title!=""){o.dypop=o.title;o.title=""};         
      if(o.dypop!=sPop)       {         
      sPop=o.dypop;         
      clearTimeout(curShow);         
      clearTimeout(tFadeOut);         
      clearTimeout(tFadeIn);         
      clearTimeout(tFadeWaiting);         
      if(sPop==null       ||       sPop=="")       {         
      dypopLayer.innerHTML="";         
      dypopLayer.style.filter="Alpha()";         
      dypopLayer.filters.Alpha.opacity=0;         
      }         
      else       {         
      if(o.dyclass!=null)       popStyle=o.dyclass             
      else       popStyle="cPopText";         
      curShow=setTimeout("showIt()",tPopWait);         
      }         
            
      }         
      }         
            
      function       showIt(){         
      dypopLayer.className=popStyle;         
      dypopLayer.innerHTML=sPop;         
      popWidth=dypopLayer.clientWidth;         
      popHeight=dypopLayer.clientHeight;         
      if(MouseX+12+popWidth>document.body.clientWidth)       popLeftAdjust=-popWidth-24         
      else       popLeftAdjust=0;         
      if(MouseY+12+popHeight>document.body.clientHeight)       popTopAdjust=-popHeight-24         
      else       popTopAdjust=0;         
      dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;         
      dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;         
      dypopLayer.style.filter="Alpha(Opacity=0)";         
      fadeOut();         
      }         
            
      function       fadeOut(){         
      if(dypopLayer.filters.Alpha.opacity<popOpacity)       {         
      dypopLayer.filters.Alpha.opacity+=showPopStep;         
      tFadeOut=setTimeout("fadeOut()",1);         
      }         
      else       {         
      dypopLayer.filters.Alpha.opacity=popOpacity;         
      tFadeWaiting=setTimeout("fadeIn()",tPopShow);         
      }         
      }         
            
      function       fadeIn(){         
      if(dypopLayer.filters.Alpha.opacity>0)       {         
      dypopLayer.filters.Alpha.opacity-=1;         
      tFadeIn=setTimeout("fadeIn()",1);         
      }         
      }         
      document.onmouseover=showPopupText;         
      </script>   
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />


<style type="text/css">
<!--
@import url("css.css");
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<% 
set rsnews=server.createobject("adodb.recordset") 
sql="update news set hits=hits+1 where id="&owen
conn.execute sql
sql="select * from news where id="&owen
rsnews.open sql,conn,1,1
title=rsnews("title")
bigname=rsnews("bigclassname")
if rsnews.eof and rsnews.bof then
response.write("数据库出错")
else
%>
</head>

<body onLoad="ReImgSize()">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" background="images/bg.jpg"><table width="976" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="336" valign="top">          <table width="97%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="26" class="a10">&nbsp;</td>
              </tr>
            <tr>
              <td><table width="320" border="0" cellpadding="0" cellspacing="0" class="k1">
                <tr>
                  <td><%call getindexpic()%></td>
                    </tr>
                </table></td>
              </tr>
            <tr>
              <td height="20" valign="middle">&nbsp;</td>
              </tr>
            <tr>
              <td height="25" valign="middle"><table width="322" border="0" cellpadding="0" cellspacing="0" class="k7">
              <%call gosearch()%>
                </table></td>
              </tr>
            <tr>
              <td height="20" valign="middle">&nbsp;</td>
              </tr>
            <tr>
              <td height="187" valign="top"><table width="322" height="162" border="0" cellpadding="0" cellspacing="0" class="k2">
                <tr>
                  <td height="26">&nbsp; <span class="a2">友情</span><span class="a5">链接　　　　　　　　　　　　<a href="link.asp" class="a3">更多&gt;&gt;</a></span></td>
                    </tr><tr><td align="left" style="text-align:center; line-height:230%" valign="top"><%=getlinks()%></td></tr>
                </table></td>
              </tr>
          </table></td>
        <td width="640" valign="top">
          <!--#include file="top.asp"-->
            <tr>
              <td height="54" valign="bottom"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="k2">
               <tr>
                      <td width="61%" height="39">　　　　 <span class="a6">校报导航</span>　　<span class="a9">总第
                        <%call gettotalsum()%>
                        期</span> 　<span class="a9">
                        <%call gettotalname()%>
                        </span></td>
                      <td width="39%">　　<img src="images/s1.jpg" width="26" height="32" align="absbottom" /><span class="a1"> 第</span>
                        <input name="textfield2" type="text" value="...." size="6" />
                        <span class="a1">期</span> <img src="images/go.gif" width="30" height="23" align="absbottom" /></td>
                    </tr>
                </table></td>
              </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="96%" height="26" valign="bottom"><div align="right"><span class="a12">首页&gt;&gt;正文</span></div></td>
                <td width="4%">&nbsp;</td>
              </tr>
            <tr>
              <td height="28" colspan="2" bgcolor="#98BA3F" class="a123"><div align="center"><span class="a14"><b><%=left(rsnews("title"),30) %></b></span></div></td>
              </tr>
            <tr>
              <td colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F6F9E8" class="k2">
                <tr>
                  <td height="30"><div align="center"><span class="a3">来源于：<%= rsnews("come") %>  时间：<%= rsnews("time") %> &nbsp; 阅读：<font color="#ff0000"><%= rsnews("hits") %></font>次</span></div></td>
                    </tr>
                <tr>
                  <td height="471" valign="top"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><span class="a12">　　<%=ContentPagination(rsnews("content"))%></span><br></td>
                        </tr>
                    </table></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
      </tr>
      
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      
      
    </table></td>
  </tr><% 
end if
rsnews.close
set rsnews=nothing
%>
  <tr>
    <td height="50">      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <!--#include file="bot.asp"-->
    </table></td>
  </tr>
</table>
</body>
</html>
