editcalendarperiod.jsp
来自「一个关于tlms的一个小程序 看看能否帮助到别人」· JSP 代码 · 共 176 行
JSP
176 行
<!--/**-->
<!--* Created by szmx.-->
<!--* User: Oliver Zhang-->
<!--* Date: 2006-4-6-->
<!--* Time: 18:04:03-->
<!--*/-->
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<script language="javascript">
function addOrUpdate() {
var form = document.forms[0];
if (!validateAddOrUpdateCalendarPeriodForm(form)) {
return false;
}
form.action = '<c:url value="/finance/calendarPeriod/addOrUpdateCalendarPeriod.do"/>';
form.submit();
}
function doCancel() {
var f = document.forms[0];
f.action = "<c:url value="/finance/calendarPeriod/cancelAddOrEditCalendarPeriod.do"/>";
f.submit();
}
</script>
<html:form action="/calendarPeriod/addOrUpdateCalendarPeriod.do">
<html:hidden property="calendarPeriodBean.id" value="${calendarPeriodBean.id}"/>
<html:hidden property="calendarPeriodBean.version" value="${calendarPeriodBean.version}"/>
<html:hidden property="calendarPeriodBean.compId" value="${calendarPeriodBean.compId}"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="28" colspan="2"><img src="<c:url value="/images/dot.gif"/>" width="11" height="11"><bean:message
key="navigation.financeManagement"/> ><a href="
<c:url value="/finance/account/menu_paraConfig.do"/>" class="subMenuTxt">
<bean:message key="navigation.costCenter.paramConfig"/></a> >
<a href="<c:url value="/finance/calendarPeriod/searchCalendarPeriod.do"/>"
class="subMenuTxt">
<bean:message key="label.menu.maintain.finance.calendarperiod.define"/></a> >
<c:choose>
<c:when test="${empty calendarPeriodBean.id}">
<bean:message key="lable.calendarperiod.add"/>
</c:when>
<c:otherwise>
<bean:message key="lable.calendarperiod.edit"/>
</c:otherwise>
</c:choose>
</td>
</tr>
<tr>
<td width="2%" height="31" class="section">
<img src="<c:url value="/images/menu_dot.jpg"/>" width="6" height="19"></td>
<td width="98%" class="section">
<c:choose>
<c:when test="${empty calendarPeriodBean.id}">
<bean:message key="lable.calendarperiod.add"/>
</c:when>
<c:otherwise>
<bean:message key="lable.calendarperiod.edit"/>
</c:otherwise>
</c:choose>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>
<table id="content_table" width="90%" cellpadding="0" cellspacing="0" border="0">
<tr class="subMainTr1">
<td nowrap><bean:message key="lable.calendarperiod.status"/></td>
<td nowrap>
<html:text property="calendarPeriodBean.status" value="${calendarPeriodBean.status}"/>
</td>
<td width="11%" nowrap><bean:message key="lable.calendarperiod.period.name"/></td>
<td width="53%">
<html:text property="calendarPeriodBean.periodName" value="${calendarPeriodBean.periodName}"/>
</td>
</tr>
<tr class="subMainTr1">
<td nowrap><bean:message key="lable.calendarperiod.period.year"/></td>
<td nowrap>
<html:text property="calendarPeriodBean.periodYear" value="${calendarPeriodBean.periodYear}"/></td>
<td nowrap><bean:message key="lable.calendarperiod.period.id"/></td>
<td nowrap>
<html:text property="calendarPeriodBean.periodNum" value="${calendarPeriodBean.periodNum}"/>
</td>
</tr>
<tr class="subMainTr1" >
<td nowrap><bean:message key="lable.calendarperiod.start.date"/></td>
<td nowrap>
<fmt:formatDate var="start" value="${calendarPeriodBean.startDate}" pattern="MM/dd/yyyy"/>
<html:text property="calendarPeriodBean.startDate" value="${start}"/>
<img src="<c:url value='/images/calendar.gif'/>" id="choose_start_date" class="mouse" border="0" alt=""/>
<script type="text/javascript">registerCalendar('calendarPeriodBean.startDate', 'choose_start_date');</script>
</td>
<td nowrap>
<bean:message key="lable.calendarperiod.end.date"/></td>
<td nowrap>
<fmt:formatDate var="end" value="${calendarPeriodBean.endDate}" pattern="MM/dd/yyyy"/>
<html:text property="calendarPeriodBean.endDate" value="${end}"/>
<img src="<c:url value='/images/calendar.gif'/>" id="choose_end_date" class="mouse" border="0" alt=""/>
<script type="text/javascript">registerCalendar('calendarPeriodBean.endDate', 'choose_end_date');</script>
</td>
</tr>
<tr class="subMainTr1">
<td nowrap><bean:message key="lable.calendarperiod.adujst"/></td>
<td nowrap>
<c:choose>
<c:when test="${calendarPeriodBean.adjusting}">
<input name="calendarPeriodBean.adjusting" type="checkbox" id="name" checked>
</c:when>
<c:otherwise>
<input name="calendarPeriodBean.adjusting" type="checkbox" id="name">
</c:otherwise>
</c:choose>
</td>
<td nowrap></td>
<td nowrap>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><hr size="1"></td>
</tr>
<tr>
<td height="39"> </td>
<td>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover">
<a href="#" class="hrefColor" onclick="return addOrUpdate()"><bean:message
key="button.save"/></a>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
<td width="10"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover"><a href="#" onClick="doCancel();" class="hrefColor">
<bean:message key="button.cancel"/>
</a></td>
<td width="8" class="ButtonHOMER-msover"></td>
<td width="10"></td>
</tr>
</table>
</td>
</tr>
</table>
</html:form>
<html:javascript formName="/calendarPeriod/addOrUpdateCalendarPeriod" method="validateAddOrUpdateCalendarPeriodForm"/>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?