<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Configuration.aspx.vb" Inherits="WebFoundations.WFPortal.UI.Configuration2" %>

<!DOCTYPE html>
<html>
<head>
    <title>[Configura&ccedil;&atilde;o/Configuration]</title>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <script src="/theme/html5" type="text/javascript"></script>
    <link href="/theme/styles" rel="stylesheet" type="text/css" />
    <link rel="shortcut icon" href="/favicon.ico?v=2" type="image/x-icon" />
    <script src="/theme/scripts"></script>
    <style type="text/css">
        .offline-alert{
            padding:1em;
            color:#fff;
            background:red;
            font-weight:600;
            text-align:center;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />

        <header>
            <a href="/" class="logo">
                <h1><%:WebFoundations.WFPortal.Management.Settings.AppSettings.SiteTitle%></h1>
            </a>
            <nav></nav>
        </header>

        <main>
            <section class="pos-aviso configuracao">
                <div class="aviso-img"></div>
                <div class="aviso-titulo">
                    <%If Not WebFoundations.WFPortal.Management.Settings.AppSettings.SiteOnline Then %>
                        <div class="offline-alert">
                            O site está em modo Offline. Para ativar verifique o valor da chave 'WFPortal.SiteOnline' no web.config.
                        </div>
                    <%End if%>
                    Configura&ccedil;&atilde;o do Sistema
                </div>

                <div class="login-conteudo">
                    <asp:Panel ID="pnlLogin" runat="server">
                        <table border="0" cellpadding="5" cellspacing="0">
                            <tr>
                                <td align="right" class="loginLabelTexto">Digite a senha :&nbsp;&nbsp;<asp:TextBox ID="txtconfigpwd" runat="server" TextMode="Password"></asp:TextBox></td>
                                <td align="left">
                                    <asp:Button ID="btnlogin" runat="server" CssClass="loginCampoTexto" Text="Configurar" UseSubmitBehavior="True" /></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <div class="zuri_conteudo_header">
                        <asp:Panel ID="pnlconfig" runat="server" Visible="false">
                            <!-- CONTEUDO -->
                            <table width="100%" border="0" cellpadding="4" cellspacing="0">
                                <tr>
                                    <td align="center">
                                        <!-- CONTEUDO DETALHE -->
                                        <table border="0" cellpadding="2" cellspacing="2">
                                            <tr>
                                                <td colspan="2">
                                                    <asp:UpdatePanel ID="ContentPanel" runat="server">
                                                        <ContentTemplate>
                                                            <table border="0" cellpadding="2" cellspacing="1">
                                                                <tr>
                                                                    <td valign="top">
                                                                        <table border="0" cellpadding="1" cellspacing="1">
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Button ID="btnlicense" runat="server" CssClass="loginCampoTexto" Text="Licen&ccedil;a" Width="250px" OnClick="btnlicense_Click" /></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Button ID="btnlicdet" runat="server" CssClass="loginCampoTexto" Text="Licen&ccedil;a Det." Width="250px" /></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Button ID="btngrants" runat="server" CssClass="loginCampoTexto" Text="Permiss&otilde;es" Width="250px" OnClick="btngrants_Click" /></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Button ID="btndatabase" runat="server" CssClass="loginCampoTexto" Text="Banco de Dados" Width="250px" /></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Button ID="btnconfig" runat="server" CssClass="loginCampoTexto" Text="Configura&ccedil;&atilde;o" Width="250px" /></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Button ID="btnsetup" runat="server" CssClass="loginCampoTexto" Text="Setup" Width="250px" /></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Button ID="btnmodules" runat="server" CssClass="loginCampoTexto" Text="M&oacute;dulos" Width="250px" /></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Button ID="btnLanguage" runat="server" CssClass="loginCampoTexto" Text="Regionalization" Width="250px" /></td>
                                                                            </tr>
                                                                            <asp:Repeater ID="repdynamic" runat="server">
                                                                                <ItemTemplate><tr><td><asp:Button ID="dynCommand" runat="server" CssClass="loginCampoTexto" Width="250px" /></td></tr></ItemTemplate>
                                                                            </asp:Repeater>
                                                                        </table>
                                                                    </td>
                                                                    <td valign="top" class="loginLabelTexto" style="background: white;">
                                                                        <asp:Panel ID="pnlSetupType" runat="server" Visible="false">
                                                                            <asp:Button ID="btnEmpty" runat="server" CssClass="loginCampoTexto" Text="Aplicação vazia" Width="250px" />
                                                                            <asp:Button ID="btnBasic" runat="server" CssClass="loginCampoTexto" Text="Aplicação + Páginas básicas" Width="250px" />
                                                                            <asp:Button ID="btnContent" runat="server" CssClass="loginCampoTexto" Text="Aplicação + Conteúdo Demo" Width="250px" />
                                                                        </asp:Panel>
                                                                        <asp:Panel ID="pnlLanguage" runat="server" Visible="false">
                                                                            <asp:Button ID="bntPT" runat="server" CssClass="loginCampoTexto" Text="PT - Português" Width="250px" />
                                                                            <asp:Button ID="btnEN" runat="server" CssClass="loginCampoTexto" Text="EN - English" Width="250px" />
                                                                            <asp:Button ID="btnES" runat="server" CssClass="loginCampoTexto" Text="ES - Español" Width="250px" />
                                                                        </asp:Panel>
                                                                        <asp:PlaceHolder ID="phcontent" runat="server"></asp:PlaceHolder>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                                        <ProgressTemplate><span class="loginLabelTexto">Executando.....Aguarde</span></ProgressTemplate>
                                                    </asp:UpdateProgress>
                                                </td>
                                            </tr>
                                        </table>
                                        <!-- FIM CONTEUDO DETALHE -->
                                    </td>
                                </tr>
                            </table>
                            <!-- FIM CONTEUDO -->
                        </asp:Panel>
                    </div>
                </div>
            </section>
        </main>

        <footer>Zuri © Copyright WF - Todos os direitos reservados</footer>
    </form>
</body>
</html>
