|
@@ -74,13 +74,13 @@
|
|
|
</select>
|
|
|
<label for="infoYear">년</label>
|
|
|
<select id="infoMonth" name="month" class="statis-search-select" style="width: 50px;" onchange="selectDateChanger(false, false)">
|
|
|
- <c:forEach begin="1" end="12" varStatus="status">
|
|
|
+ <c:forEach begin="1" end="${thisMonth}" varStatus="status">
|
|
|
<option value="<fmt:formatNumber pattern="00" value="${status.current}"/>" <c:if test="${status.current == thisMonth}">selected</c:if>><fmt:formatNumber pattern="00" value="${status.current}"/></option>
|
|
|
</c:forEach>
|
|
|
</select>
|
|
|
<label for="infoMonth" class="infoMonth">월</label>
|
|
|
<select id="infoDate" name="date" class="statis-search-select" style="width: 50px;">
|
|
|
- <c:forEach begin="1" end="${lastDate}" varStatus="status">
|
|
|
+ <c:forEach begin="1" end="${thisDate}" varStatus="status">
|
|
|
<option value="<fmt:formatNumber pattern="00" value="${status.current}"/>" <c:if test="${status.current == thisDate - 1}">selected</c:if>><fmt:formatNumber pattern="00" value="${status.current}"/></option>
|
|
|
</c:forEach>
|
|
|
</select>
|
|
@@ -102,14 +102,14 @@
|
|
|
<label for="infoYear2">년</label>
|
|
|
|
|
|
<select id="infoMonth2" name='month2' class="statis-search-select" style="width: 50px;" onchange="selectDateChanger(false, true)">
|
|
|
- <c:forEach begin="1" end="12" varStatus="status">
|
|
|
+ <c:forEach begin="1" end="${thisMonth}" varStatus="status">
|
|
|
<option value="<fmt:formatNumber pattern="00" value="${status.current}"/>" <c:if test="${status.current == thisMonth}">selected</c:if>><fmt:formatNumber pattern="00" value="${status.current}"/></option>
|
|
|
</c:forEach>
|
|
|
</select>
|
|
|
<label for="infoMonth2" class="infoMonth2">월</label>
|
|
|
|
|
|
<select id="infoDate2" name='date2' class="statis-search-select" style="width: 50px;">
|
|
|
- <c:forEach begin="1" end="${lastDate}" varStatus="status">
|
|
|
+ <c:forEach begin="1" end="${thisDate}" varStatus="status">
|
|
|
<option value="<fmt:formatNumber pattern="00" value="${status.current}"/>" <c:if test="${status.current == thisDate - 1}">selected</c:if>><fmt:formatNumber pattern="00" value="${status.current}"/></option>
|
|
|
</c:forEach>
|
|
|
</select>
|
|
@@ -681,6 +681,7 @@
|
|
|
ids.push(infoList.val());
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
const selectSize = ids.length;
|
|
|
if (selectSize === 0) return alert('교차로 목록을 선택해주세요.');// 선택 도로목록 확인
|
|
|
|