<%@ Page Title="" Language="C#" MasterPageFile="~/Student/SiteStuMenu.Master" AutoEventWireup="true" CodeBehind="SubHistory.aspx.cs" Inherits="Project25175.SubHistory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="StuContentPlace_Header" runat="server">
    <link rel="stylesheet" href="../assets/css/jquery-ui-1.10.3.full.min.css" />

    <script type="text/javascript">
        //后台调用,区分提示信息底色
        //Danger,Info
        function ChangeMsgClass(MsgType) {
            if (MsgType == "Danger") 
            {
                DivMsg.className = 'alert alert-danger';
            }
            else 
            {
                DivMsg.className = 'alert alert-info';
            }
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="StuContentPlace" runat="server">

    <div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
		</script>
		<ul class="breadcrumb">
			<li>
				<i class="icon-home home-icon"></i>
                我的选课记录
			</li>
		</ul>
	</div>

    <div class="page-content">
        <div class="row col-xs-12">
            <div id="DivMsg" class="alert alert-info">
                <i class="icon-hand-right"></i>
                <asp:Label ID="LabMsg" runat="server" Text=" "></asp:Label>
			    <button class="close" data-dismiss="alert">
                <i class="icon-remove"></i>
                </button>
            </div>
        </div>

        <div class="page-header">
            <div class="col-xs-12 widget-box">
                <asp:Button ID="BtMenuList" runat="server" OnClick="BtMenuList_Click" Text="选课记录" CssClass="btn btn-info btn-sm" />
                <asp:DropDownList ID="DDLSchTimeID" runat="server">                       
                </asp:DropDownList>
                <asp:Button ID="BtSearch" runat="server"  CssClass="btn btn-success btn-sm hidden" 
                    Text="查找" onclick="BtSearch_Click" />
				<span>
					<a href="#" data-action="reload"><i class="icon-search nav-search-icon green bigger-140 sender" id="idsearch" title="查找"></i></a>
				</span> 
            </div>
        </div>


        <asp:Panel runat="server" Visible="false" ID="PanelData">
            <div class="row">
	            <div class="col-xs-12">
		            <div class="table-responsive">
                        <asp:GridView ID="GridView1" runat="server" 
                            CssClass="table table-striped table-bordered table-hover" 
                            AutoGenerateColumns="False" DataKeyNames="ID" 
                            OnRowDataBound="GridView1_RowDataBound" AllowPaging="True" 
                            OnPageIndexChanging="GridView1_PageIndexChanging" 
                            onrowdeleting="GridView1_RowDeleting" >
                            <Columns>
                                <%--<asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="true"/>--%>
                                <asp:BoundField DataField="SchTimeName" HeaderText="学年" ReadOnly="true"/>
                                <asp:BoundField DataField="SubName" HeaderText="课程" ReadOnly="true"/>
                                <asp:BoundField DataField="TeaName" HeaderText="老师" ReadOnly="true" />
                                <%--<asp:BoundField DataField="TeaState" HeaderText="课程状态" ReadOnly="true" />--%>
                                <asp:BoundField DataField="StuState" HeaderText="申请状态" ReadOnly="true" />
                                <asp:BoundField DataField="RegTime" HeaderText="申请时间" DataFormatString="{0:d}" ReadOnly="true" />
                                <%--<asp:TemplateField HeaderText="申请时间">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="ApplyDate" Text='<%#Bind("RegTime","{0:s}")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>  --%> 
                                <asp:BoundField DataField="Period" HeaderText="学时" />
                                <asp:BoundField DataField="StuQuantity" HeaderText="限定" />
                                <asp:BoundField DataField="ApplyQuantity" HeaderText="报名" />
                                <asp:CommandField ShowDeleteButton="True" DeleteText="取消申请" HeaderText="操作" />
                            </Columns>
                            <PagerSettings Mode="NumericFirstLast" />
                        </asp:GridView>
		            </div><!-- /.table-responsive -->
	            </div><!-- /span -->
            </div>
        </asp:Panel>
    </div>
    
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StuContentPlace_Footer" runat="server">

    <script type="text/javascript" src="../assets/js/jquery-2.0.3.min.js"></script>

	<script type="text/javascript">
		window.jQuery || document.write("<script src='../assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
	</script>

	<script type="text/javascript">
		if ("ontouchend" in document) document.write("<script src='../assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
	</script>
	<script type="text/javascript" src="../assets/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../assets/js/typeahead-bs2.min.js"></script>

	<!-- page specific plugin scripts -->
    <!-- page specific plugin scripts -->

	<%--<script type="text/javascript" src="../assets/js/jquery-ui-1.10.3.full.min.js"></script>
	<script type="text/javascript" src="../assets/js/jquery.ui.touch-punch.min.js"></script>--%>

	<!-- ace scripts -->

	<script type="text/javascript" src="../assets/js/ace-elements.min.js"></script>
	<script type="text/javascript" src="../assets/js/ace.min.js"></script>

    <script type="text/javascript">
        jQuery(function ($) {
            $("#idsearch").on('click', function (e) {
                document.getElementById('<%=BtSearch.ClientID %>').click();
            });

        });
    </script>
</asp:Content>
