<%@ Register TagPrefix="UseDAL" TagName="ThemeButton" Src="../Shared/ThemeButton.ascx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register TagPrefix="Selectors" Namespace="UseDAL" %>
<%@ Register TagPrefix="BaseClasses" Namespace="BaseClasses.Web.UI.WebControls" Assembly="BaseClasses" %>
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>

<%@ Page Language="VB" EnableEventValidation="false" AutoEventWireup="false" CodeFile="SelectFileToImport.aspx.vb"
    Inherits="UseDAL.UI.SelectFileToImport" %>

<!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 id="Head1" runat="server">
    <title>SelectFileToImport</title>
    <link rel="stylesheet" rev="stylesheet" type="text/css" href="../Styles/BaseStyles.css" />
    <link rel="stylesheet" rev="stylesheet" type="text/css" href="../Styles/Styles.css" />
    <base target="_self" />
</head>
<body id="Body1" runat="server" class="pBack">
    <form id="Form1" method="post" runat="server">
        <BaseClasses:ScrollCoordinates id="ScrollCoordinates" runat="server">
        </BaseClasses:ScrollCoordinates>
        <BaseClasses:BasePageSettings id="PageSettings" runat="server">
        </BaseClasses:BasePageSettings>

        <script language="JavaScript" type="text/javascript">clearRTL()</script>

        <asp:ScriptManager ID="scriptManager1" runat="server" EnablePartialRendering="True"
            EnablePageMethods="True" />
        <div id="detailPopup" class="detailRolloverPopup" onmouseout="detailRolloverPopupClose();"
            onmouseover="clearTimeout(gPopupTimer);">
        </div>
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td class="pcTL">
                </td>
                <td class="pcT">
                </td>
                <td class="pcTR">
                </td>
            </tr>
            <tr>
                <td class="pcL">
                </td>
                <td class="pcC">
                    <table class="dv" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td class="dBody" style="width: 100%; height: 100%">
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label runat="server" ID="InfoLabel"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input type="file" id="InputFile" name="InputFile" runat="server" size="80" /></td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <br />
                                            <asp:Label runat="server" ID="fileInfo"></asp:Label></td>
                                    </tr>
                                </table>
                               <asp:UpdatePanel ID="FileSelectionPanel" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <table>
                                        <tr>
                                            <td colspan="4">
                                                <asp:RadioButton ID="rbtnCSV" runat="server" AutoPostBack="true" Checked="true" GroupName="ImportGroup"
                                                    OnCheckedChanged="rbtnCSV_CheckedChanged" />
                                                <%--<asp:Panel ID="pnlCSV" runat="server" Enabled="true">
                                                </asp:Panel>--%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <asp:RadioButton ID="rbtnTAB" runat="server" AutoPostBack="true" Checked="false" GroupName="ImportGroup"
                                                    OnCheckedChanged="rbtnTAB_CheckedChanged" />
                                                <%--<asp:Panel ID="pnlTAB" runat="server" Enabled="true">
                                                </asp:Panel>--%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <asp:RadioButton ID="rbtnExcel" runat="server" AutoPostBack="true" GroupName="ImportGroup"
                                                    OnCheckedChanged="rbtnExcel_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <%--<asp:Panel ID="pnlExcel" runat="server" Enabled="false">--%>
                                            <tr>
                                                <td style="width: 10px">
                                                </td>
                                                <td>
                                                    <asp:Label ID="ExcelSheetname" runat="server">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtExcelSheetname" runat="server" CssClass="field_input" Text="Sheet1"></asp:TextBox>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        <%--</asp:Panel>--%>
                                        <tr>
                                            <td colspan="4">
                                                <asp:RadioButton ID="rbtnAccess" runat="server" AutoPostBack="true" GroupName="ImportGroup"
                                                    OnCheckedChanged="rbtnAccess_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <%--<asp:Panel ID="pnlAccess" runat="server" Enabled="false">--%>
                                            <tr>
                                                <td style="width: 10px">
                                                </td>
                                                <td>
                                                    <asp:Label ID="AccessTableName" runat="server">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtAccessTableName" runat="server" CssClass="field_input" Text="Table1"></asp:TextBox><br />
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 10px">
                                                </td>
                                                <td>
                                                    <asp:Label ID="AccessPassword" runat="server">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtAccessPassword" runat="server" CssClass="field_input" TextMode="Password"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="AccessPasswordOptional" runat="server">
                                                    </asp:Label>
                                                </td>
                                            </tr>
                                        <%--</asp:Panel>--%>
                                    </table>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                                <table>
                                    <tr>
                                        <td>
                                            <br />
                                            <UseDAL:Themebutton runat="server" id="NextButton" button-text="&lt;%# GetResourceValue(&quot;Import:Next&quot;, &quot;UseDAL&quot;) %>"
                                                button-tooltip="&lt;%# GetResourceValue(&quot;Import:Next&quot;, &quot;UseDAL&quot;) %>">
		</UseDAL:Themebutton>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td class="pcR">
                </td>
            </tr>
            <tr>
                <td class="pcBL">
                </td>
                <td class="pcB">
                </td>
                <td class="pcBR">
                </td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" ShowMessageBox="true" ShowSummary="false"
            runat="server"></asp:ValidationSummary>
    </form>
</body>
</html>
