home.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:19k
- <%@page contentType="text/html; charset=gb2312"%>
- <%@page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*,java.text.*"%>
- <jsp:include page="/CheckLogin.jsp" flush="true"/>
- <%Session m_session = new Session(session);%>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="REFRESH" content="300;URL=home.jsp">
- <title>home</title>
- <link href="css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" type="text/css">
- setTimeout("self.location.reload();",300000);
- </script></head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0" scroll=no>
- <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#D4D0C8" style="width:100%;height:100%">
- <tr>
- <td height="2" bgcolor="#D4D0C8" valign="top" colspan="4">
- <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td background="images/index2-4.gif" style="height:2px"><img src="images/index2-4.gif" width="1" height="2" alt=""></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td bgcolor="#D4D0C8" width="6" background="images/index1-4.gif" rowspan="14"> </td>
- <td bgcolor="#D4D0C8" width="6" height="15"> </td>
- <td bgcolor="#D4D0C8"> </td>
- <td bgcolor="#D4D0C8" width="6"> </td>
- </tr>
- <tr>
- <td bgcolor="#D4D0C8" width="6" height="125"> </td>
- <td bgcolor="#D4D0C8">
- <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td background="images/index2-4.gif" style="height:2px"><img src="images/index2-4.gif" width="1" height="2" alt=""></td>
- </tr>
- </table>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
- <tr>
- <td height="23" bgcolor="#163D96" width="30%">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="30" height="20" align="center">
- <img src="images/naniu3.gif" width="14" height="11" alt="">
- </td>
- <td>
- <font color="#FFFFFF">短消息</font>
- </td>
- </tr>
- </table>
- </td>
- <td width="2">
- <img src="images/naniu8.gif" width="2" height="22" alt="">
- </td>
- <td bgcolor="#3456A4" width="30%">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="30" height="20" align="center">
- <img src="images/naniu1.gif" width="14" height="15" alt="">
- </td>
- <td>
- <font color="#FFFFFF">新闻公告</font>
- </td>
- </tr>
- </table>
- </td>
- <td width="2">
- <img src="images/naniu8.gif" width="2" height="22" alt="">
- </td>
- <td bgcolor="#5A76B5">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="30" height="20" align="center">
- <img src="images/naniu5.gif" width="16" height="15" alt="">
- </td>
- <td>
- <font color="#FFFFFF">待办事宜</font>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr valign="top">
- <td height="120" width="30%">
- <div class="DataList">
- <table width="100%" border="0" cellpadding="4" cellspacing="4" bgcolor="#FFFFFF">
- <%
- int iUserID = m_session.GetInt("UserID");
- int iPageSize = 6;
- int iSysDirID = Integer.parseInt(SystemParament.getParament("newssysdirid"));
- Vector vtOnlineMsg = OnlineMessage.getNewMessage(iUserID);
- for (int i = 0; i < vtOnlineMsg.size(); i++) {
- String strID = ((Vector) vtOnlineMsg.get(i)).get(0).toString();
- String strMsgTitle = ((Vector) vtOnlineMsg.get(i)).get(1).toString();
- if (strMsgTitle.length() < 9) {
- 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>");
- }
- else {
- 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>");
- }
- 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>");
- }
- if (vtOnlineMsg.size() < 1) {
- out.println("<tr><td align="left"><img src="images/index2-2.gif" width="15" height="4">当前没有新的短消息!</td></tr>");
- }
- %>
- </table>
- </div>
- </td>
- <td background="images/naniu8.gif">
- <img src="images/naniu8.gif" width="2" height="22" alt="">
- </td>
- <td height="120" width="30%">
- <div class="DataList">
- <table width="100%" border="0" cellpadding="4" cellspacing="4">
- <%
- iPageSize = 6;
- iSysDirID = Integer.parseInt(SystemParament.getParament("newssysdirid"));
- int iNewsSysDirID = iSysDirID;
- Vector vtNews = ArticleManager.getRecordBySysDirID(iSysDirID);
- for (int i = 0; i < vtNews.size() && i < iPageSize; i++) {
- String strID = ((Vector) vtNews.get(i)).get(0).toString();
- String strNewsTitle = ((Vector) vtNews.get(i)).get(1).toString();
- if (strNewsTitle.length() < 10) {
- 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>");
- }
- else {
- 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>");
- }
- if (((Vector) vtNews.get(i)).get(10).toString().length() > 3)
- out.println("(图)");
- out.println("(" + StringNew.GetDateString(((Vector) vtNews.get(i)).get(5).toString(), "MM.dd") + ")</td></tr>");
- }
- if (vtNews.size() < 1) {
- out.println("<tr><td align="left"><img src="images/index2-2.gif" width="15" height="4">当前没有公司新闻!</td></tr>");
- }
- %>
- </table>
- </div>
- </td>
- <td background="images/naniu8.gif">
- <img src="images/naniu8.gif" width="2" height="22" alt="">
- </td>
- <td height="120">
- <div class="DataList">
- <table width="100%" border="0" cellpadding="4" cellspacing="4">
- <%
- iSysDirID = Integer.parseInt(SystemParament.getParament("documentsysdirid"));
- int iDocSysDirID = iSysDirID;
- Vector vt = DocumentManagerPlus.getRecordBySearchAll("", "", "", "", "", "", "", iUserID + "", iUserID + "", "a.ID", "True");
- for (int i = 0; i < vt.size(); i++) {
- String strID = ((Vector) vt.get(i)).get(0).toString();
- out.println("<tr>");
- out.println("<td align="right" valign="middle"><img src="../images/index2-1.gif"></td>");
- 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> </td>");
- if (((Vector) vt.get(i)).get(14).toString().equalsIgnoreCase("S")) {
- if (((Vector) vt.get(i)).get(5).toString().equalsIgnoreCase(iUserID + "")) {
- out.println("<td align="center" valign="middle" nowrap><a href="Document/DocumentProcess.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + ""><strong>处 理</strong></a></td>");
- }
- else {
- out.println("<td align="center" valign="middle" nowrap> </td>");
- }
- }
- else {
- if (("," + ((Vector) vt.get(i)).get(15).toString() + ",").indexOf("," + iUserID + ",") >= 0) {
- out.println("<td align="center" valign="middle" nowrap><a href="Document/DocumentProcess.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + ""><strong>处 理</strong></a></td>");
- }
- else {
- out.println("<td align="center" valign="middle" nowrap> </td>");
- }
- }
- out.println("</tr>");
- }
- %>
- </table>
- </div>
- </td>
- <td background="images/naniu8.gif">
- <img src="images/naniu8.gif" width="2" height="22" alt="">
- </td>
- </tr>
- <tr>
- <td>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="25" align="right" valign="top">
- <a href="PersonalSpace/SendMessage.jsp" title="撰写短信息">
- <font color="blue">
- <u>撰写</u>
- </font>
- </a>
-
- <a href="/PersonalSpace/OnlineMsgList.jsp?MsgKind=2" title="已收短信息列表">
- <font color="blue">
- <u>已收</u>
- </font>
- </a>
-
- <a href="/PersonalSpace/OnlineMsgList.jsp?MsgKind=1" title="已发短信息列表">
- <font color="blue">
- <u>已发</u>
- </font>
- </a>
- </td>
- </tr>
- </table>
- </td>
- <td background="images/naniu8.gif">
- <img src="images/naniu8.gif" width="2" height="22" alt="">
- </td>
- <td>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="25" align="right" valign="top">
- <a href="/PublicInfo/ArticleList.jsp?SysDirID=<%=iNewsSysDirID%>" title="更多新闻...">
- <font color="blue">
- <u>更多...</u>
- </font>
- </a>
- </td>
- </tr>
- </table>
- </td>
- <td background="images/naniu8.gif">
- <img src="images/naniu8.gif" width="2" height="22" alt="">
- </td>
- <td>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="25" align="right" valign="top">
- <a href="/Document/DraftDocument.jsp?SysDirID=<%=iDocSysDirID%>" title="起草公文...">
- <font color="blue">
- <u>起草</u>
- </font>
- </a>
-
- <a href="/Document/DocumentList.jsp?SysDirID=<%=iDocSysDirID%>" title="下属公文...">
- <font color="blue">
- <u>下属</u>
- </font>
- </a>
-
- <a href="/Document/DocumentProcessManage.jsp?SysDirID=<%=iDocSysDirID%>" title="更多公文...">
- <font color="blue">
- <u>更多...</u>
- </font>
- </a>
- </td>
- </tr>
- </table>
- </td>
- <td background="images/naniu8.gif">
- <img src="images/naniu8.gif" width="2" height="22" alt="">
- </td>
- </tr>
- </table>
- </td>
- <td bgcolor="#D4D0C8" width="6"> </td>
- </tr>
- <tr>
- <td bgcolor="#D4D0C8" width="6" height="8"> </td>
- <td bgcolor="#D4D0C8" align="center" valign="middle">
- <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td background="images/index2-4.gif" style="height:2px"><img src="images/index2-4.gif" width="1" height="2" alt=""></td>
- </tr>
- </table>
- </td>
- <td bgcolor="#D4D0C8" width="6"> </td>
- </tr>
- <tr>
- <td bgcolor="#D4D0C8" width="6" height="25"> </td>
- <td bgcolor="#D4D0C8" align="left">
- <strong>功能导航</strong>
- </td>
- <td bgcolor="#D4D0C8" width="6"> </td>
- </tr>
- <tr>
- <td bgcolor="#D4D0C8" width="6" height="2"> </td>
- <td bgcolor="#D4D0C8" align="center" valign="middle">
- <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td background="images/index2-4.gif" style="height:2px"><img src="images/index2-4.gif" width="1" height="2" alt=""></td>
- </tr>
- </table>
- </td>
- <td bgcolor="#D4D0C8" width="6"> </td>
- </tr>
- <tr>
- <td bgcolor="#D4D0C8" width="6"> </td>
- <td bgcolor="#D4D0C8" align="center" valign="top">
- <div class="DataList">
- <table width="100%" border="0" cellpadding="1" cellspacing="0" bordercolorlight="#0a0a0a" bordercolordark="#ffffff" background="images/homeback.gif" bgcolor="#FFFFFF" style="height:98%;">
- <tr>
- <td align="center" valign="middle" height="28"> </td>
- <td align="center" valign="middle"> </td>
- <td align="center" valign="middle"> </td>
- <td align="center" valign="middle"> </td>
- <td align="center" valign="middle"> </td>
- </tr>
- <tr>
- <td align="center" valign="middle" height="28">
- <a href="/PersonalSpace/CalendarPlansManage.jsp" title="日常办公">
- <img src="images/homelist1.gif" width="68" height="59" alt="日常办公" border="0">
- </a>
- </td>
- <td align="center" valign="middle">
- <a href="/PersonalSpace/SendMessage.jsp" title="个人空间">
- <img src="images/homelist2.gif" width="68" height="59" alt="个人空间" border="0">
- </a>
- </td>
- <td align="center" valign="middle">
- <a href="/PublicInfo/ArticleList.jsp?SysDirID=<%=iNewsSysDirID%>" title="信息中心">
- <img src="images/homelist3.gif" width="68" height="59" alt="信息中心" border="0">
- </a>
- </td>
- <td align="center" valign="middle">
- <a href="/Document/DocumentProcessManage.jsp?SysDirID=<%=iDocSysDirID%>" title="公文管理">
- <img src="images/homelist4.gif" width="68" height="59" alt="公文管理" border="0">
- </a>
- </td>
- <td align="center" valign="middle">
- <a href="/PublicInfo/BoardroomApplyManage.jsp" title="公司事务">
- <img src="images/homelist5.gif" width="68" height="59" alt="公司事务" border="0">
- </a>
- </td>
- </tr>
- <tr>
- <td align="center" valign="middle" height="28">
- <a href="/PersonalSpace/CalendarPlansManage.jsp" title="日常办公">日常办公</a>
- </td>
- <td align="center" valign="middle">
- <a href="/PersonalSpace/SendMessage.jsp" title="个人空间">个人空间</a>
- </td>
- <td align="center" valign="middle">
- <a href="/PublicInfo/ArticleList.jsp?SysDirID=<%=iNewsSysDirID%>" title="信息中心">信息中心</a>
- </td>
- <td align="center" valign="middle">
- <a href="/Document/DocumentProcessManage.jsp?SysDirID=<%=iDocSysDirID%>" title="公文管理">公文管理</a>
- </td>
- <td align="center" valign="middle">
- <a href="/PublicInfo/BoardroomApplyManage.jsp" title="公司事务">公司事务</a>
- </td>
- </tr>
- <tr>
- <td align="center" valign="middle" height="28">
- <a href="/Operation/SignIn.jsp?AutoSign=1" title="考勤签到">
- <img src="images/homelist7.gif" width="68" height="59" alt="考勤签到" border="0">
- </a>
- </td>
- <td align="center" valign="middle">
- <a href="/PersonalSpace/AddressListManage.jsp" title="名片管理">
- <img src="images/homelist6.gif" width="68" height="59" alt="名片管理" border="0">
- </a>
- </td>
- <td align="center" valign="middle">
- <img src="images/homelist8.gif" width="68" height="59" alt="">
- </td>
- <td align="center" valign="middle">
- <img src="images/homelist9.gif" width="68" height="59" alt="">
- </td>
- <td align="center" valign="middle"> </td>
- </tr>
- <tr>
- <td align="center" valign="middle" height="28">
- <a href="/Operation/SignIn.jsp?AutoSign=1" title="考勤签到">考勤签到</a>
- </td>
- <td align="center" valign="middle">
- <a href="/PersonalSpace/AddressListManage.jsp" title="名片管理">名片管理</a>
- </td>
- <td align="center" valign="middle">资产管理</td>
- <td align="center" valign="middle">系统维护</td>
- <td align="center" valign="middle"> </td>
- </tr>
- <tr>
- <td align="center" valign="middle"> </td>
- <td align="center" valign="middle"> </td>
- <td align="center" valign="middle"> </td>
- <td align="center" valign="middle"> </td>
- <td align="center" valign="middle"> </td>
- </tr>
- </table>
- </div>
- </td>
- <td bgcolor="#D4D0C8" width="6"> </td>
- </tr>
- <tr>
- <td height="2" bgcolor="#D4D0C8" valign="top" colspan="4">
- <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td background="images/index2-4.gif" style="height:2px"><img src="images/index2-4.gif" width="1" height="2" alt=""></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </body>
- </html>