Index.aspx
上传用户:xgw_05
上传日期:2009-12-11
资源大小:20208k
文件大小:8k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="Index.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.SM.Index" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>消息主页</title>
  6. <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  7. <meta content="C#" name="CODE_LANGUAGE">
  8. <meta content="JavaScript" name="vs_defaultClientScript">
  9. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10. <LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  11. <script language="javascript">
  12. function selectAll(){
  13. var len=document.Index.elements.length;
  14. var i;
  15.     for (i=0;i<len;i++){
  16.     
  17. if (document.Index.elements[i].type=="checkbox"){
  18.         document.Index.elements[i].checked=true;
  19.  }
  20. }
  21. }
  22. function unSelectAll(){
  23.           var len=document.Index.elements.length;
  24.           var i;
  25.           for (i=0;i<len;i++){
  26.                if (document.Index.elements[i].type=="checkbox"){
  27.                   document.Index.elements[i].checked=false; 
  28.                }   
  29.               
  30.           } 
  31.           }
  32.       function SendMsg(username,realname)
  33. {
  34. window.opener.parent.parent.MainFrame.location='../SM/MsgSend.aspx?SendTo='+username+'&SendToRealName='+realname;
  35. window.close();
  36. }
  37. </script>
  38. </HEAD>
  39. <body MS_POSITIONING="GridLayout" topmargin="0" leftmargin="0">
  40. <form id="Index" method="post" runat="server">
  41. <table border="0" cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE: collapse" bordercolor="#111111"
  42. width="100%" height="1">
  43. <tr height="30">
  44. <td width="3%" bgcolor="#c0d9e6" class="GbText" background="../../Images/treetopbg.jpg"><font color="#003366" size="3"><img src="../../DataImages/message2.gif" width="16" height="16"></font></td>
  45. <td bgcolor="#c0d9e6" class="GbText" background="../../Images/treetopbg.jpg"><font color="#006699">短讯管理</font></td>
  46. </tr>
  47. </table>
  48. <FONT face="宋体">
  49. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  50. <tr height="20">
  51. <td id=bar1 
  52.     style="BACKGROUND-POSITION: left top; BACKGROUND-ATTACHMENT: fixed; BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px" 
  53.     align=center width=90 
  54.     background='<% Response.Write(Session["MsgDispType"].ToString()=="1"?"../../images/maillistbutton2.gif":"../../images/maillistbutton1.gif"); %>' 
  55.     >&nbsp;<A href="Index.aspx?DispType=1" class="Newbutton">我的消息</A></td>
  56. <td id=bar2 
  57.     style="BACKGROUND-POSITION: left top; BACKGROUND-ATTACHMENT: fixed; BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px" 
  58.     align=center width=90 
  59.     background='<% Response.Write(Session["MsgDispType"].ToString()=="2"?"../../images/maillistbutton2.gif":"../../images/maillistbutton1.gif"); %>' 
  60.     >&nbsp;<A href="Index.aspx?DispType=2" class="Newbutton">已发送消息</A></td>
  61. <td id="bar4" style="BACKGROUND-POSITION: left top; BACKGROUND-ATTACHMENT: fixed; BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px"
  62. align="center" width="90" background="../../images/maillistbutton1.gif">&nbsp;<A href="MsgSend.aspx" class="Newbutton">写新消息</A></td>
  63. <td style="HEIGHT: 25px" align="right"><FONT face="宋体">&nbsp;&nbsp;&nbsp;</FONT></td>
  64. </tr>
  65. </table>
  66. <table class="GbText" width="100%" border="0" cellSpacing="0" cellPadding="0">
  67. <tr>
  68. <td vAlign="top" colSpan="3"><asp:datagrid id="dgMsgList" runat="server" PageSize="15" DataKeyField="ID" OnPageIndexChanged="DataGrid_PageChanged"
  69. PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages" AllowPaging="True" AutoGenerateColumns="False" BorderColor="#93BEE2"
  70. BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3" AllowSorting="True" Width="100%">
  71. <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#008A8C"></SelectedItemStyle>
  72. <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
  73. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center" ForeColor="Black" VerticalAlign="Middle"
  74. BackColor="White"></ItemStyle>
  75. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Height="10px" ForeColor="White" VerticalAlign="Top"
  76. BackColor="#337FB2"></HeaderStyle>
  77. <FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" ForeColor="Black" VerticalAlign="Bottom"
  78. BackColor="#93BEE2"></FooterStyle>
  79. <Columns>
  80. <asp:TemplateColumn HeaderText="选择">
  81. <HeaderStyle HorizontalAlign="Center" Width="40px"></HeaderStyle>
  82. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center" Height="20px" Width="60px"></ItemStyle>
  83. <ItemTemplate>
  84. <asp:CheckBox id="grpMsgID" Checked="False" Runat="server"></asp:CheckBox>
  85. </ItemTemplate>
  86. </asp:TemplateColumn>
  87. <asp:TemplateColumn HeaderText="发送者">
  88. <HeaderStyle Width="15%"></HeaderStyle>
  89. <ItemStyle HorizontalAlign="Left"></ItemStyle>
  90. <ItemTemplate>
  91. <a href='../SM/MsgSend.aspx?SendTo=<%# DataBinder.Eval(Container, "DataItem.Sender") %>&SendToRealName=<%# DataBinder.Eval(Container,"DataItem.SenderRealName") %>&Type=<%# DataBinder.Eval(Container,"DataItem.type") %>'>
  92. <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.SenderRealName") %>'>
  93. </asp:Label></a>
  94. </ItemTemplate>
  95. </asp:TemplateColumn>
  96. <asp:TemplateColumn HeaderText="接收者">
  97. <HeaderStyle Width="15%"></HeaderStyle>
  98. <ItemStyle HorizontalAlign="Left"></ItemStyle>
  99. <ItemTemplate>
  100. <a href='../SM/MsgSend.aspx?SendTo=<%# DataBinder.Eval(Container, "DataItem.Receiver") %>&SendToRealName=<%# DataBinder.Eval(Container, "DataItem.ReceiverRealName") %>&Type=<%# DataBinder.Eval(Container,"DataItem.type") %>'>
  101. <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ReceiverRealName") %>'>
  102. </asp:Label></a>
  103. </ItemTemplate>
  104. </asp:TemplateColumn>
  105. <asp:BoundColumn DataField="Content" HeaderText="内容">
  106. <HeaderStyle Width="40%"></HeaderStyle>
  107. <ItemStyle HorizontalAlign="Left"></ItemStyle>
  108. </asp:BoundColumn>
  109. <asp:TemplateColumn HeaderText="短讯类型">
  110. <HeaderStyle Width="10%"></HeaderStyle>
  111. <ItemTemplate>
  112. <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.typeDetail") %>'>
  113. </asp:Label>
  114. </ItemTemplate>
  115. </asp:TemplateColumn>
  116. <asp:TemplateColumn HeaderText="是否已读">
  117. <HeaderStyle Width="10%"></HeaderStyle>
  118. <ItemTemplate>
  119. <%# (string)DataBinder.Eval(Container.DataItem,"IsRead")=="False"?"<img src='../../Images/mailclose.gif'>":"<img src='../../Images/mailopen.gif'>" %>
  120. </asp:Label>
  121. </ItemTemplate>
  122. </asp:TemplateColumn>
  123. <asp:BoundColumn DataField="Sendtime" HeaderText="发送时间">
  124. <HeaderStyle Width="20%"></HeaderStyle>
  125. <ItemStyle HorizontalAlign="Left"></ItemStyle>
  126. </asp:BoundColumn>
  127. </Columns>
  128. <PagerStyle HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
  129. </asp:datagrid><BR>
  130. <INPUT class="redButtonCss" onclick="selectAll()" type="button" value="全 选">&nbsp;
  131. <INPUT class="redButtonCss" onclick="unSelectAll()" type="button" value="取 消">&nbsp;
  132. <asp:button id="btnRead" runat="server" CssClass="redButtonCss" Text="已阅"></asp:button>&nbsp;
  133. <asp:button id="btnDelete" runat="server" CssClass="redButtonCss" Text="删除" Visible="False"></asp:button></td>
  134. </tr>
  135. </table>
  136. </FONT>
  137. </form>
  138. </body>
  139. </HTML>