📄 calendarform.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html >
<head>
<html:base />
<title>calendarform.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 href="../../include/style.css" rel="stylesheet" type="text/css">
<%if(request.getAttribute("result")!=null){ %>
<script type="text/javascript">
alert("<%=request.getAttribute("result") %>");
parent.lmain.location.reload();
</script>
<%} %>
<script type="text/javascript">
function saveDate(){
document.holidayCalendarForm.action = "/YZOA/holidayCalendar.do?action=saveDate";
document.holidayCalendarForm.submit();
}
function updateDate(){
document.holidayCalendarForm.action = "/YZOA/holidayCalendar.do?action=updateDate";
document.holidayCalendarForm.submit();
}
function deleteDate(){
document.holidayCalendarForm.action = "/YZOA/holidayCalendar.do?action=delDate";
document.holidayCalendarForm.submit();
}
function changeSelect(o){
document.holidayCalendarForm.action = "/YZOA/holidayCalendar.do?action=changeSelect&typeF="+o;
document.holidayCalendarForm.submit();
}
</script>
</head>
<body>
<html:form action="/holidayCalendar" method="post">
<table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolorlight="cccccc" bordercolordark="ffffff" bgcolor="f7f7f7">
<tr>
<td width="118" align="right" class="bg">日期:</td>
<td width="290"> <html:hidden property="dateDay"/>
<bean:write name="holidayCalendarForm" property="dateDay"/>
</td>
</tr>
<tr>
<td align="right" class="bg">日期颗粒度:</td>
<td>1天</td>
</tr>
<tr>
<td align="right" class="bg">日期大类:</td>
<td>
<html:select property="dateTypeF" onchange="changeSelect(this.options[this.selectedIndex].value);">
<html:option value="">----</html:option>
<html:options collection="dateTypeF" name="BeanCollectionSelect" property="value" labelProperty="name" />
</html:select>
</td>
</tr>
<tr>
<td align="right" class="bg">日期小类:</td>
<td>
<html:select property="dateTypeC">
<html:option value="">----</html:option>
<html:options collection="dateTypeC" name="BeanCollectionSelect" property="value" labelProperty="name" />
</html:select></td>
</tr>
<tr>
<td align="right" class="bg">注释信息:</td>
<td><html:textarea property="description" rows="3" cols="30">
</html:textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<logic:empty name="holidayCalendarForm" property="dateTypeC">
<input type="button" class="btn" value="新增" onclick="saveDate()">
</logic:empty>
<logic:notEmpty name="holidayCalendarForm" property="dateTypeC">
<input type="button" class="btn" value="修改" onclick="updateDate()">
<input type="button" class="btn" value="删除" onclick="deleteDate()">
</logic:notEmpty>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -