⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pxxop.jsp

📁 有完整的毕业设计所需的文件和代码 没什么说的了
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java"%>
<%@ page import="mypackage.*,java.util.*" %>
<%
String op=DateFormate.toGb((String)request.getParameter("op"));
String yid,name,password,sex,age,addr,tel,sfz,email,jj,username;
 
pxxop pxop=new pxxop();
if("add".equals(op)){
   	yid=DateFormate.toGb((String)request.getParameter("yid"));
	name=DateFormate.toGb((String)request.getParameter("name"));
    password=DateFormate.toGb((String)request.getParameter("password"));
 
    sex=DateFormate.toGb((String)request.getParameter("sex"));
	age=DateFormate.toGb((String)request.getParameter("age"));
    addr=DateFormate.toGb((String)request.getParameter("addr"));
	
	tel=DateFormate.toGb((String)request.getParameter("tel"));
	sfz=DateFormate.toGb((String)request.getParameter("sfz"));
    email=DateFormate.toGb((String)request.getParameter("email"));
	jj=DateFormate.toGb((String)request.getParameter("jj"));
	pxop.add(yid,name,password,sex,age,addr,tel,sfz,email,jj);
	%>
	<script language="javascript">
	alert("用户注册成功");
	document.location.href="pxxmanager.jsp";
	</script>
	
	<%
}
else if("mod".equals(op)){
 	yid=DateFormate.toGb((String)request.getParameter("yid"));
	name=DateFormate.toGb((String)request.getParameter("name"));
    password=DateFormate.toGb((String)request.getParameter("password"));
 
    sex=DateFormate.toGb((String)request.getParameter("sex"));
	age=DateFormate.toGb((String)request.getParameter("age"));
    addr=DateFormate.toGb((String)request.getParameter("addr"));
	
	tel=DateFormate.toGb((String)request.getParameter("tel"));
	sfz=DateFormate.toGb((String)request.getParameter("sfz"));
    email=DateFormate.toGb((String)request.getParameter("email"));
	jj=DateFormate.toGb((String)request.getParameter("jj"));
	pxop.update(yid,name,password,sex,age,addr,tel,sfz,email,jj);
	%>
	<script language="javascript">
	alert("个人信息修改成功");
	document.location.href="modpxx.jsp";
	</script>
	
	<%
}else if("del".equals(op)){

	yid=DateFormate.toGb((String)request.getParameter("yid"));
 
	 
	 
	pxop.delete(yid);
	%>
	<script language="javascript">
	alert("操作成功");
	document.location.href="pxxmanager.jsp";
	</script>
	<%
 }else if("login".equals(op)){

	username=DateFormate.toGb((String)request.getParameter("username"));
    password=DateFormate.toGb((String)request.getParameter("password"));
 
    LoginManager lm=new LoginManager();
    if(!lm.testUser(username,password,"2")){
    %>
      <script language="javascript">
	      alert("用户名或密码错误,或者没有这个用户的注册资料!");
	      document.location.href="index.jsp";
       </script>
<%	
}else{
    session.setAttribute("s_usertype","2");
	session.setAttribute("s_username",username);
	session.setAttribute("s_userpasword",password);
     %>
      <script language="javascript">
	      alert("登陆成功!");
	        document.location.href="index.jsp";
       </script>
<%	
	 
	 
}
	
	
	
	
	}
 
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title> </title>
</head>

<body>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -