📄 pinpailist1.asp
字号:
<!-- #include file="../include/bkconn.asp"-->
<!--#include file="checkUser.asp"-->
<%
dim rs,sql
dim page,maxPerPage
maxPerPage=9 '每页显示的记录数
intID=cint(Request("id"))
page=Request("page")
if (page="" or isempty(page)) then page=1
set rs=server.createobject("adodb.recordset")
sql="select * from pinpai where 1=1 and fatherID="&intID&" order by id"
'response.write sql
'response.End
rs.open sql,conn,1,1
rs.pagesize=MaxPerPage
%>
<html>
<head>
<title>资料类别管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function jumpTo(i){
if(i==1){
this.document.location="sort.asp?id=<%=intID%>";}
if(i==2){
this.document.location="sort.asp?id=<%=intID%>&page=<%=page-1%>";}
if(i==3){
this.document.location="sort.asp?id=<%=intID%>&page=<%=page+1%>";}
if(i==4){
this.document.location="sort.asp?id=<%=intID%>&page=<%=rs.pageCount%>";}
}
function deleteMe(){
if(confirm("确定删除该项?")==1){
window.location='saveSortDel.asp?id=<%=intID%>&fatherID=<%=fatherID%>';
}
}
function checkMe(theForm){
if(theForm.name.value==""){
alert("错!名称不能为空!");
return false;
}
return true;
}
// -->
</script>
<script language="Javascript" src="../include/opennew.js"></script>
<link rel="stylesheet" href="../main.css" type="text/css">
</head>
<body bgcolor="#8CBEE7" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p> </p>
<p> </p>
<div align="center">
<table width="80%" border="1" bordercolordark="#C6DBE7" bordercolorlight="#092094" cellpadding="2" cellspacing="0" align="center">
<tr>
<td height="28" bgcolor="#4296E7">
<div align="center"><font color="#FFFFFF">商品分类管理</font></div>
</td>
</tr>
</table>
</div>
<table width="80%" border="1" bordercolordark="#C6DBE7" bordercolorlight="#092094" cellpadding="2" cellspacing="0" align="center">
<tr>
<td height="28">类别列表:</td>
</tr>
<%
i=1
if not (rs.eof or err) then rs.move (page-1)*maxPerPage
do while not (rs.eof or err)
%>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30%"> </td>
<td><a href=pinpaimod.asp?id=<%=rs("id")%>><%=rs("name")%> (自动编号:<%=rs("id")%>)</a></td>
</tr>
</table></td>
</tr>
<%
i=i+1
if i>maxPerPage then exit do
rs.moveNext
loop
%>
<tr>
<td>
<div align="right"><%=rs.recordCount%>项,第<%=page%>/<%=rs.pageCount%> 页
<%if page>1 then%>
<input type="button" name="Submit3" value="首页" onClick="Javascript:jumpTo(1)">
<input type="submit" name="Submit4" value="上页" onClick="Javascript:jumpTo(2)">
<%else%>
<input type="button" name="Submit3" value="首页" disabled>
<input type="submit" name="Submit4" value="上页" disabled>
<%end if
if rs.recordCount>page*maxPerPage then%>
<input type="submit" name="Submit5" value="下页" onClick="Javascript:jumpTo(3)">
<input type="submit" name="Submit6" value="末页" onClick="Javascript:jumpTo(4)">
<%else%>
<input type="submit" name="Submit5" value="下页" disabled>
<input type="submit" name="Submit6" value="末页" disabled>
<%end if%>
</div>
</td>
</tr>
</table>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -