forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodifynews.jsp
More file actions
83 lines (82 loc) · 3.4 KB
/
modifynews.jsp
File metadata and controls
83 lines (82 loc) · 3.4 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="electric.electricUtils.ParamUtils"%>
<%@ page import="electric.dbs.Dbnews"%>
<%
int id=ParamUtils.getIntParameter(request,"id",0);
Dbnews news=new Dbnews(id);
%>
<html>
<head>
<title>修改公告</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet">
</head>
<script language="javascript">
function Mycheck()
{
if (form1.subject.value=="")
{ alert("请输入公告主题!");form1.subject.focus();return;}
if (form1.content.value=="")
{ alert("请输入公告内容!");form1.content.focus();return;}
form1.submit();}
</script>
<body>
<table width="777" height="172" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="777" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="Images/tiring-room/tiring-room_01.gif" width="777" height="125"></td>
</tr>
<tr>
<td height="47" valign="top" background="Images/tiring-room/tiring-room_02.gif"><jsp:include page="H_navigation.jsp"/></td>
</tr>
</table></td>
</tr>
</table>
<table width="777" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="44" height="380" valign="top"><img src="Images/tiring-room/tiring-room_03.gif" width="44" height="248"></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="68" colspan="2" background="Images/tiring-room/h_modifybbs.gif"> </td>
</tr>
<tr>
<td width="4%"> </td>
<td width="96%">
<form method="post" action="news_add2.jsp" name="form1">
<table width="100%" height="236" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="13%" height="30"><div align="center">主 题:</div></td>
<td width="87%" height="30"><input name="Motif" type="text" class="" id="subject" size="63" value="<%=news.getMotif()%>">
</td>
</tr>
<tr>
<td height="30"><div align="center">发布人:</div></td>
<td height="30"><input name="Kithepeople" type="text" class="txt_grey" id="Person" value="<%=news.getKithepeople()%>"> </td>
</tr>
<tr>
<input type="hidden" name="Id" value="<%=id%>">
<input type="hidden" name="pageaction" value="MODIFY">
<input type="hidden" name="responsepage" value="newsman.jsp">
<td height="146"><div align="center">内 容:</div></td>
<td valign="top"><textarea name="Content" cols="63" rows="9" class="wenbenkuang" id="content"><%=news.getContent()%>
</textarea></td>
</tr>
<tr>
<td height="30">
<div align="center"> </div></td>
<td height="30"><input name="Submit" type="button" class="btn_grey" value="修改" onClick="Mycheck()">
<input name="Submit2" type="reset" class="btn_grey" value="重置">
<input name="Submit3" type="button" class="btn_grey" value="返回" onClick="history.back();"></td>
</tr>
</table>
</form>
</td>
</tr>
</table></td>
<td width="35" valign="top"><img src="Images/tiring-room/tiring-room_05.gif" width="35" height="248"></td>
</tr>
</table>
<jsp:include page="copyright.htm"/>
</body>
</html>