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

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ 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">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <Triggers>
                <asp:PostBackTrigger ControlID="LnkBExcel" />
            </Triggers>
            <ContentTemplate> </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
            <ProgressTemplate>
                <div id="divLoading">
                    <img src="/admin/images/loading.gif" />
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
                <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="drpSkyTID">
                                        开课学期：</label><asp:DropDownList ID="drpSkyTID" runat="server" AutoPostBack="True" Enabled="false"
                                            OnSelectedIndexChanged="drpSkyTID_SelectedIndexChanged">
                                        </asp:DropDownList>
                                </p>
                                <p>
                                    <label for="drpSkyDID">
                                        开课院系：</label><asp:DropDownList ID="drpSkyDID" runat="server" AutoPostBack="True"
                                            OnSelectedIndexChanged="drpSkyDID_SelectedIndexChanged">
                                        </asp:DropDownList>
                                </p>




                                <p>
                                    <label for="txtName">
                                        课程名称：</label><asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                                </p>
                                <p>
                                    <label for="txtCourseID">
                                        课程编号：</label><asp:TextBox ID="txtCourseID" runat="server"></asp:TextBox>
                                </p>
                                <p>
                                    <label for="drpCourseType">
                                        课程类型：</label><asp:DropDownList ID="drpCourseType" runat="server">
                                            <asp:ListItem Value="CourseType">codeselect</asp:ListItem>
                                        </asp:DropDownList>
                                </p>

                                <p>
                                    <label for="drpCourseSType">
                                        学习类型：</label><asp:DropDownList ID="drpCourseSType" runat="server">
                                            <asp:ListItem Value="CourseSType">codeselect</asp:ListItem>
                                        </asp:DropDownList>
                                </p>

                                <%-- 
                                     <p>
                                        <label for="drpTrue">
                                            开课状态：</label><asp:DropDownList ID="drpTrue" runat="server">
                                                    <asp:ListItem Value="-请选择-"></asp:ListItem>
                                                    <asp:ListItem Value="已经开课">0</asp:ListItem>
                                    </asp:DropDownList>
                                    </p>--%>

                                <p id="chklist1">
                                    <label for="chkTrue">
                                        开课状态：</label>
                                    <asp:CheckBox ID="chkTrue" runat="server" CssClass="chk" Text="" OnCheckedChanged="chkTrue_CheckedChanged" />
                                    <span>已经启动</span>
                                </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">
                                    <asp:Literal ID="litName" runat="server"></asp:Literal>学期院系课程列表
                                </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" Enabled="false">添加</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" Enabled="false">删除</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">
                        <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("CourseID")%>' Checked='<%# Eval("aCount").ToString() != "0"?true:false%>' />
                                </ItemTemplate>
                                <ItemStyle CssClass="itemStyle2" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="启用状态">
                                <ItemTemplate>
                                    <asp:Literal runat="server" ID="litState" Text='<%# Eval("aCount").ToString()!= "0" ?sUsed:sNoUsed %>'></asp:Literal>
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:BoundField DataField="CourseID" HeaderText="课程编号" />
                            <asp:TemplateField HeaderText="课程名称">
                                <ItemTemplate>
                                    <asp:TextBox ID="txtCourseName" runat="server" Enabled="false" Text='<%# Bind("CourseName")%>'></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>


                            <asp:BoundField DataField="CourseTypeName" HeaderText="课程类型" />
                            <asp:BoundField DataField="CourseSTypeName" HeaderText="学习类型" />
                            <asp:BoundField DataField="CourseHours" HeaderText="课程学时" />
                            <asp:BoundField DataField="CourseCredit" HeaderText="课程学分" />

                            <asp:BoundField DataField="CreateDate1" HeaderText="建立时间" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" />
                            <asp:BoundField DataField="IP" HeaderText="建立IP" />
                        </Columns>
                    </asp:GridView>
                </div>

                </div>

 






             <div class="divInfo">
                 <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist">
                     <tr>
                         <td class="tablisttr">
                             <% //修改 PageSize="100" 这样可以控制页面显示的数量，可以防止超时 %>
                             <webdiyer:AspNetPager ID="Pager" runat="server" OnPageChanged="Pager_PageChanged" PageSize="100"
                                 ShowNavigationToolTip="True" AlwaysShow="True">
                             </webdiyer:AspNetPager>
                         </td>
                     </tr>
                 </table>
             </div>





                </div>
            <div class="divSave">
                <asp:Button ID="btnSubmit" runat="server" Text="保存(S)" CssClass="SkyButtonFocus"
                    OnClick="btnSubmit_Click" AccessKey="S" CommandName="save"></asp:Button>
            </div>
                <asp:Literal ID="LiteralScript" runat="server" EnableViewState="False"></asp:Literal>
           
    </form>
</body>
</html>
