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

📄 findpeoplemessage.jsp

📁 教师办公管理系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.sql.*"%>
<%@ page import="to.model.People.*"%>
<%@ page import="to.model.Login.*"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK">
    <title>人员详细信息</title>
    <style type="text/css">
    table{font-size:13px}
    </style>
  </head>
  <body>
    <form action="EditSavePeopleAction.do" method="get">
      <table cellspacing="3" cellpadding="2" border="0" width="800" align="center">
        <tr>
          <td colspan="4"></td>
        </tr>
         <%
          loginItem li=(loginItem)session.getAttribute("user");
          if(li==null)
          {
            response.sendRedirect("OfficeLogin.jsp");
          }
        %>
        
        <tr>
          <td colspan="4" height="1">
            <hr/>
          </td>
        </tr>
        <tr bgcolor="#006699">
          <th colspan="4" align="center"><font color="White">人员详细信息</font></th>
        </tr>
        <tr>
          <th colspan="4" align="center" height="20"></th>
        </tr>
        <%
          PeopleItem pi=(PeopleItem)request.getAttribute("pi");
        %>
        <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">人员编号: 
          </td>
          <td width="328">
            <input type="text" name="PeopleID" value="<%=pi.getPeopleID()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
        <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">登录帐号: 
          </td>
          <td width="328">
            <input type="text" name="UserName" value="<%=pi.getUserName()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
        <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">姓&nbsp;&nbsp;&nbsp;&nbsp;名:
            
          </td>
          <td width="328">
            <input type="text" name="PeopleName" value="<%=pi.getPeopleName()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">性&nbsp;&nbsp;&nbsp;&nbsp;别:
            
          </td>
          <td width="328">
            <select name="PeopleSex" disabled>
              <%
                if(pi.getPeopleSex().equals("男"))
                {
                  %>
                    <option value="男">男</option>
                  <%
                }
                else
                {
                  %>
                    <option value="女">女</option>
                  <%
                }
              %>
            </select>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
       
        <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">民&nbsp;&nbsp;&nbsp;&nbsp;族:</td>
          <td width="328">
          <select name="Nation" disabled>
             <%
                ResultSet rs=null;
                PeopleBean pb=new PeopleBean();
                rs=pb.getAllNation();
                while(rs.next())
                {
                  int NationID=rs.getInt("NationID");
                  String NationName=rs.getString("NationName");
                   if(NationID==Integer.parseInt(pi.getNation().trim()))
                  {
                     %>
                        <option value="<%=NationID%>" selected="selected"><%=NationName%></option>
                      <%
                  }
                  else
                  {
                      %>
                        <option value="<%=NationID%>"><%=NationName%></option>
                      <%
                  }
                }
            %>
            </select>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">籍&nbsp;&nbsp;&nbsp;&nbsp;惯:
            
          </td>
          <td width="328">
            <input type="text" name="Addr" value="<%=pi.getAddr().trim()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">出生日期:
           
          </td>
          <td width="328">
            <input type="text" name="Birth" value="<%=pi.getBirth().trim()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">身份证号:
            
          </td>
          <td width="328">
            <input type="text" name="Certid" value="<%=pi.getCertid().trim()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">职&nbsp;&nbsp;&nbsp;&nbsp;称:
            
          </td>
          <td width="328">
            <input type="text" name="Post" value="<%=pi.getPost().trim()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">办公电话:
            
          </td>
          <td width="328">
            <input type="text" name="Officetel" value="<%=pi.getOfficetel().trim()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">手&nbsp;&nbsp;&nbsp;&nbsp;机:
            
          </td>
          <td width="328">
            <input type="text" name="Mobile" value="<%=pi.getMobile().trim()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">住宅电话:
          </td>
          <td width="328">
            <input type="text" name="Hometel" value="<%=pi.getHometel().trim()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">电子邮件:
            
          </td>
          <td width="328">
            <input type="text" name="Email" value="<%=pi.getEmail().trim()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">备&nbsp;&nbsp;&nbsp;&nbsp;注:
            
          </td>
          <td width="328">
            <textarea cols="19" rows="2" name="Descs" disabled><%=pi.getDescs().trim()%></textarea>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">所在学院:</td>
          <td width="328">
          <select name="CollegeID" disabled>
          <%
                ResultSet rsc=null;
                PeopleBean pbc=new PeopleBean();
                rsc=pbc.getAllCollege();
                while(rsc.next())
                {
                  int CollegeID=rsc.getInt("CollegeID");
                  String CollegeName=rsc.getString("CollegeName");
                  if(CollegeID==pi.getCollegeID())
                  {
                    %>
                      <option value="<%=CollegeID%>" selected="selected"><%=CollegeName%></option>
                    <%
                  }
                  else
                  {
                    %>
                      <option value="<%=CollegeID%>"><%=CollegeName%></option>
                    <%
                  }            
                }
            %>
            </select>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">所在科室: </td>
          <td width="328">
            <select name="DepartmentID" disabled>
            <%
                ResultSet rsd=null;
                PeopleBean pbd=new PeopleBean();
                rsd=pbd.getAllDeparement();
                while(rsd.next())
                {
                  int DepartmentID=rsd.getInt("DepartmentID");
                  String DepartmentName=rsd.getString("DepartmentName");
                  if(DepartmentID==pi.getDepartmentID())
                  {
                    %>
                      <option value="<%=DepartmentID%>" selected="selected"><%=DepartmentName%></option>
                    <%
                  }
                  else
                  {
                    %>
                      <option value="<%=DepartmentID%>"><%=DepartmentName%></option>
                    <%
                  }
                }
            %>
            </select>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">角&nbsp;&nbsp;&nbsp;&nbsp;色:</td>
          <td width="328">
            <select name="RoleID" disabled>
            <%
                ResultSet rsr=null;
                PeopleBean pbr=new PeopleBean();
                rsr=pbr.getAllRole();
                while(rsr.next())
                {
                  int RoleID=rsr.getInt("RoleID");
                  String RoleName=rsr.getString("RoleName");
                  if(RoleID==pi.getRoleID())
                  {
                    %>
                      <option value="<%=RoleID%>" selected="selected"><%=RoleName%></option>
                    <%
                  }
                  else
                  {
                    %>
                      <option value="<%=RoleID%>"><%=RoleName%></option>
                    <%
                  }
                }
            %>
            </select>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">所学专业:</td>
          <td width="328">
            <select name="SpecialityID" disabled>
            <%
                ResultSet rss=null;
                PeopleBean pbs=new PeopleBean();
                rss=pbs.getAllSpeciality();
                while(rss.next())
                {
                  int SpecialityID=rss.getInt("SpecialityID");
                  String SpecialityName=rss.getString("SpecialityName");
                  if(SpecialityID==pi.getSpecialityID())
                  {
                     %>
                        <option value="<%=SpecialityID%>" selected="selected"><%=SpecialityName%></option>
                      <%
                  }
                  else
                  {
                     %>
                        <option value="<%=SpecialityID%>"><%=SpecialityName%></option>
                      <%
                  }           
                }
            %>
            </select>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">学&nbsp;&nbsp;&nbsp;&nbsp;历:</td>
          <td width="328">
            <select name="EducationID" disabled>
            <%
                ResultSet rse=null;
                PeopleBean pbe=new PeopleBean();
                rse=pbe.getAllEducation();
                while(rse.next())
                {
                  int EducationID=rse.getInt("EducationID");
                  String EducationName=rse.getString("EducationName");
                  if(EducationID==pi.getEducationID())
                  {
                    %>
                      <option value="<%=EducationID%>" selected="selected"><%=EducationName%></option>
                    <%
                  }
                  else
                  {
                    %>
                      <option value="<%=EducationID%>"><%=EducationName%></option>
                    <%
                  }   
                }
            %>
            </select>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">政治面貌:</td>
          <td width="328">
            <select name="PoliticsID" disabled>
            <%
                ResultSet rsp=null;
                PeopleBean pbp=new PeopleBean();
                rsp=pbp.getAllPolitics();
                while(rsp.next())
                {
                  int PoliticsID=rsp.getInt("PoliticsID");
                  String PoliticsName=rsp.getString("PoliticsName");
                  if(PoliticsID==pi.getPoliticsID())
                  {
                     %>
                      <option value="<%=PoliticsID%>" selected="selected"><%=PoliticsName%></option>
                    <%
                  }
                  else
                  {
                     %>
                      <option value="<%=PoliticsID%>"><%=PoliticsName%></option>
                    <%
                  }
                }
            %>
            </select>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">毕业学校:

          </td>
          <td width="328">
            <input type="text" name="Fromschool" value="<%=pi.getFromschool()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
             <tr>
          <td width="165">&nbsp;</td>
          <td align="center" width="239">毕业时间:</td>
          <td width="328">
            <input type="text" name="Schooltime" value="<%=pi.getSchooltime().trim()%>" disabled/>
          </td>
          <td width="53">&nbsp;</td>
        </tr>
        <tr>
          <td width="165">&nbsp;</td>
          <td width="239">&nbsp;</td>
          <td width="328">&nbsp;
          </td>
          <td width="53">&nbsp;</td>
        </tr>
        <tr>
          <td width="165" colspan="4">&nbsp;</td>
        </tr>
      </table>
    </form>

  </body>
</html>

⌨️ 快捷键说明

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