<%@ Control Language="c#" AutoEventWireup="false" Codebehind="FileManager.ascx.cs" Inherits="Xpdt.Portal.FileManagerControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="Portal" TagName="Title" Src="~/DesktopModuleTitle.ascx"%>
<%@ Register TagPrefix="Portal" TagName="Divider" Src="~/ModuleDivider.ascx"%>
<TABLE width="100%">
	<TR>
		<TD class="ModuleFrame"><portal:title id="Title1" runat="server" EditText="File Manager Options" EditUrl="~/DesktopModules/EditFileManager.aspx"></portal:title>
			<TABLE cellSpacing="0" cellPadding="3" width="100%" align="center" border="0">
				<TR>
					<TD class="HeadBg"><asp:label id="lblCurrentFolderHeading" runat="server" Font-Bold="True" ForeColor="#FFFFC0">
							Current Folder :</asp:label><asp:label id="lblCurrentFolder" runat="server" ForeColor="#FFFFC0"></asp:label></TD>
				</TR>
				<TR>
					<TD class="SubTabRow" vAlign="middle" noWrap align="left"><asp:linkbutton id="cmdDelete" runat="server" Font-Bold="True" Tooltip="Delete checked files" CausesValidation="False">
							Delete</asp:linkbutton>&nbsp;&nbsp;&nbsp;&nbsp;
						<asp:linkbutton id="cmdCut" runat="server" Font-Bold="True" Tooltip="Cut checked files" CausesValidation="False">
							Cut</asp:linkbutton>&nbsp;&nbsp;&nbsp;&nbsp;
						<asp:linkbutton id="cmdPaste" runat="server" Font-Bold="True" Tooltip="Paste previously cut files"
							CausesValidation="False">
							Paste</asp:linkbutton>&nbsp;&nbsp;&nbsp;
						<asp:textbox id="txtFolderName" runat="server" CssClass="SearchEditBox"></asp:textbox>&nbsp;<asp:linkbutton id="cmdCreateFolder" runat="server" Font-Bold="True" Tooltip="Create new folder"
							CausesValidation="False">
							Create Folder</asp:linkbutton>&nbsp;&nbsp;
						<asp:linkbutton id="cmdDelFolder" runat="server" Font-Bold="True" Tooltip="Delete current folder and its content"
							CausesValidation="False">
							Delete Current Folder</asp:linkbutton>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					</TD>
				</TR>
				<TR>
					<TD class="PaneLeft"><asp:hyperlink id="lnkUp" runat="server" Font-Bold="True" Width="100%" height="14px">
							[ Up ]</asp:hyperlink></TD>
				</TR>
				<TR>
					<TD><asp:datagrid id="dgExplorer" runat="server" Width="100%" AutoGenerateColumns="False" CellPadding="2"
							BorderWidth="1px" BorderStyle="None">
							<SelectedItemStyle Font-Bold="True" ForeColor="#663399" BackColor="#FFCC66"></SelectedItemStyle>
							<ItemStyle ForeColor="#330099" CssClass="SubTabRow" Height="21px"></ItemStyle>
							<HeaderStyle Font-Bold="True" ForeColor="#FFFFCC" CssClass="HeadBg"></HeaderStyle>
							<FooterStyle ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
							<Columns>
								<asp:TemplateColumn>
									<ItemTemplate>
										<asp:CheckBox id="CheckBox1" runat="server"></asp:CheckBox>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="File Name">
									<ItemTemplate>
										<asp:HyperLink id="HyperLink1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "name") %>'>
										</asp:HyperLink>
									</ItemTemplate>
									<EditItemTemplate>
										<asp:TextBox id="TextBox1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "name") %>'>
										</asp:TextBox>
									</EditItemTemplate>
								</asp:TemplateColumn>
								<asp:BoundColumn DataField="modified" ReadOnly="True" HeaderText="Last Modified"></asp:BoundColumn>
								<asp:BoundColumn DataField="size" ReadOnly="True" HeaderText="Size"></asp:BoundColumn>
								<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Rename"></asp:EditCommandColumn>
							</Columns>
							<PagerStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></PagerStyle>
						</asp:datagrid></TD>
				</TR>
				<TR>
					<TD class="SubTabRow"><asp:label id="lblUploadHeading" runat="server" Font-Bold="True">
							Select File To Upload :</asp:label>&nbsp; <INPUT class="SearchEditBox" id="File1" style="WIDTH: 243px; HEIGHT: 22px" type="file"
							accept="image/*" size="21" name="File1" runat="server">&nbsp;
						<asp:linkbutton id="cmdUpload" Font-Bold="True" runat="server" CausesValidation="False">
							Upload</asp:linkbutton></TD>
				</TR>
				<TR>
					<TD class="PaneLeft"><asp:label id="lblErrMsg" ForeColor="Red" Font-Bold="True" runat="server" Width="100%"></asp:label></TD>
				</TR>
			</TABLE>
			<Portal:Divider runat="server" id="Divider1" /></TD>
	</TR>
</TABLE>
