?? show.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> </td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="40"> </td> <td width="910"><table width="100%" height="20" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="20" class="title_s"> 您已登陸: <%= 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"> </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">性 別:</div></td> <td height="20"> <div align="left"> <% if(db.getAttributeStr("people.sex").equals("1")){ %> 男 <% }else if(db.getAttributeStr("people.sex").equals("0")){ %> 女 <% } %></div></td></tr> <tr> <td height="20" class="title_s"><div align="center">民 族:</div></td> <td height="20"> <div align="left"> <%= db.getAttributeStr("people.nation")%> </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")%> </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")%> </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")%> </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")%> </div></td></tr> <tr> <td height="20" class="title_s"><div align="center">籍 貫:</div></td> <td height="20"> <div align="left"> <%= db.getAttributeStr("people.addr")%> </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")%> </div></td></tr> <tr> <td height="20" class="title_s"><div align="center">學 歷:</div></td> <td height="20"> <div align="left"> <%= db.getAttributeStr("people.education")%> </div></td></tr> <tr> <td height="20" class="title_s"><div align="center">職 稱:</div></td> <td height="20"> <div align="left"> <%= db.getAttributeStr("people.post")%> </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")%> </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")%> </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")%> </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")%> </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") %> </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")%> </div></td></tr> <tr> <td height="20" class="title_s"><div align="center">備 注:</div></td> <td height="20"> <div align="left"> <%= db.getAttributeStr("people.descs")%> </div></td></tr> </table></td> <td width="50"> </td> </tr> </table></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -