petsearch.jsp

来自「爱心”宠物诊所的职员需要使用系统提供的如下功能: 浏览诊所的兽医以及他们的专业」· JSP 代码 · 共 98 行

JSP
98
字号
<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="taglibs.jsp"%>
<html>
	<head>
		<title>JSP for DynaActionForm form</title>
		<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 showAddPetForm()
    {
      rValue=window.showModalDialog(
               'petnew.jsp',
               window,"dialogWidth:380px;status:no;dialogHeight:175px;help:no");
      
    }
    function showAddOwnerForm()
    {
      rValue=window.showModalDialog(
               'newpetowner.jsp',
               window,"dialogWidth:400px;status:no;dialogHeight:310px;help:no");
      
    }
</script>
	</head>
	<body>

		<jsp:include flush="true" page="top.jsp"></jsp:include>

		<html:form action="/toPet?method=search">
			<table class="list" width="38%" border="0" align="center" bgcolor="#FFFFFF">
				<tr>
					<td width="30%" align="right">
						宠物名称:
					</td>
					<td width="70%" align="left">
						<html:text property="petName" />
						<html:errors property="petName" />
					</td>
				</tr>
				<tr>
					<td align="right">
						所有人名称:
					</td>
					<td>
						<html:text property="ownerName" />
						<html:errors property="ownerName" />
					</td>
				</tr>
				<tr align="center">
					
					<td colspan="2">
						<input type="submit" name="Submit" value="查询">
					</td>
				
				
				</tr>
					<tr align="center">
					<td colspan="2">
						
					</td>
				</tr>
					<tr align="center">
					<td colspan="2">
						
					</td>
				</tr>
				</tr>
					<tr align="center">
					<td colspan="2">
						
					</td>
				</tr>
				<tr align="center">
					<td colspan="2">
						<input type="button" name="button" value="增加新宠物"
							onclick="showAddPetForm();">
					

					
						<input type="button" name="button" value="增加新所有人"
							onclick="showAddOwnerForm();">

					</td>
				</tr>
				<tr align="center">
					<td colspan="2">
						<html:errors />
					</td>
				</tr>
			</table>
		</html:form>

		<jsp:include flush="true" page="tail.jsp"></jsp:include>
	</body>
</html>

⌨️ 快捷键说明

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