<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FileBrowser.aspx.cs" Inherits="FileBrowser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title>File Browser</title>
   <link href="chapterStyles.css" type="text/css" rel="stylesheet" />
   <style type="text/css">
      .boxes { margin: 5px; 
               padding: 5px; 
               width: 500px;
               border: dimgray thin solid;
               font: Verdana, Arial;
               font-size:  10pt;
               background-color: beige;}      
   </style>
</head>
<body style="font-family: Verdana,Arial">
   <form id="form1" runat="server">
    <h1 class="boxes" >
    Pliki na serwerze: <asp:Literal id="litLocation" runat="server" />
    </h1>
    <asp:Panel ID="panFiles" runat="server" CssClass="boxes">
      <asp:PlaceHolder ID="myPlaceHolder" runat="server"></asp:PlaceHolder>
    </asp:Panel>

    <asp:Panel ID="Panel1" runat="server" CssClass="boxes" >
      <asp:TextBox ID="txtFolder" runat="server" ></asp:TextBox>
      <asp:Button ID="btnNewFolder" runat="server" Text="Utwórz nowy folder" OnClick="btnNewFolder_Click"/>
    </asp:Panel>

    <asp:Panel ID="panUpload" runat="server" CssClass="boxes" >
      Wybierz plik do wysłania na serwer<br />
      <asp:FileUpload ID="fupTest" runat="server" Width="400px"/>
      <br />
      <asp:Button ID="btnUpload" runat="server" Text="Wyślij plik" OnClick="btnUpload_Click" />
      <p>
      <asp:Label ID="labMessage" runat="server"></asp:Label> 
      </p>
    </asp:Panel>
   </form>
</body>
</html>
