<%@ page language="C#" autoeventwireup="true" inherits="admin_Meeting_Meeting, ALL" enableEventValidation="false" %>

<%@ Register Src="~/admin/MyHeader.ascx" TagPrefix="uc1" TagName="MyHeader" %>
<%@ Register Src="~/admin/MyFooter.ascx" TagPrefix="uc1" TagName="MyFooter" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>会议室预约系统</title>
    <link href="/control/plugin/bootstrap3/css/bootstrap.min.css" rel="stylesheet" />
    <link href="/user/css/style.css?v=201721" rel="stylesheet" />

    <script src="/control/js/jquery.js"></script>
    <script src="/control/plugin/bootstrap3/js/bootstrap.min.js"></script>
    <link href="/control/css/msgbox.css" rel="stylesheet" />
    <script src="/control/js/msgbox.js"></script>

        <script src="/control/plugin/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
    <script src="/control/plugin/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-CN.js"></script>
    <link href="/control/plugin/bootstrap-datepicker/css/datepicker3.css" rel="stylesheet" />
</head>
<body>
    <uc1:MyHeader runat="server" ID="MyHeader" />
    <div class=" container-fluid">
      
        <div class="row">
            <div class="col-xs-12 ">
                <h3 class="page-header" style="margin: 15px 0 20px;">会议管理<small>会议信息管理</small></h3>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-12">
                <div class="well">
                    <form class="form-inline" method="get">
                        <div class="form-group">
                            <select id="ddlRoom" name="room" class="form-control">
                                <%=bindRoom() %>
                            </select>
                            <script type="text/javascript">
                                $(function () {
                                    $("#ddlRoom").val('<%=Request["room"] %>');
                                });
                            </script>
                        </div>

                        <div class="form-group">
                            <input id="txtWeetingName" name="weetingName" value="<%=Request["weetingName"] %>" type="text" placeholder="会议名称" class="form-control" />
                        </div>

                        <div class="form-group">
                            <input id="txtStart" name="start" value="<%=Request["start"] %>" type="text" placeholder="开始日期" class="form-control" />
                        </div>
                      
                        <div class="form-group">
                            <input id="txtEnd" name="end" value="<%=Request["end"] %>" type="text" placeholder="结束日期" class="form-control" />
                        </div>


                        <button type="submit" class="btn btn-primary ">查询</button>
                        <script type="text/javascript">
                            $(function () {
                                $("#txtStart").datepicker({
                                    language: "zh-CN",
                                    format: "yyyy-mm-dd",
                                    todayBtn: "linked",
                                    todayHighlight: true,
                                    autoclose: true
                                });
                                $("#txtEnd").datepicker({
                                    language: "zh-CN",
                                    format: "yyyy-mm-dd",
                                    todayBtn: "linked",
                                    todayHighlight: true,
                                    autoclose: true
                                });
                            });
                        </script>
                    </form>
                </div>

                <div class="panel">
                    <div class="panel-body">
                        <asp:Repeater ID="rptData" runat="server">
                            <HeaderTemplate>
                                <table id="dataView" class="table table-hover table-striped ">
                                    <thead>
                                        <tr class='table-heading'>
                                            <th>会议名称</th>
                                            <th>会议室</th>
                                            <th>创建者</th>
                                            <th>起始日期</th>
                                            <th>截至日期</th>
                                      
                                            <th></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <%#Eval("m_MeetingName")%>
                                    </td>
                                    <td>
                                        <%#Eval("r_name")%>   
                                    </td>
                                    <td>
                                        <%#Eval("ee_name")%>
                                    </td>
                                    <td>
                                        <%#Eval("m_startDate")%>
                                    </td>
                                    <td>
                                        <%#Eval("m_endDate")%>
                                    </td>
                                   
                                    <td>
                                        <a href="MeetingDetails.aspx?id=<%#Eval("m_id") %>" class="btn btn-default btn-xs">
                                            详细 
                                        </a>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </tbody> </table>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                </div>

                <asp:Literal ID="litPage" runat="server"></asp:Literal>
            </div>
        </div>
    </div>

        <uc1:MyFooter runat="server" ID="MyFooter1" />
    <script type="text/javascript">

        function rd(key) {
            if (confirm('确定删除该项！')) {
                ZENG.msgbox.show('删除中...', 6);
                $.ajax({
                    type: "POST",
                    dataType: "json",
                    data: { "did": key },
                    success: function (result) {
                        ZENG.msgbox._hide();
                        if (result.state == 1) {
                            location.reload();
                        } else {
                            alert(result.data);
                        }
                    }
                });
            }
        }
    </script>


</body>
</html>
