📄 showarticlepost.jsp
字号:
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page isELIgnored="false" %>
<%@ page import="com.tiandinet.StrutsArticle.FormBeans.*" %>
<%@ taglib uri="/struts-html" prefix="html" %>
<%@ taglib uri="/struts-bean" prefix="bean" %>
<%@ taglib uri="/struts-logic" prefix="logic" %>
<%-- Begin Set the Language --%>
<jsp:include page="/languageAction.do"/>
<%-- End Set the Language --%>
<jsp:useBean id="articleClasses" class="com.tiandinet.StrutsArticle.FunctionBeans.GetArticleClasses"/>
<!-- Struts 文章系统 -->
<!-- 2004年7月19日 发布 -->
<!-- 天地网络(www.tiandinet.com) 版权所有 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><bean:message key="SA.title"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<html:base/>
<script language="JavaScript" type="text/javascript" src="js/checkForm.js"></script>
<script language="javascript" src="editorFiles/editor_js/editorFunction.js"></script>
<script language="javascript">
window.onload=InitDocument;
</script>
<style type="text/css">
<!--
td {
font-family: Tahoma, Arial, "宋体";
font-size: 9pt;
color: #000000;
}
.select_fontName {
font-family: Tahoma, Arial, "宋体";
font-size: 9pt;
color: #000000;
background-color: #F6F6F6;
height: 18px;
width: 110px;
}
.select_fontSize {
font-family: Tahoma, Arial, "宋体";
font-size: 9pt;
color: #000000;
background-color: #F6F6F6;
height: 18px;
width: 50px;
}
-->
</style>
</head>
<body>
<table width="100%" height="60" border="0" cellpadding="0" cellspacing="0" bgcolor="#EFEEEE">
<tr>
<td align="left" valign="middle"><img src="ima/<bean:message key="SA.titleImage"/>" border="0"></td>
</tr>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="#DFDFDF" class="table_border1">
<tr>
<td>
<div style="DISPLAY: inline">
<html:form action="searchAction.do" method="post" style="margin:0px">
<table width="150" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="160"><html:text property="key" styleClass="input_search" /></td>
<td><html:image property="doSearch" src="ima/search.gif" /></td>
</tr>
</table>
</html:form>
</div>
</td>
<td align="right"><table width="200" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="2" background="ima/bg_vertical.gif"></td>
<td width="93" align="center" onMouseOver="this.bgColor='#FF9900'" onMouseOut="this.bgColor=''"><html:link page="/articlePostAction.do"><bean:message key="SA.postArticle"/></html:link></td>
<td width="2" background="ima/bg_vertical.gif"></td>
<td width="93" align="center" onMouseOver="this.bgColor='#FF9900'" onMouseOut="this.bgColor=''"><html:link page="/articleClassManageAction.do"><bean:message key="SA.admClasses"/></html:link></td>
<td width="2" background="ima/bg_vertical.gif"></td>
<td width="8"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="150" align="center" valign="top" bgcolor="#EFEEEE" class="table_border1"><table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
<tr>
<td height="20"><strong><bean:message key="SA.doClass"/></strong></td>
</tr>
<tr>
<td height="2" background="ima/bg_2px.gif"></td>
</tr>
<%-- Begin iterate the Article Classes --%>
<logic:iterate id="aClasses" name="articleClasses" property="coll">
<td onMouseOver="this.bgColor='#FFFFFF'" onMouseOut="this.bgColor=''"> <html:link page="/articleListAction.do" paramId="classId" paramName="aClasses" paramProperty="classId"><bean:write name="aClasses" property="className" /></html:link></td>
</tr>
</logic:iterate>
<%-- End iterate the Article Classes --%>
</table></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="bottom"> <html:link page="/index.jsp"><bean:message key="SA.title"/></html:link> > <bean:message key="SA.postArticle"/></td>
</tr>
<tr>
<td valign="top"><hr></td>
</tr>
<tr>
<td align="center" valign="top">
<html:form action="/articlePostAction.do?action=post" method="post" onsubmit="return checkForm(this)">
<table width="90%" border="0" cellspacing="3" cellpadding="3">
<tr>
<td width="10%" height="25" align="center" valign="middle">标题</td>
<td width="90%" height="25"><html:text property="title" styleClass="input_postarticle" /></td>
</tr>
<tr>
<td width="10%" height="25" align="center" valign="middle">类别</td>
<td width="90%" height="25">
<html:select property="classId" styleClass="input_postarticle">
<html:option value="">请选择文章类别</html:option>
<%-- Begin iterate the Article Classes --%>
<logic:iterate id="aClasses" name="articleClasses" property="coll">
<html:option value="${aClasses.classId}">${aClasses.className}</html:option>
</logic:iterate>
<%-- End iterate the Article Classes --%>
</html:select>
</td>
</tr>
<tr>
<td width="10%" height="25" align="center" valign="middle">作者</td>
<td width="90%" height="25"><html:text property="author" styleClass="input_postarticle" /></td>
</tr>
<tr>
<td width="10%" height="25" align="center" valign="middle">来源</td>
<td width="90%" height="25"><html:text property="from" styleClass="input_postarticle" /></td>
</tr>
<tr>
<td width="10%" align="center" valign="top">内容</td>
<td width="90%"><table width="450" border="0" cellpadding="0" cellspacing="0" class="contentInput_postarticle">
<tr>
<td><table width="450" border="0" cellpadding="1" cellspacing="1" bgcolor="#D6D3CE">
<tr>
<td height="20" align="left" valign="middle"><img src="editorFiles/editor_image/hyperlink.gif" alt="插入超链接" width="21" height="20" border="0" onClick="insertLink()"><img src="editorFiles/editor_image/image.gif" alt="插入图片" border="0" onClick="insertImage()"><img src="editorFiles/editor_image/table.gif" alt="插入表格" width="21" height="20" border="0"><img src="editorFiles/editor_image/hr.gif" alt="插入水平线" width="21" height="20" border="0" onClick="doCommand('InsertHorizontalRule')"><img src="editorFiles/editor_image/flash.gif" alt="插入Flash" width="21" height="20" border="0"> <img src="editorFiles/editor_image/copy.gif" alt="复制" width="21" height="20" border="0" onClick="doCommand('copy')"><img src="editorFiles/editor_image/cut.gif" alt="剪切" width="21" height="20" border="0" onClick="doCommand('cut')"><img src="editorFiles/editor_image/paste.gif" alt="粘贴" width="21" height="20" border="0" onClick="doCommand('paste')"><img src="editorFiles/editor_image/delete.gif" alt="删除" width="21" height="20" border="0" onClick="doCommand('delete')"> <img src="editorFiles/editor_image/undo.gif" alt="撤消" width="21" height="20" border="0" onClick="doCommand('undo')"><img src="editorFiles/editor_image/redo.gif" alt="重做" width="21" height="20" border="0" onClick="doCommand('redo')">
<input name="checkboxHtmlMode" type="checkbox" id="checkboxHtmlMode" onClick="htmlMode(this.checked)" value="checkbox">
使用HTML方式编辑</td>
</tr>
<tr>
<td height="20" align="left" valign="middle"><img src="editorFiles/editor_image/bold.gif" alt="粗体" width="21" height="20" border="0" onclick="strongFont()"><img src="editorFiles/editor_image/italic.gif" alt="斜体" width="21" height="20" border="0" onclick="italicFont()"> <img src="editorFiles/editor_image/align_left.gif" alt="左对齐" width="21" height="20" border="0" onclick="alignLeft()"><img src="editorFiles/editor_image/align_center.gif" alt="居中对齐" width="21" height="20" border="0" onclick="alignCenter()"><img src="editorFiles/editor_image/align_right.gif" alt="右对齐" width="21" height="20" border="0" onclick="alignRight()"> <img src="editorFiles/editor_image/list_order.gif" alt="编号" width="21" height="20" border="0" onclick="insertOrderList()"><img src="editorFiles/editor_image/list_unorder.gif" alt="项目符号" width="21" height="20" border="0" onclick="insertUnorderList()"><img src="editorFiles/editor_image/outdent.gif" alt="减少缩进" width="21" height="20" border="0" onclick="outDent()"><img src="editorFiles/editor_image/indent.gif" alt="增加缩进" width="21" height="20" border="0" onclick="inDent()"> <img src="editorFiles/editor_image/textcolor.gif" alt="字体颜色" width="21" height="20" border="0" onclick="setColor()">
<select name="selectFontName" class="select_fontName" id="selectFontName" onChange="doCommandAfterCheck('fontname',this.options[this.selectedIndex].value)">
<option selected>请选择字体</option>
<option value="宋体">宋体</option>
<option value="黑体">黑体</option>
<option value="楷体_GB2312">楷体</option>
<option value="仿宋_GB2312">仿宋</option>
<option value="隶书">隶书</option>
<option value="幼圆">幼圆</option>
<option value="Arial">Arial</option>
<option value="Arial Black">Arial Black</option>
<option value="Arial Narrow">Arial Narrow</option>
<option value="Tahoma">Tahoma </option>
<option value="Brush Script MT">Brush Script MT</option>
<option value="Comic Sans MS">Comic Sans</option>
<option value="Courier">Courier</option>
<option value="Courier New">Courier New</option>
<option value="MS Sans Serif">MS Sans Serif</option>
<option value="Script">Script</option>
<option value="System">System</option>
<option value="Verdana">Verdana</option>
</select>
<select name="selectFontSize" class="select_fontSize" id="selectFontSize" onchange="doCommandAfterCheck('fontsize',this[this.selectedIndex].value)">
<option selected>字号</option>
<option value="7">一号</option>
<option value="6">二号</option>
<option value="5">三号</option>
<option value="4">四号</option>
<option value="3">五号</option>
<option value="2">六号</option>
<option value="1">七号</option>
</select>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="300">
<iframe id="editContent" name="editContent" width="100%" height="100%" MARGINHEIGHT="1" MARGINWIDTH="1" style="border:0px solid #FFFFFF"></iframe>
</td>
</tr>
</table></td>
</tr>
<tr>
<td width="10%" align="center" valign="top"> </td>
<td width="90%"><html:hidden property="content" /></td>
</tr>
<tr>
<td height="30" colspan="2" align="right" valign="middle"><input type="submit" name="Submit" value="<bean:message key="SA.postArticle.submitButton" />" class="submit_postarticle"></td>
</tr>
</table>
</html:form></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<hr>
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle"><bean:message key="SA.copyright"/></td>
<td width="200" align="center" valign="middle">
<html:form action="/languageAction.do" method="get" style="margin:0px">
<html:hidden property="action" value="change"/>
<html:select property="language" styleClass="input_search" onchange="this.form.submit()">
<html:option value="zh">中文</html:option>
<html:option value="en">English</html:option>
</html:select>
</html:form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -