echo "<a href='phpwan.php?pageno=($pageno+1)'>下一页<a> ";

echo "<a href='phpwan.php?pageno=($pageno+1)'>下一页<a> ";,第1张

本来就是这样啊,你应该写成。

echo "<a href='phpwan.php?pageno=" . ($pageno+1) . "'>下一页</a>"

下面是全部代码....希望有高手解答..

_______________________________

<%

if session("admin")="" then

response.redirect "admin.asp"

else

if session("flag")>2 then

response.write "<br><p align=center>您没有操作的权限</p>"

response.end

end if

end if

ClassID=Request("ClassID")

%>

<html>

<head>

<meta http-equiv="Content-Type" content="text/htmlcharset=gb2312">

<title>1 2 3</title>

<meta name="GENERATOR" content="Microsoft FrontPage 3.0">

<link rel="stylesheet" type="text/css" href="admin.css">

<SCRIPT language=JavaScript>

<!--

function MM_openBrWindow(theURL,winName,features) { //v2.0

window.open(theURL,winName,features)

}

//-->

</SCRIPT>

</head>

<BODY leftmargin="0" bottommargin="0" rightmargin="0" topmargin="0" marginheight="0" marginwidth="0">

<!--#include file="inc/link.asp"-->

<%

txtitle=request("txtitle")

if not isempty(request("page")) then

currentPage=cint(request("page"))

else

currentPage=1

end if

if not isempty(request("selAnnounce")) then

idlist=request("selAnnounce")

if instr(idlist,",")>0 then

dim idarr

idArr=split(idlist)

dim id

for i = 0 to ubound(idarr)

id=clng(idarr(i))

call deleteannounce(id)

next

else

call deleteannounce(clng(idlist))

end if

end if

dim sql

dim rs

%>

<div align="center">

<br>

<table border="0" width="95%" cellspacing="0" cellpadding="0">

<tr>

<td width="100%">

<div align="center"> </div>

<form name="searchsoft" method="POST" action="cp_mana.asp">

查找相关:

<input class=smallInput type="text" name="txtitle" size="13"> <input type="submit" value="查 询" name="title" class=buttonface> <select class="smallSel" name="classid" size="1" onchange="javascript:location.href('cp_mana.asp?classid='+this.value)"><option value=0>===选择您想查看的类别===</option><option value=0>┣查看所有产品信息</option><%men1 0,1%></select>

 

</form>

<form method=Post action="cp_mana.asp?ClassID=<%=ClassID%>">

<div align="center">

<%

ClassID = 0

if request("txtitle")<>"" then

sql="select * from Product Where namesv like '%"&trim(request("txtitle"))&"%' or content like '%"&trim(request("txtitle"))&"%' order by id desc"

elseif not(isnull(request("classid"))) and request("classid")<>0 then

classid=request("classid")

sql="select * from Product Where"

ClassIDz=split(men2(classid),",")

for i = 1 to ubound(ClassIDz)

If i = 1 then

sql = sql &" ClassID="&ClassIDz(i)&""

Else

sql = sql &" or ClassID="&ClassIDz(i)&""

End if

next

sql= sql &" order by ID desc"

else

sql="select * from Product order by ID desc"

end if

Set rs= Server.CreateObject("ADODB.Recordset")

Set rs1= Server.CreateObject("ADODB.Recordset")

rs.open sql,conn,1,1

if rs.eof and rs.bof then

response.write "<p align='center'>还 没 有 任 何 产 品 </p>"

else

totalPut=rs.recordcount

if currentpage<1 then

currentpage=1

end if

if (currentpage-1)*MaxPerPage>totalput then

if (totalPut mod MaxPerPage)=0 then

currentpage= totalPut \ MaxPerPage

else

currentpage= totalPut \ MaxPerPage + 1

end if

end if

if currentPage=1 then

showpage totalput,MaxPerPage,"cp_mana.asp"

showContent

showpage totalput,MaxPerPage,"cp_mana.asp"

else

if (currentPage-1)*MaxPerPage<totalPut then

rs.move (currentPage-1)*MaxPerPage

dim bookmark

bookmark=rs.bookmark

showpage totalput,MaxPerPage,"cp_mana.asp"

showContent

showpage totalput,MaxPerPage,"cp_mana.asp"

else

currentPage=1

showpage totalput,MaxPerPage,"cp_mana.asp"

showContent

showpage totalput,MaxPerPage,"cp_mana.asp"

end if

end if

rs.close

end if

set rs=nothing

conn.close

set conn=nothing

sub showContent

dim i

i=0

%>

<div align="center">

<table cellpadding="2" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>

<tr>

<th align=left colspan=6 height=23>修改删除管理</th>

</tr>

<tr>

<td width="50" align="center" height="20" class="forumRow"><strong>ID</strong></td>

<td height="20" align="center" class="forumRow"><strong>名称</strong></td>

<td width="150" align="center" class="forumRow"><strong>产品规格</strong></td>

<td width="150" height="20" align="center" class="forumRow"><b>类别</b></td>

<td width="50" align="center" class="forumRow"><strong>留言</strong></td>

<td width="70" height="20" align="center" class="forumRow">

<input type='submit' class=buttonface value='删 除'>

</td>

</tr><%

dim rsRev,sqlRev,NumberT

set rsRev=server.createobject("adodb.recordset")%>

<%do while not rs.eof%>

<%ID=rs("ID")%>

<%

sqlRev = "select Product_ID from Product_Revert Where Product_ID="&rs("ID")

rsRev.open sqlRev,conn,1,1

NumberT=rsRev.recordcount

rsRev.close

%>

<tr>

<td height="20" class="forumRow">

<p align="center"><%=rs("ID")%>

</td>

<td height="20" class="forumRow"><a href="cp_edit.asp?ID=<%=rs("ID")%>&ClassID=<%=rs("ClassID")%>" title="点击编辑"><%=rs("namesv")%>

</a></td>

<td height="20" align="center" nowrap class="forumRow"><a href="cp_edit.asp?ID=<%=rs("ID")%>&ClassID=<%=rs("ClassID")%>" title="点击编辑"><%=rs("Model")%></a></td>

<td height="20" align="center" nowrap class="forumRow"><a href="cp_mana.asp?classid=<%=rs("classid")%>">

<%Men(rs("classid"))%></a></td>

<td height="20" align="center" class="forumRow"><a href="cp_1mana.asp?id=<%=rs("id")%>&classid=<%=rs("classid")%>"><%=NumberT%></a></td>

<td height="20" class="forumRow">

<p align="center">

<input type='checkbox' name='selAnnounce' value='<%=cstr(rs("ID"))%>'>

</td>

</tr>

<%

i=i+1

if i>=MaxPerPage then exit do

rs.movenext

loop

%>

</table>

</div>

<%

end sub

Function men1(ClassID,up)

Set rsz = conn.execute("select * from ProductClass Where LoID="&ClassID)

If rsz.EOF And rsz.BOF Then

Response.Write ""

Else

While Not rsz.EOF

if classid=cstr(rsz("classid")) then

sel="selected"

else

sel=""

end if

Vcd = ""

For i = 1 to up

if i = up then

If Rsz("LoID")=0 then

Vcd = "⊙" + Vcd

Else

Vcd = "┣" + Vcd

End if

Else

Vcd = "━" + vcd

End if

Next

If rsz("ClassName")="T" Then

Dc = "T(铁质)"

ElseIf rsz("ClassName")="C" Then

Dc = "C(铸钢)"

ElseIf rsz("ClassName")="P" Then

Dc = "P(不锈钢)"

ElseIf rsz("ClassName")="W" Then

Dc = "W(铜质)"

ElseIf rsz("ClassName")="K" Then

Dc = "K(球墨铸铁)"

Else

Dc = rsz("ClassName")

End if

ChildCount = conn.Execute("select count(*) from ProductClass where LoID="&rsz("ClassID"))(0)

response.write "<option " &sel &" value='"+CStr(rsz("classID"))+"' name=classid>"+Vcd+Dc+"</option>"+chr(13)+chr(10)

If ChildCount>0 Then

men1 rsz("ClassID"),up+1

End If

rsz.movenext

Wend

End if

rsz.Close:Set rsz=Nothing

End Function

Function Men(classid)

set rsv=conn.execute("select * from ProductClass where classid="&classid)

If rsv("LoID") <>0 then Men(rsv("LoID"))

Response.Write rsv("classname")

rsv.close:set rsv=nothing

End Function

Function men2(ClassID)

ZZ = ""

Set rsz = conn.execute("select * from ProductClass Where LoID="&ClassID)

If not(rsz.EOF And rsz.BOF) Then

While Not rsz.EOF

ZZ = ZZ &men2(rsz("ClassID"))

rsz.movenext

Wend

End if

men2 = ZZ &"," &ClassID

rsz.Close:Set rsz=Nothing

End Function

function showpage(totalnumber,maxperpage,filename)

dim n

if totalnumber mod maxperpage=0 then

n= totalnumber \ maxperpage

else

n= totalnumber \ maxperpage+1

end if

response.write "<br> "

if CurrentPage<2 then

response.write "<font color='#000080'>首页 上一页</font> "

else

response.write "<a href="&filename&"?page=1&ClassID="&ClassID&"txtitle="&txtitle&">首页</a> "

response.write "<a href="&filename&"?page="&CurrentPage-1&"&ClassID="&ClassID&"&txtitle="&txtitle&">上一页</a> "

end if

if n-currentpage<1 then

response.write "<font color='#000080'>下一页 尾页</font>"

else

