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

📄 show.jsp

📁 教师管理系统是在学校局域网架设的B/S结构的办公平台。系统有四个模块:系统设置
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><jsp:useBean id='db' scope='request' class='Base.DataBean.DefaultDataBean' /><jsp:useBean id='dealstring' scope='request' class='com.util.DealString' /><html><head><link rel=stylesheet href="../index.css" type="text/css"><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>用户配置</title></head><body><%String orients=null;String[] ids=dealstring.splitStr(db.getAttributeStr("people.orients"),',');for(int i=0;i<ids.length;i++){for(int j=0;j<db.getCount("orient");j++){if(db.getAttributeStr("orient.id",j).equals(ids[i])){if(orients!=null){orients+=db.getAttributeStr("orient.name",j)+" ";}else{orients=db.getAttributeStr("orient.name",j)+" ";}}}}%><%String projects=null;ids=dealstring.splitStr(db.getAttributeStr("people.Projects"),',');for(int i=0;i<ids.length;i++){for(int j=0;j<db.getCount("project");j++){if(db.getAttributeStr("project.id",j).equals(ids[i])){if(projects!=null){projects+=db.getAttributeStr("project.name",j)+" ";}else{projects=db.getAttributeStr("project.name",j)+" ";}}}}%><%String tasks=null;ids=dealstring.splitStr(db.getAttributeStr("people.Tasks"),',');for(int i=0;i<ids.length;i++){for(int j=0;j<db.getCount("task");j++){if(db.getAttributeStr("task.id",j).equals(ids[i])){if(tasks!=null){tasks+=db.getAttributeStr("task.name",j)+" ";}else{tasks=db.getAttributeStr("task.name",j)+" ";}}}}%><table width="100%" height="20"  border="0" cellpadding="0" cellspacing="0">    <tr>      <td>&nbsp;</td>    </tr>  </table>  <table width="100%"  border="0" cellpadding="0" cellspacing="0">    <tr>      <td width="40">&nbsp;</td>      <td width="910"><table width="100%" height="20"  border="0" cellpadding="0" cellspacing="0">          <tr>            <td height="20" class="title_s">&nbsp;您已登陆: <%= session.getAttribute("NAME")%> </td>          </tr>          <tr>            <td height="5" bgcolor="#A3BED9"></td>          </tr>          <tr>            <td height="1" bgcolor="#0A1870"></td>          </tr>      </table></td>    </tr>  </table>  <table width="100%"  border="0" cellpadding="0" cellspacing="0">    <tr>      <td width="40">&nbsp;</td>      <td width="910">        <table class="main_w" width="100%"  border="1" cellpadding="4" cellspacing="0" bordercolor="FFFFFF" bgcolor="E7F2FF">          <tr bgcolor="#FFFFFF" class="title_s">            <td  colspan="2"><div align="center">用户资料查看</div>                </td>          </tr>          <tr class="title_s">            <td width="45%" height="20"><div align="center" class="title_s">                用户姓名:            </div></td>            <td width="55%" height="20" class="main_w">              <div align="left">                <%= db.getAttributeStr("people.name")%>            </div></td>          </tr>          <tr>            <td height="20" class="title_s"><div align="center" class="title_s">工作证号:</div></td>            <td height="20"><div align="left" class="title_s">                  <%= db.getAttributeStr("people.workid")%>            </div></td>          </tr>          <tr>            <td height="20" class="title_s"><div align="center">用户角色:</div></td>            <td height="20">			<%			for(int x=0;x<db.getCount("role");x++){			if(db.getAttributeStr("role.id",x).equals(db.getAttributeStr("people.role"))){			%>			<%= db.getAttributeStr("role.name",x)%>			<%			}			}			%>			</td>          </tr>          <tr>            <td height="20" class="title_s"><div align="center">性 &nbsp;&nbsp;&nbsp;别:</div></td>            <td height="20">              <div align="left">					<%			  if(db.getAttributeStr("people.sex").equals("1")){			  %>					男&nbsp;                    <%			  }else if(db.getAttributeStr("people.sex").equals("0")){			  %>                    女 &nbsp;                    <%			  }			  %></div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">民&nbsp;&nbsp;&nbsp; 族:</div></td>            <td height="20">              <div align="left">                <%= db.getAttributeStr("people.nation")%>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">政治面貌:</div></td>            <td height="20">              <div align="left">                <%			  String a=db.getAttributeStr("people.politics");			  if(a.equals("1")){			  %>                中共党员                <%			  }else if(a.equals("2")){			  %>                共青团员                <%			  }else if(a.equals("3")){			  %>                民族党派                <%			  }else if(a.equals("4")){			  %>                无党派人士                <%			  }else if(a.equals("5")){			  %>                群众                <%			  }			  %>              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">身份证号:</div></td>            <td height="20">              <div align="left">                <%= db.getAttributeStr("people.certid")%>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">毕业学校:</div></td>            <td height="20">              <div align="left">                <%= db.getAttributeStr("people.fromschool")%>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">毕业时间:</div></td>            <td height="20">              <div align="left">                <%= db.getAttributeStr("people.schooltime")%>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">出生日期:</div></td>            <td height="20">              <div align="left">                <%= db.getAttributeStr("people.birth")%>&nbsp;                </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">籍&nbsp; &nbsp;&nbsp;贯:</div></td>            <td height="20">              <div align="left">                <%= db.getAttributeStr("people.addr")%>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">所学专业:</div></td>            <td height="20">              <div align="left">                <%= db.getAttributeStr("people.speciality")%>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">学&nbsp;&nbsp;&nbsp;历:</div></td>            <td height="20">              <div align="left">                <%= db.getAttributeStr("people.education")%>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">职&nbsp;&nbsp;&nbsp;称:</div></td>            <td height="20">              <div align="left">                <%= db.getAttributeStr("people.post")%>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">办公电话:</div></td>            <td height="20">              <div align="left">               <%= db.getAttributeStr("people.officetel")%>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">移动电话:</div></td>            <td height="20">              <div align="left">               <%= db.getAttributeStr("people.mobile")%>&nbsp;</div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">家庭电话:</div></td>            <td height="20">              <div align="left">               <%= db.getAttributeStr("people.hometel")%>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">电子邮件:</div></td>            <td height="20">              <div align="left">                <%= db.getAttributeStr("people.email")%>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">所在学院:</div></td>            <td height="20">              <div align="left">                 <%= db.getAttributeStr("mycollege.name") %>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">所在系所:</div></td>            <td height="20">              <div align="left">                <%= db.getAttributeStr("mydepartment.name")%>              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">获奖情况:</div></td>            <td height="20">              <div align="left">                  <%= db.getAttributeStr("people.prize")%>&nbsp;              </div></td></tr>          <tr>            <td height="20" class="title_s"><div align="center">备&nbsp;&nbsp;&nbsp;注:</div></td>            <td height="20">              <div align="left">                  <%= db.getAttributeStr("people.descs")%>&nbsp;              </div></td></tr>      </table></td>      <td width="50">&nbsp;</td>    </tr>  </table></body></html>

⌨️ 快捷键说明

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