📄 editbulletin.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>修改公告信息</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">
-->
<script type="text/javascript">
function test()
{
var name= document.getElementById("name");
var content=document.getElementById("content");
if(name.value=="")
{
alert("请您输入公告名称!");
return false;
}
if(content.value=="")
{
alert("请您输入公告详情!");
return false;
}
return true;
}
</script>
<style type="text/css">
.button
{
border-style: none;
background-image: url('${pageContext.request.contextPath}/background/images/h08.gif');
cursor:pointer;
width: 74px;
height: 22px;
}
</style>
</head>
<body bgcolor="#FFFFDB">
<form action="${pageContext.request.contextPath }/editBulletin.do" method="post" onsubmit="return test()">
<pre style="font-family: fantasy;size: 18px;">
<input type="hidden" name="id" value="${requestScope.news.newsId }" />
公告名称:<input name="name" value="${requestScope.news.newsTitle }"/>
是否显示该公告:<input type="radio" name="radio" value="1" ${requestScope.news.newsHide==1?"checked":"" } />显示 <input type="radio" name="radio" value="0" ${requestScope.news.newsHide==0?"checked":"" } />不显示
公告内容:
<textarea rows="5" cols="25" name="content">${requestScope.news.newsContent }</textarea>
<input type="submit" value="确定" class="button" /> <input type="reset" value="重置" class="button" />
</pre>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -