簡單的浮點論壇[簡單的做了一個,掃描一次資料庫可得一棵樹]

來源:互聯網
上載者:User
資料|資料庫 -----index.asp------

<html>

<head>
<title>浮點論壇</title></head>

<body marginwidth="0" marginheight="0">
<div align="center">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="24" >
    <tr>
      <td width="80"> </td>
      <td><a href="#form">發新貼</A></td>
    </tr>
  </table>
  
  <br>
  <table border="0" width="90%" cellspacing="0" cellpadding="0">
    <% set dbr = server.createobject("adodb.recordset")%>
    <% dbr.pagesize = 50 %>
    <% dbr.CacheSize = dbr.pagesize %>
    <% dbr.open "select * from forum where (isdel = 'n') order by id desc",application("oledb") ,1,1%>
    <% msgcount=dbr.recordcount %>
    <% msgpcount=dbr.pagecount %>
    <% pagelist=request("pagelist") %>
    <% if CINT(pagelist) > dbr.pagecount then pagelist = dbr.pagecount %>
    <% if CINT(pagelist) < 1 then pagelist=1 %>
    <% dbr.AbsolutePage=pagelist %>
    <% for i= 1 to dbr.pagesize %>
    <tr>
      <td width="100%" valign="top" align="left" colspan="2">
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="25%" >姓名:<%=rtrim(dbr("name")) %></td>
            <td width="25%" ><% if rtrim(dbr("email"))<>"" then %><%rtrim(dbr("email"))%><% end if %></td>
            <td width="25%" >時間:<%= datevalue(dbr("thedate")) %></td>
            <% a= cdbl(dbr("id")) %>
            <% next %>
            <td width="25%"><a href="reply.asp?id=<%=a%>">回複</a></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td width="100%" valign="top" align="left" colspan="2"><%=rtrim(dbr("title")) %></td>
    </tr>
    <tr>
      <td width="100%" valign="top" align="left"  colspan="2"><%=replace(server.htmlencode(rtrim(dbr("comm"))),chr(13),"<br>") %></td>
    </tr>
    <% dbr.movenext %>
    <% if dbr.EOF Then Exit For %>
    <% next %>
    <tr>
      <td align="right" height="30" width="500"><a href="index.asp?pagelist=<%=CINT(pagelist)+1%> "><span class="link">>>更多</span></td>
      <td align="right" height="30"> </td>
    </tr>
  </table>
<form method="POST" action="add.asp">
    <table border="0" width="90%&q



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.