<%@ Page language="c#" Codebehind="managefolders.aspx.cs" AutoEventWireup="false" Inherits="Orciid.managefolders" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title runat="server" id="PageTitle">Manage Folders</title>
		<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body>
		<form method="post" runat="server">
			<h1 runat="server" id="Heading">Manage Folders</h1>
			<P>
				<asp:linkbutton id="CreateNewFolderButton" runat="server">Create New Folder</asp:linkbutton></P>
			<p>
				<asp:datagrid id="FolderGrid" runat="server" autogeneratecolumns="False" cellpadding="4" borderwidth="1px"
					gridlines="Vertical" bordercolor="#DCE4EC" showfooter="True">
					<alternatingitemstyle cssclass="DataGridItemAlt" verticalalign="Top"></alternatingitemstyle>
					<itemstyle cssclass="DataGridItem" verticalalign="Top"></itemstyle>
					<headerstyle wrap="False" horizontalalign="Left" cssclass="DataGridHeader"></headerstyle>
					<footerstyle wrap="False" horizontalalign="Left" cssclass="DataGridFooter"></footerstyle>
					<columns>
						<asp:templatecolumn>
							<HeaderTemplate>
								<span id="TitleHeaderSpan" runat="server">Title</span>
							</HeaderTemplate>
							<itemtemplate>
								<asp:LinkButton runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Key") %>' CommandName="SelectFolder" CausesValidation="false">
								</asp:LinkButton>
							</itemtemplate>
							<edititemtemplate>
								<asp:textbox id="TitleTextBox" runat="server" ondatabinding="DataBindTitleTextBox"></asp:textbox>
							</edititemtemplate>
						</asp:templatecolumn>
						<asp:templatecolumn itemstyle-horizontalalign="Center">
							<headertemplate>
								<span id="SlideshowsHeaderSpan" runat="server">Slideshows</span>
							</headertemplate>
							<itemtemplate>
								<asp:label ondatabinding="DataBindSlideshowCount" runat="server"></asp:label>
							</itemtemplate>
						</asp:templatecolumn>
						<asp:templatecolumn>
							<itemtemplate>
								<asp:linkbutton id="RenameLinkButton" runat="server" visible='<%# (int)DataBinder.Eval(Container, "DataItem.Value") > 0 %>' text="Rename" commandname="Edit" causesvalidation="false">
								</asp:linkbutton>
							</itemtemplate>
							<edititemtemplate>
								<asp:linkbutton runat="server" text="Update" commandname="Update" ID="UpdateLinkButton"></asp:linkbutton>&nbsp;
								<asp:linkbutton runat="server" text="Cancel" commandname="Cancel" id="CancelLinkButton" causesvalidation="false"></asp:linkbutton>
							</edititemtemplate>
						</asp:templatecolumn>
						<asp:templatecolumn>
							<itemtemplate>
								<asp:linkbutton id="DeleteLinkButton" runat="server" visible='<%# (int)DataBinder.Eval(Container, "DataItem.Value") > 0 %>' text="Delete" commandname="Delete" causesvalidation="false">
								</asp:linkbutton>
							</itemtemplate>
						</asp:templatecolumn>
					</columns>
				</asp:datagrid></p>
		</form>
	</body>
</HTML>
