2018-06-03 22:26:41 +08:00

80 lines
1.8 KiB
Plaintext

<%
/* Copyright 2001-2003 Amarsoft, Inc. All Rights Reserved.
* This software is the proprietary information of Amarsoft, Inc.
* Use is subject to license terms.
* Content: 本页面用于选择报表统计年份
* Input Param: Date, 统计月份
OrgID, 机构代码
*
*/
%>
<%@ include file="/IncludeBeginMD.jsp"%>
<%@ page contentType="text/html; charset=GBK"%>
<html>
<head>
<title>请选择统计年份</title>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<script>
function fToggleColor(myElement){
var toggleColor = "#ff0000";
if (myElement.id == "calDateText") {
if (myElement.color == toggleColor) {
myElement.color = "";
} else {
myElement.color = toggleColor;
}
} else {
if (myElement.id == "calCell") {
for (var i in myElement.children) {
if (myElement.children[i].id == "calDateText") {
if (myElement.children[i].color == toggleColor) {
myElement.children[i].color = "";
} else {
myElement.children[i].color = toggleColor;
}
}
}
}
}
}
function doCancel(){
top.returnValue="";
top.close();
}
function doClose(){
top.returnValue=document.all.Year.value;
top.close();
}
</script>
<div align=center>
<form name="item">
<table>
<tr><td align="right">
<select name="Year">
<%
int dCurYear = Calendar.getInstance().get(Calendar.YEAR);
out.println("<option selected value='"+dCurYear+"'>"+dCurYear+"</option>");
for(int i=dCurYear-1;i>dCurYear-50;i--){
out.println("<option value='"+i+"'>"+i+"</option>");
}
%>
</select>年
</td>
</tr>
<tr>
<td align='right'>
<%=new Button("关闭","关闭","doClose()","","").getHtmlText()%>
<%=new Button("清空","清空","doCancel()","","").getHtmlText()%>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%@ include file="/IncludeEnd.jsp"%>