📄 category.jsp
字号:
<%@ taglib prefix="mt" uri="/WEB-INF/technologic.tld" %>
<%@ page contentType="text/html; charset=gb2312" %>
<jsp:useBean id="category" scope="page" class="org.jetic.web.technologic.Category" />
<jsp:setProperty name="category" property="*" />
<html>
<head>
<title>精彩文章管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="hover.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>
<a href="./">精彩文章管理</a> ->
<%= category.getCategoryName() %>
<p/>
<table border="0" cellspacing="1" cellpadding="2">
<tr>
<th>题目</th>
<th>作者</th>
<th>来自</th>
<th colspan="2">执行操作</th>
</tr>
<mt:ArticleList categoryID="<%= category.getCategoryID() %>">
<tr>
<td><%= articleTitle %></td>
<td><%= articleAuthor %></td>
<td><%= articleFrom %></td>
<td><a href="article.jsp?articleID=<%= articleID %>">浏览</a></td>
<td><a href="deletearticle.jsp?articleID=<%= articleID %>">删除</a></td>
</tr>
</mt:ArticleList>
</table>
<ul>
<li>添加文章:
<form name="form1" method="post" action="newarticle.jsp">
<input type="hidden" name="categoryID" value="<%= category.getCategoryID() %>">
题目:
<input type="text" name="articleTitle" size="50">
<br>
作者:
<input type="text" name="articleAuthor" size="20">
<br>
来自:
<input type="text" name="articleFrom" size="25">
<br>
HTML:
<input type="radio" name="articleUseHtml" value="1">使用
<input type="radio" name="articleUseHtml" value="0" checked>不使用
<br>
内容:
<textarea name="articleContent" cols="60" rows="5"></textarea>
<br>
<input type="submit" value=" 添 加 ">
</form>
</li>
<li>修改分类属性:
<form name="form2" method="post" action="modifycategory.jsp">
<input type="hidden" name="categoryID" value="<%= category.getCategoryID() %>">
分类名称:
<input type="text" name="categoryName" size="20" value="<%= category.getCategoryName() %>">
<br>
分类说明:
<textarea name="categoryComment" cols="60" rows="5"><%= category.getCategoryComment() %></textarea>
<br>
<input type="submit" name="Submit" value=" 修 改 ">
</form>
</li>
</ul>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -