📄 newsadd.jsp
字号:
<%@ page language="java" pageEncoding="gb2312" import="math.login.model.User"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<html>
<head>
<link href="../images/myweb.css" rel="stylesheet" type="text/css">
<title>管理界面</title>
<style type="text/css">
<!--
body {
background-image: url(../images/main_bg.gif);
}
-->
</style>
<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">
</head>
<body>
<html:form action="/admin/news/newsadd.do" enctype="multipart/form-data">
<table width="99%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td>
<table width="82" height="28" border="0" cellpadding="0" cellspacing="0" background="../images/main_menu_bg.gif">
<tr>
<td valign="bottom"><FONT COLOR="BLACK"><div align="center">新闻信息添加</div></FONT></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="99%" cellpadding="3" cellspacing="1" border="0" align="center" class="main_table">
<tr>
<td colspan="3" align="center" class="main_topbg" >网站后台管理</td>
</tr>
<tr >
<td width="160" class="myweb_td" >
新闻标题:
</td>
<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
<html:text property="newsTitle" />
</td>
<td class="myweb_td" width="260px">
</td>
</tr>
<tr>
<td width="160" class="myweb_td" >
新闻内容:
</td>
<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
<html:textarea property="newsContent" rows="20" cols="50" ></html:textarea>
</td>
<td class="myweb_td" width="260px">
</td>
</tr>
<tr >
<td width="160" class="myweb_td" >
用户ID:
</td>
<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
<%out.print( ((User)session.getAttribute("USER")).getUsername());%>
</td>
<td class="myweb_td" width="260px">
</td>
</tr>
<tr>
<td class="myweb_td" >
图 片:
</td>
<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
<html:file property="theFile" />
</td>
<td class="myweb_td" width="260px">
</td>
</tr>
<tr>
<td colspan="3" class="myweb_td" align="center">
<html:errors/><html:submit value="添加" />
</td>
</tr>
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -