|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
写软件都是想的时间比写的时间要长的.如果反过来了就得看看是什么原因了.另外大家可以回去问问公司里的小MM.(一般企业里,跟你们交付软件接触得最多的是她们)分页|关头字|数据<!--#includefile="connect.asp"-->
<%
Keyword=request("Keyword")
Keyword=replace(Keyword,"","")
page=Request.QueryString("page")
sql="select*from试卷信息where试卷称号like%"&keyword&"%"
rs.opensql,conn,1,1
dimpage,maxPerPage
maxPerPage=2每页显现的纪录数
rs.pagesize=MaxPerPage
if(page=""orisempty(page))thenpage=1
thisUrl="2.asp?Keyword="&Keyword
session("adminOldUrl")=thisUrl&"&page="&page
%>
<scriptlanguage="JavaScript">
<!--
functionMM_reloadPage(init){//reloadsthewindowifNav4resized
if(init==true)with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){
document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage;}}
elseif(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH)location.reload();
}
MM_reloadPage(true);
functionjumpTo(i){
if(i==1){
this.document.location="<%=thisUrl%>";}
if(i==2){
this.document.location="<%=thisUrl%>&page=<%=page-1%>";}
if(i==3){
this.document.location="<%=thisUrl%>&page=<%=page+1%>";}
if(i==4){
this.document.location="<%=thisUrl%>&page=<%=rs.pageCount%>";}
}
//-->
</script>
<formmethod="post"action="2.asp">
<inputtype="text"name="keyword"size=57value=""maxlength="50"style="width:390;height:20">
<inputtype="submit"name="Sub"value="查询"></td></form>
<%
ifnot(rs.eoforerr)thenrs.move(page-1)*maxPerPage
dowhilei<maxPerPageAndnotrs.eof%>
<%=rs("试卷称号")%><ahref="2.asp?mode=del&page=<%=page%>">删除</a><br>
<%n=n+1
ifn>=maxPerPagethenexitdo
rs.movenext
loop
%>
<divalign="right"><fontcolor=#FFFFFF>共<b><%=rs.recordCount%></b>项 第<b><%=page%>/<%=rs.pageCount%></b>页 </font>
<%ifpage>1then%>
<inputtype="button"name="Submit3"value="首页"onClick="Javascript:jumpTo(1)">
<inputtype="submit"name="Submit4"value="上页"onClick="Javascript:jumpTo(2)">
<%else%>
<inputtype="button"name="Submit3"value="首页"disabled>
<inputtype="submit"name="Submit4"value="上页"disabled>
<%endif
ifrs.recordCount>page*maxPerPagethen%>
<inputtype="submit"name="Submit5"value="下页"onClick="Javascript:jumpTo(3)">
<inputtype="submit"name="Submit6"value="末页"onClick="Javascript:jumpTo(4)">
<%else%>
<inputtype="submit"name="Submit5"value="下页"disabled>
<inputtype="submit"name="Submit6"value="末页"disabled>
<%endif%>
</div>
<%
ifrequest("mode")="del"then
id=request("id")
page=request("page")
%>
<scriptlanguage="javascript">
<!--
temp=window.confirm("不克不及恢复!您的确要删除此纪录?");
if(temp)
{
window.location.href="del.asp?page=<%=page%>&Date=<%=date()%>"
}
else
{
history.back();
}
//-->
</SCRIPT>
<%endif%>
</p>ASP脚本是采用明文(plaintext)方式来编写的。 |
|