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

94 lines
3.4 KiB
Plaintext

<%@ 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 fSetSelectedQuarter(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="fSetSelectedQuarter('03')">
<font id=calDateText style='cursor:pointer;FONT-FAMILY:Arial;FONT-SIZE:" + sDateTextSize + ";FONT-WEIGHT:" + sDateTextWeight + "' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick="fSetSelectedQuarter('03')">一季度</font>
</td>
<td align='right' valign='top' width='50' height='28' id=calCell style='cursor:pointer;' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick="fSetSelectedQuarter('06')">
<font id=calDateText style='cursor:pointer;FONT-FAMILY:Arial;FONT-SIZE:" + sDateTextSize + ";FONT-WEIGHT:" + sDateTextWeight + "' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick="fSetSelectedQuarter('06')">二季度</font>
</td>
<td align='right' valign='top' width='50' height='28' id=calCell style='cursor:pointer;' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick="fSetSelectedQuarter('09')">
<font id=calDateText style='cursor:pointer;FONT-FAMILY:Arial;FONT-SIZE:" + sDateTextSize + ";FONT-WEIGHT:" + sDateTextWeight + "' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick="fSetSelectedQuarter('09')">三季度</font>
</td>
<td align='right' valign='top' width='50' height='28' id=calCell style='cursor:pointer;' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick="fSetSelectedQuarter('12')">
<font id=calDateText style='cursor:pointer;FONT-FAMILY:Arial;FONT-SIZE:" + sDateTextSize + ";FONT-WEIGHT:" + sDateTextWeight + "' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick="fSetSelectedQuarter('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"%>