<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ConfigFrame.ascx.vb" Inherits="WebFoundations.WFForms.UI.ConfigFrame" %>
<script type="text/javascript">
    function AtualizaXML(Controle, Prop, Objeto, FormID) {
        var strXML = "<POST>";
        strXML += "<controle>" + Controle + "</controle>";
        strXML += "<prop>" + Prop + "</prop>";
        strXML += "<value>" + Objeto.value + "</value>";
        strXML += "<formid>" + FormID + "</formid>";
        strXML += "</POST>";
        var objHTTP = new (this.XMLHttpRequest || ActiveXObject)('MSXML2.XMLHTTP.3.0');
        objHTTP.open("POST", "FormsUpdate.aspx", false);
        objHTTP.send(strXML);
    }

    function ValidaApelido(Objeto) {
        var c, m, exp;
        exp = /^[^a-z]+|[^a-z0-9_]+/gi;
        c = Objeto.value.replace(exp, "");
        if (c != Objeto.value) {
            Objeto.value = c;
        }
    }

    function AtualizaComboXML(Controle, Prop, Valor, FormID) {
        var strXML = "<POST>";
        strXML += "<controle>" + Controle + "</controle>";
        strXML += "<prop>" + Prop + "</prop>";
        strXML += "<value>" + Valor + "</value>";
        strXML += "<formid>" + FormID + "</formid>";
        strXML += "</POST>";
        var objHTTP = new (this.XMLHttpRequest || ActiveXObject)('MSXML2.XMLHTTP.3.0');
        objHTTP.open("POST", "FormsUpdate.aspx", false);
        objHTTP.send(strXML);
    }
</script>
<h3>
    <asp:Literal ID="ltitle" runat="server" Text="Propriedades" /></h3>
<asp:Label ID="noselection" runat="server" CssClass="no-selection" Text="selecione um controle para ver suas propriedades" />

