⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 petupdate.jsp

📁 爱心”宠物诊所的职员需要使用系统提供的如下功能: 浏览诊所的兽医以及他们的专业特长; 浏览宠物的主人(即诊所的客户)的相关信息; 更新宠物的主人的相关信息; 向系统中增加一个新客户; 浏览宠
💻 JSP
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />

	<title>修改宠物</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="css/table.css">
	<link rel="stylesheet" type="text/css" href="css/default.css">
</head>

<body>


	<html:form action="/petOper?method=update">

		<table class="list" width="100%" border="0" align="center" bgcolor="#FFFFFF">
			<input type="hidden" name="petID" value="${pet.petID}">
			<tr>
				<td width="30%" align="right">
					宠物名称:
				</td>
				<td width="70%" align="left">
					<input type="text" name="petName" value="${pet.petName }">

				</td>
			</tr>
			<tr>
				<td align="right">
					类型:
				</td>
				<td>
					<select name="petTypeId">
						<option value="${pet.petTypeID }" selected="selected">
							${pet.petTypeName }
						</option>
						<c:forEach items="${petTypes }" var="types">
							<option value="${types.petTypeID }">
								${types.petTypeName }
							</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td align="right">
					出生日期:
				</td>
				<td align="left">

					<html:select property="strYear">
						<html:option value="${pet.strYear }">${pet.strYear }</html:option>
						<html:options labelProperty="label" property="value"
							collection="yearOptions" />
					</html:select>
					<html:select property="strMonth">
						<html:option value="${pet.strMonth }">${pet.strMonth }</html:option>
						<html:options labelProperty="label" property="value"
							collection="monthOptions" />
					</html:select>
					<html:select property="strDay">
						<html:option value="${pet.strDay }">${pet.strDay }</html:option>
						<html:options labelProperty="label" property="value"
							collection="dateOptions" />
					</html:select>


				</td>
			</tr>

			<tr>
				<td align="right">
					所有人名称:
				</td>
				<td>
					<input type="text" name="petOwnerName" value="${pet.petOwnerName}">
					<input type="hidden" name="petOwnerID" value="${pet.petOwnerID}">
				</td>
			</tr>
			<tr align="center">
				<td colspan="2">
					<input type="submit" name="Submit" value="修改" onclick="window.close();">
					<input type="reset" name="Submit" value="放弃" onclick=window.close();>
				</td>

			</tr>
		</table>
	</html:form>



</body>
</html:html>

⌨️ 快捷键说明

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