WebContent/WEB-INF/views/studentlist.jsp

(开头部分) 5KB

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

<!DOCTYPE HTML>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/bootstrap.min.css">
<link rel="stylesheet" href="<%=request.getContextPath()%>/font/iconfont.css">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/sweetalert/sweetalert.css">
<script src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script src="<%=request.getContextPath()%>/lib/layer/1.9.3/layer.js"></script>
<script src="<%=request.getContextPath()%>/lib/laypage/1.2/laypage.js"></script>
<script src="<%=request.getContextPath()%>/js/sweetalert/sweetalert.min.js"></script>
<script type="text/javascript">
function del(studentid) {
	 swal({
	        title: "您确定要删除这条信息吗",
	        text: "删除后将无法恢复,请谨慎操作!",
	        type: "warning",
	        showCancelButton: true,
	        confirmButtonColor: "#DD6B55",
	        confirmButtonText: "删除",
	        closeOnConfirm: false
	    }, function () {
	    	if (window.XMLHttpRequest){
	    		// code for IE7+, Firefox, Chrome, Opera, Safari
	    	  	xmlhttp=new XMLHttpRequest();
	    	  }
	    	else{// code for IE6, IE5
	    	  	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	    	  }                                                       //创建XMLHttpRequest对象
	    	xmlhttp.onreadystatechange=function(){
	    	  if (xmlhttp.readyState==4 && xmlhttp.status==200){
	    		  var a = eval("("+xmlhttp.responseText+")");
	    		  if(a.status== 1){
	    			  swal({title:"删除成功!",text:"您已经永久删除了这条信息!",type:"success"}, 
								function () {
	    				  			var b = '${stupage}' ;
	    				  			b = Math.ceil(b/6) ;
	    				  			location.href = "studentlist?page=" + b;
						    });
	    		  }else{
	    			  swal("哦豁","删除失败,请重试!","error");
	    		  }
	    	    }
	    	  }	;											//服务器响应时完成相应操作
	    	xmlhttp.open("post","studentdel?stuId="+studentid,true);
	    	xmlhttp.send();
	    });
}
</script>
<title>学生列表</title>
</head>
<style>
	body{
		background: url("<%=request.getContextPath()%>/images/3.webp") no-repeat;
		background-size:100% 100%;
		background-attachment:fixed;
	}
</style>
后面还有 96 行代码,购买后查看完整代码

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

AI 解读 AI

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

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