response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&ClassID="&ClassID&"&txtitle="&txtitle&">"

response.write "下一页</a><a href="&filename&"?page="&n&"&ClassID="&ClassID&"&txtitle="&txtitle&">尾页</a>"

end if

response.write "<font color='#000080'> 页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font>"

response.write "<font color='#000080'> 共<b>"&totalnumber&"</b>篇 <b>"&maxperpage&"</b>篇/页</font><br><br>"

end function

sub deleteannounce(id)

sql="delete from Product where ID="&cstr(id)

conn.execute sql

sql="delete from Product_Revert where Product_ID="&cstr(id)

conn.execute sql

if err.Number<>0 then

err.clear

response.write "删 除 失 败 !<br>"

else

response.write "操作成功!<br>"

end if

End sub

%>

</div></form></td>

</tr>

</table>

</div>

</body>

</html>

______________________

楼下的,还是不行呢.晕

回答者:zwb001


欢迎分享,转载请注明来源:优选云

原文地址:https://54852.com/hy/991968.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-08-01
下一篇2023-08-01

随机推荐

  • 雅诗兰黛精华液价格是多少

    雅诗兰黛 密集特润修护精华露参考价格:¥980产品规格:30ml所属系列:修护系列产品分类: 护肤面部精华产品功效: 补水 抗衰老抗皱 滋润产品简介:含有独特高效修护功效的密集特润修护精华露采用了超浓缩的夜间修复精华、高效抗刺激精华

    2023-12-14
    31900
  • 赫莲娜眼霜

    赫莲娜眼霜的净重一般在100克左右,每次涂抹的量两三克就可以了,只要把眼部周围的皮肤都顾及到,那么就可以等待精华的吸收。这款眼霜也有一些花香,让人们在静躺休息的时候闻到淡淡的清香也能带来心情的放松。这款眼霜的性价比也是非常高的,大家可以通过

    2023-12-14
    31300
  • 黛珂水乳霜液的使用顺序

    黛珂水乳霜精华液的使用顺序黛珂水乳霜精华液的使用顺序,不同的护肤品的使用方法和总是有所不同,黛珂是比较有名的一个护肤品牌,在生活中有很多人都会使用黛珂,下面分析黛珂水乳霜精华液的使用顺序黛珂水乳

    2023-12-14
    37700
  • 诗佳秀滋河策安平气垫遮暇效果怎么样

    遮瑕效果挺好的。诗佳秀是韩国LG健康生活推出的一款高端奢华贵妇级护肤品牌。诗佳秀拥有三个基本护肤系列产品,其中善蕙润是补水系列,善蕙润防晒亮彩气垫是这个系列中的明星美妆产品。善蕙润防晒亮彩气垫具有遮瑕美白、保湿养肤、改善皱纹以及抵挡紫外线的

    2023-12-14
    20800
  • 特意逛了屈臣氏,想买百雀羚至臻皙白,为什么屈臣氏专柜上的标价和官网上的标价不一样

    在官网上的都是厂家直营价,相对来说是会更便宜的哦。而专柜是实体店价,当然不一样。 实体店要店面租金、物业管理费用、人工费用、水电煤等经营成本,这也是为什么你会发现在京东、亚马逊上买手机、电脑或者其他一些商品比苏宁、国美等实体店便宜的原因。成

    2023-12-14
    30300
  • 日化用品批发市场在哪里

    日化用品批发市场在哪里?日化用品批发市场在哪里主要如下:                                                                                北京天意化妆品批发市场、

    2023-12-14
    20400
  • mac粉底液哪款好用 mac好用的粉底液推荐

    mac是大家都很熟悉的一个彩妆品牌,mac的化妆品一直备受好评,深受大家的欢迎与喜爱,MAC作为专业彩妆品牌,底妆更是不差,那么mac粉底液哪款好用?mac好用的粉底液推荐。mac粉底哪款好用 MAC海洋亮白气垫 防晒值:SPF50P

    2023-12-14
    29500
  • sk-ll是什么牌子

    sk-ll是日本的护肤品牌。SK-II诞生于日本,是日本皮肤专家将尖端科技运用到护肤品开发中的完美结晶。30年来,SK-II不断推出革新的护肤科技与产品,鼓励女性以敢于表达真我的“素颜之美”,焕发肌肤与心灵双重新生的自信光彩。自1980年推

    2023-12-14
    21300
  • 南宁市武鸣区老百姓同喜大药房怎么样

    南宁市武鸣区老百姓同喜大药房是2017-12-06在广西壮族自治区南宁市武鸣区注册成立的个人独资企业,注册地址位于南宁市武鸣区香山大道66号聚宝城新童汇儿童城B2号商铺。南宁市武鸣区老百姓同喜大药房的统一社会信用代码注册号是9145012

    2023-12-13
    19300

发表评论

登录后才能评论
保存