WebRoot/xuesheng/xueshengPlist.jsp

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.util.*"%>
<%
DBO db=new DBO();
request.setCharacterEncoding("gb2312");
ResultSet rs=null;
String sql="";
%><html>
<head>
<LINK href="../css/admin.css" type="text/css" rel="stylesheet"><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
	background-color: #EEF2FB;
}
a:hover{
color:#FF0000;
text-decoration:underline;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>学生</title>
<body>
<br>

<br>

<div align="center">
  <h3>学生列表</h3></div>
<hr width=80% color=#880000>
<table width="98%" border=1 style="border-collapse: collapse; border-style: dotted; border-width: 1px"  bordercolor="#999999" cellspacing="1" cellpadding="1">
<tr>
<td>序号</td>
<td>学生编号</td>
<td>用户名</td>
<td>密码</td>
<td>姓名</td>
<td>班级</td>
<td>说明</td>
<td>操作</td></tr>
<%
sql="select * from xuesheng";
rs=db.query(sql);
String str=(String)request.getParameter("Page");
if(str==null){
str="0";
}
int pagesize=10;
rs.last();
int RecordCount=rs.getRow(); 
int maxPage=0;
maxPage=(RecordCount%pagesize==0)?(RecordCount/pagesize):(RecordCount/pagesize+1);
int Page=Integer.parseInt(str);
if(Page<1){
 	Page=1;
}else{
后面还有 40 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。