-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.aspx
149 lines (148 loc) · 6.52 KB
/
default.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<%@ Page Language="C#" Inherits="anmar.SharpWebMail.UI.Pages.Default" trace="false"%>
<%@ Register TagPrefix="SharpUI" TagName="globalUI" Src="globalUI.ascx" %>
<%@ Reference Page="search.aspx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title><%=Application["product"]%></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="sharpwebmail.css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script type="text/javascript"><!--
function select_all_messages (checked, form) {
for ( var i=0; i<form.elements.length; i++ ) {
var item = form.elements[i];
if ( item.type=='checkbox' && (item.name.lastIndexOf(':delete')>0 || item.name.lastIndexOf('$delete')>0) ) {
if ( checked!=item.checked )
item.checked=checked;
}
}
}
//--></script>
<form id="sharpwebmailform" method="post" runat="server">
<SharpUI:globalUI id="SharpUI" runat="server">
<CentralPanel>
<table><tr><td><img src="images/spacer.gif" width="1" height="3"></td></tr></table>
<asp:DataGrid id="InboxDataGrid" runat="server"
AllowPaging="True"
PageSize="10"
PagerStyle-HorizontalAlign="Right"
OnPageIndexChanged="InboxDataGrid_PageIndexChanged"
OnItemDataBound="InboxDataGrid_ItemDataBound"
Width="100%"
BorderColor="black"
BorderWidth="1"
GridLines="Both"
CellPadding="3"
CellSpacing="0"
EnableViewState="true"
HeaderStyle-CssClass="XPPanel"
ItemStyle-CssClass="XPInboxItemA"
AlternatingItemStyle-CssClass="XPInboxItemB"
AutoGenerateColumns="false"
OnDeleteCommand="InboxDataGrid_Delete"
AllowSorting="true"
OnSortCommand="InboxDataGrid_Sort">
<Columns>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:ImageButton id="SortButtoNumberUp" runat="server"
CommandName="sort" CommandArgument="msgnum ASC"
ImageUrl="images/sort_up.gif"
/>
<asp:Label id="inboxHeaderNumber" Text="<%# InboxDataGrid.Columns[0].HeaderText %>" runat="server" />
<asp:ImageButton id="SortButtoNumberDown" runat="server"
CommandName="sort" CommandArgument="msgnum DESC"
ImageUrl="images/sort_down.gif"
/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server"
Text='<%# System.Web.HttpUtility.HtmlEncode (((System.Data.DataRowView)Container.DataItem)["msgnum"].ToString()) %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:ImageButton id="SortButtonFromUp" runat="server"
CommandName="sort" CommandArgument="FromName ASC"
ImageUrl="images/sort_up.gif"
/>
<asp:Label id="inboxHeaderFrom" Text="<%# InboxDataGrid.Columns[1].HeaderText %>" runat="server" />
<asp:ImageButton id="SortButtonFromDown" runat="server"
CommandName="sort" CommandArgument="FromName DESC"
ImageUrl="images/sort_down.gif"
/>
</HeaderTemplate>
<ItemTemplate>
<asp:HyperLink id="inboxItemFromLink" Text='<%# System.Web.HttpUtility.HtmlEncode (((System.Data.DataRowView)Container.DataItem)["FromName"].ToString()) %>' NavigateUrl='<%# System.String.Concat("newmessage.aspx?msgid=", ((System.Data.DataRowView)Container.DataItem)["guid"]) %>' Target="_self" runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:ImageButton id="SortButtonSubjectUp" runat="server"
CommandName="sort" CommandArgument="Subject ASC"
ImageUrl="images/sort_up.gif"
/>
<asp:Label id="inboxHeaderSubject" Text="<%# InboxDataGrid.Columns[2].HeaderText %>" runat="server" />
<asp:ImageButton id="SortButtonSubjectDown" runat="server"
CommandName="sort" CommandArgument="Subject DESC"
ImageUrl="images/sort_down.gif"
/>
</HeaderTemplate>
<ItemTemplate>
<asp:HyperLink id="inboxItemSubjectLink" Text='<%# System.Web.HttpUtility.HtmlEncode (((System.Data.DataRowView)Container.DataItem)["Subject"].ToString()) %>' NavigateUrl='<%# System.String.Concat("readmessage.aspx?msgid=", ((System.Data.DataRowView)Container.DataItem)["guid"]) %>' Target="_self" runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:ImageButton id="SortButtonDateUp" runat="server"
CommandName="sort" CommandArgument="Date ASC"
ImageUrl="images/sort_up.gif"
/>
<asp:Label id="inboxHeaderDate" Text="<%# InboxDataGrid.Columns[3].HeaderText %>" runat="server" />
<asp:ImageButton id="SortButtonDateDown" runat="server"
CommandName="sort" CommandArgument="Date DESC"
ImageUrl="images/sort_down.gif"
/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server"
Text='<%# System.Web.HttpUtility.HtmlEncode (((System.Data.DataRowView)Container.DataItem)["Date"].ToString()) %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:ImageButton id="SortButtonSizeUp" runat="server"
CommandName="sort" CommandArgument="size ASC"
ImageUrl="images/sort_up.gif"
/>
<asp:Label id="inboxHeaderSize" Text="<%# InboxDataGrid.Columns[4].HeaderText %>" runat="server" />
<asp:ImageButton id="SortButtonSizeDown" runat="server"
CommandName="sort" CommandArgument="size DESC"
ImageUrl="images/sort_down.gif"
/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server"
Text='<%# System.Web.HttpUtility.HtmlEncode (((System.Data.DataRowView)Container.DataItem)["size"].ToString()) %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:ImageButton runat="server" ID="msgtoolbarDelete" ToolTip='<%# InboxDataGrid.Columns[5].HeaderText %>' ImageAlign="Baseline" CommandName="delete"
ImageUrl="images/msgtoolbar_delete.gif"/>
<input type="checkbox" title="<%# InboxDataGrid.Columns[5].HeaderText %>" onclick="select_all_messages(this.checked, this.form);" value="" />
</HeaderTemplate>
<ItemTemplate>
<input type="checkbox" title='<%# InboxDataGrid.Columns[5].HeaderText %>' OnServerChange="InboxDataGrid_DeleteCheckBox" ID="delete" runat="server" value='<%#((System.Data.DataRowView)Container.DataItem)["guid"]%>' />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
<asp:PlaceHolder id="inboxWindowSearchHolder" runat="server" />
</CentralPanel>
</SharpUI:globalUI>
</form>
</body>
</html>