📄 addmessage.jsp
字号:
<%@ page language="java" import="java.util.*,com.accpedu.LHcompany.dao.*,com.accpedu.LHcompany.entity.*" pageEncoding="gbk"%>
<html>
<head>
<style type="text/css">
<!--
#Layer2 {
position:absolute;
width:750px;
height:361px;
top:155px;
left:30px;
z-index:1;
}
#Layer1 {
position:absolute;
width:90px;
height:24px;
z-index:1;
}
#Layer3 {
position:absolute;
width:750px;
height:115px;
z-index:2;
left: 0px;
top: 30px;
}
.STYLE1 {font-size: 12px}
.STYLE4 {font-family: "宋体"; font-size: 14px; }
.STYLE5 {
font-family: "宋体";
font-size: 16px;
font-weight: bold;
}
-->
</style>
<script>
function check()
{
var a=document.AddbbsForm.NewName.value;
var b=document.AddbbsForm.NewTitle.value;
var c=document.AddbbsForm.NewContent.value;
if(a=="")
{
alert("姓名不能为空!");
return false;
}else if(b=="")
{
alert("标题不能为空!");
return false;
}else if(c=="")
{
alert("内容不能为空!");
return false;
}else
{
return true;
}
}
</script>
</head>
<body>
<%@ include file="bbsTop.jsp" %>
<div id="Layer2">
<div id="Layer1">
<table width="90" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="12"><img src="image/titlemu_1.gif"></td>
<td align="center" width="63" background="image/titlemu_2.gif"><font size="2" face="宋体"> </font><font face="宋体"><span class="STYLE1">留言</span></font></td>
<td width="15"><img src="image/titlemu_3.gif"></td>
</tr>
</table>
</div>
<div id="Layer3">
<form method="post" action="doAddMessage.jsp" name="AddbbsForm" onSubmit="return check()">
<table width="750" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="32" colspan="2" align="center" style="background-image:url(image/title.gif);"><span class="STYLE5">新留言</span></td>
</tr>
<tr>
<td width="165" height="30" align="right"><span class="STYLE4">姓名:</span></td>
<td width="579"> <input type="text" name="NewName" style="width:200px;"><div style="color:red; display:inline"> *</div></td>
</tr>
<tr>
<td height="30" align="right"><span class="STYLE4">标题:</span></td>
<td> <input type="text" name="NewTitle" style="width:300px;"></td>
</tr>
<tr height="300">
<td height="213" align="right"><span class="STYLE4">内容:</span></td>
<td height="213"> <textarea name="NewContent" style="width:550px; height:185px;"></textarea></td>
</tr>
<tr>
<td> </td>
<td> <input type="submit" value="发 表"></td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -