forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_new.jsp
More file actions
44 lines (44 loc) · 1.83 KB
/
add_new.jsp
File metadata and controls
44 lines (44 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.model.User" %>
<%@ page import="com.core.*" %>
<%if (!Crazyadept.UserIsOK(session,FinalConstants.STATUS_ADMIN)) return;%>
<html>
<head>
<title>add_new</title>
</head>
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<script src="../js/validate.js"></script>
<body>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableNew">
<tr align="center">
<td colspan="2" class="TableTitle1" >添加新闻</td>
</tr>
<form name="form2" method="post" action="modify_new.jsp">
<tr align="center">
<td width="40%" bgcolor="#FFFFFF">新闻标题</td>
<td width="60%" align="left" bgcolor="#FFFFFF"> <input type="text" name="title"> </td>
</tr>
<tr align="center">
<td height="27" bgcolor="#FFFFFF">新闻内容</td>
<td align="left" bgcolor="#FFFFFF"> <textarea name="content" cols="50" rows="8"></textarea> </td>
</tr>
<tr align="center">
<td height="14" bgcolor="#FFFFFF">摘自</td>
<td height="14" align="left" bgcolor="#FFFFFF"><input type="text" name="fromto" value="无"></td>
</tr>
<tr align="center">
<td height="13" colspan="2" bgcolor="#FFFFFF"> <input type="hidden" name="action" value="add">
<input type="hidden" name="uid" value="<%=(((User)session.getAttribute("user")).getUid())%>">
<input name="Submit" type="submit" class="btn_grey" onClick="return news()" value="提交">
<input name="Submit2" type="reset" class="btn_grey" value="重置"></td>
</tr>
</form>
</table>
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50" colspan="5" align="right"><a href="#" onClick="Jscript:history.back()">返回</a></td>
</tr>
</table>
</body>
</html>