<% search = Request("search") criteria = Request("criteria") set conn = GetSQLServerConnection() if search = "" then SQL = "Select * from Counseling_forum where main = '1' and fdate <='" & date &"' order by fdate desc, tdate desc" set rs = GetSQLServerRecordset(conn,SQL) ElseIf criteria = "both" Then SQL = "Select * from Counseling_forum where main = '1' And (title Like '%" & search & "%' Or content Like '%" & search & "%') and fdate <= '" & date & "' Order By fdate asc, tdate asc" Set rs = GetSQLServerRecordset(conn, SQL) Else SQL = "Select * from Counseling_forum where main = '1' And " & criteria & " Like '%" & search & "%' and fdate <= '" & date & "' order By fdate asc, tdate asc" Set rs = GetSQLServerRecordset(conn, SQL) End If rs.PageSize = 10 page_no = Request("page_no") If page_no = "" Or page_no <= 1 Then page_no = 1 ElseIf CInt(page_no) > rs.PageCount Then page_no = 1 End If SQL = "Select cid, title from Counseling_forum where cid = (Select max(cid) from Counseling_forum where main = '1' and fdate <='" & date &"')" Set mcid = GetSQLServerRecordset(conn, SQL) %> Youth-2000.com [滅罪會 On-line Counseling]
共<%=rs.PageCount%>頁
主題 內容 主題和內容
<% If Not rs.EOF Then rs.AbsolutePage = page_no For I = 1 To rs.PageSize %> <% if rs("fdate") <= date then cid = rs("cid") title = rs("title") end if rs.MoveNext If rs.EOF Then Exit For End If Next %>
"><%=rs("title")%> <% if (rs("fdate") <= date) and (rs("tdate") >= date) then %> <% end if %>
共有 <%=rs("no")%> 個回應, 時間: <%=ChangeDateFormat(rs("fdate"))%><%=ChangeDateFormat(rs("tdate"))%>
<% Else If criteria = "title" Then %> <% ElseIf criteria = "both" Then %> <% Else %> <% End If %> <% End If %>
   
| 上一頁 | 第 <%=page_no%> 頁 | 下一頁 | 共<%=rs.PageCount%>頁
   
 
尋找不到你所輸入的「主題」!!!
 
尋找不到你所輸入的「主題」和「內容」!!!
 
尋找不到你所輸入的「內容」!!!
 
 
 
回應最新主題
 
姓 名: (最多10個中文字)
內 容:
你的電郵地址:
表 情 公 仔: 開心 激氣
疑惑 奸惡
驚青 傷心
"> ">