<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_testata.ascx.cs" Inherits="GMW.WebUserControls.mod_testata" %>
<%if (false)
  { %>
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/css" />
<%} %>


<div class="bg-dark fixed-top small">
  <div class="d-flex">
    <div class="mr-auto p-2">
      <ul class="nav nav-pills">
        <li class="text-light nav-item navbarSep">
          <asp:LinkButton runat="server" ID="lbnUpdate" Text="---" OnClick="lbnUpdate_Click" CssClass="text-light" ToolTip="Update + HOME"> <i class="fa fa-home fa-lg"></i></asp:LinkButton>
        </li>
        <li class="text-light nav-item navbarSep">
          <asp:HyperLink runat="server" ID="hlUser" CssClass="text-light" ToolTip='<%# usrAuthToolTip %>'>
            <i class="fa fa-user fa-lg <%: usrAuthCss %>"></i>
            <asp:Label runat="server" ID="lblMatr" Text='<%# usrAuthText %>' />
          </asp:HyperLink></li>
        <li class="text-light nav-item">
          <asp:LinkButton runat="server" ID="lbnUpdatePage" Text="---" OnClick="lbnUpdatePage_Click" ToolTip="Update" CssClass="text-light"> <%: nomePag %>&nbsp;<i class="<%: cssIconPag %>"></i></asp:LinkButton>
        </li>
      </ul>
    </div>
    <div class="p-2">
      <ul class="nav nav-pills">
        <asp:Repeater ID="menu" runat="server" DataSourceID="XmlMenu">
          <ItemTemplate>
            <li class="nav-item dropdown">
              <a href='<%# XPath("@url").ToString().Replace("~/","") %>' class="nav-link dropdown-toggle text-light bg-dark" data-toggle="dropdown">
                <i class='<%# XPath("@description")%>'></i>
                <%# XPath("@title")%>
                <b class="caret"></b>
              </a>
              <div class="dropdown-menu">
                <asp:Repeater ID="voci" runat="server" DataSource='<%# XPathSelect("voce") %>'>
                  <ItemTemplate>
                    <a href='<%# XPath("@url").ToString().Replace("~/","")%>' class="dropdown-item py-0">
                      <i class='<%# XPath("@description")%>'></i>
                      <%# XPath("@title")%>
                    </a>
                  </ItemTemplate>
                </asp:Repeater>
              </div>
            </li>
          </ItemTemplate>
          <SeparatorTemplate>
          </SeparatorTemplate>
        </asp:Repeater>
        <li>
          <asp:LinkButton runat="server" ID="lbShowNumKey" CssClass="bg-dark text-light" OnClick="lbShowNumKey_Click" ToolTip="Mostra Num Key">&nbsp;<i class="fa fa-calculator fa-lg"></i></asp:LinkButton></li>
      </ul>
      <asp:XmlDataSource ID="XmlMenu" runat="server" EnableCaching="true" CacheDuration="5"></asp:XmlDataSource>
    </div>
  </div>
  <div class="d-flex text-light border-top border-secondary">
    <div class="px-2 text-light">
      postazione: <%: SteamWare.memLayer.ML.StringSessionObj("postazione_name") %>
    </div>
    <div class="ml-auto px-2 text-light">
      stampante: <%: SteamWare.memLayer.ML.StringSessionObj("postazione_printer") %>
    </div>
  </div>
</div>
