WebRoot/ye.jsp
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page language="java" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="connDbBean" scope="page" class="db.db"/>
<html>
<head>
<base href="<%=basePath%>">
<title>用户注册</title><LINK href="CSS.css" type=text/css rel=stylesheet>
</head>
<body >
<p>会员余额:</p>
<form name="form1" id="form1" method="post" action="">
搜索: 用户名:<input name="yonghuming" type="text" id="yonghuming" size="15" />
姓名:<input name="xingming" type="text" id="xingming" size="15" />
QQ:<input name="QQ" type="text" id="QQ" /> 邮箱:<input name="youxiang" type="text" id="youxiang" /> 电话:<input name="dianhua" type="text" id="dianhua" size="15" />
身份证:<input name="shenfenzheng" type="text" id="shenfenzheng" />
<input type="submit" name="Submit" value="查找" />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="00FFFF" style="border-collapse:collapse">
<tr>
<td width="30" align="center" bgcolor="CCFFFF">序号</td>
<td bgcolor='#CCFFFF'>用户名</td><td bgcolor='#CCFFFF'>姓名</td><td bgcolor='#CCFFFF'>性别</td><td bgcolor='#CCFFFF'>QQ</td><td bgcolor='#CCFFFF'>邮箱</td><td bgcolor='#CCFFFF'>电话</td><td bgcolor='#CCFFFF'>身份证</td>
<td width="138" align="center" bgcolor="CCFFFF">余额</td>
<td width="138" align="center" bgcolor="CCFFFF">添加时间</td>
</tr>
<%
int curpage=1;//当前页
int page_record=10;//每页显示的记录数
int zgs=0;
int zys=0;
//用下面的方法(sql查询完成,速度快)
String hsgnpage=request.getParameter("page");
String fysql="select count(id) as ss from yonghuzhuce";
ResultSet RS_resultfy=connDbBean.executeQuery(fysql);
while(RS_resultfy.next()){
zgs=Integer.parseInt(RS_resultfy.getString("ss"));
zys=zgs/page_record+1;
}
if (hsgnpage!=null)
{
curpage=Integer.parseInt(request.getParameter("page"));//获取传递的值,需要显示的页
}
else
{
curpage=1;
}
if (curpage==0)
{
curpage=1;
}
if(curpage>zys)
{
curpage=zys;
}
String sql="";
sql="select top "+page_record+" * from yonghuzhuce where id not in (select top "+((curpage-1)*page_record)+" id from yonghuzhuce order by id desc) ";
后面还有 33 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。