home.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:19k
源码类别:

OA系统

开发平台:

Java

  1. <%@page contentType="text/html; charset=gb2312"%>
  2. <%@page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*,java.text.*"%>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/>
  4. <%Session m_session = new Session(session);%>
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  8. <meta http-equiv="pragma" content="no-cache">
  9. <meta http-equiv="REFRESH" content="300;URL=home.jsp">
  10. <title>home</title>
  11. <link href="css/txt.jsp" rel="stylesheet" type="text/css">
  12. <script language="JavaScript" type="text/css">
  13. setTimeout("self.location.reload();",300000);
  14. </script></head>
  15. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0" scroll=no>
  16. <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#D4D0C8" style="width:100%;height:100%">
  17.   <tr>
  18.     <td height="2" bgcolor="#D4D0C8" valign="top" colspan="4">
  19.       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  20.         <tr>
  21.           <td background="images/index2-4.gif" style="height:2px"><img src="images/index2-4.gif" width="1" height="2" alt=""></td>
  22.         </tr>
  23.       </table>
  24.     </td>
  25.   </tr>
  26.   <tr>
  27.     <td bgcolor="#D4D0C8" width="6" background="images/index1-4.gif" rowspan="14">    </td>
  28.     <td bgcolor="#D4D0C8" width="6" height="15">    </td>
  29.     <td bgcolor="#D4D0C8">    </td>
  30.     <td bgcolor="#D4D0C8" width="6">    </td>
  31.   </tr>
  32.   <tr>
  33.     <td bgcolor="#D4D0C8" width="6" height="125">    </td>
  34.     <td bgcolor="#D4D0C8">
  35.       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  36.         <tr>
  37.           <td background="images/index2-4.gif" style="height:2px"><img src="images/index2-4.gif" width="1" height="2" alt=""></td>
  38.         </tr>
  39.       </table>
  40.       <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  41.         <tr>
  42.           <td height="23" bgcolor="#163D96" width="30%">
  43.             <table border="0" cellpadding="0" cellspacing="0">
  44.               <tr>
  45.                 <td width="30" height="20" align="center">
  46.                   <img src="images/naniu3.gif" width="14" height="11" alt="">
  47.                 </td>
  48.                 <td>
  49.                   <font color="#FFFFFF">短消息</font>
  50.                 </td>
  51.               </tr>
  52.             </table>
  53.           </td>
  54.           <td width="2">
  55.             <img src="images/naniu8.gif" width="2" height="22" alt="">
  56.           </td>
  57.           <td bgcolor="#3456A4" width="30%">
  58.             <table border="0" cellpadding="0" cellspacing="0">
  59.               <tr>
  60.                 <td width="30" height="20" align="center">
  61.                   <img src="images/naniu1.gif" width="14" height="15" alt="">
  62.                 </td>
  63.                 <td>
  64.                   <font color="#FFFFFF">新闻公告</font>
  65.                 </td>
  66.               </tr>
  67.             </table>
  68.           </td>
  69.           <td width="2">
  70.             <img src="images/naniu8.gif" width="2" height="22" alt="">
  71.           </td>
  72.           <td bgcolor="#5A76B5">
  73.             <table border="0" cellpadding="0" cellspacing="0">
  74.               <tr>
  75.                 <td width="30" height="20" align="center">
  76.                   <img src="images/naniu5.gif" width="16" height="15" alt="">
  77.                 </td>
  78.                 <td>
  79.                   <font color="#FFFFFF">待办事宜</font>
  80.                 </td>
  81.               </tr>
  82.             </table>
  83.           </td>
  84.         </tr>
  85.         <tr valign="top">
  86.           <td height="120" width="30%">
  87.             <div class="DataList">
  88.               <table width="100%" border="0" cellpadding="4" cellspacing="4" bgcolor="#FFFFFF">
  89.               <%
  90.                 int iUserID = m_session.GetInt("UserID");
  91.                 int iPageSize = 6;
  92.                 int iSysDirID = Integer.parseInt(SystemParament.getParament("newssysdirid"));
  93.                 Vector vtOnlineMsg = OnlineMessage.getNewMessage(iUserID);
  94.                 for (int i = 0; i < vtOnlineMsg.size(); i++) {
  95.                   String strID = ((Vector) vtOnlineMsg.get(i)).get(0).toString();
  96.                   String strMsgTitle = ((Vector) vtOnlineMsg.get(i)).get(1).toString();
  97.                   if (strMsgTitle.length() < 9) {
  98.                     out.print("<tr><td align="left" nowrap><img src="images/index2-2.gif" width="15" height="4"><a title="" + strMsgTitle + "" href="PersonalSpace/ShowMsg.jsp?ID=" + strID + "" target="_blank"><font color="#0A0A0A">" + strMsgTitle + "</font></a>");
  99.                   }
  100.                   else {
  101.                     out.print("<tr><td align="left" nowrap><img src="images/index2-2.gif" width="15" height="4"><a title="" + strMsgTitle + "" href="PersonalSpace/ShowMsg.jsp?ID=" + strID + "" target="_blank"><font color="#0A0A0A">" + strMsgTitle.substring(0, 8) + "...</font></a>");
  102.                   }
  103.                   out.println("(" + UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector) vtOnlineMsg.get(i)).get(4).toString())) + "," + StringNew.GetDateString(((Vector) vtOnlineMsg.get(i)).get(2).toString(), "MM.dd") + ")</td></tr>");
  104.                 }
  105.                 if (vtOnlineMsg.size() < 1) {
  106.                   out.println("<tr><td align="left"><img src="images/index2-2.gif" width="15" height="4">当前没有新的短消息!</td></tr>");
  107.                 }
  108.               %>
  109.               </table>
  110.             </div>
  111.           </td>
  112.           <td background="images/naniu8.gif">
  113.             <img src="images/naniu8.gif" width="2" height="22" alt="">
  114.           </td>
  115.           <td height="120" width="30%">
  116.             <div class="DataList">
  117.               <table width="100%" border="0" cellpadding="4" cellspacing="4">
  118.               <%
  119.                 iPageSize = 6;
  120.                 iSysDirID = Integer.parseInt(SystemParament.getParament("newssysdirid"));
  121.                 int iNewsSysDirID = iSysDirID;
  122.                 Vector vtNews = ArticleManager.getRecordBySysDirID(iSysDirID);
  123.                 for (int i = 0; i < vtNews.size() && i < iPageSize; i++) {
  124.                   String strID = ((Vector) vtNews.get(i)).get(0).toString();
  125.                   String strNewsTitle = ((Vector) vtNews.get(i)).get(1).toString();
  126.                   if (strNewsTitle.length() < 10) {
  127.                     out.print("<tr><td align="left" nowrap><img src="images/index2-2.gif" width="15" height="4"><a title="" + strNewsTitle + "" href="PublicInfo/ShowArticle.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + "" target="_blank"><font color="#0A0A0A">" + strNewsTitle + "</font></a>");
  128.                   }
  129.                   else {
  130.                     out.print("<tr><td align="left" nowrap><img src="images/index2-2.gif" width="15" height="4"><a title="" + strNewsTitle + "" href="PublicInfo/ShowArticle.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + "" target="_blank"><font color="#0A0A0A">" + strNewsTitle.substring(0, 9) + "</font></a>");
  131.                   }
  132.                   if (((Vector) vtNews.get(i)).get(10).toString().length() > 3)
  133.                     out.println("(图)");
  134.                   out.println("(" + StringNew.GetDateString(((Vector) vtNews.get(i)).get(5).toString(), "MM.dd") + ")</td></tr>");
  135.                 }
  136.                 if (vtNews.size() < 1) {
  137.                   out.println("<tr><td align="left"><img src="images/index2-2.gif" width="15" height="4">当前没有公司新闻!</td></tr>");
  138.                 }
  139.               %>
  140.               </table>
  141.             </div>
  142.           </td>
  143.           <td background="images/naniu8.gif">
  144.             <img src="images/naniu8.gif" width="2" height="22" alt="">
  145.           </td>
  146.           <td height="120">
  147.             <div class="DataList">
  148.               <table width="100%" border="0" cellpadding="4" cellspacing="4">
  149.               <%
  150.                 iSysDirID = Integer.parseInt(SystemParament.getParament("documentsysdirid"));
  151.                 int iDocSysDirID = iSysDirID;
  152.                 Vector vt = DocumentManagerPlus.getRecordBySearchAll("", "", "", "", "", "", "", iUserID + "", iUserID + "", "a.ID", "True");
  153.                 for (int i = 0; i < vt.size(); i++) {
  154.                   String strID = ((Vector) vt.get(i)).get(0).toString();
  155.                   out.println("<tr>");
  156.                   out.println("<td align="right" valign="middle"><img src="../images/index2-1.gif"></td>");
  157.                   out.println("<td align="left" valign="middle" title="公文名称:" + ((Vector) vt.get(i)).get(1).toString() + "n生成时间:" + StringNew.GetDateString(((Vector) vt.get(i)).get(3).toString(), "yyyy年MM月dd日 HH时mm分") + "n起草用户:" + ((Vector) vt.get(i)).get(11).toString() + "" ><a href="Document/ShowDocument.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + "">" + ((Vector) vt.get(i)).get(1).toString() + "</a>&nbsp;</td>");
  158.                   if (((Vector) vt.get(i)).get(14).toString().equalsIgnoreCase("S")) {
  159.                     if (((Vector) vt.get(i)).get(5).toString().equalsIgnoreCase(iUserID + "")) {
  160.                       out.println("<td align="center" valign="middle" nowrap><a href="Document/DocumentProcess.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + ""><strong>处 理</strong></a></td>");
  161.                     }
  162.                     else {
  163.                       out.println("<td align="center" valign="middle" nowrap>&nbsp</td>");
  164.                     }
  165.                   }
  166.                   else {
  167.                     if (("," + ((Vector) vt.get(i)).get(15).toString() + ",").indexOf("," + iUserID + ",") >= 0) {
  168.                       out.println("<td align="center" valign="middle" nowrap><a href="Document/DocumentProcess.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + ""><strong>处 理</strong></a></td>");
  169.                     }
  170.                     else {
  171.                       out.println("<td align="center" valign="middle" nowrap>&nbsp</td>");
  172.                     }
  173.                   }
  174.                   out.println("</tr>");
  175.                 }
  176.               %>
  177.               </table>
  178.             </div>
  179.           </td>
  180.           <td background="images/naniu8.gif">
  181.             <img src="images/naniu8.gif" width="2" height="22" alt="">
  182.           </td>
  183.         </tr>
  184.         <tr>
  185.           <td>
  186.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  187.               <tr>
  188.                 <td height="25" align="right" valign="top">
  189.                   <a href="PersonalSpace/SendMessage.jsp" title="撰写短信息">
  190.                     <font color="blue">
  191.                       <u>撰写</u>
  192.                     </font>
  193.                   </a>
  194.                   &nbsp;
  195.                   <a href="/PersonalSpace/OnlineMsgList.jsp?MsgKind=2" title="已收短信息列表">
  196.                     <font color="blue">
  197.                       <u>已收</u>
  198.                     </font>
  199.                   </a>
  200.                   &nbsp;
  201.                   <a href="/PersonalSpace/OnlineMsgList.jsp?MsgKind=1" title="已发短信息列表">
  202.                     <font color="blue">
  203.                       <u>已发</u>
  204.                     </font>
  205.                   </a>
  206.                 </td>
  207.               </tr>
  208.             </table>
  209.           </td>
  210.           <td background="images/naniu8.gif">
  211.             <img src="images/naniu8.gif" width="2" height="22" alt="">
  212.           </td>
  213.           <td>
  214.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  215.               <tr>
  216.                 <td height="25" align="right" valign="top">                  &nbsp;
  217.                   <a href="/PublicInfo/ArticleList.jsp?SysDirID=<%=iNewsSysDirID%>" title="更多新闻...">
  218.                     <font color="blue">
  219.                       <u>更多...</u>
  220.                     </font>
  221.                   </a>
  222.                 </td>
  223.               </tr>
  224.             </table>
  225.           </td>
  226.           <td background="images/naniu8.gif">
  227.             <img src="images/naniu8.gif" width="2" height="22" alt="">
  228.           </td>
  229.           <td>
  230.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  231.               <tr>
  232.                 <td height="25" align="right" valign="top">                  &nbsp;
  233.                   <a href="/Document/DraftDocument.jsp?SysDirID=<%=iDocSysDirID%>" title="起草公文...">
  234.                     <font color="blue">
  235.                       <u>起草</u>
  236.                     </font>
  237.                   </a>
  238.                   &nbsp;
  239.                   <a href="/Document/DocumentList.jsp?SysDirID=<%=iDocSysDirID%>" title="下属公文...">
  240.                     <font color="blue">
  241.                       <u>下属</u>
  242.                     </font>
  243.                   </a>
  244.                   &nbsp;
  245.                   <a href="/Document/DocumentProcessManage.jsp?SysDirID=<%=iDocSysDirID%>" title="更多公文...">
  246.                     <font color="blue">
  247.                       <u>更多...</u>
  248.                     </font>
  249.                   </a>
  250.                 </td>
  251.               </tr>
  252.             </table>
  253.           </td>
  254.           <td background="images/naniu8.gif">
  255.             <img src="images/naniu8.gif" width="2" height="22" alt="">
  256.           </td>
  257.         </tr>
  258.       </table>
  259.     </td>
  260.     <td bgcolor="#D4D0C8" width="6">    </td>
  261.   </tr>
  262.   <tr>
  263.     <td bgcolor="#D4D0C8" width="6" height="8">    </td>
  264.     <td bgcolor="#D4D0C8" align="center" valign="middle">
  265.       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  266.         <tr>
  267.           <td background="images/index2-4.gif" style="height:2px"><img src="images/index2-4.gif" width="1" height="2" alt=""></td>
  268.         </tr>
  269.       </table>
  270.     </td>
  271.     <td bgcolor="#D4D0C8" width="6">    </td>
  272.   </tr>
  273.   <tr>
  274.     <td bgcolor="#D4D0C8" width="6" height="25">    </td>
  275.     <td bgcolor="#D4D0C8" align="left">
  276.       <strong>功能导航</strong>
  277.     </td>
  278.     <td bgcolor="#D4D0C8" width="6">    </td>
  279.   </tr>
  280.   <tr>
  281.     <td bgcolor="#D4D0C8" width="6" height="2">    </td>
  282.     <td bgcolor="#D4D0C8" align="center" valign="middle">
  283.       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  284.         <tr>
  285.           <td background="images/index2-4.gif" style="height:2px"><img src="images/index2-4.gif" width="1" height="2" alt=""></td>
  286.         </tr>
  287.       </table>
  288.     </td>
  289.     <td bgcolor="#D4D0C8" width="6">    </td>
  290.   </tr>
  291.   <tr>
  292.     <td bgcolor="#D4D0C8" width="6">    </td>
  293.     <td bgcolor="#D4D0C8" align="center" valign="top">
  294.       <div class="DataList">
  295.         <table width="100%" border="0" cellpadding="1" cellspacing="0" bordercolorlight="#0a0a0a" bordercolordark="#ffffff" background="images/homeback.gif" bgcolor="#FFFFFF" style="height:98%;">
  296.           <tr>
  297.             <td align="center" valign="middle" height="28">&nbsp;</td>
  298.             <td align="center" valign="middle">&nbsp;</td>
  299.             <td align="center" valign="middle">&nbsp;</td>
  300.             <td align="center" valign="middle">&nbsp;</td>
  301.             <td align="center" valign="middle">&nbsp;</td>
  302.           </tr>
  303.           <tr>
  304.             <td align="center" valign="middle" height="28">
  305.               <a href="/PersonalSpace/CalendarPlansManage.jsp" title="日常办公">
  306.                 <img src="images/homelist1.gif" width="68" height="59" alt="日常办公" border="0">
  307.               </a>
  308.             </td>
  309.             <td align="center" valign="middle">
  310.               <a href="/PersonalSpace/SendMessage.jsp" title="个人空间">
  311.                 <img src="images/homelist2.gif" width="68" height="59" alt="个人空间" border="0">
  312.               </a>
  313.             </td>
  314.             <td align="center" valign="middle">
  315.               <a href="/PublicInfo/ArticleList.jsp?SysDirID=<%=iNewsSysDirID%>" title="信息中心">
  316.                 <img src="images/homelist3.gif" width="68" height="59" alt="信息中心" border="0">
  317.               </a>
  318.             </td>
  319.             <td align="center" valign="middle">
  320.               <a href="/Document/DocumentProcessManage.jsp?SysDirID=<%=iDocSysDirID%>" title="公文管理">
  321.                 <img src="images/homelist4.gif" width="68" height="59" alt="公文管理" border="0">
  322.               </a>
  323.             </td>
  324.             <td align="center" valign="middle">
  325.               <a href="/PublicInfo/BoardroomApplyManage.jsp" title="公司事务">
  326.                 <img src="images/homelist5.gif" width="68" height="59" alt="公司事务" border="0">
  327.               </a>
  328.             </td>
  329.           </tr>
  330.           <tr>
  331.             <td align="center" valign="middle" height="28">
  332.               <a href="/PersonalSpace/CalendarPlansManage.jsp" title="日常办公">日常办公</a>
  333.             </td>
  334.             <td align="center" valign="middle">
  335.               <a href="/PersonalSpace/SendMessage.jsp" title="个人空间">个人空间</a>
  336.             </td>
  337.             <td align="center" valign="middle">
  338.               <a href="/PublicInfo/ArticleList.jsp?SysDirID=<%=iNewsSysDirID%>" title="信息中心">信息中心</a>
  339.             </td>
  340.             <td align="center" valign="middle">
  341.               <a href="/Document/DocumentProcessManage.jsp?SysDirID=<%=iDocSysDirID%>" title="公文管理">公文管理</a>
  342.             </td>
  343.             <td align="center" valign="middle">
  344.               <a href="/PublicInfo/BoardroomApplyManage.jsp" title="公司事务">公司事务</a>
  345.             </td>
  346.           </tr>
  347.           <tr>
  348.             <td align="center" valign="middle" height="28">
  349.               <a href="/Operation/SignIn.jsp?AutoSign=1" title="考勤签到">
  350.                 <img src="images/homelist7.gif" width="68" height="59" alt="考勤签到" border="0">
  351.               </a>
  352.             </td>
  353.             <td align="center" valign="middle">
  354.               <a href="/PersonalSpace/AddressListManage.jsp" title="名片管理">
  355.                 <img src="images/homelist6.gif" width="68" height="59" alt="名片管理" border="0">
  356.               </a>
  357.             </td>
  358.             <td align="center" valign="middle">
  359.               <img src="images/homelist8.gif" width="68" height="59" alt="">
  360.             </td>
  361.             <td align="center" valign="middle">
  362.               <img src="images/homelist9.gif" width="68" height="59" alt="">
  363.             </td>
  364.             <td align="center" valign="middle">&nbsp;</td>
  365.           </tr>
  366.           <tr>
  367.             <td align="center" valign="middle" height="28">
  368.               <a href="/Operation/SignIn.jsp?AutoSign=1" title="考勤签到">考勤签到</a>
  369.             </td>
  370.             <td align="center" valign="middle">
  371.               <a href="/PersonalSpace/AddressListManage.jsp" title="名片管理">名片管理</a>
  372.             </td>
  373.             <td align="center" valign="middle">资产管理</td>
  374.             <td align="center" valign="middle">系统维护</td>
  375.             <td align="center" valign="middle">&nbsp;</td>
  376.           </tr>
  377.           <tr>
  378.             <td align="center" valign="middle">&nbsp;</td>
  379.             <td align="center" valign="middle">&nbsp;</td>
  380.             <td align="center" valign="middle">&nbsp;</td>
  381.             <td align="center" valign="middle">&nbsp;</td>
  382.             <td align="center" valign="middle">&nbsp;</td>
  383.           </tr>
  384.         </table>
  385.       </div>
  386.     </td>
  387.     <td bgcolor="#D4D0C8" width="6">    </td>
  388.   </tr>
  389.   <tr>
  390.     <td height="2" bgcolor="#D4D0C8" valign="top" colspan="4">
  391.       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  392.         <tr>
  393.           <td background="images/index2-4.gif" style="height:2px"><img src="images/index2-4.gif" width="1" height="2" alt=""></td>
  394.         </tr>
  395.       </table>
  396.     </td>
  397.   </tr>
  398. </table>
  399. </body>
  400. </html>