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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import = "java.util.*"%>
  3. <%@ page import = "cn.js.fan.db.*"%>
  4. <%@ page import = "cn.js.fan.util.*"%>
  5. <%@ page import = "com.redmoon.oa.address.*"%>
  6. <html>
  7. <head>
  8. <title>通讯录</title>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  10. <link rel="stylesheet" href="../common.css" type="text/css">
  11. </head>
  12. <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="5">
  13. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  14. <%@ include file="../inc/inc.jsp"%>
  15. <%
  16. int id = ParamUtil.getInt(request, "id");
  17. AddressDb addr = new AddressDb();
  18. addr = addr.getAddressDb(id);
  19. int type = addr.getType();
  20. String mode = ParamUtil.get(request, "mode");
  21. if (mode.equals("show")) {
  22. }%>
  23. <table width="494" border="0" align="center" cellpadding="0" cellspacing="0">
  24.   <tr> 
  25.     <td height="23" class="right-title">     通 讯 录  </td>
  26.   </tr>
  27.   <tr> 
  28.     <td height="298" valign="top" background="../images/tab-b-back.gif"> 
  29.       <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  30.         <%
  31. String priv="read";
  32. if (!privilege.isUserPrivValid(request,priv))
  33. {
  34. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  35. return;
  36. }
  37. String person="",job="",tel="",mobile="",email="",address="",postalcode="",introduction="",business="";
  38. person = addr.getPerson();
  39. job = addr.getJob();
  40. tel = addr.getTel();
  41. mobile = addr.getMobile();
  42. email = addr.getEmail();
  43. address = addr.getAddress();
  44. postalcode = StrUtil.getNullString(addr.getPostalcode());
  45. if (postalcode.equals(""))
  46. postalcode = "&nbsp;";
  47. introduction = addr.getIntroduction();
  48. business = fchar.getNullStr(addr.getBusiness());
  49. if (business.equals(""))
  50. business = "&nbsp;";
  51. %>
  52.       <table width="90%" border="0" align="center">
  53.         <tr> 
  54.           <td height="5"></td>
  55.         </tr>
  56.       </table> 
  57.       <table width="95%" border="0" align="center" cellpadding="2" cellspacing="0" class="stable">
  58.         <tr> 
  59.           <td width="16%" height="21" align="center" bgcolor="#C4DAFF" class="stable">&nbsp;</td>
  60.           <td width="84%" height="21" bgcolor="#C4DAFF" class="stable">通讯录</td>
  61.         </tr>
  62.         <form name="form1" action="address_edit_do.jsp?id=<%=id%>" method="post" onSubmit="">
  63.           <tr> 
  64.             <td height="19" align="center" bgcolor="#eeeeee" class="stable">姓名</td>
  65.             <td height="19" class="stable"><%=person%></td>
  66.           </tr>
  67.           <tr> 
  68.             <td height="19" align="center" bgcolor="#eeeeee" class="stable">职务</td>
  69.             <td height="19" class="stable"><%=job%></td>
  70.           </tr>
  71.           <tr> 
  72.             <td height="19" align="center" bgcolor="#eeeeee" class="stable">电话</td>
  73.             <td height="19" class="stable"><%=tel%></td>
  74.           </tr>
  75.           <tr> 
  76.             <td height="19" align="center" bgcolor="#eeeeee" class="stable">手机</td>
  77.             <td height="19" class="stable"><%=mobile%></td>
  78.           </tr>
  79.           <tr> 
  80.             <td height="19" align="center" bgcolor="#eeeeee" class="stable">Email</td>
  81.             <td height="19" class="stable"><%=email%></td>
  82.           </tr>
  83.           <tr> 
  84.             <td height="19" align="center" bgcolor="#eeeeee" class="stable">地址</td>
  85.             <td height="19" class="stable"><%=address%></td>
  86.           </tr>
  87.           <tr>
  88.             <td height="19" align="center" bgcolor="#eeeeee" class="stable">单位</td>
  89.             <td height="19" class="stable"><%=business%></td>
  90.           </tr>
  91.           <tr> 
  92.             <td height="19" align="center" bgcolor="#eeeeee" class="stable">邮编</td>
  93.             <td height="19" class="stable"><%=postalcode%></td>
  94.           </tr>
  95.           <tr> 
  96.             <td width="16%" height="17" align="center" bgcolor="#eeeeee" class="stable">简介</td>
  97.             <td width="84%" height="17" class="stable"><%=introduction%> </td>
  98.           </tr>
  99.         </form>
  100.       </table></td>
  101.   </tr>
  102.   <tr> 
  103.     <td height="9"><img src="../images/tab-b-bot.gif" width="494" height="9"></td>
  104.   </tr>
  105. </table>
  106. </body>
  107. </html>