main1.jsp
上传用户:sxwtmm
上传日期:2022-08-11
资源大小:2183k
文件大小:3k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
  2. <%@ page import="java.util.*,oa.data.*,oa.sys.*"%>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  6. <title>main</title>
  7. <link href="css/word.css" rel="stylesheet" type="text/css" />
  8. </head>
  9. <body> 
  10. <table width="736" height="166"  border="0"  cellpadding="0" cellspacing="0"> 
  11.   <tr> 
  12.     <td width="386" height="166"  valign="top"> <table width="386" border="0" align="left" cellpadding="0" cellspacing="0" > 
  13.         <tr> 
  14.           <td width="72" rowspan="8">&nbsp;</td> 
  15.           <td height="21" colspan="2">&nbsp;</td> 
  16.           <td width="72" rowspan="8">&nbsp;</td> 
  17.         </tr> 
  18.         <tr> 
  19.           <td width="109" height="27" align="center" class="top2">姓名</td> 
  20.           <td width="133" align="center" class="top2">部门</td> 
  21.         </tr> 
  22.         <% 
  23. Db db=new Db();
  24. Str str=new Str();
  25. Collection colle=(Collection)request.getAttribute("emsg");
  26. if(colle!=null){
  27. Iterator it=colle.iterator();
  28. while(it.hasNext()){
  29. Emex emex=(Emex)it.next();
  30. %>
  31.         <tr> 
  32.           <td height="27" align="center" class="top2"><%=db.IdtoName(emex.getEmid())%></td> 
  33.           <td align="center" class="top2"><%=db.IdtoDeName(emex.getDeid())%></td> 
  34.         </tr>
  35.         <%
  36. }
  37. }
  38. %>
  39.         <tr> 
  40.           <td colspan="2" align="center">&nbsp;</td> 
  41.         </tr> 
  42.     </table></td> 
  43.     <td width="350" valign="top"> 
  44. <table width="337"  cellpadding="0"  cellspacing="0" border="0"> 
  45.         <tr> 
  46.           <td width="40" rowspan="6">&nbsp;</td> 
  47.           <td height="17" colspan="2">&nbsp;</td> 
  48.           <td width="42" rowspan="6">&nbsp;</td> 
  49.         </tr> 
  50.         <%
  51. Collection colla=(Collection)request.getAttribute("amsg");
  52. if(colla!=null){
  53. Iterator it=colla.iterator();
  54. if(it.hasNext()){
  55. Affice affice=(Affice)it.next();
  56. %> 
  57.         <tr> 
  58.           <td height="20" colspan="2" align="center" class="top1"><%=affice.getTitle()%></td> 
  59.         </tr> 
  60.         <tr> 
  61.           <td height="21" colspan="2" valign="top" class="text">&nbsp;&nbsp;&nbsp;&nbsp;<%=affice.getContent()%></td> 
  62.         </tr> 
  63.         <tr> 
  64.           <td width="201" height="27" align="right" class="text">发&nbsp;布&nbsp;人:</td> 
  65.           <td width="109" align="center" class="text1"><%=db.IdtoName(affice.getEmid())%></td> 
  66.         </tr> 
  67.         <tr> 
  68.           <td height="27" align="right" class="text">发布时间: </td> 
  69.           <td height="27" align="center" valign="middle" class="text1"> <%
  70. out.print(affice.getTime().substring(0,11));
  71. }
  72. }
  73. %> </td> 
  74.         </tr> 
  75.         <tr> 
  76.           <td colspan="2">&nbsp;</td> 
  77.         </tr> 
  78.     </table></td> 
  79.   </tr> 
  80. </table> 
  81. </body>
  82. </html>