📄 addnews.jsp
字号:
<%@ page language="java" pageEncoding="gb2312"%>
<%@ taglib uri="/WEB-INF/FCKeditor.tld" prefix="fck"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<title>addnews.jsp</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<STYLE>
A:visited {
TEXT-DECORATION: none
}
A:active {
TEXT-DECORATION: none
}
A:hover {
TEXT-DECORATION: underline overline
}
A:link {
TEXT-DECORATION: none
}
.t {
LINE-HEIGHT: 1.4
}
BODY {
FONT-SIZE: 9pt; scrollbar-3dlight-color:595959;
scrollbar-arrow-color:ffffff;
scrollbar-base-color:CFCFCF;
scrollbar-darkshadow-color:FFFFFF;
scrollbar-face-color:CFCFCF;
scrollbar-highlight-color:FFFFF;
scrollbar-shadow-color:595959;FONT-FAMILY: 宋体; SCROLLBAR-DARKSHADOW-COLOR: buttonshadow
}
TD {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
DIV {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
FORM {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
OPTION {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
P {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
TD {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
BR {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
INPUT {
BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #cccccc; PADDING-BOTTOM: 1px; BORDER-TOP-COLOR: #cccccc; PADDING-TOP: 1px; HEIGHT: 20px; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #cccccc
}
TEXTAREA {
BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; FONT-FAMILY: 宋体; BACKGROUND-COLOR: #efefef; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #000000
}
SELECT {
BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; FONT-FAMILY: 宋体; BACKGROUND-COLOR: #efefef; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #000000
}
TABLE {
FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial
}
TR {
FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial
}
TD {
FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial
}
#mainbg {
BACKGROUND-COLOR: #647CC4
}
#mainfoot {
BACKGROUND-COLOR: #efefef
}
#alt1 {
BACKGROUND-COLOR: #ffffff
}
#forum1 {
BACKGROUND-COLOR: #ffffff
}
#forum2 {
BACKGROUND-COLOR: #ffffff
}
#post1 {
BACKGROUND-COLOR: #ffffff
}
#post2 {
BACKGROUND-COLOR: #ffffff
}
#posthead {
BACKGROUND-COLOR: #efefef
}
#postfoot {
BACKGROUND-COLOR: #ffffff
}
#postbak {
BACKGROUND-COLOR: #d2d2d0
}
#title {
BACKGROUND-COLOR: #ffffff
}
#row1 {
BACKGROUND-COLOR: #ffffff
}
#row2 {
BACKGROUND-COLOR: #efefef
}
#postsep {
HEIGHT: 1px; BACKGROUND-COLOR: #bad48d
}
#category {
FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #000000; LINE-HEIGHT: 150%; BACKGROUND-COLOR: #bad48d
}
#category A:link {
COLOR: #000000; TEXT-DECORATION: none
}
#category A:visited {
COLOR: #000000; TEXT-DECORATION: none
}
#category A:active {
COLOR: #000000; TEXT-DECORATION: none
}
#titlefoot {
FONT-WEIGHT: bold; COLOR: #000000; HEIGHT: 24px; BACKGROUND-COLOR: #efefef
}
#titlemedium {
FONT-WEIGHT: bold; COLOR: #000000; HEIGHT: 30px; BACKGROUND-COLOR: #efefef
}
#titlemedium A:link {
COLOR: #000000; TEXT-DECORATION: underline
}
#subtitle A:link {
COLOR: #000000; TEXT-DECORATION: underline
}
#titlefoot A:link {
COLOR: #000000; TEXT-DECORATION: underline
}
#titlemedium A:visited {
COLOR: #000000; TEXT-DECORATION: underline
}
#subtitle A:visited {
COLOR: #000000; TEXT-DECORATION: underline
}
#titlefoot A:visited {
COLOR: #000000; TEXT-DECORATION: underline
}
#titlemedium A:active {
COLOR: #000000; TEXT-DECORATION: underline
}
#subtitle A:active {
COLOR: #000000; TEXT-DECORATION: underline
}
#titlefoot A:active {
COLOR: #000000; TEXT-DECORATION: underline
}
#titlemedium A:hover {
COLOR: #4e8d32; TEXT-DECORATION: underline
}
#subtitle A:hover {
COLOR: #4e8d32; TEXT-DECORATION: underline
}
#titlefoot A:hover {
COLOR: #4e8d32; TEXT-DECORATION: underline
}
#maintitleback {
HEIGHT: 30px
}
#maintitle {
FONT-SIZE: 8pt; COLOR: #000000
}
#maintitle A:link {
COLOR: #000000; TEXT-DECORATION: none
}
#maintitle A:visited {
COLOR: #000000; TEXT-DECORATION: none
}
#maintitle A:active {
COLOR: #000000; TEXT-DECORATION: none
}
#maintitle A:hover {
TEXT-DECORATION: underline
}
td {word-wrap:break-work;word-break:break-all}
</style>
</head>
<body>
<html:form action="/addnews.do?method=addNews" method="post"
focus="login">
<table border="0" width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#336699">
<tr>
<td bgcolor="#ffffff">
标题
</td>
<td bgcolor="#ffffff">
<html:text property="newsTitle" size="60"/>
<html:errors property="newsTitle"/>
</td>
</tr>
<tr>
<td bgcolor="#ffffff">
副标题
</td>
<td bgcolor="#ffffff">
<html:text property="newsSubhead" />
<html:errors property="newsSubhead"/>
</td>
</tr>
<tr>
<td bgcolor="#ffffff">
作者
</td>
<td bgcolor="#ffffff">
<html:text property="authorName" />
<html:errors property="authorName"/>
</td>
</tr>
<tr>
<td bgcolor="#ffffff">
类别
</td>
<td bgcolor="#ffffff">
<html:select property="typeID">
<html:optionsCollection value="id" label="name" property="typeOptions"/>
</html:select>
<html:errors property="typeIDs"/>
</td>
</tr>
<tr>
<td bgcolor="#ffffff">
正文
</td>
<td bgcolor="#ffffff">
<fck:editor id="myfck" basePath="/NewsProject/FCKeditor/"
width="700" height="500"
skinPath="/NewsProject/FCKeditor/editor/skins/silver/"
toolbarSet="Default">text</fck:editor>
</td>
</tr>
<tr>
<td bgcolor="#ffffff">
图片新闻
</td>
<td bgcolor="#ffffff">
<html:checkbox property="isPicture"></html:checkbox>
</td>
</tr>
<tr>
<td bgcolor="#ffffff">
审核
</td>
<td bgcolor="#ffffff">
<html:checkbox property="isCheck"></html:checkbox>
</td>
</tr>
<tr><td ><html:submit/></td><td></td></tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -