<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="termlist.aspx.cs" Inherits="Us.Web.admin.term.termlist" %>


<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>学期管理</title>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />

    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
    <%=ImportScriptStr %>
</head>
<body>
    <form id="Form1" method="post" runat="server">
        
        
            
        
        <div class="divTbg">
            <div class="divTbgL">
            </div>
            <div class="divTbgInfo">
                <div class="divTbgTitle">
                    学期管理
                </div>
            </div>
        </div>
        <div class="divTbgF">
        </div>
        <div class="divSearchBoth">
            <div class="divInfo">
                <div class="divInfoblack">
                    <div class="divInfoTopList">
                        <div class="listLeft">
                            <div class="navsearchtitle">学期搜索</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="divInfo">
                <div class="divSearch">
                    <div id="searchBox" class="clearsearch">
                        <p>
                            <label for="txtID">
                                学期编号：</label><asp:TextBox ID="txtID" runat="server"></asp:TextBox>
                        </p>
                        <p>
                            <label for="txtName">
                                学期名称：</label><asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                        </p>
                        <p id="searchSubmit">
                            <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="确认搜索" CssClass="SkyButtonFocus" />
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <div class="divInfo">
            <div class="divInfoblack">
                <div class="divInfoTopList">
                    <div class="listLeft">
                        <div class="navtitle">学期列表</div>
                    </div>
                    <div class="listRight">
                        <ul>
                            <li class="navstyle1">
                                <input type="checkbox" name="chkselect" id="chkselect" onclick="skySelectCheckList();" />
                                <label for="chkselect">全选</label>
                            </li>
                            <li class="navstyle2">
                                <asp:LinkButton ID="LnkBAdd" runat="server" OnClick="SkyLnkBAMD_Click">添加</asp:LinkButton>
                            </li>
                            <li class="navstyle3">
                                <asp:LinkButton ID="LnkBEdit" runat="server" OnClick="SkyLnkBAMD_Click" Enabled="false">编辑</asp:LinkButton>
                            </li>
                            <li class="navstyle4">
                                <asp:LinkButton ID="LnkBDelete" runat="server" OnClick="SkyLnkBAMD_Click">删除</asp:LinkButton>
                            </li>
                            <li class="navstyle5">
                                <asp:LinkButton ID="LnkBExcel" runat="server" OnClick="SkyLnkBAMD_Click">导出</asp:LinkButton>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <div class="divInfo">
            <div style="font: 2px; line-height: 2px;">
                &nbsp;
            </div>
            <asp:GridView ID="gvInfo" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                CellPadding="0" CellSpacing="1" GridLines="None" Width="100%" CssClass="tablist"
                HorizontalAlign="Center" OnRowDataBound="gvInfo_RowDataBound" OnRowCommand="gvInfo_RowCommand">
                <RowStyle CssClass="tablisttr" HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" CssClass="tablisttitle"></HeaderStyle>
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="序号">
                        <ItemStyle CssClass="itemStyle1" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="选择">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelect" runat="server" ToolTip='<%# Bind("ID")%>' Enabled='<%# Eval("IsDefault").ToString() == "0"?false:true%>' />
                        </ItemTemplate>
                        <ItemStyle CssClass="itemStyle2" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="SkyTID" HeaderText="学期编号" />
                    <asp:BoundField DataField="SkyTName" HeaderText="学期名称" />
                    <asp:ButtonField CommandName="isdefault" DataTextField="IsDefault" HeaderText="默认学期"
                        Text="默认学期" />
                    <asp:BoundField DataField="ShowID" HeaderText="显示顺序" />
                    <asp:BoundField DataField="StartDate" HeaderText="开课日期" />
                    <asp:BoundField DataField="EndDate" HeaderText="结课日期" />
                    <asp:BoundField DataField="CreateDate" HeaderText="建立时间" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" />
                    <asp:BoundField DataField="IP" HeaderText="建立IP" />

                    <asp:TemplateField HeaderText="修改">
                        <ItemTemplate>
                            <%#UsToolArtUrl("/admin/term/termmanage.aspx" +"?id="+Eval("id").ToString(), "[修改]",pDefault.sSize)%>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>

        </div>


        <div class="divInfoColor">
             
                        <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" OnPageChanged="Pager_PageChanged"
                            ShowCustomInfoSection="Left" ShowPageIndexBox="Always" ShowPageIndex="False"
                            CustomInfoHTML="共 <B>%PageCount%</B> 页，当前为第 <B>%CurrentPageIndex%</B> 页，每页 <B>%PageSize%</B> 条"
                            SubmitButtonText="" FirstPageText="首页" LastPageText="尾页" LayoutType="Table" NextPageText="后一页"
                            PrevPageText="前一页" ShowMoreButtons="False" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到"
                            CustomInfoTextAlign="Left" HorizontalAlign="Right">
                        </webdiyer:AspNetPager>
                  
        </div>
        <span class="usHelpMessage">* 注意事项： </span>
        1、学期设置是系统最重要的地方；2、所有的课程成绩等信息的录入和查询都是针对当前学期进行的；3、当每学期完成后在切换默认学期
   
    <asp:Literal ID="LiteralScript" runat="server" EnableViewState="False"></asp:Literal>
    </form>

</body>
</html>
