📄 admin.jsp
字号:
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="com.blog.tableclass.*"%>
<%@ page import="com.blog.*"%>
<%@ page import="java.util.*"%>
<%
List blogList=(List)session.getAttribute(Constants.BLOG_LIST_KEY);
Blog blog=null;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>管理员主页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="StyleSheet" type="text/css" href="../images/style.css">
<base target="contents">
</head>
<body>
<form method="GET" action="../deleteBlog">
<table width="85%" height="150px" align="center">
<tr>
<td background="../images/head004.gif" width="85%"><FONT face="宋体"></FONT></td>
</tr>
</table>
<table width="85%" height="150px" align="center" background="../images/bg.GIF">
<tr>
<td width="200px">
<jsp:include page="leftBanner.jsp"></jsp:include>
</td>
<td width="550px">
<table background="../images/bg.GIF" border="1" bordercolor="#4EA9F1">
<%if(blogList != null ){
for(int i = 0;i < blogList.size();i++)
{
blog = (Blog)blogList.get(i);
%>
<tr>
<td valign="top">
<div class="author" style="width: 100">
<%=blog.getId()%>
</div>
</td>
<td valign="top">
<div class="author" style="width: 150">
<%=blog.getUsername()%>
</div>
</td>
<td>
<div class="author" style="width: 150">
<%=blog.getEmail()%>
</div>
</td>
<td>
<b><a href="../deleteBlog?blogid=<%=blog.getId()%>" onClick="return(confirm('確定刪除?'))">删除</a></b>
</td>
</tr>
<%
}
}%>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -