<% page=request("page") Set conn = Server.CreateObject("ADODB.Connection") DBPath = Server.MapPath("gbook.mdb") conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath SET rs = Server.CreateObject("ADODB.Recordset") Rs.Open "Select * From 留言 where 刪除='no' Order By 主留言編號 Desc" , conn,1,3 rs.PageSize = 5 Page = CLng(Request("Page")) If Page < 01 Then Page = 01 If Page > rs.PageCount Then Page = rs.PageCount If Not rs.eof Then RS.AbsolutePage = PAGE End if %>
ETtoday新聞速報    

新增留言重新整理留言管理│ <% If Page <> 1 Then Response.Write "第一頁  " Response.Write "上一頁" End If If Page <> 1 and Page <> rs.PageCount Then Response.Write " " End If If Page <> rs.PageCount Then Response.Write "下一頁 " Response.Write "最後一頁" End If %> <%If Page <> 1 or Page <> rs.PageCount Then%>│<%end if%>
│目前在第<%=Page%>頁•共<%=rs.PageCount%>頁•每頁5筆•共有<%=RS.RECORDCOUNT%>筆│ <% if rs.pagecount=1 then else %> 快速跳頁 <%if rs.pagecount<>1 then%>│<%end if%>
 
<% IF RS.EOF THEN RESPONSE.WRITE "

抱歉,目前沒有任何留言。" ELSE end if %>

<% if rs.eof then else for i=1 to rs.pagesize if rs.eof then exit for %> <%If rs("回覆") = 1 Then Set rs1 = Server.CreateObject("ADODB.Recordset") rs1.Open "Select * From 回覆留言 Where 主留言編號= "&rs("主留言編號")&" and 刪除='no' Order By 副留言編號 Desc " , conn, 1, 3 While Not rs1.EOF %> <% rs1.MoveNext Wend End If%>
留言者 客戶類別:<%=RS("職業")%> 時間:<%=RS("留言時間")%><% if len(TRIM(RS("icq")))<>0 then %> 電話:<% =RS("icq") %><% end if %><% if len(TRIM(RS("首頁")))<>0 then %> " target="_blank"><%=RS(的首頁" border="0" WIDTH="16" HEIGHT="16"><% end if %> <%If len(TRIM(RS("密碼")))<>0 Then%>&頁數=<%=Page%>">刪除 <% end if %><% IF RS("留言性質") = "yes" THEN%>&頁數=<%=Page%>">回覆<%END if%>
<% if len(TRIM(RS("email")))<>0 then %>"><%=RS("姓名")%><%ELSE%><%=RS("姓名")%><% end if %> <%=RS("性別")%> 留言主題:<%=RS("留言主題")%><%if InStr(RS("留言時間"),Date)=1 then%> <% end if %>
"> 留言內容:
<% IF RS("留言性質") = "no" THEN%>此留言是給惠普的...<%ELSE%><%=RS("留言內容")%><%END if%>
<% IF RS1("管理") = "yes" THEN%>管理員 回覆<%ELSE%>回覆者<%END if%> 客戶類別:<%=RS1("職業")%> 時間:<%=RS1("回覆時間")%><% if len(TRIM(RS1("icq")))<>0 then %> 電話:<% =RS1("icq") %><% end if %><% if len(TRIM(RS1("首頁")))<>0 then %> " target="_blank"><%=RS1(的首頁" border="0" WIDTH="16" HEIGHT="16"><% end if %> <%If len(TRIM(RS1("密碼")))<>0 Then%>" &頁數="<%=Page%>">刪除<% end if %>
<% if len(TRIM(RS1("email")))<>0 then %>"><%=RS1("姓名")%><%ELSE%><%=RS1("姓名")%><% end if %> <%=RS1("性別")%> 回覆主題:<%=RS1("回覆主題")%><%if InStr(RS1("回覆時間"),Date)=1 then%> <% end if %>
"> 回覆內容:
<%=RS1("回覆內容")%>
 
<% rs.movenext next end if %>
新增留言重新整理留言管理│ <% If Page <> 1 Then Response.Write "第一頁  " Response.Write "上一頁" End If If Page <> 1 and Page <> rs.PageCount Then Response.Write " " End If If Page <> rs.PageCount Then Response.Write "下一頁 " Response.Write "最後一頁" End If %> <%If Page <> 1 or Page <> rs.PageCount Then%>│<%end if%>
│目前在第<%=Page%>頁•共<%=rs.PageCount%>頁•每頁5筆•共有<%=RS.RECORDCOUNT%>筆│ <% if rs.pagecount=1 then else %> 快速跳頁 <%if rs.pagecount<>1 then%>│<%end if%>