<% @Import Namespace="Seven.Front" %>
<% @Import Namespace="Seven.Front.Globals" %>
<% @Import Namespace="Seven.Front.Objects" %>
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Model.master.cs" Inherits="Seven.Front.Model" %>

<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <!-- #include file="JS_CSS.html" -->

    <script type="text/javascript">

        function mostrarAjaxAccordion()
        {
            localStorage["AccLoad"] = 1;

            $.ajax({
                type: "GET",
                url: 'Servicio.svc/GetAccordion',
                data: { "U": "<%=Request.Cookies[Parametros.COOKIE_USR].Value %>", "N": "<%=Request.Cookies[Parametros.COOKIE_NOM].Value %>"
                    , "D": "<%=Request.Cookies[Parametros.COOKIE_DAT].Value %>", "I": "<%=Enigma.Encriptar(Request.ServerVariables["REMOTE_ADDR"]) %>"
                    , "LangCode": "<%=LangCodeMaster %>", "SubDir": "0" },
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                beforeSend: function () {
                    $("#SysMenu").html("<div style='text-align: center;'><img src='img/cargando2.gif' alt='cargando' style='display: block; margin: auto; padding-top: 30px;' /></div>");
                },
                success: function (json) {
                    $("#SysMenu").html(json.d);
                    $("#SevenMenu").accordion({ collapsible: true, autoHeight: false });
                    jQueryUIOtraVez();
                    localStorage["AccLoad"] = 0;
                    SetAccordionRes();
                }
            });
        };

        function mostrarAjaxAccordionUser()
        {
            localStorage["AccLoad"] = 1;

            $.ajax({
                type: "GET",
                url: 'Servicio.svc/GetAccordionForm',
                data: { "U": "<%=Request.Cookies[Parametros.COOKIE_USR].Value %>", "N": "<%=Request.Cookies[Parametros.COOKIE_NOM].Value %>"
                    , "D": "<%=Request.Cookies[Parametros.COOKIE_DAT].Value %>", "I": "<%=Enigma.Encriptar(Request.ServerVariables["REMOTE_ADDR"]) %>"
                    , "LangCode": "<%=LangCodeMaster %>", "SubDir": "0" },
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                beforeSend: function () {
                    $("#SysMenu").html("<div style='text-align: center;'><img src='img/cargando2.gif' alt='cargando' style='display: block; margin: auto; padding-top: 30px;' /></div>");
                },
                success: function (json) {
                    $("#SysMenu").html(json.d);
                    $("#SevenMenu").accordion({ collapsible: true, autoHeight: false });
                    jQueryUIOtraVez();
                    localStorage["AccLoad"] = 0;
                    SetAccordionRes();
                }
            });
        };

        function ShowUserMenu() {
            <%=HayOpcionesUsr ? "$('#SevenMenuAccordionTabs').tabs('option', 'active', 1);" : "" %>
        };

    </script>

    <asp:ContentPlaceHolder ID="cpHeader" runat="server">

    </asp:ContentPlaceHolder>

</head>
<body>

    <form id="form1" style="height: 100%;" runat="server">

    <div id="wrap">

        <!-- #include file="Cargando.html" -->
        
        <div id="contenido">

            <!-- #include file="Accordion.html" -->
            
            <div id="cuerpo">
                
                <asp:ContentPlaceHolder ID="cpPrincipal" runat="server">
        
                </asp:ContentPlaceHolder>
                
                <!-- #include file="StatusBar.html" -->
                    
            </div>
        
        </div>
    
    </div>

    </form>
    
</body>
</html>
