?? do_add.jsp
字號:
<%@ page language="java" contentType="text/html;charset=gb2312"%>
<jsp:useBean id="add" class="com.db.Admin" scope="page"/>
<jsp:useBean id="could" class="com.db.Common" scope="page"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>管理員添加</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/mm_lodging1.css" type="text/css">
</head>
<%
request.setCharacterEncoding("gb2312");
if(session.getAttribute("isLogin")==null)
{
%>
<jsp:forward page="../login/login.html"/>
<%
}
String admin=request.getParameter("admin");
String password=request.getParameter("s_psd");
String sect=request.getParameter("sect");
String realname=request.getParameter("realname");
if(could.getCould("select * from admin where admin_name='"+admin+"'"))
{
add.addAdmin(admin,password,realname,sect);
out.println("添加成功");
out.println("<p>");
out.println("<a href='../system_admin/index.jsp'>返回首頁</a>");
}
else
{
%>
<jsp:forward page="../error/system_admin_error.jsp"/>
<%
}
%>
<body>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -