-
Notifications
You must be signed in to change notification settings - Fork 0
/
addressbook.aspx
63 lines (63 loc) · 2.4 KB
/
addressbook.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
<%@ Page Language="C#" Inherits="anmar.SharpWebMail.UI.Pages.AddressBook" trace="false" validateRequest="true" %>
<!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 add_rcpt (email) {
var dest = window.opener.document.sharpwebmailform.elements['SharpUI:toemail'];
if ( typeof (dest)=='undefined' )
dest = window.opener.document.sharpwebmailform.elements['SharpUI$toemail'];
if ( dest!=null ) {
dest.value = dest.value.replace(/(?:^\s+|\s+$|;$)/, '');
var current = dest.value.split(',');
for ( var i=0; current!=null&&i<current.length; i++ ) {
current[i] = current[i].replace(/(?:^\s+|\s+$)/, '');
if ( current[i]==email )
return;
}
if ( dest.value.length>0 )
dest.value += ', ';
dest.value += email;
}
}
//--></script>
<form id="sharpwebmailform" method="post" runat="server">
<select ID="addressbookselect" OnChange="this.form.submit();" OnServerChange="AddressBook_Changed" Visible="false" runat="server" />
<asp:DataGrid id="AddressBookDataGrid" runat="server"
AllowPaging="True"
PageSize="10"
PagerStyle-HorizontalAlign="Right"
OnPageIndexChanged="AddressBookDataGrid_PageIndexChanged"
BorderColor="black"
BorderWidth="1"
GridLines="Both"
CellPadding="3"
CellSpacing="0"
EnableViewState="true"
HeaderStyle-CssClass="XPPanel"
AutoGenerateColumns="false">
<Columns>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:Label id="inboxHeaderNumber" Text="<%# this.AddressBookDataGrid.Columns[0].HeaderText %>" runat="server" />
</HeaderTemplate>
<ItemTemplate>
<a href="javascript:add_rcpt('<%#((System.Data.DataRowView)Container.DataItem)[1].ToString()%>')">
<asp:Label runat="server"
Text='<%# System.Web.HttpUtility.HtmlEncode (((System.Data.DataRowView)Container.DataItem)[0].ToString()) %>' />
-
<asp:Label runat="server"
Text='<%# System.Web.HttpUtility.HtmlEncode (((System.Data.DataRowView)Container.DataItem)[1].ToString()) %>' />
</a>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
</form>
</body>
</html>