📄 userinf.asp
字号:
<!-- #include file="conn.asp"-->
<%
sqlstr="select * from 用户表"
my_rs.open sqlstr,my_Conn,1,1
%>
<html>
<head>
<title>查看用户信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body,td,th {
font-size: 9pt;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
</head>
<body background="image/bg.gif">
<div align=center>
<table border=1 bordercolor=red>
<tr>
<td bgcolor="#00FF00">用户名</td>
<td bgcolor="#00FF00">修改</td>
<td bgcolor="#00FF00">删除</td>
<td bgcolor="#00FF00">详细信息</td>
</tr>
<%'分页技术
if not isempty(request("page")) then
pagecount=cint(request("page"))
else
pagecount=1
end if
my_rs.pagesize=10
my_rs.absolutepage=pagecount
for i=1 to my_rs.pagesize
If my_rs.EOF Then
Exit For
end if
'if not my_rs.eof then
' do while not my_rs.eof
%>
<tr>
<td bgcolor="#CCFF33"><%=my_rs("用户名")%></td>
<td bgcolor="#CCFF33"> <a href="#" onClick="MM_openBrWindow('updateform.asp?Userid=<%=my_rs("用户编号")%>','','width=300,height=340')">修改</a></td>
<td bgcolor="#CCFF33"> <a href="#" onClick="MM_openBrWindow('delete.asp?userid=<%=my_rs("用户编号")%>','','width=100,height=100')">删除</a></td>
<td bgcolor="#CCFF33"><a href="#" onClick="MM_openBrWindow('Userinf_show.asp?Userid=<%=my_rs("用户编号")%>','','width=300,height=300')">详细信息</a></td>
<%
my_rs.movenext
next
'loop
'end if%>
</table>
<div align=right>
<%
if my_rs.PageCount>1 Then
If pagecount<>1 Then
%>
<A HREF='userinf.asp?Page=1'>首页</A>
<A HREF='userinf.asp?Page=<%=pagecount-1%>'>前页</A>
<%
End If
If pagecount<>my_rs.PageCount Then
%>
<A HREF='userinf.asp?Page=<%=pagecount+1%>'>后页</A>
<A HREF='userinf.asp?Page=<%=my_rs.PageCount%>'>尾页</A>
<%
End If
end if
%>
</div>
<p><%my_rs.close%>
</p>
<form name="form1" method="post" action="">
<label>
<input name="Submit" type="button" onClick="MM_goToURL('parent','adduserform.asp');return document.MM_returnValue" value="添加新成员">
</label>
<input name="close" value="关闭窗口" onClick="javascript:self.close()" type="button">
</form>
<p> </p>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -