<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Layout.master.cs" Inherits="ACS.WebUpdater.Layout" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
    
<head runat="server">
    <title>Web Updater</title>
    <script src="//code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
    <script src="//code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
    <script src="Scripts/jquery.signalR-1.2.2.min.js"></script>
    <script src="signalr/hubs"></script>
    <script src="js/helper.js"></script>
    <script type="text/javascript">
        $(function () {
            // Declare a proxy to reference the hub. 
            var notifications = $.connection.notificationsHub;

            if (typeof notifications !== 'undefined') {
                notifications.client.addMessage = function (message) {
                    var notifications = document.getElementById("meResult");
                    if (notifications != null) {
                        notifications.value = notifications.value + message;
                    }
                    //$("#notifications").append("<span>" + message + "</span><br />");
                };

                $.connection.hub.start();
            }           
        });
    </script>
    <link rel="stylesheet" href="style/style.css" />
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <header>
        <hgroup>
            <h1>
                <asp:Label ID="Label3" runat="server" Text="Infominds"></asp:Label>
            </h1>
            <h2>
                <asp:Label ID="Label2" runat="server" Text="Web Updater"></asp:Label>
                <asp:Label ID="lblIIS" runat="server"></asp:Label>
            </h2>
            <h3>
                <asp:Label ID="Label1" runat="server" Text="Signed in:" Width="7em"></asp:Label>
                <asp:Label ID="lblSignedIn" runat="server"></asp:Label>
                <asp:LinkButton ID="lbSignInAsDifferentUser" runat="server" style="text-align: right" Width="13em" OnClick="lbSignInAsDifferentUser_Click">Sign in as other user</asp:LinkButton>
                <br /><br />
                <asp:LinkButton ID="lbCheckRights" runat="server" style="text-align: left" Width="13em" OnClick="lbCheckRights_Click">Check permissions</asp:LinkButton>
            </h3>
        </hgroup>
    </header>
    <div id="main">
            <asp:ContentPlaceHolder ID="mainContent" runat="server">        
            </asp:ContentPlaceHolder>
    </div>
    <footer>        
        INFOMINDS AG SPA<br />
        I-39042 Brixen, Brennerstr. 72 | I-39100 Bozen, Via Luigi Negrelli 6 | I-37069 Villafranca di Verona, Via Monte Baldo 6 | D-81245 München, Marzellgasse 9 | D-48155 Münster, Hafenweg 26a<br />
        <a href="callto:+390472057700">T +39 0472 057 700 </a>– F +39 0472 057 701 – <a href="mailto:info@infominds.eu">info@infominds.eu</a>
    </footer>
    <!-- <%= ((System.Security.Principal.WindowsIdentity)HttpContext.Current.User.Identity) != null ? ((System.Security.Principal.WindowsIdentity)HttpContext.Current.User.Identity).Name : "" %> -->
    </form>
</body>
        
</html>
