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

📄 holder.jsp

📁 这是java编写宠物医院项目
💻 JSP
字号:
<%@ page contentType="text/html; charset=UTF-8" import="java.util.*,bholder.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title>
holder
</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<style type="text/css">
<!--
.STYLE1 {color: #0033FF}
.STYLE2 {color: #0099FF}
-->
</style>
</head>
<body >
  <%request.setCharacterEncoding("utf-8"); %>
<h1 align="center" class="STYLE1" >所有人信息</h1>
<table width="422" border="0" align="center">
  <tr>
    <form action="../controller?action=hselect&method=hname" method="post" name="form1">
      <td width="109" height="31">按姓名查询: </td>
      <td width="188"><label>
        <input name="name" type="text" id="name" >
      </label></td>
      <td width="111"><label>
        <input type="submit" name="Submit" value="提交">
      </label></td>
    </form>
  </tr>
  <tr>
    <form name="form2" method="post" action="../controller?action=hselect&method=hselect">
      <td height="28"></td>
      <td></td>
      <td>&nbsp;</td>
    </form>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><a href="hadd.jsp">添加所有人</a></td>
  </tr>
</table>
    <form name="form4" method="post" action="../controller?action=hselect&method=cx">
<p>&nbsp;</p>
    </form>
<table width="984" border="0" align="center" >
  <tr>
    <td width="130" height="23">编号</td>
    <td width="152">姓名</td>
    <td width="139">性别</td>
    <td width="139">年龄</td>
    <td width="125"> 住址</td>
    <td width="183">登记时间</td>
    <td width="86">&nbsp;</td>
  </tr>
  <%
     HolderDAO dao=new HolderDAO();
     Collection c=dao.holde_select();
     Iterator item=c.iterator();
     while(item.hasNext()){
       HolderVO vo=(HolderVO)item.next();
  %>
     <tr>
       <td><span class="STYLE2"><%=vo.getId()%></span></td>
       <td><span class="STYLE2"><%=vo.getName()%></span></td>
       <td><span class="STYLE2"><%=vo.getSex()%></span></td>
       <td><span class="STYLE2"><%=vo.getAge()%></span></td>
       <td><span class="STYLE2"><%=vo.getAddress()%></span></td>
       <td><span class="STYLE2"><%=vo.getTime()%></span></td>
     </tr>
     <%}%>
</table>
</body>
</html>

⌨️ 快捷键说明

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