📄 insertaffiche.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.List"%>
<%@ page import="com.actionForm.AfficheForm"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<script language="javascript" type="">
function Mycheck(){
if (afficheForm.title.value=="")
{ alert("请输入公告标题!");afficheForm.title.focus();return false;}
if (afficheForm.content.value=="")
{ alert("请输入公告内容!");afficheForm.content.focus();return false;}
return true;
}
</script>
<jsp:useBean id="chinese" scope="request" class="com.tool.Chinese"/>
<jsp:useBean id="time" scope="request" class="com.tool.TimeShow"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>宇晨网络新闻中心后台</title>
</head>
<body><div align="center">
<jsp:include page="../bTop.jsp"/>
<table width="800" height="465" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="196" rowspan="2" valign="top"><jsp:include page="../bleft.jsp"/></td>
<td width="604" height="57" background="bImage/place.jpg" >
<table width="600" height="56" cellpadding="0" cellspacing="0">
<tr>
<td> 当前位置提示 >> 信息公告管理 >> 信息公告添加</td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="400" align="center" valign="top" background="bImage/big.jpg"><table width="601" border="0" cellpadding="0" cellspacing="0" background="bImage/placeNext.jpg">
<tr>
<td height="21" > </td>
<td>添加公告信息</td>
</tr>
</table> <br> <html:form action="afficheAction.do?method=insertAfficheAction" onsubmit="return Mycheck()">
<table width="415" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="75" height="30" align="center">公告标题</td>
<td width="334"> <html:text property="title" size="50"></html:text></td>
</tr>
<tr>
<td height="275" align="center" valign="top"><br>
公告内容</td>
<td>
<html:textarea property="content" cols="42" rows="18"></html:textarea></td>
</tr>
<tr>
<td height="30" align="center">创建时间</td>
<td> <%=time.cuttentMonthDate()%><html:hidden property="createTime" value="<%=time.cuttentMonthDate()%>"/>
</td>
</tr>
</table>
<br>
<html:submit>添加
</html:submit>
<html:reset>清除
</html:reset>
<html:button property="back" onclick="javascript:history.go(-1);">返回
</html:button>
</html:form></td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -