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

📄 querypets.jsp~44~

📁 基于mvc的宠物管理系统。servlet+jsp
💻 JSP~44~
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<html>
  <head>
    <title>queryemployee</title>
    <style type="text/css">
      body{font-size:12px}
      td{font-size:12px; text-align:center}
      th{font-size:13px;color:#3a64a2}
      a:link { COLOR:#09355E;TEXT-DECORATION: none;}
      a:visited{COLOR:#09355E;TEXT-DECORATION: none;}
      a:hover{COLOR:#3A64A2;TEXT-DECORATION: none;}
    .STYLE1 {color: #FF0000}
    </style>
<script type="text/javascript" language="javascript">
function userConfirm()
{
	var re=window.confirm("您确定要删除该员工信息吗?");
	if(re)
	return;
}
</script>
  </head>
  <body bgcolor="#f7f8fd">
    <table align="center" order="0" cellspacing="00">
      <tr>
        <td>
          <img src="images/bt2.gif"/>
        </td>
        <td>当前操作:<span class="STYLE1">宠物基本信息</span></td>
      </tr>
    </table>
    <br>
    <table width="90%" align="center">
      <tr valign="middle" align="left">
        <td>
          <form action="petscontrol">
            <table border="0" align="center" cellspacing="1" bgcolor="#c8d8ef" width="100%">
              <tr bgcolor="#ffffff">
                <td height="23"><div align="left">【宠物基本信息查询】</div><input type="hidden" name="param" value="querybydetail" /></td>
              </tr>
              <tr bgcolor="#ffffff" >
                <td valign="middle" align="left" height="23">                  <div align="left">宠物名称:
                  <input type="text" style="WIDTH: 80px; HEIGHT: 19px" size="10" name="petsname"/>
                  种类:
                  <input type="text" style="WIDTH: 80px; HEIGHT: 19px" size="10" name="petstype"/>
                  主人名称:
                  <input type="text" style="WIDTH: 80px; HEIGHT: 19px" size="10" name="petsowner"/>
                  <input type="submit" style="WIDTH: 40px; HEIGHT: 20px" value="查询"/>
                  <input type="reset" style="WIDTH: 40px;HEIGHT: 20px" value="取消"/>
                </div></td>
              </tr>
            </table>
          </form>
        </td>
      </tr>
    </table>
    <table width="90%" border="0" align="center" cellspacing="1" bgcolor="#c8d8ef">
      <tr bgcolor="#c8d8ef">
        <th height="25">宠物名称</th>
        <th>出生日期</th>
        <th>种类</th>
        <th>主人姓名</th>
        <th>操作</th>
      </tr>
      <c:forEach items="${requestScope.queryResult}" var="petsResult" varStatus="total">

          <tr onMouseMove="this.style.backgroundColor='#EBF4FF'" onMouseOut="this.style.backgroundColor='#ffffff'" bgcolor="ffffff">
            <td height="25px">${petsResult.pets_name}            </td>
            <td>${petsResult.birth_date}            </td>
            <td>${petsResult.types_name}            </td>
            <td>${petsResult.owners_name}            </td>
            <td>
              <a href="petscontrol?param=update&updateid=${petsResult.id}&updatePetsName=${petsResult.pets_name}&updatePetsBirth=${petsResult.birth_date}&updateTypes=${petsResult.types_name}&updateOwners=${petsResult.owners_name}&pageNumber=${requestScope.currentPage}" target="mainFrame">修改</a>
              |
              <a href="petscontrol?param=delete&deleteid=${petsResult.id}&pageNumber=${requestScope.currentPage}" target="mainFrame" onClick="userConfirm()">删除</a>
            </td>
          </tr>


      </c:forEach>
    </table>
    <table border="0" align="center">
      <tr>
        <td>
          <a href="petscontrol?param=query&pageNumber=firstPage" target="mainFrame">首页</a>
        </td>
        <c:if test="${requestScope.currentPage>1}">
          <td>
            <a href="petscontrol?param=query&pageNumber=${requestScope.currentPage-1}" target="mainFrame">上一页</a>
          </td>
        </c:if>
        <c:if test="${requestScope.currentPage<sessionScope.petsTotalPage}">
          <td>
            <a href="petscontrol?param=query&pageNumber=${requestScope.currentPage+1}" target="mainFrame">下一页</a>
          </td>
        </c:if>
        <td>
          <a href="petscontrol?param=query&pageNumber=endPage" target="mainFrame">末页</a>
        </td>
        <td>          共
${sessionScope.petsTotalPage}          页
        </td>
      </tr>
    </table>
  </body>
</html>

⌨️ 快捷键说明

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