<%@ Page Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="CharterImageManagement_Default" %>

<%@ Register Src="Controls/Header.ascx" TagName="Header" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="adminPageBody" Runat="Server">
          

    <div>
        <uc1:Header ID="Header1" runat="server" />
        <br />
        <table>
            <tr>
                <td colspan="2" align="left">
                   &nbsp;&nbsp;&nbsp; <asp:Label ID="imageListLabel" runat="server" Text="Existing Images" Font-Bold="True"></asp:Label><br />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:ListBox ID="imageListBox" runat="server" Rows="15" AutoPostBack="true"></asp:ListBox><br />
                    <br />
                    <asp:Label ID="lblViewSelectedImage" runat="server" Text="" Visible="true"></asp:Label>
                    <br />
                    <%--<asp:Button ID="btnSiteSettings" runat="server" Text="Reset Cache" ToolTip="USE VERY SPARINGLY! Use this button after you update an image.  Beware since this button resets the Cache' on the whole site, there are performance issues with doing this." />
                    &nbsp;&nbsp;&nbsp;--%><asp:Button ID="deleteButton" runat="server" EnableTheming="True"
                        Text="Delete Image File Selected" />
                    <br />
                </td>
                <td style =" vertical-align :text-top "> 
                    <asp:Panel ID="searchTable" runat="server">
                        <table border="1" cellspacing="0" cellpadding="5">
                            <tr>
                                <td>
                                    <asp:Label ID="documentsLabel" runat="server" Text="Search Active Images" Font-Bold="True"></asp:Label>
                                    <br />
                                    <br />
                                    <asp:TextBox ID="searchText" runat="server" Rows="200" Width="200px" EnableViewState="true"></asp:TextBox><asp:Button
                                        ID="SearchButton" runat="server" Text="Search" EnableViewState="true" />
                                    <br />
                                    <div style="height: 172px; text-decoration: none;" id="editLnk">
                                        <div style="display: block; height: auto; margin-top: 10px; line-height: 16px; text-align: left">
                                            <asp:ListBox ID="imageSearchListBox" runat="server" Rows="9" AutoPostBack="true">                                               
                                            </asp:ListBox><br />
                                        </div>
                                    </div>
                                    
                                    <div>
                                    <asp:Button ID="btnDelSearchImage" runat="server" Visible="false" EnableTheming="True" Text="Delete Image" />
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>  
                </td>
            </tr>
        </table>
        <br />
        <table>
            <tr>
                <td>
                    <table border="1">
                        <tr>
                            <td>
                                <asp:Label ID="uploadLabel" runat="server" Text="Add New Image" Font-Bold="True"></asp:Label><br />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:FileUpload ID="fileUpload" runat="server" Width="300px" /><br />
                                <asp:Button ID="uploadButton" runat="server" Text="Add New File" /></td>
                        </tr>
                    </table>                
                </td>
                <td>
                    <table border="1">
                        <tr>
                            <td>
                                <asp:Label ID="lblModifyExistingImage" runat="server" Text="Modify Existing Image" Font-Bold="True"></asp:Label><br />
                            </td>
                        </tr>
                        <tr>
                            <td>                                
                                <asp:FileUpload ID="fuExistingFile" runat="server" Width="300px" /><br />
                                <asp:Button ID="btnModifyExistingImage" runat="server" Text="Modify Existing File" /></td>
                        </tr>
                    </table>   
                </td>
                
            </tr>
        </table>            
        <table>
            <tr>
                <td align="center">
                    <br />
                    <br />
                    <asp:Label ID="lblStatusMessage" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <div style="text-align: center; width: 50%; margin-bottom: 30px">
            <em>Image Name:</em>&nbsp;<strong><asp:Label ID="imageFileName" runat="server" Text=""></asp:Label></strong><br />
        </div>
        <div style="width: 50%">
            <div>
                <asp:Image BorderColor="Red" BorderStyle="Ridge" BorderWidth="2px" runat="server"
                    ID="imageView" /></div>
        </div>

        

        
        
    </div>

</asp:Content>