📄 petview_name.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>petview_name.jsp</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">
<script type="text/javascript">
function showUpdateForm(petID)
{
rValue=window.showModalDialog(
'toPet.do?method=view&petID='+petID+'&toUpdatePage=toUpdatePage',
window,"dialogWidth:380px;status:no;dialogHeight:185px;help:no");
location.reload();
}
function showPetHistory(petID)
{
window.location.href='toPetVisit.do?method=view&petID='+petID;
}
function addNewPetHistory()
{
rValue=window.showModalDialog(
'petnewvisit.jsp',
window,"dialogWidth:400px;status:no;dialogHeight:220px;help:no");
}
</script>
</head>
<body>
<jsp:include flush="true" page="top.jsp"></jsp:include>
<html:form action="/toPet?method=view">
<table class="list" width="50%" border="0" align="center"
bgcolor="#FFFFFF">
<tr>
<input type="hidden" name="petID" value="${pet.petID}">
<td width="40%" align="right">
宠物名称:
</td>
<td width="70%" align="left">
${pet.petName }
</td>
</tr>
<tr>
<input type="hidden" name="petId" value="${pet.petTypeID}">
<td align="right">
类型:
</td>
<td align="left">
${pet.petTypeName }
</td>
</tr>
<tr>
<td align="right">
出生日期:
</td>
<td align="left">
${pet.petBirthDate }
</td>
</tr>
<tr>
<td align="right">
所有人名称:
</td>
<td align="left">
${pet.petOwnerName }
</td>
</tr>
<tr align="center">
<td colspan="2">
<input type="button" name="button" value="修改信息"
onclick="showUpdateForm(${pet.petID});">
</td>
</tr>
<tr align="center">
<td colspan="2">
<input type="button" name="button" value="阅览病历"
onclick="showPetHistory(${pet.petID});">
<input type="button" name="button" value=增加新病历
" onclick="addNewPetHistory();">
</td>
</tr>
<html:errors />
</table>
</html:form>
<p>
<jsp:include flush="true" page="errorMsg.jsp"></jsp:include>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -