📄 addarrangedate.jsp
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<html:html >
<head>
<html:base />
<title>addarrangedate.jsp</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 language="javascript">
function submitForm(){
if(document.doArrangeDateForm.name.value == ''){
alert('事件名称不能为空!');
return false;
}
if(document.doArrangeDateForm.place.value == ''){
alert('事件地点不能为空!');
return false;
}
if(document.doArrangeDateForm.type.value == ''){
alert('事件类型不能为空!');
return false;
}
if(document.doArrangeDateForm.content.value == ''){
alert('事件描述不能为空!');
return false;
}
if(document.doArrangeDateForm.start_time.value == ''){
alert('事件开始时间不能为空!');
return false;
}
if(document.doArrangeDateForm.end_time.value == ''){
alert('事件结束时间不能为空!');
return false;
}
document.createDateForm.action='/YZOA/doArrangeDateAction.do?action=save';
document.createDateForm.submit();
}
</script>
</head>
<logic:present name="save" scope="request">
<script>
alert('成功添加安排!');
window.opener.location.reload();
window.close();
</script>
</logic:present>
<logic:present name="update" scope="request">
<script>
alert('成功更新安排!');
window.opener.location.reload();
window.close();
</script>
</logic:present>
<body>
<html:form action="/doArrangeDateActopn.do">
<table>
<tr>
<td>事件名称</td><td><html:text property="name"></html:text></td>
</tr>
<tr>
<td>事件地点</td><td><html:text property="place"></html:text></td>
</tr>
<tr><td>时间类型</td>
<td><html:select property="type">
<logic:present name="subCollection" scope="request">
<html:options collection="subCollection" name="SelectCollectionBean" property="value" labelProperty="value" />
</logic:present>
</html:select></td>
</tr>
<tr>
<td>事件描述</td><td><html:textarea rows="5" property="place"></html:textarea></td>
</tr>
<tr>
<td>开始时间</td>
<td><html:text property="start_time"/></td>
</tr>
<tr>
<td>结束时间</td>
<td><html:text property="end_time"/></td>
</tr>
<tr>
<td><input type="button" value="确认" onclick='submitForm()'/>
<input type="button" value="关闭" onClick="window.close();"/>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -