newsForm.jsp
上传用户:junmaots
上传日期:2022-07-09
资源大小:2450k
文件大小:2k
- <%@page contentType="text/html; charset=GBK" language="java" %>
- <%@page import="com.mycompany.news.service.ColumnService" %>
- <%@page import="com.mycompany.news.dto.Column" %>
- <%@page import="java.text.SimpleDateFormat" %>
- <%
- String columnid = request.getParameter("columnid");
- ColumnService cs = new ColumnService();
- Column c = cs.getByID(Long.parseLong(columnid));
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gbk">
- <title>新增新闻信息</title>
- <script language="javascript1.2" src="../js/editor.js" type="text/javascript"></script>
- <script language="Javascript1.2">browserControl()</script>
- <link href="../css/common.css" rel="stylesheet" type="text/css">
- </head>
-
- <body leftmargin="40">
- <form name='form1' method='post' enctype="multipart/form-data" action='<%=request.getContextPath()%>/servlet/AddNews'>
- <input type="hidden" name='columnId' value="<%=columnid%>">
- <table align="left" border=0 width="90%">
- <tr>
- <td colspan="4" align="center"><b>在〔<%=c.getColumnName()%>〕栏目下新增新闻</b></td>
- </tr>
- <tr>
- <td width="90" align='right'>新闻标题</td>
- <td width="350"><input type="text" name ='subject' style="width:100%"></td>
- <td width="150" align='right'>新闻显示时间</td>
- <td><input name='showTime' value="<%=sdf.format(new java.util.Date())%>"></td>
- </tr>
- <tr>
- <td colspan='4' align="center">
- <textarea name="content" style="width:100%; height:80"></textarea>
- </td>
- </tr>
- <tr>
- <td>发布人</td>
- <td><input name="author" value=''></td>
- <td>转载来源</td>
- <td><input name='source'></td>
- </tr>
- <tr>
- <td>附件1</td>
- <td><input type='file' name='file'></td>
- <td>附件2</td>
- <td><input type='file' name='file'></td>
- </tr>
- <tr>
- <td colspan=4 align='center'><input type='submit' value='提交'></td>
-
- </tr>
- </table>
- </form>
-
- </body>
- </html>
- <script language="javascript1.2">newConfig('content')</script>