roaddefectform.jsp

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

JSP
492
字号
						  		value="<c:out value="${status.value}"/>">
		        			<span class="fieldError"><c:out value="${status.errorMessage}"/></span>
						</spring:bind> 
					</td>
				</tr>
				<tr>
					<th>
				       	<mcaps:label key="roadDefect.contact.roadName"/>
					</th>
					<td>
						<spring:bind path="roadDefect.contact.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>
	        		 	<mcaps:label key="roadDefect.contact.postcode"/>
					</th>
					<td>
						<spring:bind path="roadDefect.contact.postcode">
						  	<input type="text" maxlength="20" width="100%" size="20"
						  		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>
	        			<mcaps:label key="roadDefect.contact.country"/>
					</th>
					<td>
						<spring:bind path="roadDefect.contact.country">
		            		<mcaps:country name="contact.country" 
		            			prompt="" default="${roadDefect.contact.country}"/>
			        		<span class="fieldError"><c:out value="${status.errorMessage}"/></span>
						</spring:bind> 
					</td>
				</tr>
				<tr>
					<th>
			        	<mcaps:label key="roadDefect.contact.telephone"/>
					</th>
					<td>
						<spring:bind path="roadDefect.contact.telephone">
						  	<input type="text" maxlength="20" width="100%" size="20" 
						  		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>
	        			<mcaps:label key="roadDefect.contact.email"/>
					</th>
					<td>
						<spring:bind path="roadDefect.contact.email">
						  	<input type="text" maxlength="30" 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>
			</table>
			<p><h3><fmt:message key="roadDefect.subtitle.roadDefect"/></h3><p>
			<table class="detail">
				<tr>
					<th>
	    		    	<mcaps:label key="roadDefect.defectType"/>
					</th>
					<td>
						<spring:bind path="roadDefect.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 valign="top">
			        	<mcaps:label key="roadDefect.defectDetail"/>
					</th>
					<td>
						<spring:bind path="roadDefect.defectDetail">
				    		<textarea cols="60" 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>
						<b><mcaps:label key="roadDefect.road.name"/></b>
					</th>
					<td>
						<input type="hidden" id="road.id" name="road_id" 
					  		value="<c:out value="${roadDefect.road.id}"/>">
						<input type="text" maxlength="50" width="100%" size="40" readonly="readonly"
					  		id="road.name" 
				        	name="road_name" 
				        	value="<c:out value="${roadDefect.road.name}"/>">
			    	    <a id="showRoadList" href="javascript:showList()"> 
					  		<img src="<c:url value="/images/view.gif" />" class="icon" border="1" />
			  			</a>
					</td>
				</tr>
				<c:choose>
					<c:when test="${map == 'mb'}">
						<tr>
							<th><mcaps:label key="roadDefect.coordinates"/></th>
							<td id="XYCoordText"/>
						</tr>
					</c:when>
					<c:otherwise>
		 				<tr>
							<th><mcaps:label key="roadDefect.coordinates"/></th>
							<td>
								<spring:bind path="roadDefect.coordinates">
					  			<input type="text" readonly width="100%" size="40"   
							  		id="<c:out value="${status.expression}"/>" 
							  		name="<c:out value="${status.expression}"/>" 
							  		value="<c:out value="${status.value}"/>">
								</spring:bind>
							</td>
						</tr>
					</c:otherwise>
				</c:choose>
				<tr>
					<th>
					</th>
					<td>
					<c:choose>
						<c:when test="${map == 'mb'}">
							<c:import url="/map/view/mb/prrmMapView.jsp">
								<c:param name="mapName" value="PRRM Map"/>
								<c:param name="mapTemplate" value="prrm"/>
								<c:param name="customParams" value="edit;${roadDefect.road.id};${roadDefect.id}"/>
							</c:import>
						</c:when>
						<c:otherwise>
							<iframe id="mapframe" name="mapframe" src="<c:url value='/map/view/ol/prrmMapView.jsp?customParams=edit;${roadDefect.road.id};${roadDefect.id}&coordinates=${roadDefect.coordinates}&mode=2' />"
			            		width="100%" height="450px" align=top scrolling=no frameborder=0>
			      			[This feature requires IFrame.]</iframe>
						</c:otherwise>
					</c:choose>
					</td>
				</tr>
				<tr>
					<th valign="top">
	        			<mcaps:label key="roadDefect.location"/>
					</th>
					<td>
						<spring:bind path="roadDefect.location">
				        	<textarea cols="60" 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 valign="top">
			        	<mcaps:label key="roadDefect.severity"/>
					</th>
					<td>
						<spring:bind path="roadDefect.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>
				<c:if test="${param.method != 'add'}">
					<tr>
						<th valign="top">
				        	<mcaps:label key="roadDefect.status"/>
						</th>
						<td>
							<spring:bind path="roadDefect.status">
								<input type="hidden" id="<c:out value="${status.expression}"/>" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
								<c:out value="${status.value}"/>
		    		    		<span class="fieldError"><c:out value="${status.errorMessage}"/></span>
							</spring:bind> 		 
						</td>
					</tr>
				</c:if>
				<c:out value="${pageButtons}" escapeXml="false" />
			</table>
			<c:if test="${!empty roadDefect.status}">
				<c:if test="${roadDefect.status != ''}">
					<c:if test="${roadDefect.status != 'Pending'}">
						<div class="separator"></div>
						<jsp:include page="/WEB-INF/pages/prrm/roadDefect/roadDefectTask.jsp"/>
					</c:if>
				</c:if>
			</c:if>
		</form>
	
		<script type="text/javascript">
		highlightFormElements();
		
		<%-- if we're doing an add, change the focus --%>
		
		<c:set var="focus" value="contact.firstName"/>
		
		var focusControl = document.forms["roadDefectForm"].elements["<c:out value="${focus}"/>"];
		
		<!-- This is here so we can exclude the selectAll call when roles is hidden -->
		function onFormSubmit(theForm) {
		  return validateRoadDefect(theForm);
		}
		
		</script>
		
		<v:javascript formName="roadDefect" staticJavascript="false"/>
		<script type="text/javascript"
		      src="<c:url value="/scripts/validator.jsp"/>">
		</script>
      
	</body>
</html>

⌨️ 快捷键说明

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