<%@ Register TagPrefix="Portal" TagName="Title" Src="~/DesktopModuleTitle.ascx"%>
<%@ Control language="c#" Inherits="Xpdt.Portal.Contacts" CodeBehind="Contacts.ascx.cs" AutoEventWireup="false" %>
<%@ Register TagPrefix="Portal" TagName="Divider" Src="~/ModuleDivider.ascx"%>
<TABLE width="100%">
	<TR>
		<TD class="ModuleFrame">
			<portal:title EditText="Add New Contact" EditUrl="~/DesktopModules/EditContacts.aspx" runat="server" id="Title1" />
			<asp:datagrid id="myDataGrid" Border="0" width="100%" AutoGenerateColumns="False" EnableViewState="False" runat="server">
				<Columns>
					<asp:TemplateColumn>
						<ItemTemplate>
							<asp:HyperLink ImageUrl="~/images/edit.gif" NavigateUrl='<%# "~/DesktopModules/EditContacts.aspx?ItemID=" + DataBinder.Eval(Container.DataItem,"ItemID") + "&mid=" + ModuleId %>' Visible="<%# IsEditable %>" runat="server" />
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="Name" HeaderText="Name">
						<HeaderStyle CssClass="NormalBold"></HeaderStyle>
						<ItemStyle CssClass="Normal"></ItemStyle>
					</asp:BoundColumn>
					<asp:BoundColumn DataField="Role" HeaderText="Role">
						<HeaderStyle CssClass="NormalBold"></HeaderStyle>
						<ItemStyle CssClass="Normal"></ItemStyle>
					</asp:BoundColumn>
					<asp:HyperLinkColumn DataNavigateUrlField="Email" DataNavigateUrlFormatString="mailto:{0}" DataTextField="Email" HeaderText="Email">
						<HeaderStyle CssClass="NormalBold"></HeaderStyle>
						<ItemStyle CssClass="Normal"></ItemStyle>
					</asp:HyperLinkColumn>
				</Columns>
			</asp:datagrid>
			<Portal:Divider runat="server" id="Divider1" />
		</TD>
	</TR>
</TABLE>
