⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sm.asp

📁 客户管理系统使用ASP.NET和Access
💻 ASP
字号:
<!--#include file="islogin.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/css.css" rel="stylesheet" type="text/css">
<title></title>
<style type="text/css">
<!--
@import url("../style/admin.css");
-->
</style></head>

<body>
<br>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_1">
  <tr>
    <td height="25" class="table_1_top"><strong>调用说明 举出以下两种方式 </strong></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="4" align="left"><p>&nbsp;</p>
              <ul>
                <li>可用js调用,path为文件路径。num为调用的文章数量</li>
                <li>&lt;script src=&quot;article.asp?Sort=JAVA&amp;n=10&quot;&gt;&lt;/script&gt;</li>
              </ul>
              <p>&nbsp;</p>
              <ul>
                <li>也可以通过asp代码调用</li>
                <li>&lt;table width=&quot;100%&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;<br>
&lt;tr&gt;<br>
&lt;td bgcolor=&quot;#CCCCCC&quot;&gt;栏目名称:体育新闻&lt;/td&gt;<br>
&lt;/tr&gt;<br>
&lt;%<br>
class_name=&quot;体育新闻&quot; '文件路径 <br>
n=10'最新的10条<br>
set rs=server.createobject(&quot;adodb.recordset&quot;)<br>
sql=&quot;select top &quot;&amp;n&amp;&quot; id,class_id,fname,oktime,title,up,hits from article where class_name='&quot;&amp;class_name&amp;&quot;' order by id desc&quot;<br>
rs.open sql,conn,1,1<br>
on error resume next<br>
do while not rs.eof<br>
%&gt; <br>
&lt;tr&gt;<br>
&lt;td&gt;&lt;a href=&quot;/html/&lt;%=rs(&quot;class_id&quot;)%&gt;/&lt;%=rs(&quot;fname&quot;)%&gt;&quot; target=&quot;_blank&quot;&gt;&lt;%=rs(&quot;title&quot;)%&gt;&lt;/a&gt;&lt;/&lt;/td&gt;<br>
&lt;/tr&gt;<br>
&lt;%<br>
rs.movenext <br>
loop<br>
rs.close<br>
set rs=nothing<br>
conn.close<br>
set conn=nothing<br>
%&gt;<br>
&lt;/table&gt;</li>
              </ul>              
              <p>&nbsp;</p></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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