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

📄 pet.jsp~8~

📁 这是java编写宠物医院项目
💻 JSP~8~
字号:
<%@ page contentType="text/html; charset=UTF-8"  import="java.util.* ,pet.*,java.sql.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title>
pet
</title>
<meta  http-equiv="content-type" content="text/html; chstset=utf-8" />
<style type="text/css">
<!--
.STYLE1 {color: #0033FF}
.STYLE2 {color: #0066FF}
-->
</style>
</head>
<body bgcolor="#ffffff">
  <%request.setCharacterEncoding("utf-8"); %>
<h1 align="center" class="STYLE1">
宠物信息</h1>
<table width="443" border="0" align="center">
  <tr>
        <form action="../controller?action=pet&method=pname" method="post" name="form1" >
    <td width="133">按宠物名查询:</td>
    <td width="140">
      <input name="pname" type="text" id="pname" size="20"></td>
    <td width="156">
      <input type="submit" name="Submit" value="提交">    </td>
    </form>
  </tr>
  <tr>
    <form name="form2" method="post" action="pet_kind.jsp">
    <td>按宠物种类查询:</td>
    <td>
      <select name="p_kind" id="p_kind">
      <%
      PetDAO dao1=new PetDAO();
      Collection c1=dao1.holder_pet();
      Iterator item1=c1.iterator();
      while (item1.hasNext()){
        PetVO vo1=(PetVO)item1.next();
      %> <option  value="<%=vo1.getPkind()%>"><%=vo1.getPkind() %><%} %> </option>
      </select>    </td>
    <td><input type="submit" name="Submit2" value="提交"></td>
  </form>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="right"><a href="/WebModule1/iness/iness.jsp"></a></td>
    <td><a href="petadd.jsp">添加宠物</a> <a href="petup.jsp">修改宠物</a> </td>
  </tr>
</table>

<p>&nbsp;</p>
<table width="787"  border="0" align="center">
  <tr>
    <td>编号</td>
    <td>所有人</td>
    <td>名称</td>
    <td>种类</td>
    <td>性别</td>
    <td>登记时间</td>
  </tr>
  <%
      PetDAO dao=new PetDAO();
      Collection c=dao.holder_pet();
      Iterator item=c.iterator();
      while (item.hasNext()){
        PetVO vo=(PetVO)item.next();
  %>
  <tr>
    <td><span class="STYLE2"><%=vo.getPid() %></span></td>
    <td><span class="STYLE2"><%=vo.getHname() %></span></td>
    <td><span class="STYLE2"><%=vo.getPname() %></span></td>
    <td><span class="STYLE2"><%=vo.getPkind() %></span></td>
    <td><span class="STYLE2"><%=vo.getPsex() %></span></td>
    <td><span class="STYLE2"><%=vo.getPtime() %></span></td>
  </tr>
  <%} %>
</table>
<p>&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

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