📄 article.jsp
字号:
<%@ taglib prefix="mt" uri="/WEB-INF/tech.tld" %>
<%@ page contentType="text/html; charset=gb2312" %>
<jsp:useBean id="article" scope="page" class="org.jetic.web.tech.Article" />
<jsp:setProperty name="article" 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> ->
<a href="category.jsp?categoryID=<%= article.getCategoryID() %>"><%= article.getCategoryName() %></a> ->
<%= article.getArticleTitle() %>
<p/>
<table border="0" cellspacing="1" cellpadding="2">
<tr>
<th>字段</th>
<th>值</th>
</tr>
<tr>
<td>题目</td>
<td><%= article.getArticleTitle() %></td>
</tr>
<tr>
<td>作者</td>
<td><%= article.getArticleAuthor() %></td>
</tr>
<tr>
<td>来自</td>
<td><%= article.getArticleFrom() %></td>
</tr>
<tr>
<td>使用HTML</td>
<td>
<%= article.getArticleUseHtml() %>
(说明:0 标识不使用,1 标识使用)
</td>
</tr>
<tr>
<td valign="top">内容</td>
<td><%= article.getArticleContent() %></td>
</tr>
<tr>
<td>时间</td>
<td><%= article.getArticleTime() %></td>
</tr>
</table>
<ul>
<li>
<a href="discuss.jsp?articleID=<%= article.getArticleID() %>">查看网友相关讨论</a>
(<%= article.getArticleDiscussCount() %>)
</li>
<li>修改文章数据
<form name="form1" method="post" action="modifyarticle.jsp">
<input type="hidden" name="articleID" value="<%= article.getArticleID() %>">
分类:
<select name="categoryID">
<mt:CategoryList>
<option value="<%= categoryID %>"<%
if (categoryID.intValue() == article.getCategoryID()) out.print(" selected");
%>><%= categoryName %></option>
</mt:CategoryList>
</select>
<br>
题目:
<input type="text" name="articleTitle" size="50" value="<%= article.getArticleTitle() %>">
<br>
作者:
<input type="text" name="articleAuthor" size="20" value="<%= article.getArticleAuthor() %>">
<br>
来自:
<input type="text" name="articleFrom" size="25" value="<%= article.getArticleFrom() %>">
<br>
HTML:
<input type="radio" name="articleUseHtml" value="1"<%
if (article.getArticleUseHtml() == 1) out.print(" checked");
%>>
使用
<input type="radio" name="articleUseHtml" value="0"<%
if (article.getArticleUseHtml() == 0) out.print(" checked");
%>>
不使用<br>
内容:
<textarea name="articleContent" cols="60" rows="5"><%= article.getArticlePlainContent() %></textarea>
<br>
<input type="submit" value=" 修 改 ">
</form>
</li>
</ul>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -