?? delete_by_admin.jsp
字號:
<%@ page language="java" contentType="text/html;charset=gb2312"%>
<jsp:useBean id="delete" class="com.db.User" 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>
<body>
<%
request.setCharacterEncoding("gb2312");
if(session.getAttribute("isLogin")==null)
{
%>
<jsp:forward page="../login/login.html"/>
<%
}
String username=request.getParameter("username");
if(!could.getCould("select * from order_inf where username='"+username+"'"))
{
%>
<jsp:forward page="../error/admin_error.jsp"/>
<%
}
else
{
delete.deleteUser(username);
out.println("該用戶已成功刪除");
out.println("<p>");
out.println("<a href='../admin/index.jsp'>返回首頁</a>");
}
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -