<%@ control language="C#" autoeventwireup="true" inherits="ims.header, ims.web" %>
<table class="headtop">
    <tr>
        <td><a href="m.aspx?home=Mobile"><img src="images/logo.png" /><i id="logotxt"><%= ims.Util.TrimStr(ims.Sys.SysName, 8) %></i></a>
            <asp:LoginView ID="lv" runat="server">
                <AnonymousTemplate><a href="m_login.aspx"><i class="fa-user-o"></i>登录</a></AnonymousTemplate>
                <LoggedInTemplate>
                    <a href="m_page.aspx?src=reg.aspx%3fmode%3dupdate"><i class="fa-user-o" id="userIcon" user="<%= Page.User.Identity.Name %>"></i><%= ims.Util.TrimStr(ims.Users.getDisplayName(ims.ui.My.UserInfo), 4) %></a><span id="sepchar">-</span><a href="#" title="退出登录" onclick="return logout();">退出</a>
                </LoggedInTemplate>
            </asp:LoginView>
        </td>
        <td class="right"><a href="~/m_page.aspx?src=msgs.aspx" runat="server" id="aMsg"><i class="fa-commenting"></i>消息<span id="count_msg"></span></a><a href="#" class="fa-desktop" title="切换到电脑版" onclick="toPc()"></a></td>
    </tr>
</table>
<nav class="navbar bg-primary mynav">
  <ul class="nav navbar-nav">
    <li class="nav-item navico" title="首页" runat="server" id="liHome"><a class="nav-link fa-home-outline" href="#" onclick="toHome();"></a></li>
    <li class="nav-item" runat="server" id="liBrowse"><a class="nav-link" href="m_select.aspx?action=View">浏览</a></li>
    <li class="nav-item" runat="server" id="liFind"><a class="nav-link" href="m_select.aspx?action=Search">搜索</a></li>
    <li class="nav-item" runat="server" id="liAdd"><a class="nav-link" href="m_select.aspx">添加</a></li>
    <li class="nav-item" runat="server" id="liTrans"><a class="nav-link" href="#" onclick="toPage('trans.aspx')">事务</a></li>
    <li class="nav-item" runat="server" id="liInfo"><a class="nav-link" href="m_page.aspx?src=infolist.aspx">信息</a></li>
    <li class="nav-item" runat="server" id="liDir"><a class="nav-link" href="#" onclick="toPage('dir.aspx')">目录</a></li>
    <li class="nav-item dropdown" runat="server" id="liViews">
      <a class="nav-link dropdown-toggle" href="#" id="views" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">视图</a>
      <div class="dropdown-menu dropdown-menu-right" aria-labelledby="views">
        <a class="dropdown-item fa-table" href="#" onclick="toPage('table.aspx')">表格视图</a>
        <a class="dropdown-item fa-note" href="#" onclick="toPage('detail.aspx')">详情视图</a>
        <a class="dropdown-item fa-th-large" href="#" onclick="toPage('thumb.aspx')">缩略视图</a>
        <a class="dropdown-item fa-th-list" href="#" onclick="toPage('summary.aspx')">概要视图</a>
        <a class="dropdown-item fa-chart-bar" href="#" onclick="toPage('chart.aspx')">图表视图</a>
        <a class="dropdown-item fa-wpforms" href="#" onclick="toPage('report.aspx')">报表视图</a>
      </div>
    </li>
    <li class="nav-item dropdown float-xs-right">
      <a class="nav-link fa-dot-3" href="#" id="more" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></a>
      <div class="dropdown-menu dropdown-menu-right" aria-labelledby="more">
        <a class="dropdown-item fa-folder-open-empty" href="~/#" onclick="toPage('dir.aspx')" runat="server" id="dirMenu">目录</a>
        <a class="dropdown-item fa-cubes" href="~/#" onclick="toPage('templets.aspx?mode=data')" runat="server" id="liData"><%= ims.Sys.DataCenterText %></a>
        <a class="dropdown-item fa-pencil-1" href="~/#" onclick="toPage('templets.aspx')" runat="server" id="liDesign">设计中心</a>
        <a class="dropdown-item fa-star-empty" href="~/#" onclick="toPage('dataHome.aspx?Area=favs')" runat="server" id="liFav">我的收藏</a>
        <a class="dropdown-item fa-export-1" href="~/#" onclick="toPage('dataHome.aspx?Area=shortcuts')" runat="server" id="liSc">快捷方式</a>
        <a class="dropdown-item fa-basket-2" href="~/#" onclick="toPage('cart.aspx')" runat="server" id="liCart">购物车</a>
        <a class="dropdown-item fa-docs" href="~/#" onclick="toPage('OrderAdmin.aspx?owner=my')" runat="server" id="liOrders">我的订单</a>
        <a class="dropdown-item fa-docs" href="~/#" onclick="toPage('orderAdmin.aspx')" runat="server" id="liOrderAdmin">订单管理</a>
        <a class="dropdown-item fa-wrench-1" href="~/#" onclick="toPage('adminHome.aspx')" runat="server" id="liAdmin">系统管理</a>
        <a class="dropdown-item fa-users" href="~/#" onclick="toPage('users.aspx')" runat="server" id="liUsers">用户管理</a>
        <a class="dropdown-item fa-book" href="help.aspx" target="_blank">在线帮助</a>
      </div>
    </li>
  </ul>
</nav>