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

📄 vet.jsp~255~

📁 一个基于JAVA的BS结构的宠物诊所管理系统.是当年在学校时写的,大家指点一下.
💻 JSP~255~
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="java.util.Vector"%>
<%@page import="gxaccp.t07.guoneng_wei.petclinicmanagesystem.beans.ProfessionType"%>
<%@taglib tagdir="/WEB-INF/tags/" prefix="mytag"%>
<c:set var="ProfType" value="<%=ProfessionType.getProfessionTypes()%>"/>
<HTML>
<HEAD>
<TITLE>兽医信息</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gbk"/>
<style type="text/css">
  <!--
    .STYLE9 {color: #FF0000}
    .STYLE10 {color: #FF9900}
    .STYLE13 {color: #FF9900; font-size: 16px; }
  -->
</style>
<script type="" language="JavaScript">
      function gotoSearchVet(){
        //下拉菜单的动作
        document.SearchToProfession.submit();
        return ;
      }

      function gotoPage(pagenum){
        //点击上下页链接的动作
        document.pageForm.jumpPage.value=pagenum;
        document.pageForm.submit();
        return;
      }
</script></HEAD>
<LINK href="datasrc/style.css" type=text/css rel=stylesheet>
<body>
<mytag:head/>
<!-- 在这里开始加入动态内容 -->
<TABLE cellSpacing=0 cellPadding=0 width=776 align=center background=datasrc/centerbg.gif border=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=188 background=datasrc/09.gif height=168>
        <table width="100%" border="0" cellspacing="3" cellpadding="3">
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>
              <c:choose>
                <c:when test="${sessionScope.UserInfo.admin}">
                  <a href="vet.jsp?ActionType=AddNewVet" target="_self">注册新兽医
                &gt;&gt;&gt;
              </a>
                </c:when>
                <c:otherwise>
                注册新兽医<span class="STYLE9">(管理员可操作)</span>
              </a>
                </c:otherwise>
              </c:choose>
            </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>增加兽医专业
             <c:choose>
                <c:when test="${sessionScope.UserInfo.admin}">
                  <a href="vet.jsp?ActionType=AddNewVet" target="_self">注册新兽医
                &gt;&gt;&gt;
              </a>
                </c:when>
                <c:otherwise>
                注册新兽医<span class="STYLE9">(管理员可操作)</span>
              </a>
                </c:otherwise>
              </c:choose>
            </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
		  <tr>
            <td>
              <a href="vet.jsp?ActionType=SearchVet" target="_self">                查询兽医信息
                &gt;&gt;&gt;
</a>
            </td>
          </tr>

        </table>
      </TD>
      <TD vAlign=top width=588>
        <c:choose>
          <c:when test="${sessionScope.UserInfo.admin && param.ActionType eq 'AddNewVet' or not empty FromAddNewVetActionMessage }">
            <%-- 管理员的显示 onSubmit="return goAddVet()" --%>
          <form action="addNewVet.do" method="post" name="AddVet" target="_self">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="20%" height="50" align="right">&nbsp;</td>
                <td width="80%" valign="bottom">
                  <span class="STYLE13">(注册)添加新兽医信息</span>
                </td>
              </tr>
              <tr>
                <td align="right">姓名:</td>
                <td>
                  <label>
                    <input name="vetName" type="text">
                    <span class="STYLE9">*</span>
                  </label>
                </td>
              </tr>
              <tr>
                <td align="right">性别:</td>
                <td>
                  <label>
                    <input type="radio" name="sex" value="0">
</label>
                  <label>
                    <input name="sex" type="radio" value="1" checked>
                    <span class="STYLE9">*</span>
                  </label>
                </td>
              </tr>
              <tr>
                <td align="right">专业:</td>
                <td>
                  <label>
                    <select name="professionID">
                      <c:forEach items="${ProfType}" var="pobj">
                        <c:choose>
                          <c:when test="${pobj.id eq '1'}">
                            <option value="${pobj.id}" selected>${pobj.professionName}                            </option>
                          </c:when>
                          <c:otherwise>
                            <option value="${pobj.id}">${pobj.professionName}                            </option>
                          </c:otherwise>
                        </c:choose>
                      </c:forEach>
                    </select>
                    <span class="STYLE9">*</span>
                  </label>
                </td>
              </tr>
              <tr>
                <td align="right">电话:</td>
                <td>
                  <label>
                    <input type="text" name="telephone">
                    <span class="STYLE9">*(0000-0000000 或 13000000000 )</span>
                  </label>
                </td>
              </tr>
              <tr>
                <td align="right">地址:</td>
                <td>
                  <label>
                    <input name="address" type="text" value="无详细地址">
                    <span class="STYLE9">*</span>
                  </label>
                </td>
              </tr>
              <tr>
                <td align="right">
                  <span class="STYLE9">*</span>
                  简历:
</td>
                <td>
                  <label>
                    <textarea name="resume" cols="58" rows="8">无详细简历</textarea>
                  </label>
                </td>
              </tr>
              <tr>
                <td align="right">&nbsp;</td>
                <td>
                  <label>
                    <input type="submit" value="确定">
                  </label>
                  <label>
                    <input type="reset" value="取消">
                  </label>
                </td>
              </tr>
              <tr>
                <td align="center" colspan="2">
                  <font color="#ff0000" size="4">${FromAddNewVetActionMessage}                  </font>
                </td>
              </tr>
            </table>
          </form>
          </c:when>
          <c:otherwise>
            <%-- 不是管理员的显示 --%>
            <c:choose>
              <c:when test="${empty param.ActionType or param.ActionType eq 'SearchVet' }">
                <table width="95%" cellpadding="3" cellspacing="3">
                  <tr>
                    <td width="50%" height="88" align="right" valign="bottom">
                      <h3 class="STYLE10">按专业查询:</h3>
                    </td>
                    <td width="50%" valign="bottom">
                    <form name="SearchToProfession" action="searchVetInfo.do" method="POST" target="_self">
                      <select name="professionType" onChange="gotoSearchVet()">
                        <option value="0" selected>--请选择--</option>
                        <c:forEach items="${ProfType}" var="pobj">
                          <option value="${pobj.id}">${pobj.professionName}                          </option>
                        </c:forEach>
                      </select>
                    </form>
                    </td>
                  </tr>
                </table>
                <table width="95%" cellpadding="3" cellspacing="3">
                  <tr>
                    <td width="50%" height="58" align="right" valign="middle" class="STYLE10">
                      <h3>按姓名查询:</h3>
                    </td>
                    <td width="50%" valign="middle">
                    <form name="SearchToName" action="searchVetInfo.do" method="POST" target="_self">
                      <input type="text" name="vetName">
                      <input type="submit" value="查询">
                    </form>
                    </td>
                  </tr>
                </table>
              </c:when>
              <c:otherwise>
                <br />
                <br />
                <br />
                <font color="#00ccff" size="5">
                  <b>欢迎使用本系统</b>
                </font>
              </c:otherwise>
            </c:choose>
          </c:otherwise>
        </c:choose>
      </TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=776 align=center background=datasrc/centerbg.gif border=0>
  <tr>
    <td>
      <c:if test="${not empty FromSearchVetActionMessage}">
        <table width="95%" border="1" align="center" bordercolor="#FF9900">
          <tr bgcolor="#99FFFF">
            <th>编号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>专业</th>
            <th>电话</th>
            <th>地址</th>
            <th>简历</th>
          </tr>
          <c:forEach items="${FromSearchVetActionMessage}" var="VetObj">
            <tr align="center" valign="middle">
              <td>${VetObj.id}              </td>
              <td>${VetObj.vetName}              </td>
              <td>${VetObj.sex eq '0'? '男':'女'}              </td>
              <td>${VetObj.professionName}              </td>
              <td>${VetObj.telephone}              </td>
              <td>${VetObj.address}              </td>
              <td>${VetObj.resume}              </td>
            </tr>
          </c:forEach>
        </table>
      </c:if>
    </td>
  </tr>
</table>
<!-- 在这里结束加入动态内容 -->
<mytag:cauda/>
</BODY>
</HTML>

⌨️ 快捷键说明

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