officetable.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:19k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="officetable.aspx.cs" Inherits="officetable" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  6. <title></title>
  7. <style type="text/css">
  8. <!--
  9. .style10 {font-size: 12px}
  10. .style33 {font-size: 12px; color: #FFFFFF; }
  11. .style37 {color: #999999}
  12. body {
  13. margin-top: 0px;
  14. margin-left: 3px;
  15. background-color: #5CAD36;
  16. }
  17. .style40 {color: #FF0000}
  18. .style41 {
  19. font-size: 13px;
  20. font-weight: bold;
  21. }
  22. -->
  23. </style>
  24. <style type="text/css">
  25. body  {
  26. SCROLLBAR-FACE-COLOR: #5CAD36;
  27. SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
  28. SCROLLBAR-SHADOW-COLOR: #E9F3D6;
  29. SCROLLBAR-3DLIGHT-COLOR: #E9F3D6;
  30. SCROLLBAR-ARROW-COLOR: #E9F3D6;
  31. SCROLLBAR-TRACK-COLOR: #E9F3D6;
  32. SCROLLBAR-DARKSHADOW-COLOR: #E9F3D6;
  33. }
  34. </style>
  35. <script language="JavaScript" type="text/JavaScript">
  36. <!--
  37. function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  38.   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
  39.     document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  40.   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
  41. }
  42. MM_reloadPage(true);
  43. //-->
  44. </script>
  45. <link href="css/textarea7.css" rel="stylesheet" type="text/css" />
  46. <style type="text/css">
  47. <!--
  48. .style9 {color: #26A4E6}
  49. .style42 {color: #4D5D2C}
  50. -->
  51. </style>
  52. </head>
  53. <body>
  54. <% 
  55.     COM.OA.Entity.users loginusers = Session["loginuser"] as COM.OA.Entity.users;
  56.     //如果取不到跳转到登陆页
  57.     if (loginusers == null)
  58.     {
  59.         this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "login.aspx"));
  60.         return;
  61.     }
  62.     string loginname=loginusers.u_username;
  63.     
  64.      %>
  65. <form runat="server">
  66. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
  67.     <tr bgcolor="#FFFFFF">
  68.       <td width="50%" height="25"><table width="100%" border="0" cellspacing="0" cellpadding="3">
  69.         <tr>
  70.           <td width="86%"><span class="style41 style42">内部通知</span></td>
  71.           <td width="12%"><a href="tzManager/sendwordindex.aspx" class="style9">更多..</a></td>
  72.         </tr>
  73.       </table></td>
  74.       <td width="50%"><table width="100%" border="0" cellspacing="0" cellpadding="3">
  75.         <tr>
  76.           <td style="height: 22px"><span class="style41 style42">新闻动态</span></td>
  77.           <td width="12%" style="height: 22px"><a href="linminchao/xw/xw_lookNews.aspx">更多..</a></td>
  78.         </tr>
  79.       </table></td>
  80.     </tr>
  81.     <tr bgcolor="#FFFFFF">
  82.       <td width="50%" valign="top"><table width="100%"  border="0" cellspacing="0">       
  83.         <tr>
  84.           <td colspan="2" align="left" style="height: 23px"><div align="left">
  85.               <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" BorderWidth="0px" Width="417px">
  86.                   <Columns>
  87.                       <asp:TemplateField SortExpression="sw_title">
  88.                           <ItemTemplate>
  89.                           <img alt="" src="images/ico_msb.gif" width="17" height="16" />
  90.                               <strong><a href="tzManager/tongzhineirong.aspx?sw_id=<%# Eval("sw_id") %>">
  91.                               <asp:Label ID="Label1" runat="server" Text='<%# Bind("sw_title") %>'></asp:Label></a>
  92.                               </strong>
  93.                               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  94.                               <asp:Label ID="Label2" runat="server" Text='<%# Bind("sw_releasetime") %>' ForeColor="#999999"></asp:Label>
  95.                           </ItemTemplate>
  96.                       </asp:TemplateField>
  97.                   </Columns>
  98.               </asp:GridView>
  99.           </div></td>
  100.         </tr>
  101.       </table>
  102.       <div align="right">
  103.           <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:table_tz_OA_DBConnectionString1 %>"
  104.               SelectCommand="SELECT top 5 [sw_id],[sw_title], [sw_releasetime]  FROM [sendword] ORDER BY [sw_releasetime]  DESC">
  105.           </asp:SqlDataSource>
  106.           &nbsp; &nbsp;</div></td>
  107.       <td valign="top"><table cellspacing="0" style="width: 452px; height: 113px;">
  108.         
  109.         <tr>
  110.           <td colspan="2" align="left" style="width: 224px; height: 93px;">
  111.              <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="n_id"
  112.                   DataSourceID="SqlDataSource2" Width="397px" BorderWidth="0px">
  113.                   <Columns>
  114.                       <asp:TemplateField SortExpression="n_title">
  115.                           <ItemTemplate>
  116.                               <img alt="" src="images/new-035.gif" width="17" height="12" />
  117.                               <strong><a href="linminchao/xw/xw_lookOneNews.aspx?newsid=<%# Eval("n_id") %>">
  118.                               <asp:Label ID="Label1" runat="server" Text='<%# Bind("n_title") %>'></asp:Label></a>
  119.                               </strong>
  120.                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  121.                               <asp:Label ID="Label2" runat="server" Text='<%# Bind("n_releasetime") %>' ForeColor="#999999"></asp:Label>
  122.                           </ItemTemplate>
  123.                       </asp:TemplateField>
  124.                   </Columns>
  125.               </asp:GridView>
  126.            
  127.           </td>
  128.         </tr>
  129.         
  130.       </table>
  131.               <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:table_xw_OA_DBConnectionString %>"
  132.                   SelectCommand="SELECT TOP (5) n_title, n_id, n_releasetime FROM news ORDER BY n_id DESC">
  133.               </asp:SqlDataSource>
  134.         <div align="right">
  135.             &nbsp;</div></td>
  136.     </tr>
  137.     <tr bgcolor="#FFFFFF">
  138.       <td width="50%" height="25"><table width="100%" border="0" cellspacing="0" cellpadding="3">
  139.           <tr>
  140.             <td width="86%"><span class="style41 style42">我的文件</span> </td>
  141.             <td width="12%"><a href="qs_wenjian/jieshouwenjian.aspx">更多..</a></td>
  142.           </tr>
  143.       </table></td>
  144.       <td 
  145.       ><table width="100%" border="0" cellspacing="0" cellpadding="3">
  146.           <tr>
  147.             <td width="86%"><span class="style41 style42">共享下载</span> </td>
  148.             <td width="12%"><a href="gxxz/lb_selectFile.aspx">更多..</a></td>
  149.           </tr>
  150.         </table></td>
  151.     </tr>
  152.     <tr bgcolor="#FFFFFF">
  153.       <td width="50%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  154.         <tr>
  155.           <td valign="top" style="width: 449px"><div align="left">
  156.                   <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
  157.                       DataKeyNames="f_id" DataSourceID="SqlDataSource3" Width="419px" >
  158.                       <Columns>
  159.                           <asp:TemplateField SortExpression="f_filename">
  160.                               <ItemTemplate>
  161.                               <img alt="" src="images/files.gif" width="15" height="14" />
  162.                               <strong><a href="qs_wenjian/readwenjian.aspx?fid=<%# Eval("f_id") %>">
  163.                               <asp:Label ID="Label3" runat="server" Text='<%# Bind("f_filename") %>'></asp:Label></a>
  164.                               </strong>
  165.                                &nbsp;&nbsp;&nbsp;
  166.                               <asp:Label ID="Label2" runat="server" Text='<%# Bind("f_releasetime") %>' ForeColor="#999999"></asp:Label>   
  167.                               &nbsp;&nbsp;&nbsp;
  168.                               <asp:Label ID="Label1" runat="server" Text='<%# Bind("sendname") %>' ForeColor="#999999"></asp:Label> 
  169.                               </ItemTemplate>
  170.                           </asp:TemplateField>
  171.                       </Columns>
  172.                   </asp:GridView>
  173.               </div></td>
  174.         </tr>
  175.         <tr><td>&nbsp;</td></tr>
  176.       </table>
  177.       <div align="right">
  178.           <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:table_file_OA_DBConnectionString %>"
  179.               SelectCommand="SELECT top 5 [f_id], [f_filename], (SELECT u_username FROM users WHERE (u_id =[f_sendu_id])) AS sendname, [f_releasetime] FROM [files] where [f_isshare]=0 ORDER BY [f_id] DESC&#13;&#10;">
  180.           </asp:SqlDataSource>
  181.       </div></td>
  182.       <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  183.         
  184.         <tr>
  185.           <td><div align="left"><font color="#999999"><asp:GridView ID="GridView6" runat="server" AutoGenerateColumns="False" DataKeyNames="f_id"
  186.                    DataSourceID="SqlDataSource6" BorderWidth="0px">
  187.                    <Columns>
  188.                        <asp:TemplateField SortExpression="f_filename">
  189.                            
  190.                            <ItemTemplate>
  191.                            <img alt="" src="gxxz/img/icon/txt.gif" />
  192.                            <strong><a href="gxxz/openfile.aspx?fid=<%# Eval("f_id") %>">
  193.                               <asp:Label ID="Label5" runat="server" Text='<%# Bind("f_filename") %>'></asp:Label></a>
  194.                               </strong>
  195.                                &nbsp;&nbsp;&nbsp;
  196.                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("f_releasetime") %>'></asp:Label>
  197.                                &nbsp;&nbsp;&nbsp;
  198.                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("sendname") %>'></asp:Label>
  199.                            </ItemTemplate>
  200.                        </asp:TemplateField>
  201.                    </Columns>
  202.                </asp:GridView>
  203.            </font> </div></td>
  204.         </tr>
  205.         
  206.       </table>
  207.         <div align="right">
  208.             <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:table_gx_OA_DBConnectionString %>" SelectCommand="SELECT TOP (5) f_id, f_filename, (SELECT u_username FROM users WHERE (u_id = files.f_sendu_id)) AS sendname, f_releasetime FROM files WHERE (f_isshare = 1) ORDER BY f_id DESC"></asp:SqlDataSource>
  209.         </div></td>
  210.     </tr>
  211.     <tr bgcolor="#FFFFFF">
  212.       <td width="50%" style="height: 43px" ><table width="100%" border="0" cellspacing="0" cellpadding="3">
  213.           <tr>
  214.             <td width="86%"><span class="style41 style42">我的消息</span> </td>
  215.             <td width="12%"><a href="wx_xiaoxi/jieshouxinxi.aspx">更多..</a></td>
  216.           </tr>
  217.       </table></td>
  218.       <td style="height: 43px"><table width="100%" border="0" cellspacing="0" cellpadding="3">
  219.           <tr>
  220.             <td width="86%"><span class="style41 style42">论坛新帖</span> </td>
  221.             <td width="12%"><a href="linminchao/bbs/lt_lookbbs.aspx">更多..</a></td>
  222.           </tr>
  223.         </table></td>
  224.     </tr>
  225.     <tr bgcolor="#FFFFFF">
  226.       <td width="50%" valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="0">        
  227.         <tr>
  228.           <td valign="top"><div align="left">                 
  229.         <font color="#999999">
  230.             <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" DataKeyNames="m_id"
  231.                 DataSourceID="SqlDataSource4" BorderWidth="0px">
  232.                 <Columns>
  233.                     <asp:TemplateField SortExpression="m_title">
  234.                         <ItemTemplate>
  235.                         <img alt="" src="images/f_icon5.gif" width="15" height="14" />
  236.                               <strong><a href="wx_xiaoxi/chakanfasongneirong.aspx?id=<%# Eval("m_id") %>">
  237.                               <asp:Label ID="Label1" runat="server" Text='<%# Bind("m_title") %>'></asp:Label></a>
  238.                               </strong>
  239.                                &nbsp;&nbsp;&nbsp;
  240.                             <asp:Label ID="Label2" runat="server" Text='<%# Bind("m_releasetime") %>'></asp:Label>
  241.                             &nbsp;&nbsp;&nbsp;
  242.                             <asp:Label ID="Label3" runat="server" Text='<%# Bind("sendname") %>'></asp:Label>
  243.                         </ItemTemplate>
  244.                     </asp:TemplateField>
  245.                 </Columns>
  246.             </asp:GridView>
  247.         </font></div></td>
  248.         </tr>
  249.         
  250.       </table>
  251.       <div align="right">
  252.           <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:table_message_OA_DBConnectionString %>"
  253.               SelectCommand="SELECT TOP (5) m_id, m_title, m_releasetime, (SELECT u_username FROM users WHERE (u_id = message.m_sendu_id)) AS sendname FROM message ORDER BY m_id DESC">
  254.           </asp:SqlDataSource>
  255.       </div></td>
  256.       <td valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="0">
  257.         <tr>
  258.           <td style="height: 20px">
  259.           <font color="#999999">
  260.               <asp:GridView ID="GridView5" runat="server" AutoGenerateColumns="False" DataKeyNames="bbs_id"
  261.                   DataSourceID="SqlDataSource5" BorderWidth="0px" Width="427px">
  262.                   <Columns>
  263.                       <asp:TemplateField SortExpression="bbs_title">
  264.                           <ItemTemplate>
  265.                               <img alt="" src="images/f_iconm8.gif" width="12" height="12" />
  266.                               <strong><a href="linminchao/bbs/lt_lookOne.aspx?bbs_id=<%# Eval("bbs_id") %>"><asp:Label ID="Label1" runat="server" Text='<%# Bind("bbs_title") %>'></asp:Label></a></strong>
  267.                                &nbsp;&nbsp;&nbsp;
  268.                               <asp:Label ID="Label2" runat="server" Text='<%# Bind("bbs_releasetime") %>'></asp:Label>
  269.                                &nbsp;&nbsp;&nbsp;
  270.                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("sendname") %>'></asp:Label>
  271.                           </ItemTemplate>
  272.                       </asp:TemplateField>
  273.                   </Columns>
  274.               </asp:GridView>
  275.               </font>
  276.           </td>
  277.         </tr>
  278.         
  279.       </table>
  280.         <div align="right">
  281.             <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:table_bbs_OA_DBConnectionString %>"
  282.                 SelectCommand="SELECT TOP (5) bbs_id, bbs_title, bbs_releasetime, (SELECT u_username FROM users WHERE (u_id = bbs_author)) AS sendname FROM bbs ORDER BY bbs_id DESC">
  283.             </asp:SqlDataSource>
  284.             &nbsp;</div></td>
  285.     </tr>
  286. </table>
  287.   <div align="center">
  288.   <table width="100%" border="0" cellpadding="0" cellspacing="0">
  289.     <tr>
  290.       <td width="1243" colspan="2" bgcolor="#FFFFFF"><table width="104%" border="0" cellpadding="0" cellspacing="0" bgcolor="#E9F3D6">
  291.           <tr>
  292.             <td height="21"><span class="style41 style42 style10">&nbsp;OA快速导航</span></td>
  293.           </tr>
  294.         </table>
  295.         
  296.         <div align="left">
  297.           <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#E9F3D6">
  298.             <tr>
  299.               <td width="40" bgcolor="#FFFFFF"><div align="center"><img alt="" src="images/wp.gif" width="31" height="31" /></div></td>
  300.               <td width="274" bgcolor="#FFFFFF"><a href="gxxz/lb_selectFile.aspx" >查看共享文件</a> <span class="style37">(查看共享文件) </span></td>
  301.               <td bgcolor="#FFFFFF" style="width: 130px"><div align="center"><img alt="" src="images/briefcase.gif" width="34" height="34" /></div></td>
  302.               <td width="274" bgcolor="#FFFFFF"><a href="gw/gw_takedocument.aspx">接收公文</a><span class="style37">(查看公文)</span></td>
  303.               <td width="40" bgcolor="#FFFFFF"><div align="center"><img alt="" src="images/ico_6.gif" width="31" height="31" /></div></td>
  304.               <td width="274" bgcolor="#FFFFFF"><a href="qs/danweitxl.aspx">通讯录</a><span class="style37">(查看通讯录)</span></td>
  305.             </tr>
  306.             <tr>
  307.               <td bgcolor="#FFFFFF"><div align="center"><img alt="" src="images/ico_10.gif" width="31" height="31" /></div></td>
  308.               <td bgcolor="#FFFFFF"><a href="linminchao/xw/xw_lookNews.aspx">浏览新闻</a><span class="style37">(浏览新闻)</span></td>
  309.               <td bgcolor="#FFFFFF" style="width: 130px"><div align="center"><img alt="" src="images/addr.gif" width="34" height="34" /></div></td>
  310.               <td bgcolor="#FFFFFF"><a href="qs_rizhi/tijiaorizhi.aspx">撰写日志</a> <span class="style37">(写工作日志)</span> </td>
  311.               <td bgcolor="#FFFFFF"><div align="center"><img alt="" src="images/mesg.gif" width="34" height="34" /></div></td>
  312.               <td bgcolor="#FFFFFF"><a href="wc_zcgl/zclb.aspx">资产列表</a><span class="style37">(查看资产列表)</span></td>
  313.             </tr>
  314.             <tr>
  315.               <td bgcolor="#FFFFFF"><div align="center"><img alt="" src="images/cal.gif" width="34" height="34" /></div></td>
  316.               <td bgcolor="#FFFFFF"><a href="rc/rc_employeenote.aspx">查看日程</a><span class="style37">(查看日程)</span></td>
  317.               <td bgcolor="#FFFFFF" style="width: 130px"><div align="center"><img alt="" src="images/note.gif" width="34" height="34" /></div></td>
  318.               <td bgcolor="#FFFFFF"><a href="linminchao/bbs/lt_addlt.aspx">发表帖子</a> <span class="style37">(发表帖子)</span></td>
  319.               <td bgcolor="#FFFFFF"><div align="center"><img alt="" src="images/ico_1.gif" width="31" height="31" /></div></td>
  320.               <td bgcolor="#FFFFFF"><span class="style33"><a href="index_top/updatepassword.aspx" target="mainFrame">密码修改</a></span><span class="style37">(用户密码更新)</span></td>
  321.             </tr>
  322.           </table>
  323.         </div>
  324.       </td>
  325.     </tr>
  326.   </table>
  327.   </form>
  328.   <table width="100%" height="21" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  329.   <% 
  330.     COM.OA.Entity.users loginuserss = Session["loginuser"] as COM.OA.Entity.users;
  331.     //如果取不到跳转到登陆页
  332.     if (loginuserss == null)
  333.     {
  334.         this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "login.aspx"));
  335.         return;
  336.     }
  337.    
  338.     
  339.      %>
  340.     <tr>
  341.       <td valign="top">       
  342.        &nbsp;     
  343.        <%=loginname %><img alt="" src="images/wximg/touxiangman.gif"width="19" height="21" /> &nbsp;
  344.       你好!   
  345.       目前时间:<img alt="" height="11" src="images/time.gif" width="11" align="middle" /> <span class="style4" id="webasp_time"></span><br />
  346. <script type="text/javascript">setInterval("webasp_time.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt (new Date().getDay());",1000);</script>
  347. &nbsp;&nbsp;<br />
  348.       <br /></td>
  349.     </tr>
  350.   </table>
  351. </body>
  352. </html>