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

📄 vet.jsp~2~

📁 这是java编写宠物医院项目
💻 JSP~2~
字号:
<%@ page contentType="text/html; charset=UTF-8"  import="vetuser.*,java.util.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title>
查询兽医
</title>
<style type="text/css">
<!--
.STYLE1 {color: #0000FF}
.STYLE2 {color: #0066FF}
-->
</style>
<meta  http-equiv="cintent-type" content="text/html; charset=utf-8" />
</head>
<body bgcolor="#ffffff">
  <%request.setCharacterEncoding("utf-8"); %>
<p align="center" class="STYLE1">查询兽医 </p>
<base target="mainFrame">
<table width="504" border="0" align="center">
  <tr>
    <form name="form1" method="post" action="select_vet.jsp">
    <td width="142">按姓名查询:</td>
    <td width="187"><label>
      <input name="textname" type="text" id="textname" size="25">
    </label></td>
    <td width="161"><label>
      <input type="submit" name="Submit" value="提交">
    </label></td>
    </form>
  </tr>
  <tr>
     <form name="form2" method="post" action="select_zhuanye.jsp">
    <td>按专业查询:</td>
    <td><label>
      <select name="speciality" id="speciality" >
      <%
         VetuserDAO dao1=new VetuserDAO();
         Collection c1=dao1.vet_zy();
         Iterator item1=c1.iterator();
         while (item1.hasNext()){
           String vo1=(String)item1.next();
      %> <option  value="<%=vo1 %>"><%=vo1 %><%} %> </option>

      </select>
    </label></td>
    <td><input type="submit" name="Submit2" value="提交">
    &nbsp;&nbsp;<a href="vet_add.jsp">添加兽医</a></td>
    </form>
  </tr>

</table>
<p>&nbsp;</p>


<table width="748" border="0" align="center">
  <tr>
    <td width="63">编号</td>
    <td width="96">姓名</td>
    <td width="56">性别</td>
    <td width="56">年龄</td>
    <td width="127">专业</td>
    <td width="120">地址</td>
    <td width="200">注册时间</td>
  </tr>
  <%
  VetuserDAO dao=new  VetuserDAO();
     Collection c=dao.vetselect();
     Iterator item=c.iterator();
     while(item.hasNext()){
     VetuserVO vo=(VetuserVO)item.next();
     %>
     <tr>
       <td><span class="STYLE2"><%=vo.getVetid() %></span></td>
       <td><span class="STYLE2"><%=vo.getVetname() %></span></td>
       <td><span class="STYLE2"><%=vo.getVetsex() %></span></td>
       <td><span class="STYLE2"><%=vo.getVetage() %></span></td>
       <td><span class="STYLE2"><%=vo.getVetspeciality()%></span></td>
       <td><span class="STYLE2"><%=vo.getVetaddress() %></span></td>
       <td><span class="STYLE2"><%=vo.getVettime() %></span></td>
     </tr>
    <% }%>
</table>
<p>&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

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