📄 petupdate.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 + -