<asp:Panel ID="pnlPagina" CssClass="fields" Visible="false" runat="server">
    <label>
        <asp:Label ID="lblApelido" runat="server" />
        <asp:TextBox ID="txtApelido" runat="server" MaxLength="100" />
    </label>

    <asp:Panel ID="pnlTituloForm" runat="server">
        <asp:Button ID="btnCampos" runat="server" />
    </asp:Panel>

    <asp:Panel ID="pnOpenChildInline" runat="server" Visible="false">
        <asp:Label ID="lblOpenChildInline" runat="server" Text="Abrir filho inline" />
        <asp:DropDownList ID="ddlOpenChildInline" runat="server" ToolTip="Indica se o form filho deverá ser aberto inline (sim) ou em popup (não)">
            <asp:ListItem Value="True">True</asp:ListItem>
            <asp:ListItem Value="False" Selected="True">False</asp:ListItem>
        </asp:DropDownList>
    </asp:Panel>

    <asp:PlaceHolder ID="pnlSubSize" runat="server" Visible="false">
        <label>
            <asp:Label ID="lblWindowWidth" runat="server" />
            <asp:TextBox ID="txtWindowWidth" runat="server" />
        </label>
        <label>
            <asp:Label ID="lblWindowHeight" runat="server" />
            <asp:TextBox ID="txtWindowHeight" runat="server" />
        </label>
        <label>
            <asp:Label ID="lblSaveParent" runat="server">lblReadOnly</asp:Label>
            <asp:DropDownList ID="ddlSaveParent" runat="server">
                <asp:ListItem Value="True">True</asp:ListItem>
                <asp:ListItem Value="False" Selected="True">False</asp:ListItem>
            </asp:DropDownList>
        </label>
    </asp:PlaceHolder>

    <label>
        <asp:Label ID="lblToolTip" runat="server" />
        <asp:TextBox ID="txtToolTip" runat="server" />
    </label>

    <asp:Panel ID="pnlMask" runat="server" ToolTip="Texto digitado terá o mesmo formato definido nesta configuração. Utilizar o caractere '0' para números e caractere 'a' para letras. Exemplos: 000.000.000-00 para CPF e aaa-0000 para placas de automóveis.">
        <asp:Label ID="lblMask" runat="server" />
        <asp:TextBox ID="txtMask" runat="server" />
    </asp:Panel>

    <asp:Panel ID="pnlPlaceHolder" runat="server" ToolTip="Conteúdo que será exibido dentro da caixa de texto, enquanto a mesma não estiver preenchida.">
        <asp:Label ID="lblPlaceHolder" runat="server" />
        <asp:TextBox ID="txtPlaceHolder" runat="server" />
    </asp:Panel>

    <asp:Panel ID="pnlFileName" runat="server" Visible="false">
        <asp:Label ID="lblFileName" runat="server">lblFileName</asp:Label>
        <asp:TextBox ID="txtFileName" MaxLength="40" runat="server" />
    </asp:Panel>

    <asp:PlaceHolder ID="pnlRadioCheck" runat="server">
        <label>
            <asp:Label ID="lblRepeatColums" runat="server" />
            <asp:TextBox ID="txtNumColunas" runat="server" />
        </label>
        <asp:PlaceHolder ID="pnlRepeatDirection" runat="server">
            <label>
                <asp:Label ID="lblRepeatDirection" runat="server" />
                <asp:DropDownList ID="dplRepeatDirection" runat="server">
                    <asp:ListItem Value="Horizontal" Text="Horizontal" />
                    <asp:ListItem Value="Vertical" Text="Vertical" Selected="True" />
                </asp:DropDownList>
                <asp:Label ID="lblRepeatLayout" runat="server" Visible="false" />
            </label>
        </asp:PlaceHolder>
    </asp:PlaceHolder>

    <asp:Panel ID="pnlItems" runat="server">
        <asp:Button ID="btnCollection" runat="server" Text="..." />
        <label>
            <asp:Label ID="lblOrderByText" runat="server" />
            <asp:DropDownList ID="ddlOrderByText" runat="server">
                <asp:ListItem Value="True" Text="True" Selected="True" />
                <asp:ListItem Value="False" Text="False" />
            </asp:DropDownList>
        </label>
        <label>
            <asp:Label ID="lblSelPor" runat="server" />
            <asp:DropDownList ID="dplSelPor" runat="server">
                <asp:ListItem Value="Text" Text="Text" Selected="True" />
                <asp:ListItem Value="Value" Text="Value" />
            </asp:DropDownList>
        </label>
    </asp:Panel>

    <asp:Panel ID="pnlText" runat="server">
        <asp:Label ID="lblText" runat="server" />
        <asp:TextBox ID="txtText" runat="server" />
    </asp:Panel>

    <asp:PlaceHolder ID="pnlHtmlConfig" runat="server">
        <label>
            <asp:Label ID="lblControlMode" runat="server">lbltext</asp:Label>
            <asp:DropDownList ID="ddlControlMode" runat="server" AutoPostBack="true">
                <asp:ListItem Selected="True" Text="Normal" Value="NORMAL" />
                <asp:ListItem Value="ASC" />
                <asp:ListItem Value="DESC" />
            </asp:DropDownList>
        </label>
        <label>
            <asp:Label ID="lblTemplateMsgBoard" runat="server">lbltext</asp:Label>
            <asp:DropDownList ID="ddlTemplateMsgBoard" runat="server" Enabled="false" />
        </label>
        <label>
            <asp:Label ID="lblTemplateMsgBoardCont" runat="server">lbltext</asp:Label>
            <asp:DropDownList ID="ddlTemplateMsgBoardCont" runat="server" Enabled="false" />
        </label>
    </asp:PlaceHolder>

    <asp:Panel ID="pnlDefaultVisibility" runat="server">
        <asp:Label ID="lblDefaultVisibility" runat="server">lblDefaultVisibility</asp:Label>
        <asp:DropDownList ID="ddlDefaultVisibility" runat="server">
            <asp:ListItem Value="True" Selected="True">True</asp:ListItem>
            <asp:ListItem Value="False">False</asp:ListItem>
        </asp:DropDownList>
    </asp:Panel>

    <asp:PlaceHolder ID="pnlGeral" runat="server">
        <asp:Panel ID="pnlMaxLenght" runat="server">
            <asp:Label ID="lblMaxLenght" runat="server" />
            <asp:TextBox ID="txtMaxLenght" runat="server" />
        </asp:Panel>

        <asp:PlaceHolder ID="pnlHabilitado" runat="server">
            <label>
                <asp:Label ID="lblHabilitado" runat="server" />
                <asp:DropDownList ID="dplEnable" runat="server">
                    <asp:ListItem Value="True" Text="True" Selected="True" />
                    <asp:ListItem Value="False" Text="False" />
                </asp:DropDownList>
            </label>

            <asp:Panel ID="pnlReadOnly" runat="server">
                <asp:Label ID="lblReadOnly" runat="server" />
                <asp:DropDownList ID="dplReadOnly" runat="server">
                    <asp:ListItem Value="True" Text="True" />
                    <asp:ListItem Value="False" Text="False" Selected="True" />
                </asp:DropDownList>
            </asp:Panel>

            <asp:Panel ID="pnlDisableAfterEdit" runat="server">
                <asp:Label ID="lblDisableAfterEdit" runat="server" />
                <asp:DropDownList ID="dplDisableAfterEdit" runat="server">
                    <asp:ListItem Value="True" Text="True" />
                    <asp:ListItem Value="False" Text="False" Selected="True" />
                </asp:DropDownList>
            </asp:Panel>
        </asp:PlaceHolder>

        <asp:Panel ID="pnlObrigatorio" runat="server">
            <asp:Label ID="lblObrigatorio" runat="server" />
            <asp:DropDownList ID="dplObrigatorio" runat="server">
                <asp:ListItem Value="True" Text="True" Selected="True" />
                <asp:ListItem Value="False" Text="False" />
            </asp:DropDownList>

            <label>
                <asp:Label ID="lblObrigatorioMsg" runat="server" />
                <asp:TextBox ID="txtObrigatorioMsg" runat="server" />
            </label>
        </asp:Panel>
    </asp:PlaceHolder>

    <asp:Panel ID="pnlDataSource" runat="server">
        <asp:Button ID="btnDataSource" runat="server" Text="..." />
    </asp:Panel>

    <asp:Panel ID="pnlExtentions" runat="server">
        <asp:Label ID="lblExtentions" runat="server" />
        <asp:TextBox ID="txtExtentions" runat="server" />
    </asp:Panel>

    <asp:Panel ID="pnlRows" runat="server">
        <asp:Label ID="lblRows" runat="server" />
        <asp:TextBox ID="txtRows" runat="server" />
    </asp:Panel>

    <asp:Panel ID="pnlSelectionMode" runat="server">
        <asp:Label ID="lblSelectionMode" runat="server" />
        <asp:DropDownList ID="dplSelectionMode" runat="server">
            <asp:ListItem Value="Single" Text="Single" />
            <asp:ListItem Value="Multiple" Text="Multiple" />
        </asp:DropDownList>
    </asp:Panel>

    <asp:PlaceHolder ID="pnlTextBox" runat="server">
        <asp:Button ID="btnValidacao" runat="server" Text="..." />
        <label>
            <asp:Label ID="lblValidacaoMsg" runat="server" />
            <asp:TextBox ID="txtValidacaoMsg" runat="server" />
        </label>
        <label>
            <asp:Label ID="lblTextMode" runat="server" />
            <asp:DropDownList ID="dplTextMode" runat="server">
                <asp:ListItem Value="SingleLine" Text="SingleLine" Selected="True" />
                <asp:ListItem Value="MultiLine" Text="MultiLine" />
                <asp:ListItem Value="Password" Text="Password" />
            </asp:DropDownList>
        </label>
    </asp:PlaceHolder>
    <asp:Panel runat="server" ID="pnlFormGrid" Visible="false">
        <label>
            <asp:Label ID="lblCanInsert" runat="server" />
            <asp:DropDownList ID="ddlGridCanInsert" runat="server">
                <asp:ListItem Value="True">True</asp:ListItem>
                <asp:ListItem Value="False">False</asp:ListItem>
            </asp:DropDownList>
        </label>
        <label>
            <asp:Label ID="lblCanUpdate" runat="server" />
            <asp:DropDownList ID="ddlGridCanUpdate" runat="server">
                <asp:ListItem Value="True">True</asp:ListItem>
                <asp:ListItem Value="False">False</asp:ListItem>
            </asp:DropDownList>
        </label>
        <label>
            <asp:Label ID="lblCanDelete" runat="server" />
            <asp:DropDownList ID="ddlGridCanDelete" runat="server">
                <asp:ListItem Value="True">True</asp:ListItem>
                <asp:ListItem Value="False">False</asp:ListItem>
            </asp:DropDownList>
        </label>
    </asp:Panel>
    <asp:Panel ID="pnlAcessar" runat="server">
        <asp:Button ID="btnAcessa" runat="server" Text="..." />
    </asp:Panel>
    <asp:Panel ID="pnlEditar" runat="server">
        <asp:Button ID="btnEdita" runat="server" Text="..." />
    </asp:Panel>
    <asp:Panel ID="pnlExcluir" runat="server">
        <asp:Button ID="btnExclui" runat="server" Text="..." />
    </asp:Panel>
    <asp:Panel runat="server" ID="pnlFormGridFormula">
        <asp:Button ID="btnGridFormula" runat="server" Text="Fórmula FormGrid" />
    </asp:Panel>
</asp:Panel>
<asp:HiddenField ID="txtHidden" runat="server" />


