roadinspectionform.jsp

来自「Java的框架」· JSP 代码 · 共 423 行 · 第 1/2 页

JSP
423
字号
				<tr>
					<th width="15%">
	        	<mcaps:label key="roadInspection.taskId"/>
					</th>
					<td width="85%">
						<spring:bind path="roadInspection.taskId">
							<a href="<c:url value="/task.action?from=list&taskId=${status.value}"/>"><c:out value="${status.value}"/></a>
						  <input type="hidden" id="<c:out value="${status.expression}"/>" 
					  		name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>">
						</spring:bind> 
						</td>					
				</tr>
				</c:if>
				<tr>
					<th width="15%">
	        	<mcaps:label key="roadInspection.defectType"/>
					</th>
					<td width="85%">
						<spring:bind path="roadInspection.defectType">
							 <select id="<c:out value="${status.expression}"/>" name="<c:out value="${status.expression}"/>" >
							 	<c:forEach var="roadDefectType" items="${roaddefecttypelist}">									
								 		<option name="<c:out value="${roadDefectType}"/>" value="<c:out value="${roadDefectType}"/>"
										<c:if test="${roadDefectType==status.value}">selected</c:if> >				  		 
								 			<c:out value="${roadDefectType}"/>
						     		</option>
							  </c:forEach>
							 </select>
	        	<span class="fieldError"><c:out value="${status.errorMessage}"/></span>
						</spring:bind> 		 
					</td>
				</tr>
				<tr>
					<th width="15%" valign="top">
	        	<mcaps:label key="roadInspection.defectDetail"/>
					</th>
					<td width="85%">
						<spring:bind path="roadInspection.defectDetail">
			    		<textarea cols="80" rows="2" 
				  			id="<c:out value="${status.expression}"/>" 
			    			name="<c:out value="${status.expression}"/>"><c:out value="${status.value}"/></textarea>
	        		<span class="fieldError"><c:out value="${status.errorMessage}"/></span>
						</spring:bind> 
					</td>
				</tr>
				<tr>
					<th width="15%">
	        	<mcaps:label key="roadInspection.roadName"/>
					</th>
					<td width="85%">
						<spring:bind path="roadInspection.roadName">
		        	<input type="text" maxlength="50" width="100%" size="40"
				  		id="<c:out value="${status.expression}"/>" 
			        	name="<c:out value="${status.expression}"/>" 
			        	value="<c:out value="${status.value}"/>">
	        		<span class="fieldError"><c:out value="${status.errorMessage}"/></span>
						</spring:bind> 
					</td>
				</tr>
				<tr>
					<th width="15%" valign="top">
	        	<mcaps:label key="roadInspection.location"/>
					</th>
					<td width="85%">
						<spring:bind path="roadInspection.location">
			        <textarea cols="80" rows="2" id="<c:out value="${status.expression}"/>" 
			        	name="<c:out value="${status.expression}"/>"><c:out value="${status.value}"/></textarea>
	        		<span class="fieldError"><c:out value="${status.errorMessage}"/></span>
						</spring:bind> 
					</td>
				</tr>
				<tr>
					<th width="15%" valign="top">
	        	<mcaps:label key="roadInspection.severity"/>
					</th>
					<td width="85%">
						<spring:bind path="roadInspection.severity">
							<select id="<c:out value="${status.expression}"/>" name="<c:out value="${status.expression}"/>" >
								<c:forEach var="roadDefectSeverity" items="${roaddefectseveritylist}">		  		
							  		<option name="<c:out value="${roadDefectSeverity}"/>" value="<c:out value="${roadDefectSeverity}"/>"
							  		<c:if test="${roadDefectSeverity==status.value}">selected</c:if> >	
							  			<c:out value="${roadDefectSeverity}"/>
					      		</option>
						  	</c:forEach>
						  </select>
	        		<span class="fieldError"><c:out value="${status.errorMessage}"/></span>
						</spring:bind> 		 
					</td>
				</tr>
				<tr>
					<th width="15%" valign="top">
	        	<mcaps:label key="roadInspection.summary"/>
					</th>
					<td width="85%">
						<spring:bind path="roadInspection.summary">
			    		<textarea cols="80" rows="3" 
				  			id="<c:out value="${status.expression}"/>" 
			    			name="<c:out value="${status.expression}"/>"><c:out value="${status.value}"/></textarea>
	        		<span class="fieldError"><c:out value="${status.errorMessage}"/></span>
						</spring:bind> 
					</td>
				</tr>
				<tr>
					<th width="15%" valign="top">
	        	<mcaps:label key="roadInspection.solution"/>
					</th>
					<td width="85%">
						<spring:bind path="roadInspection.solution">
			    		<textarea cols="80" rows="3" 
				  			id="<c:out value="${status.expression}"/>" 
			    			name="<c:out value="${status.expression}"/>"><c:out value="${status.value}"/></textarea>
	        		<span class="fieldError"><c:out value="${status.errorMessage}"/></span>
						</spring:bind> 
					</td>
				</tr>
				<tr>
					<th width="15%" valign="top">
					</th>
					<td width="85%">
						<spring:bind path="roadInspection.repairRequired">
							<input type="hidden" name="_<c:out value="${status.expression}"/>">
							<input type="checkbox" name="<c:out value="${status.expression}"/>" value="true"
            			<c:if test="${status.value}">checked</c:if>/>	
								<mcaps:label key="roadInspection.repairRequired"/>				
	        		<span class="fieldError"><c:out value="${status.errorMessage}"/></span>
						</spring:bind> 
					</td>
				</tr>				
			</table>
			<div class="separator"></div>
		 	<p><h3><fmt:message key="roadInspection.subtitle.picture"/></h3></p>
			<table id="pictureTable" class="detail" width="100%">
				<tr>
					<td width="15%" colspan="2" valign="top">&nbsp;
						</td>
						<td width="25%" valign="top">&nbsp;
						</td>
						<td width="60%">
					</td>
				</tr>								
			 		<c:set var="count" value="1" />
			 		<c:forEach var="roadinspectionpicture" items="${roadinspectionpicturelist}">		  		
			  	<c:url value="${roadinspectionpicture.path}${roadinspectionpicture.name}" var="imageUrl" />
				<tr>
							<td valign="top">
								<img src="<c:out value="${deleteImageUrl}"/>" class="icon" alt="Delete Picture" 
									onclick="deletePicture('${roadinspectionpicture.name}')" width="16" height="16"/>
							</td>
							<td valign="top">
						  	<b>Picture <c:out value="${count}"/>:</b><br/><br/>
					</td>
							<td valign="top">
								<span name="imgSpan<c:out value="${count}" />" id="imgSpan<c:out value="${count}" />" ><c:out value="${roadinspectionpicture.name}"/><p></span>
					 			<a target="imgWindow" href="<c:out value="${imageUrl}"/>" title="<c:out value="${roadinspectionpicture.name}"/>"> 
									<img name="imgPicture<c:out value="${count}" />" id="imgPicture<c:out value="${count}" />" src="<c:out value="${imageUrl}"/>" class="icon" border="1" width="50" height="50"/>
						 		</a>
						 		<p>					 			
					</td>
				</tr>
				 		<c:set var="count" value="${count+1}" />
						</c:forEach>
						<c:if test="${count <= maxPicCnt}">
							<c:forEach var="x" begin="${count}" end="${maxPicCnt}" step="1">
				<tr>
									<td valign="top">
										<input type=checkbox name="editCheckbox<c:out value="${x}"/>" onclick="editPicture('<c:out value="${x}"/>',this);"/>
									</td>
									<td valign="top">
						  			<b>Picture <c:out value="${x}"/>:</b><br/><br/>
					</td>
									<td valign="top">
										<span name="imgSpan<c:out value="${x}" />" id="imgSpan<c:out value="${x}" />" ><font color="#808080">[empty picture file]<p></font></span>
						  			<img name="imgPicture<c:out value="${x}" />" id="imgPicture<c:out value="${x}" />" 
						  				src="<c:out value="${emptyImageUrl}"/>" class="icon" border="1" width="50" height="50"/><p>					
									</td>
									<c:set var="pickey" value="Picture ${x}"/>
									<td valign="top">
					 					<span name="span<c:out value="${x}"/>" id="span<c:out value="${x}"/>"></span>
					</td>					
				</tr>
							</c:forEach>
					</c:if>
			</table>	
			<div class="separator"></div>
			<table class="detail">
				<c:out value="${pageButtons}" escapeXml="false" />
			</table>	
		</form>
	

<script type="text/javascript">

highlightFormElements();

<%-- if we're doing an add, change the focus --%>

<c:set var="focus" value="defectType"/>

var focusControl = document.forms["roadInspectionForm"].elements["<c:out value="${focus}"/>"];

<!-- This is here so we can exclude the selectAll call when roles is hidden -->
function onFormSubmit(theForm) {
    return validateRoadInspection(theForm);
}
</script>

<v:javascript formName="roadInspection" staticJavascript="false"/>
<script type="text/javascript"
      src="<c:url value="/scripts/validator.jsp"/>"></script>
      
	</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?