queryhead.jsp
来自「java jsp教程」· JSP 代码 · 共 70 行
JSP
70 行
<TABLE cellSpacing=0 cellPadding=0 width="98%" align=center border=0>
<TR>
<TD align=middle>
<TABLE cellSpacing=1 borderColorDark=#dfdfff cellPadding=2
align=center bgColor=#3399CC borderColorLight=#003366
border=0 width="98%">
<TBODY>
<TR bgcolor="#a6d0f2">
<TD width="14%" colspan="4" height=30 align=middle>
<div align="center" size="6">
<font size="2" color="red"><%=title%> </font>查询条件</font>
</div>
</TD>
</TR>
<TR bgcolor="#a6d0f2">
<TD width="14%" height=30 align=middle><div align="right">时间:</div></TD>
<TD width="29%" height=30 align=middle><div align="left">
<select name="projectyear" style="width:87" >
<option value="9999" >全部</option>
<%
projectyear = (String)request.getAttribute("projectyear");
if(projectyear != null)
out.print( CommUtil.mkYearOptions(Integer.valueOf(projectyear)) );
else
out.print( CommUtil.mkYearOptions(null) );
%>
</select>年
<select name="quart">
<option value="0">----</option>
<option value="1" <c:if test="${quart=='1'}">selected</c:if>>第一季度</option>
<option value="2" <c:if test="${quart=='2'}">selected</c:if>>第二季度</option>
<option value="3" <c:if test="${quart=='3'}">selected</c:if>>第三季度</option>
<option value="4" <c:if test="${quart=='4'}">selected</c:if>>第四季度</option>
</select>
</div></TD>
<TD width="13%" align=middle><div align="right">填报单位:</div></TD>
<TD width="44%" align=middle><div align="left">
<input name="unitname" value="<%=unitname%>" id="audit" size="25" readonly>
<img src="<%=request.getContextPath()%>/images/icon-15.gif"
width="22" height="22" class="bt1" style="cursor:hand;" onClick="selectByUnit()"> </div></TD>
</TR>
</TBODY>
</TABLE>
<div align="center"><br>
<img src="<%=request.getContextPath()%>/images/find.gif" style="cursor:hand"
align="absmiddle" onClick="_changeModule2()">
<img src="<%=request.getContextPath()%>/images/export.gif" style="cursor:hand"
align="absmiddle" onClick="_saveAsExcel()">
<img src="<%=request.getContextPath()%>/images/downreportcover.gif" style="cursor:hand"
align="absmiddle" onClick="_downloadCover()">
<br>
</div>
<br><br>
<script>
function selectByUnit()
{
wx=200;
wy=200;
urlstr="<%=request.getContextPath()%>/jsp/report/ReportUnitTree.jsp?nameField=unitname&codeField=unitcode&entry=<%=entry%>";
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open(urlstr,"选择单位","width="+wx+",height="+wy+",scrollbars=yes,status=no"+wposition);
}
function _downloadCover()
{
var url = "<%=request.getContextPath()%>/servlet/ExportScript2ExcelServlet?file=cover.raq&saveAsFileName=报表封页&deptName=<%=unitname%>";
window.location = url
}
</script>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?