📄 traffichotspotquery.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %>
<%@ taglib uri="/tags/c-rt" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<script language="javascript" src="${pageContext.request.contextPath}/js/calendar.js"></script>
<title>交通热点地区查询</title>
<script>
function checkForm(){
if(document.all.startLimit.value ==""){
alert("请选择开始时间!");
return false;
}
if(document.all.endLimit.value ==""){
alert("请选择结束时间!");
return false;
}
if(document.all.startLimit.value > document.all.endLimit.value){
alert("非法的开始结束时间");
return false;
}
return true;
}
function resetTime(){
document.all.startLimit.value='';
document.all.endLimit.value='';
}
</script>
</head>
<body bgcolor="#C0C0C0">
<h1><u>交通热点地区查询</u></h1>
<form action="${pageContext.request.contextPath}/DispatchManager" onSubmit="return checkForm()">
<input type="hidden" name="initPage" value="0" />
<input type="hidden" name="operateType" value="1"/>
<table width="100%" border="0">
<tr>
<td nowrap="nowrap" width="10%">查询类型:</td>
<td nowrap="nowrap">
<select name="queryType" onChange="resetTime();">
<option value="1">按年查询</option>
<option value="2">按月查询</option>
<option value="3">按日查询</option>
</select>
<script>
if('${param.queryType}'!='')
document.all.queryType.value ='${param.queryType}';
</script>
</td>
</tr>
</table>
<table width="100%" border="1" >
<tr>
<td nowrap="nowrap">开始时间:</td>
<td nowrap="nowrap"><input type="text" name="startLimit" onFocus="javascript:calendar();" value="${param.startLimit}"/></td>
<td nowrap="nowrap">结束时间:</td>
<td nowrap="nowrap"><input type="text" name="endLimit" onFocus="javascript:calendar();" value="${param.endLimit}"/></td>
</tr>
<tr>
<td nowrap="nowrap">热点地区:</td>
<td nowrap="nowrap" colspan="3"><input type="text" name="hotspotArea" size="80" value="${param.hotspotArea}"/></td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td align="center"><input type="submit" value="查询" /></td>
</tr>
</table>
</form>
<c:if test="${titleList != null}">
<table width="100%" border="1">
<tr>
<td> </td>
<c:forEach var="title" items="${titleList}" >
<td>${title}</td>
</c:forEach>
</tr>
<c:forEach var="result" items="${resultMap}">
<tr>
<td>${result.key}</td>
<c:forEach var="areaCount" items="${result.value}">
<td>${areaCount}</td>
</c:forEach>
</tr>
</c:forEach>
</table>
</c:if>
<%
System.out.println("start here");
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -