index.asp

来自「asp的新闻网站」· ASP 代码 · 共 140 行

ASP
140
字号
<%
'*********************************************************************************
'模块名称:国际新闻
'开发人:潘树文
'时间:2001年2月7日
'*********************************************************************************

%>
<!--#include file="../include/odbc.asp"-->
<!--#include file="../include/showbody.asp"-->
<%
dim s_menuid
s_menuid="002"
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../style.css">
<title>千夜网-&gt;国际新闻</title>
<script language=javascript src="../script/checkdate.js"></script>

</head>

<body topmargin="3" leftmargin="3">
<div align="center"><center>

<%flag="002000"%>
<!--#include file="../include/secondhead.asp"-->
</center></div><div align="center"><center>
<table border="0" width="770" cellspacing="0" cellpadding="0">
  <tr>
    <td width="78%"
    style="border-left: 3px none rgb(219,219,219); border-bottom: 3px none rgb(219,219,219)"
    valign="top"><!--#include file="include/tuijian.asp"-->
         <!--#include file="include/sousuo.asp"-->
    <table border="0" width="100%">
      <tr>
        <td width="30%" valign="top"> <div align="center"><center>
         <!--#include file="include/zhuanti.asp"-->
        </center></div><p><br>
        </p>
        <div align="center"><center>
        <!--#include file="include/huanqiu.asp"-->
          
        </center></div><p><br>
        </p>
        <div align="center"><center>
       <!--#include file="include/yanwen.asp"-->
        </center></div><p><br>
        </p>
        <div align="center"><center>
        <!--#include file="include/jiemi.asp"-->
        </center></div><p><br>
        </p>
        <div align="center"><center>
         <!--#include file="include/link.asp"-->
        </center></div></td>
        <td width="70%" valign="top"> <div align="center"><center><table border="0" width="98%"
        cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" colspan="2"></td>
          </tr>
          <%
          dim sql2,sql
          sql2="select menuid,menuname from news2_menu where menuid between '002001' and '002004'"
         
          rs.Open sql2,conn,1,1
          while not rs.EOF
          %>
          <tr>
            <td width="30%" bgcolor="#2E6ED6" height="19"><p align="center">
            <span style="font-size: 14px"><font color="#FFFFFF"><%=rs("menuname")%></font></span></td>
            <td width="70%" style="border-right: 1px none rgb(255,128,64); border-top: 1px solid rgb(85,138,217)"
            height="19">&nbsp; </td>
          </tr>
          <tr>
            <td width="100%" colspan="2"><ul>
          <%
          sql="select * from news2_info where menuid='"&rs("menuid")&"'  order by infoid desc"

          set rs2=server.CreateObject ("adodb.recordset")
          rs2.open sql,conn,3,1
          if rs("menuid")="002001" then rscount=10
          if rs("menuid")="002002" then rscount=5
          if rs("menuid")="002003" then rscount=8
          if rs("menuid")="002004" then rscount=12
          for i=1 to rscount
          if rs2.EOF then exit for %>
              <li><a class="l7" href="../looknews.asp?menuid=<%=rs2("menuid")%>&infoid=<%=rs2("infoid")%>"  target="_blank">
              <%=rs2("newstitle")%></a>
              <%=" ["&rs2("derivation")&"]"%><% showtime(rs2("regtime"))%>
          <%		
			Response.Write "</font><br></li>"
			rs2.movenext
			next
			set rs2=nothing%>
            </ul>
            <p align="right"><a href="morenews.asp?menuid=<%=rs("menuid")%>&menuname=<%=rs("menuname")%>" class="l2" target="_blank">【更多...】</a>&nbsp;&nbsp;&nbsp; <br>
            </td>
          </tr>
          <%
          rs.MoveNext
          wend
         rs.close%>
        </table>
        </center></div></td>
      </tr>
    </table>
    </td>
    <td width="22%" style="border-left: 3px solid rgb(219,219,219)" valign="top"><table
    border="1" width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF">
      <tr>
        <td width="100%" bgcolor="#DBDBDB">
       <!--#include file="include/redian.asp"--> 
        </td>
      </tr>
    </table>
    <p><br>
    </p>
         <!--#include file="include/beijing.asp"-->   
    <p> </p>
    <!--#include file="include/huigu.asp"-->   
    <p align="center"> </p>
    <div align="center"><center>
     <!--#include file="include/mail.asp"-->   
    </center></div></td>
  </tr>
</table>
</center></div>

<hr width="90%" size="1" color="#0080FF">

<div align="center"><center>

<!--#include file="../include/bottom.txt"-->
</center></div>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?