📄 pet.jsp~183~
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib tagdir="/WEB-INF/tags/" prefix="mytag"%>
<HTML>
<HEAD>
<TITLE>宠物信息</TITLE>
<style type="text/css">
<!--
.STYLE12 {
color: #FF0000;
font-size: 16px;
}
.STYLE13 {
color: #FF9933;
font-weight: bold;
font-size: 14px;
}
.STYLE14 {color: #FF3399; font-weight: bold; font-size: 14px; }
.STYLE18 {color: #3300CC}
.STYLE19 {color: #0099FF}
.STYLE20 {color: #FF0000}
-->
</style>
<script type="" language="JavaScript">
function toAlterPet(pid,pname,oid,oname,ptid){
document.alterPetForm.id.value=pid;
document.alterPetForm.petName.value=pname;
document.alterPetForm.petTypeID.value=ptid;
document.alterPetForm.ownerName.value=oname;
document.alterPetForm.ownerID.value=oid;
document.alterPetForm.submit();
return ;
}
function toAddPetCaseHistoryForm(pId,pName,oName){
document.addPetCaseHistoryForm.petID.value=pId;
document.addPetCaseHistoryForm.petName.value=pName;
document.addPetCaseHistoryForm.ownerName.value=oName;
document.addPetCaseHistoryForm.submit();
return ;
}
function toSearchPetCaseHistory(pid,petName){
document.searchPetCaseHistoryForm.petID.value=pid;
document.searchPetCaseHistoryForm.petName.value=petName;
document.searchPetCaseHistoryForm.submit();
return ;
}
</script></HEAD>
<LINK href="datasrc/style.css" type=text/css rel=stylesheet>
<body>
<mytag:head/>
<!-- 在这里开始加入动态内容 -->
<TABLE width=776 border=0 align=center cellPadding=0 cellSpacing=0 background=datasrc/centerbg.gif>
<TBODY>
<TR>
<TD width=150 align="left" vAlign=top background=datasrc/09.gif>
<table width="100%" cellspacing="2" cellpadding="3">
<tr>
<td> </td>
</tr>
<tr>
<td>
<a href="pet.jsp?RequestType=SearchPet">
<font size="4" color="#33CC99">
<b>查询宠物</b>
</font>
</a>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<a href="pet.jsp?RequestType=AddPetType">
<font size="4" color="#33CC99">
<b>增加新宠物种类</b>
</font>
</a>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</TD>
<TD vAlign=top width=521>
<c:choose>
<c:when test="${empty param.RequestType or param.RequestType eq 'SearchPet' }">
<form name="form1" method="post" action="searchPet.do">
<table width="100%" cellpadding="3" cellspacing="2">
<tr>
<td align="right"> </td>
<td height="50" valign="bottom">
<font color="#FF9900" size="4">
<b>请输入查询条件</b>
</font>
</td>
</tr>
<tr>
<td align="right">
<span class="STYLE14">主 人 姓 名:</span>
</td>
<td>
<label>
<input name="ownerName" type="text" id="ownerName">
<span class="STYLE12">*</span>
</label>
</td>
</tr>
<tr>
<td align="right">
<span class="STYLE14">宠 物 昵 称:</span>
</td>
<td>
<label>
<input name="petName" type="text" id="petName">
<span class="STYLE12">*</span>
</label>
</td>
</tr>
<tr>
<td align="right"> </td>
<td>
<label>
<input type="submit" value="查询">
<input type="reset" value="取消">
</label>
</td>
</tr>
<tr>
<td align="right"> </td>
<td>
<c:if test="${not empty requestScope.FromSPA and empty FromSearchPetActionMessage}">
<font size="4" color="#ff0000">
<b>没有查询到相关的信息!</b>
</font>
</c:if>
</td>
</tr>
</table>
</form>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${param.RequestType eq 'AddPetType'}">
<form name="form2" method="post" action="">
<table width="100%" cellpadding="3" cellspacing="2">
<tr>
<td align="right"> </td>
<td height="50" valign="bottom">
<font size="4" color="#33CC99">
<b>增加新物种</b>
</font>
</td>
</tr>
<tr>
<td align="right">
<span class="STYLE13">新物种名称:</span>
</td>
<td>
<label>
<input name="petTypeName" type="text" id="petTypeName">
</label>
</td>
</tr>
<tr>
<td align="right"> </td>
<td>
<label>
<input type="submit" value="添加">
</label>
<label>
<input type="reset" value="取消">
</label>
</td>
</tr>
<tr>
<td align="right"> </td>
<td> </td>
</tr>
<tr>
<td align="right"> </td>
<td> </td>
</tr>
</table>
</form>
</c:when>
<c:otherwise> </c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE width=776 border=0 align=center cellPadding=0 cellSpacing=0 background=datasrc/centerbg.gif>
<TR>
<TD align="center" vAlign=top background=datasrc/09.gif>
<c:choose>
<c:when test="${not empty requestScope.FromSearchPetActionMessage}">
<form action="AlterPet.jsp" method="POST" name="alterPetForm">
<input type="hidden" name="petName"/>
<input type="hidden" name="id"/>
<input type="hidden" name="petTypeID"/>
<input type="hidden" name="ownerName"/>
<input type="hidden" name="ownerID"/>
</form>
<form action="AddPetCaseHistory.jsp" method="POST" name="addPetCaseHistoryForm">
<input type="hidden" name="petID"/>
<input type="hidden" name="petName"/>
<input type="hidden" name="ownerName"/>
</form>
<form action="SearchPetCaseHistory.jsp" method="POST" name="searchPetCaseHistoryForm">
<input type="hidden" name="petID"/>
<input type="hidden" name="petName" />
</form>
<table width="100%" border="1" align="center" bordercolor="#FF9933">
<tr>
<th>
<span class="STYLE18">宠物名</span>
</th>
<th>
<span class="STYLE18">宠物类型</span>
</th>
<th>
<span class="STYLE18">主人姓名</span>
</th>
<th>
<span class="STYLE18">主人注册号</span>
</th>
<th>
<span class="STYLE20">?!</span>
</th>
<th>
<span class="STYLE20">+</span>
</th>
<th>
<span class="STYLE20">»</span>
</th>
</tr>
<c:forEach items="${FromSearchPetActionMessage.pets}" var="petObj">
<%-- id petName ownerID ownerName petTypeID petTypeName --%>
<tr align="center">
<td>
<span class="STYLE19">${petObj.petName} </span>
</td>
<td>
<span class="STYLE19">${petObj.petTypeName} </span>
</td>
<td>
<span class="STYLE19">${petObj.ownerName} </span>
</td>
<td>
<span class="STYLE19">${petObj.ownerID} </span>
</td>
<td>
<a href="javascript:toAlterPet('${petObj.id}','${petObj.petName}','${petObj.ownerID}','${petObj.ownerName}',${petObj.petTypeID});">
<span class="STYLE8">修改宠物信息</span>
</a>
</td>
<td>
<a href="javascript:toAddPetCaseHistoryForm(${petObj.id},'${petObj.petName}','${petObj.ownerName}');">
<span class="STYLE8">添加病历</span>
</a>
</td>
<td>
<a href="javascript:toSearchPetCaseHistory(${petObj.id},'${petObj.petName}');">
<span class="STYLE8">查询病历</span>
</a>
</td>
</tr>
<%--${petObj.id} --%>
</c:forEach>
</table>
</c:when>
<c:otherwise> </c:otherwise>
</c:choose>
</td>
</tr>
</table>
<!-- 在这里结束加入动态内容 -->
<mytag:cauda/>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -