apzl_leasing/WebContent/FixStat/SelectHalfYear.jsp
2018-06-03 22:26:41 +08:00

97 lines
2.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:
* Output param: 年/月
*/
%>
<%@ 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 fSetSelectedHalfYear(month) {
top.returnValue=document.all.Year.value+"/"+month;
top.close();
}
function doCancel(){
top.returnValue="";
top.close();
}
function doClose(){
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>
<table align='right' border='1' bordercolor='#EEEEEE' cellpadding='0' cellspacing='1'>
<tr>
<td align='right' valign='top' width='50' height='28' id=calCell style='cursor:pointer;' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick="fSetSelectedHalfYear('06')">
<font id=calDateText style='cursor:pointer;FONT-FAMILY:Arial;FONT-SIZE:" + sDateTextSize + ";FONT-WEIGHT:" + sDateTextWeight + "' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick="fSetSelectedHalfYear('06')">上半年</font>
</td>
<td align='right' valign='top' width='50' height='28' id=calCell style='cursor:pointer;' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick="fSetSelectedHalfYear('12')">
<font id=calDateText style='cursor:pointer;FONT-FAMILY:Arial;FONT-SIZE:" + sDateTextSize + ";FONT-WEIGHT:" + sDateTextWeight + "' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick="fSetSelectedHalfYear('12')">下半年</font>
</td>
</tr>
</table>
</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"%>