<%@ control language="C#" autoeventwireup="true" inherits="sys_MyHeader, Web" %>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container-full">
        <div class="navbar-header">

            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">
                    <asp:Literal ID="litTitle" runat="server"></asp:Literal></span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/sys/Main.aspx">
                <%--<img src="/control/logo.png?v=2017" style="height: 35px; margin-top: -5px; display: inline-block" />--%><asp:Literal ID="litTitle2" runat="server"></asp:Literal></a>
        </div>

        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li >
                    <a href="/sys/Teacher/Teacher.aspx" >
                        <i class="glyphicon glyphicon-certificate"></i>&nbsp;订餐职工
                    </a>
                </li>
               <li>
                    <a href="/sys/Notice/NoticeList.aspx">
                        <i class="glyphicon glyphicon-th-list"></i>&nbsp;在线公告
                    </a>
                </li>
                
                <%-- <li>
                    <a href="/sys/Meal/Meal.aspx?type=1">
                        <i class="glyphicon glyphicon-th"></i>&nbsp;餐点菜品
                    </a>
                </li>--%>
                <li>
                    <a href="/sys/Main.aspx" ><i class="glyphicon glyphicon-calendar"></i> 今日订餐</a>
                </li>
                <li>
     
                       <a href="javascript:void(0)" data-toggle="modal" data-target="#myModal"><i class="glyphicon glyphicon-search"></i> 订餐查询</a>

                </li>
            </ul>
            
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">账号设置<strong class="caret"></strong></a>
                    <ul class="dropdown-menu">
                        <li id="adminadd" runat="server">
                            <a href="/sys/Admin/Admin.aspx">管理员设置</a>
                        </li>
                        <li>
                            <a href="/sys/UpdatePass.aspx">密码修改</a>
                        </li>
                        <li>
                            <a href="/sys/Question.aspx">密码找回设置</a>
                        </li>
                      
                        <li class="divider"></li>
                        <li>
                            <a href="/sys/Login.aspx?e=t">退出登录</a>
                        </li>
                    </ul>
                </li>
                <li>
                     <a href="/sys/Config.aspx">系统设置&nbsp;&nbsp;&nbsp;&nbsp;</a>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">相关产品<strong class="caret"></strong></a>
                    <ul class="dropdown-menu" style="max-height: 586px; overflow-x: hidden; overflow-y: scroll; width: 280px;margin-top:2px;">
                        <asp:Literal ID="Lit_Product" runat="server"></asp:Literal>
                    </ul>
                </li>
            </ul>

        </div>
    </div>
</nav>
<!-- Large modal -->

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">选择订餐日期</h4>
            </div>
            <div class="modal-body">
                    <div class="form-group">
                    <label class=" control-label">
                        订餐日期：
                    </label>
                    <input id="txtQueryStart" name="start" class="form-control" type="text">
                </div>
                <div id="divQueryStart"> </div>
            </div>

            <div class="modal-footer">
                <input id="btnSubmit" type="button" value="显示订餐信息" onclick="showOrderMeal($('#txtQueryStart').val())" class="btn btn-lg btn-block btn-primary" />
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        var pl = getCookie("sdate");
        $("#divQueryStart").datepicker({
            language: "zh-CN",
            format: "yyyy-mm-dd",
            todayBtn: "linked",
        
            todayHighlight:true
        });
        $('#divQueryStart').on('changeDate', function () {
            showOrderMeal($('#divQueryStart').datepicker('getFormattedDate'));
        });
        $("#txtQueryStart").datepicker({
            language: "zh-CN",
            autoclose : true,
            format: "yyyy-mm-dd",
            todayBtn: "linked",
            todayHighlight: true
        });


        $("#txtQueryStart").val(pl);
    });

    function showOrderMeal(date) {
        setCookie("sdate",date);
        location.href = "/sys/Main.aspx?date=" + date;
    }

</script>
<script type="text/javascript">
    function setCookie(c_name, value, expiredays) {
        var exdate = new Date()
        exdate.setDate(exdate.getDate() + expiredays)
        document.cookie = c_name + "=" + escape(value) +
        ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString())
    }
    function getCookie(c_name) {
        if (document.cookie.length > 0) {
            c_start = document.cookie.indexOf(c_name + "=")
            if (c_start != -1) {
                c_start = c_start + c_name.length + 1
                c_end = document.cookie.indexOf(";", c_start)
                if (c_end == -1) c_end = document.cookie.length
                return unescape(document.cookie.substring(c_start, c_end))
            }
        }
        return ""
    }
</script>
<%--<div id="weixin" class="weixin">
    <a href="javascript:;" class="weixin_s"><i class="glyphicon glyphicon-qrcode"></i>
    </a>
    <div class="weixin_b">
        <img src="/sys/qrcode.jpg">
    </div>
</div>--%>

<script>window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "1", "bdMiniList": ["sqq", "copy", "mshare", "qzone", "tsina", "weixin", "tqq", "douban"], "bdPic": "", "bdStyle": "0", "bdSize": "16" }, "slide": { "type": "slide", "bdImg": "2", "bdPos": "right", "bdTop": "100" } }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>





