MailDesktop.aspx
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:4k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="MailDesktop.aspx.cs" Inherits="MailDesktop" %>
  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 runat="server">
  5.     <title>第11章:网络邮件管理系统===邮件平台</title>
  6.     <link rel="Stylesheet" href="ASPNET2.0BaseCss.css" type="text/css" />
  7. </head>
  8. <body style="margin-left:0;margin-top:0;margin-left:0">
  9.     <form id="form1" runat="server">
  10.     <table class="GbText" style="BORDER-COLLAPSE: collapse; border-right: #ccccff thin solid; border-top: #ccccff thin solid; border-left: #ccccff thin solid; border-bottom: #ccccff thin solid;" borderColor="#93bee2" cellSpacing="0"
  11. cellpadding="2" width="100%" border="1">
  12. <tr valign="top">
  13. <td colspan="2">
  14. <asp:GridView ID="FolderView" runat="server" AutoGenerateColumns="False" CssClass="GbText"
  15. Width="100%" OnRowCommand="FolderView_RowCommand" OnRowDataBound="FolderView_RowDataBound" OnRowDeleting="FolderView_RowDeleting" DataKeyNames="FolderID" Caption="邮件列表详细信息" CaptionAlign="Left" HorizontalAlign="Left" ShowFooter="True">
  16. <FooterStyle ForeColor="White" BackColor="#3B6BD1" Font-Bold="True"></FooterStyle>
  17. <SelectedRowStyle Font-Bold="True" ForeColor="Navy" BackColor="#FFCC66" BorderColor="CornflowerBlue" />
  18. <RowStyle ForeColor="#333333" BackColor="#FFFBD6" BorderColor="CornflowerBlue" BorderStyle="Solid" BorderWidth="1px" />
  19. <HeaderStyle Font-Bold="True" ForeColor="#FFFFCC" CssClass="GbText" BackColor="#3B6BD1"></HeaderStyle>
  20. <Columns>
  21. <asp:TemplateField HeaderText="文件夹名称">
  22. <ItemTemplate>
  23. <a href='ViewMail.aspx?FolderID=<%#DataBinder.Eval(Container.DataItem,"FolderID") %>'><%#DataBinder.Eval(Container.DataItem,"Name") %></a>
  24. </ItemTemplate>
  25. <ItemStyle HorizontalAlign="Left" />
  26. <HeaderStyle Width="40%" />
  27. <FooterTemplate>
  28. 总计
  29. </FooterTemplate>
  30. </asp:TemplateField>
  31. <asp:TemplateField  HeaderText="邮件总数">
  32. <ItemTemplate>
  33. <%# DataBinder.Eval(Container.DataItem,"Total") %>
  34. </ItemTemplate>
  35. <ItemStyle HorizontalAlign="Center" />
  36. <HeaderStyle Width="15%" HorizontalAlign="Center" />
  37. </asp:TemplateField>
  38. <asp:TemplateField  HeaderText="新邮件数量">
  39. <ItemTemplate>
  40. <%# DataBinder.Eval(Container.DataItem,"NoReader") %>
  41. </ItemTemplate>
  42. <ItemStyle HorizontalAlign="Center" />
  43. <HeaderStyle Width="15%" HorizontalAlign="Center" />
  44. </asp:TemplateField>
  45. <asp:TemplateField  HeaderText="文件夹大小">
  46. <ItemTemplate>
  47. <%# (int)DataBinder.Eval(Container.DataItem,"Contain")/1024 %>KB
  48. </ItemTemplate>
  49. <ItemStyle HorizontalAlign="Center" />
  50. <HeaderStyle Width="15%" HorizontalAlign="Center" />
  51. </asp:TemplateField>
  52. <asp:TemplateField HeaderText="操作">
  53. <ItemTemplate>
  54. <asp:HyperLink ID="EditBtn" Text="重命名" Target="Desktop" runat="server" Visible='<%# (bool)DataBinder.Eval(Container.DataItem,"Flag") %>' NavigateUrl='<%# "RenameFolder.aspx?FolderID=" + DataBinder.Eval(Container.DataItem,"FolderID")%>'></asp:HyperLink>&nbsp;&nbsp;&nbsp;
  55. <asp:ImageButton ID="DeleteBtn" runat="server" CommandName="delete" Visible='<%# (bool)DataBinder.Eval(Container.DataItem,"Flag") && ((int)DataBinder.Eval(Container.DataItem,"Total") > 0 ? false : true) %>' ImageUrl="~/EmailSystem/Images/delete.gif" AlternateText="删除文件夹" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"FolderID") %>' />&nbsp;&nbsp;&nbsp;
  56. </ItemTemplate>
  57. <ItemStyle HorizontalAlign="Center" />
  58. <HeaderStyle Width="30%" HorizontalAlign="Center" />
  59. </asp:TemplateField>
  60. </Columns>
  61. <AlternatingRowStyle BorderColor="CornflowerBlue" BackColor="White" BorderStyle="Solid" BorderWidth="1px" />
  62. <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
  63. <EditRowStyle BorderColor="CornflowerBlue" BorderWidth="1px" />
  64. </asp:GridView>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td><asp:Button ID="NewFolderBtn" runat="server" Visible="false" Text="新建文件夹" Width="100px" CssClass="ButtonCss" OnClick="NewFolderBtn_Click" /></td>
  69. </tr>
  70.     </table>
  71.     </form>
  72. </body>
  73. </html>