<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/WFAdmin/ModalAdminPage.master" CodeBehind="FormImport.aspx.vb" Inherits="WebFoundations.WFForms.UI.FormImport" %>

<%@ Register Src="~/WFControls/WFPagePicker.ascx" TagName="WFPagePicker" TagPrefix="uc1" %>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="pnlselecao" runat="server" CssClass="fields no-columns">
        <label>
            <asp:Label ID="lbldestino" runat="server" />
            <asp:Label ID="lblarea" runat="server" />
        </label>
        <label style="display:none">
            <asp:Label ID="lblarquivos" runat="server" />
        </label>
        <label>
            <asp:Label ID="lblorigem" runat="server" />
            <uc1:WFPagePicker ID="areaorigem" runat="server" Width="120" AddSelect="true"
                AdminMode="true" AutoSelectLast="false" ShowArea="true" ShowPage="false" NoLabels="true" />
            <asp:DropDownList ID="lstarquivos" Visible="false" runat="server" />
            <asp:Button ID="btnBuscar" runat="server" />
        </label>
        <label>
            <asp:Label ID="lblcarregue" runat="server" />
            <asp:FileUpload ID="fupFormFile" runat="server" />
        </label>
        <section class="actions">
            <asp:Button ID="btnImportar" runat="server" />
            <input id="btncancelimp" type="button" runat="server" />
        </section>
    </asp:Panel>
    <asp:Panel ID="pnlUpdate" Visible="false" runat="server">
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td align="center">
                    <asp:Label ID="lblupdate" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td align="center">&nbsp;</td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Button ID="btnupdateOK" runat="server" CssClass="button" />&nbsp;&nbsp; &nbsp;
                        <asp:Button ID="btnupdateNOK" runat="server" CssClass="button" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="pnldetalhes" Visible="false" runat="server">
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td colspan="2">
                    <asp:PlaceHolder ID="phdescr" runat="server"></asp:PlaceHolder>
                </td>
            </tr>
            <tr id="configimport" runat="server">
                <td>
                    <asp:Label ID="lblnome" runat="server"></asp:Label>&nbsp;:</td>
                <td>
                    <asp:TextBox ID="txtNome" runat="server" MaxLength="30" Width="272px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="obrnome" runat="server" ControlToValidate="txtNome" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr id="configimportapelido" runat="server">
                <td>
                    <asp:Label ID="lblApelido" runat="server"></asp:Label>&nbsp;:</td>
                <td>
                    <asp:TextBox ID="txtApelido" runat="server" MaxLength="30" Width="272px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="obrapelido" runat="server" ControlToValidate="txtApelido" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revApelido" runat="server" ControlToValidate="txtApelido"
                        ValidationExpression="^[a-zA-Z][a-zA-Z0-9_]{2,29}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr id="trmapeamento" runat="server">
                <td>
                    <asp:Label ID="lblmapeamento" runat="server"></asp:Label>&nbsp;:</td>
                <td>
                    <asp:PlaceHolder ID="phmapeamento" runat="server"></asp:PlaceHolder>
                </td>
            </tr>
            <tr>
                <td colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:Button ID="btnok" runat="server" CssClass="button" />&nbsp;&nbsp; &nbsp;
                    <input id="btncancel" type="button" class="button" runat="server" /></td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
