<%@ Page language="c#" Codebehind="FileManager.aspx.cs" AutoEventWireup="false" Inherits="EasyWebEditor.FileManager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Select a File</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">
		<style>.inputArea { FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: tahoma; HEIGHT: 20px }
	BODY { MARGIN: 0px }
		</style>
	</HEAD>
	<body leftMargin="0" topMargin="0">
		<form id="Form1" encType="multipart/form-data" runat="server">
			<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tbody>
					<tr>
						<td vAlign="top">
							<TABLE cellSpacing="1" cellPadding="1" width="160">
								<TR>
									<TD colSpan="3"><IMG hspace="0" src="images/explorer.jpg">
									</TD>
								</TR>
								<TR>
									<TD colSpan="3"><asp:label id="Header" style="TEXT-ALIGN: left" runat="server" Height="20px" ForeColor="Black" font-name="Arial" font-size="14px" Width="100%" EnableViewState="False"></asp:label></TD>
								</TR>
								<TR>
									<TD colSpan="3"><IMG hspace="0" src="images/line.jpg">
									</TD>
								</TR>
								<TR>
									<TD colSpan="3"><asp:label id="lblFileName" style="TEXT-ALIGN: left" runat="server" Height="20px" ForeColor="Black" font-name="Arial" font-size="12px" Width="100%" EnableViewState="False"></asp:label><asp:label id="lblFileModified" style="TEXT-ALIGN: left" runat="server" Height="20px" ForeColor="Black" font-name="Arial" font-size="10px" Width="100%" EnableViewState="False"></asp:label><asp:label id="lblFileSize" style="TEXT-ALIGN: left" runat="server" Height="20px" ForeColor="Black" font-name="Arial" font-size="10px" Width="100%" EnableViewState="False"></asp:label><asp:imagebutton id="UpBtn" runat="server" EnableViewState="False" ToolTip="Up one level" ImageUrl="images/Up.gif" CommandName="ChangePath" CommandArgument="../"></asp:imagebutton><asp:imagebutton id="GoRoot" runat="server" EnableViewState="False" ImageUrl="images/Home.gif" CommandName="ChangePath" CommandArgument="/" AlternateText="Back to Root Directory"></asp:imagebutton></TD>
								</TR>
								<TR>
									<TD colSpan="3" height="50"></TD>
								</TR>
								<TR>
									<TD></TD>
									<TD><asp:image id="imgPreview2" style="VISIBILITY: hidden" runat="server"></asp:image><IMG id="imgPreview" style="VISIBILITY: hidden">
									</TD>
									<TD></TD>
								</TR>
							</TABLE>
						</td>
						<td vAlign="top" align="left" width="100%" colSpan="1" height="100%"><asp:datagrid id="dgFSList" runat="server" ForeColor="White" Width="100%" EnableViewState="False" BorderStyle="None" BorderWidth="1px" BorderColor="White" CellPadding="3" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" PageSize="15" PagerStyle-HorizontalAlign="Center" PagerStyle-NextPageText="Next >>" PagerStyle-PrevPageText="<< Prev" BackColor="White">
								<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
								<EditItemStyle Font-Size="12px" Font-Names="Tahoma" HorizontalAlign="Center" ForeColor="#4A3C8C" BackColor="#FFFF99"></EditItemStyle>
								<ItemStyle Font-Size="12px" Font-Names="Tahoma" ForeColor="#000066"></ItemStyle>
								<HeaderStyle Font-Size="13px" Font-Names="Arial" Font-Bold="True" HorizontalAlign="Center" ForeColor="Black" BackColor="Silver"></HeaderStyle>
								<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
								<Columns>
									<asp:TemplateColumn SortExpression="IsFile">
										<ItemTemplate>
											<asp:Image runat="server" id="imgFSObject" />
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn SortExpression="FileName" HeaderText="File Name">
										<ItemTemplate>
											<asp:LinkButton runat="server" id="lbFileName" CommandName="FSOClick" />
										</ItemTemplate>
										<EditItemTemplate>
											<asp:TextBox runat="server" id="txtFileName" Text='<%# DataBinder.Eval(Container.DataItem, "FileName") %>' />
										</EditItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn SortExpression="Size" HeaderText="Size">
										<ItemTemplate>
											<asp:Label runat="server" id="lblSize" />
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn SortExpression="Modified" HeaderText="Modified">
										<ItemTemplate>
											<asp:Label runat="server" id="lbModified" />
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="Action">
										<ItemTemplate>
											<asp:LinkButton CommandName="Del" runat="server" id="imbDel" Text="<img src='images/del.gif' border='0' align='center'/>" ToolTip="Delete" Visible="False" />
											<asp:LinkButton CommandName="Rename" runat="server" id="imbRen" Text="<img src='images/ren.gif' border='0' align='center'/>" ToolTip="Rename" Visible="False" />
											<asp:LinkButton CommandName="View" runat="server" id="lbView" Text="<img src='images/view.gif' border='0' align='center'/>" ToolTip="View" Visible="False" />
										</ItemTemplate>
										<EditItemTemplate>
											<asp:LinkButton CommandName="Update" runat="server" id="imbUpdate" Text="<img src='images/update.gif' border='0' align='center'/>" ToolTip="Update" />
											<asp:LinkButton CommandName="Cancel" runat="server" id="imbCancel" Text="<img src='images/cancel.gif' border='0' align='center'/>" ToolTip="Cancel" />
										</EditItemTemplate>
									</asp:TemplateColumn>
								</Columns>
								<PagerStyle NextPageText="Next &gt;&gt;" Font-Size="12px" Font-Names="Arial" PrevPageText="&lt;&lt; Prev" HorizontalAlign="Center" ForeColor="#000066" BackColor="White" Mode="NumericPages"></PagerStyle>
							</asp:datagrid></td>
					</tr>
					<asp:placeholder id="UploadArea" runat="server" EnableViewState="False" Visible="false">
						<TR>
							<TD bgColor="activeborder" height="30"><IMG src="images/upload.gif" align="left"><FONT face="Arial" color="#000000" size="2"><NOBR>Upload 
										a file</NOBR></FONT></TD>
							<TD bgColor="activeborder" height="30">
								<INPUT class="inputArea" id="fileToUpload" type="file" size="15" name="fileToUpload" runat="server">
								<asp:ImageButton id="ibUpload" runat="server" ImageUrl="images/UploadButton.gif"></asp:ImageButton></TD>
						</TR>
					</asp:placeholder><asp:placeholder id="CreateDirArea" runat="server" EnableViewState="False" Visible="false">
						<TR>
							<TD bgColor="activeborder" height="30"><IMG src="images/CreateFolder.gif" align="left"><FONT face="Arial" color="#000000" size="2"><NOBR>Create 
										new folder</NOBR></FONT></TD>
							<TD bgColor="activeborder" height="30">
								<asp:textbox class="inputArea" id="NewFolderText" runat="server" EnableViewState="False" Size="15"></asp:textbox>&nbsp;
								<asp:ImageButton id="ibNewFolder" runat="server" ImageUrl="images/createbutton.gif"></asp:ImageButton></TD>
						</TR>
					</asp:placeholder></tbody></table>
		</form>
	</body>
</HTML>
