WebContent/admin/viewstu.jsp
(完整代码) 2KB<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="publicStyle/css/bootstrap.css">
<title>Insert title here</title>
</head>
<body>
<center>
<h1>学生信息</h1>
<form action="${pageContext.request.contextPath }/nameselect">
<input type="text" name="name"><input type="submit" value="查询">
</form>
<table class="table table-striped table-bordered table-hover table-condensed">
<tr><td>学生编号</td><td>学生姓名</td><td>学生密码</td><td>学生专业</td><td>学生性别</td><td>学生年龄</td><td >信息修改</td><td >信息删除</td></tr>
<c:forEach begin="0" end="${fn:length(liststu)-1}" step="1" var="i">
<tr><td>${liststu[i].sid}</td><td>${liststu[i].sname}</td><td>${liststu[i].spassword}</td>
<td>${liststu[i].smajor}</td>
<td>${liststu[i].ssex}</td><td>${liststu[i].sage}</td>
<td><a href="admin/updatestu.jsp?sid=${liststu[i].sid}&sname=${liststu[i].sname}&spassword=${liststu[i].spassword}&smajor=${liststu[i].smajor}&ssex=${liststu[i].ssex}&sage=${liststu[i].sage}">修改信息</a></td><td><a href="${pageContext.request.contextPath }/delstu?sid=${liststu[i].sid}" onclick="return confirm('确定删除吗?')">信息删除</a></td></tr>
</c:forEach>
</table>
<a href="${pageContext.request.contextPath }/viewstu?currPage=1">首页</a> <a href="${pageContext.request.contextPath }/viewstu?currPage=${pb.currPage-1}">上一页</a> <a href="${pageContext.request.contextPath }/viewstu?currPage=${pb.currPage+1}">下一页</a> <a href="${pageContext.request.contextPath }/viewstu?currPage=${pb.totalPage}">尾页</a> <a>当前第${pb.currPage }页/总${pb.totalPage}页</a>
</center>
</body>
</html>
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
