<%@ Register TagPrefix="Portal" TagName="Divider" Src="~/ModuleDivider.ascx"%>
<%@ Register TagPrefix="Portal" TagName="Title" Src="~/DesktopModuleTitle.ascx"%>
<%@ Control Language="c#" Inherits="Xpdt.Portal.Announcements" CodeBehind="Announcements.ascx.cs" AutoEventWireup="false" %>
<TABLE class="ModuleFrame" width="100%">
	<TR>
		<TD><portal:title id="Title1" runat="server" EditUrl="~/DesktopModules/EditAnnouncements.aspx" EditText="Add New Announcement"></portal:title><asp:datalist id="myDataList" runat="server" EnableViewState="false" Width="98%" CellPadding="4">
				<ItemTemplate>
					<asp:HyperLink id="editLink" ImageUrl="~/images/edit.gif" NavigateUrl='<%# "~/DesktopModules/EditAnnouncements.aspx?ItemID=" + DataBinder.Eval(Container.DataItem,"ItemID") + "&mid=" + ModuleId %>' Visible="<%# IsEditable %>" runat="server" />
					<span class="ItemTitle">
						<%# DataBinder.Eval(Container.DataItem,"Title") %>
					</span>
					<br>
					<span class="<%# GetNormalStyle() %>">
						<%# DataBinder.Eval(Container.DataItem,"Description") %>
						&nbsp;
						<asp:HyperLink id="moreLink" NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"MoreLink") %>' Visible='<%# DataBinder.Eval(Container.DataItem,"MoreLink") != String.Empty %>' runat="server">
							read more...</asp:HyperLink>
					</span>
					<br>
				</ItemTemplate>
			</asp:datalist>
			<Portal:Divider runat="server" id="Divider1" /></TD>
	</TR>
</TABLE>
