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

📄 showtext.asp

📁 东旭网络问卷调查系统 v2.4 很好用的大家试试看
💻 ASP
字号:
<!--#include file="../Include/Config.asp"-->
<link rel="stylesheet" href="../Css/Admin.css" type="text/css" />
<div id="SuveyAdmin">
<table width="100%" align="center" cellpadding="0" cellspacing="0" id="SurveyAdmin" class="table">
<%
dim  Question_id,sql,page_size,rscount,item_count,page_num,page_now,i
Question_id=request.QueryString("Question_id")
sql="select Question_content from [Question] where Question_id=" & Question_id
rs.open sql,conn,1,1
Question_content=rs("Question_content")
rs.close
page_size=10
set rscount=conn.execute("select count(*) as item_count from [Text] where Text_belong="&Question_id)
	item_count=rscount("item_count")
	rscount.close
    page_num=item_count\page_size 
sql="select * from [Text] where Text_belong="&Question_id&" order by Text_id desc"
rs.open sql,conn,1,3
if not rs.eof then
	rs.pagesize=page_size
	page_now=1
	if trim(request.QueryString("page"))<>"" then
	page_now=cint(trim(request.QueryString("page")))
	end if
	if page_now>rs.pagecount or page_now<0 then
	page_now=1
	end if
	rs.absolutepage=page_now
%>
<tr>
<th>题目:<%=Question_content%></th>
</tr>
<%
  i=1
  while not rs.eof and i<page_size+1
%>
<tr>
<td><%=i%>、<%=rs("Text_content")%></td>
</tr>
<%
   rs.movenext
   i=i+1
   wend
%>
<tr>
<td align="right">
<div id="bottom_pagebox" style="padding-right:25px;">
当前第<%=page_now%>页
  <%if page_now=1 then%>首页
  <%else%><a href="ShowText.asp?Question_id=<%=Question_id%>&page=1">首页</a>
  <%end if%>
  <%if page_now>1 and rs.pagecount>1 then%>
  <a href="ShowText.asp?Question_id=<%=Question_id%>&page=<%=page_now-1%>">上一页</a>
  <%else%>上一页
  <%end if%>				
  <%if page_now<rs.pagecount then%> 
  <a href="ShowText.asp?Question_id=<%=Question_id%>&page=<%=page_now+1%>">下一页</a>
  <%else%>下一页
  <%end if%>				
  <%if page_now<>rs.pagecount then%> 
  <a href="ShowText.asp?Question_id=<%=Question_id%>&page=<%=rs.pagecount%>">尾页</a>
  <%else%>尾页
  <%end if%>
  共<%=rs.pagecount%>页/<%=item_count%>篇</div>
</td>
</tr>
<%else%>
<tr>
<td>暂时没有答案</td>
</tr>
<%
end if
rs.close
%>
</table>
</div>

⌨️ 快捷键说明

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