<%@ Register TagPrefix="Portal" TagName="Divider" Src="~/ModuleDivider.ascx"%>
<%@ Control language="c#" Inherits="Xpdt.Portal.Document" CodeBehind="Document.ascx.cs" AutoEventWireup="false" %>
<%@ Register TagPrefix="Portal" TagName="Title" Src="~/DesktopModuleTitle.ascx"%>
<TABLE width="100%">
	<TR>
		<TD class="ModuleFrame">
			<portal:title EditText="Add New Document" EditUrl="~/DesktopModules/EditDocs.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 id="editLink" ImageUrl="~/images/edit.gif" NavigateUrl='<%# "~/DesktopModules/EditDocs.aspx?ItemID=" + DataBinder.Eval(Container.DataItem,"ItemID")  + "&mid=" + ModuleId %>' Visible="<%# IsEditable %>" runat="server" />
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="Title" HeaderStyle-CssClass="NormalBold">
						<ItemTemplate>
							<asp:HyperLink id="docLink" Text='<%# DataBinder.Eval(Container.DataItem,"FileFriendlyName") %>' NavigateUrl='<%# GetBrowsePath(DataBinder.Eval(Container.DataItem,"FileNameUrl").ToString(), DataBinder.Eval(Container.DataItem,"ContentSize"), (int) DataBinder.Eval(Container.DataItem,"ItemId")) %>' CssClass="<%# GetNormalStyle( ) %>" Target="_new" runat="server" />
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn HeaderText="Owner" DataField="CreatedByUser" ItemStyle-CssClass="<%# GetNormalStyle() %>" HeaderStyle-Cssclass="NormalBold" />
					<asp:BoundColumn HeaderText="Area" DataField="Category" ItemStyle-Wrap="false" ItemStyle-CssClass="<%# GetNormalStyle() %>" HeaderStyle-Cssclass="NormalBold" />
					<asp:BoundColumn HeaderText="Last Updated" DataField="CreatedDate" DataFormatString="{0:d}" ItemStyle-CssClass="<%# GetNormalStyle() %>" HeaderStyle-Cssclass="NormalBold" />
				</Columns>
			</asp:datagrid>
			<Portal:Divider runat="server" id="Divider1" />
		</TD>
	</TR>
</TABLE>
