📄 report.vm
字号:
<html>
<head><title>固定报表</title>
<link rel="stylesheet" type="text/css" href="$request.getContextPath()/csslib/style.css">
<script Language="JavaScript" src="$request.getContextPath()/jslib/function.js"></script>
<script language="javascript">
var now = new Date();
var dd = now.getDate() , mm = now.getMonth() + 1 , yy = y2k(now.getYear());
function y2k(number){
return (number < 1000) ? number + 1900 : number;
}
function xz(val){
form1.reporttype.value=val;
if(val=="1"){form1.year.value=yy;form1.month.disabled=true;form1.day.disabled=true;form1.month.value="";form1.day.value="";}
if(val=="2"){form1.year.value=yy;form1.month.value=mm;form1.month.disabled=false;form1.day.disabled=true;form1.day.value="";}
if(val=="3"){form1.year.value=yy;form1.month.value=mm;form1.day.value=dd;form1.month.disabled=false;form1.day.disabled=false;}
}
function check(){
if(form1.reporttype.value=="1"){
if(form1.year.value==""){
alert("请您选择要统计报表的年份!");
return false;
}
}
if(form1.reporttype.value=="2"){
if(form1.year.value==""){
alert("请您选择要统计报表的年份!");
return false;
}
if(form1.month.value==""){
alert("请您选择要统计报表的月份!");
return false;
}
}
if(form1.reporttype.value=="3"){
if(form1.year.value==""){
alert("请您选择要统计报表的年份!");
return false;
}
if(form1.month.value==""){
alert("请您选择要统计报表的月份!");
return false;
}
if(form1.day.value==""){
alert("请您选择要统计报表的日期!");
return false;
}
}
return true;
}
function submit_onclick()
{
if (check())
{
form1.action="$request.getContextPath()/sendreport.do?method=mainreport";
form1.submit();
}
}
function submit_onclick2(){
if(check()){
form1.action="$request.getContextPath()/sendreport.do?method=mainreportall";
form1.submit();
}
}
function init(){
form1.year.value=yy;
if(form1.cxfs.value=="1"){form1.year.value=yy;form1.month.disabled=true;form1.day.disabled=true;form1.month.value="";form1.day.value="";}
if(form1.cxfs.value=="2"){form1.year.value=yy;form1.month.value=mm;form1.month.disabled=false;form1.day.disabled=true;form1.day.value="";}
if(form1.cxfs.value=="3"){form1.year.value=yy;form1.month.value=mm;form1.day.value=dd;form1.month.disabled=false;form1.day.disabled=false;}
}
</script>
</head>
<body scroll=no onload="init()">
<form name=form1 method="POST" action="">
<input type="hidden" name="reporttype" value="1">
<table align=center width=100% height=90% border=0>
<tr>
<td>
<table align="center" valign=middle width="380px" border="1" cellpadding="0" cellspacing="0" bordercolordark="white" bordercolorlight="black">
<tr class="TTitle" align="center">
<td nowrap colspan=4 height=26><font color=white size=2><b>【 统计报表 】</b></font></td>
</tr>
<tr height=105 align="center">
<td colspan=4>请选择报表类型:
<input type="radio" name="cxfs" value="1" checked onclick="javascript:xz(1)" style="border:#000000;font-size:9pt;">年报
<input type="radio" name="cxfs" value="2" onclick="javascript:xz(2)" style="border:#000000;font-size:9pt;">月报
<input type="radio" name="cxfs" value="3" onclick="javascript:xz(3)" style="border:#000000;font-size:9pt;">日报
<br><br>
请选择日期:
<select size="1" name="year" style="border-style: solid; border-width: 1">
<option value="">年份</option>
<script>
for (var i=2004;i<2016;i++)
{
document.writeln("<option value='"+i+"'>");
document.writeln(i);
document.writeln("</option>");
}
</script>
</select>年
<select size="1" name="month" style="border-style: solid; border-width: 1" disabled>
<option value="">月份</option>
<script>
for (var i=1;i<13;i++)
{
document.writeln("<option value='"+i+"'>");
document.writeln(i);
document.writeln("</option>");
}
</script>
</select>月
<select size="1" name="day" style="border-style: solid; border-width: 1" disabled>
<option value="">日期</option>
<script>
for (var i=1;i<32;i++)
{
document.writeln("<option value='"+i+"'>");
document.writeln(i);
document.writeln("</option>");
}
</script>
</select>日
</td>
</tr>
<tr height=35>
<td colspan="4" align="center"><button onclick="submit_onclick()" accesskey="S">单位发文接收统计(S)</button>
<button onclick="submit_onclick2()" accesskey="A">所有发文(A)</button> </td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -