address_list.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:6k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import = "cn.js.fan.util.*"%>
  3. <%@ page import = "com.redmoon.oa.address.*"%>
  4. <html>
  5. <head>
  6. <title>编辑通讯录</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  8. <link rel="stylesheet" href="../common.css" type="text/css">
  9. </head>
  10. <body bgcolor="#FFFFFF" text="#000000" topmargin="5">
  11. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  12. <%@ include file="../inc/inc.jsp"%>
  13. <%
  14. String strtype = ParamUtil.get(request, "type");
  15. int type = AddressDb.TYPE_USER;
  16. if (!strtype.equals(""))
  17. type = Integer.parseInt(strtype);
  18. %>
  19. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  20. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tableframe">
  21.   <tr> 
  22.     <td height="23" class="right-title"> 通 讯 录 </td>
  23.   </tr>
  24.   <tr> 
  25.     <td valign="top" background="../images/tab-b-back.gif">
  26.         <%
  27. String priv="read";
  28. if (!privilege.isUserPrivValid(request,priv))
  29. {
  30. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  31. return;
  32. }
  33. int id = ParamUtil.getInt(request, "id");
  34. AddressDb addr = new AddressDb();
  35. addr = addr.getAddressDb(id);
  36. String person="",job="",tel="",mobile="",email="",address="",postalcode="",introduction="",business="";
  37. person = addr.getPerson();
  38. job = addr.getJob();
  39. tel = addr.getTel();
  40. mobile = addr.getMobile();
  41. email = addr.getEmail();
  42. address = addr.getAddress();
  43. postalcode = StrUtil.getNullString(addr.getPostalcode());
  44. if (postalcode.equals(""))
  45. postalcode = "&nbsp;";
  46. introduction = addr.getIntroduction();
  47. if (business.equals(""))
  48. business = "&nbsp;";
  49. %>
  50.         <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#999999">
  51.         <tr> 
  52.           <td height="21" colspan="2" align="left" bgcolor="#C4DAFF"><strong>个人信息</strong></td>
  53.           </tr>
  54.         <form name="form1" action="address_edit_do.jsp?id=<%=id%>" method="post" onSubmit="">
  55.           <tr> 
  56.             <td width="16%" height="19" align="center" bgcolor="#EEEEEE">姓名</td>
  57.             <td width="84%" height="19" bgcolor="#EEEEEE"><%=person%></td>
  58.           </tr>
  59.           <tr> 
  60.             <td height="19" align="center" bgcolor="#EEEEEE">昵&nbsp;&nbsp;称</td>
  61.             <td height="19" bgcolor="#EEEEEE"> <%=addr.getNickname()%></td>
  62.           </tr>
  63.           <tr>
  64.             <td height="19" align="center" bgcolor="#EEEEEE">部门 </td>
  65.             <td height="19" bgcolor="#EEEEEE"><%=addr.getDepartment()%></td>
  66.           </tr>
  67.           <tr>
  68.             <td height="19" align="center" bgcolor="#EEEEEE">科室</td>
  69.             <td height="19" bgcolor="#EEEEEE"><%=addr.getCompany()%></td>
  70.           </tr>
  71.   <tr bgcolor="#EEEEEE">
  72.             <td height="19" align="center">职&nbsp;&nbsp;务</td>
  73.             <td height="19"><%=addr.getJob()%></td>
  74.           </tr>
  75.           <tr>
  76.             <td height="19" align="center" bgcolor="#EEEEEE">办公室电话</td>
  77.             <td height="19" bgcolor="#EEEEEE"><%=addr.getOperationPhone()%></td>
  78.           </tr>
  79.   <tr> 
  80.             <td height="19" align="center" bgcolor="#EEEEEE">手机</td>
  81.             <td height="19" bgcolor="#EEEEEE"><%=mobile%></td>
  82.           </tr>
  83.           <tr>
  84.             <td height="19" align="center" bgcolor="#EEEEEE">小灵通</td>
  85.             <td height="19" bgcolor="#EEEEEE"><%=addr.getBeepPager()%></td>
  86.           </tr>
  87.           <tr> 
  88.             <td height="19" align="center" bgcolor="#EEEEEE">Email</td>
  89.             <td height="19" bgcolor="#EEEEEE"><%=addr.getEmail()%></td>
  90.           </tr>
  91.           <tr bgcolor="#EEEEEE">
  92.             <td height="19" align="center">住宅所在</td>
  93.             <td height="19"><%=addr.getStreet()%></td>
  94.           </tr>
  95.           <tr>
  96.             <td height="19" align="center" bgcolor="#EEEEEE">住宅电话</td>
  97.             <td height="19" bgcolor="#EEEEEE"><%=addr.getTel()%></td>
  98.           </tr>
  99.           <tr bgcolor="#EEEEEE">
  100.             <td height="19" align="center" bgcolor="#EEEEEE">住宅传真</td>
  101.             <td height="19" bgcolor="#EEEEEE"><%=addr.getFax()%></td>
  102.           </tr>
  103.           <tr bgcolor="#EEEEEE">
  104.             <td height="19" align="center" bgcolor="#EEEEEE">QQ</td>
  105.             <td height="19" bgcolor="#EEEEEE"><%=addr.getQQ()%></td>
  106.           </tr>
  107.           <tr bgcolor="#EEEEEE">
  108.             <td height="19" align="center" bgcolor="#EEEEEE">MSN</td>
  109.             <td height="19" bgcolor="#EEEEEE"><%=addr.getMSN()%></td>
  110.           </tr>
  111.           <tr bgcolor="#EEEEEE">
  112.             <td height="19" align="center" bgcolor="#EEEEEE">网页</td>
  113.             <td height="19" bgcolor="#EEEEEE"><%=addr.getWeb()%></td>
  114.           </tr>
  115.           <tr bgcolor="#EEEEEE">
  116.             <td height="19" align="center">邮政编码</td>
  117.             <td height="19"><%=addr.getCompanyPostcode()%></td>
  118.           </tr>
  119.           <tr bgcolor="#EEEEEE">
  120.             <td height="19" align="center">业务传真</td>
  121.             <td height="19"><%=addr.getOperationFax()%></td>
  122.           </tr>
  123.           <tr bgcolor="#EEEEEE">
  124.             <td height="19" align="center">地&nbsp;&nbsp;址</td>
  125.             <td height="19"><%=addr.getAddress()%></td>
  126.           </tr>
  127.           <tr bgcolor="#EEEEEE">
  128.             <td height="17" align="center">附注</td>
  129.             <td height="17"><%=addr.getIntroduction()%> </td>
  130.           </tr>
  131.         </form>
  132.       </table></td>
  133.   </tr>
  134. </table>
  135. </body>
  136. </html>