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


<%@ 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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <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 %>
   

    <script language="javascript" src="/admin/js/System.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function elective(id) {
            var sID = "#" + id.id;
            var sName = $(sID).text();
            //alert(sName);
            var sInfo = "";

            if (sName.indexOf("退选")>=0) {
                sInfo = "您确实要退选课程吗？推选后可能无法再选择上！";
            }
            else {
                sInfo = "您确实要选择课程吗？如果您对选择的课程不满意，可以在系统指定的时间进行退课后重新选择！";
            }
            //alert(sID + $(sID).html());
            return confirm(sInfo);
        }
    </script>

</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="drpSkyTID">
                            选课学期：</label>
                        <asp:DropDownList runat="server" ID="drpSkyTID" Enabled=false>
                            
                        </asp:DropDownList>
                    </p>
                    <p>
                    <label for="txtCourseName">
                            课程名称：</label>
                        <asp:TextBox runat="server" ID="txtCourseName"></asp:TextBox>
                    </p>
                    <p>
                    <label for="txtDepartMent">
                            院系名称：</label>
                        <asp:TextBox runat="server" ID="txtDepartMent"></asp:TextBox>
                    </p>
                     <p>
                    <label for="txtUserName">
                            教师名称：</label>
                        <asp:TextBox runat="server" ID="txtUserName"></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" 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 class="divInfoContext">
            <div id="printInfo">
                <asp:Repeater ID="rptInfo" runat="server" onitemcommand="rptInfo_ItemCommand">
                    <HeaderTemplate>
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist">
                            <tr class="tablisttitle">
                                <td>
                                    序号
                                </td>
                                <td>
                                    <%=cHTMLFx%>
                                    
                                </td>
                               
                                <td align="center">
                                    学期名称
                                </td>
                                <td align="center">
                                    课程编号
                                </td>
                                <td align="center">
                                    课程名称
                                </td>
                                
                                <td align="center">
                                    开课节数
                                </td>
                                <td align="center">
                                    教师所属院系
                                </td>
                                <td align="center">
                                    授课教师
                                </td>
                                <td align="center">
                                    开课校区
                                </td>
                                <td align="center">
                                    开课教室
                                </td>
                                
                                
                                <td align="center">
                                    上课时间
                                </td>
                                <td align="center">
                                    人数数量限制
                                </td>
                                <td align="center">
                                    已选人数
                                </td>
                                <td align="center">
                                    选课状态
                                </td>
                                <td align="center">
                                    查看
                                </td>
                                <td align="center">
                                    操作
                                </td>
                              
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="tablisttr">
                            <td>
                                <%#Eval("ID") %>
                            </td>
                            <td>
                                <asp:CheckBox runat="server" ID="chkselect" ToolTip='<%#Eval("ID") %>'/>
                                <asp:HiddenField  runat="server" ID="hidCourseName" Value='<%#Eval("CourseName") %>'/>
                                
                            </td>
                         
                            <td align="center">
                                <%#Eval("SkyTName")%>
                            </td>
                          
                            <td align="center">
                                <%#Eval("CourseID")%>


                            </td>
                            <td align="center">
                                <%#Eval("CourseName")%>
                            </td>
                            
                            <td align="center">
                                <%#Eval("Festival")%>
                            </td>
                            <td align="center">
                                <%#Eval("SkyDName")%>
                            </td>
                            <td align="center">
                                <%#Eval("UserName")%>
                            </td>
                            <td align="center">
                                <%#Eval("SkySAName")%>
                            </td>
                            
                            <td align="center">
                                <%#Eval("RoomName")%>
                            </td>
                            <td align="center">
                                <%#Eval("CourseZQ")%>
                            </td>
                            <td align="center">
                                <%#Eval("CourseSmallNum")%>人  - <%#Eval("CourseBiglNum")%>人
                            </td>
                            
                            <td align="center">
                                <span class="fontblue">
                                <%#Eval("ACount")%>人</span>
                            </td>
                            <td align="center">
                                <%#Eval("CStateName")%>
                            </td>
                            <td align="center">
                                <%#UsToolArtUrl("/admin/elective/electivetermmanageview.aspx" + "?id=" + Eval("SkyDepartCourseID").ToString(), "[查看]",pDefault.sSize)%>
                            </td>
                            
                            <td align="center">
                                <asp:LinkButton ID="lnkSelect" Visible='<%#Eval("CStateName").ToString()=="预选"?true:false%>' OnClientClick="return elective(this);" CssClass="rptlink" CommandName='<%#Eval("BCount")%>' runat="server" CommandArgument='<%#Eval("SkyDepartCourseID")%>'> 
                                [<%#Eval("BCount").ToString() == "0" ? "选课" : "退选"%>]
                                </asp:LinkButton>
                               
                            </td>
                           
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
        </div>
    </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>
    
   <div class="divInfo">
        <span class="usHelpMessage"> * 注意事项： 可以选课时间段为[<%=configXML.sElectiveBeginDate + "到" + configXML.sElectiveEndDate%>]，请在此时间段选课。</span>  
        <span class="usHelpMessage"> 您进入本页面的时间为：<%=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") %></span>  
                                
                                
    </div>

    
    <div class="divFootInfo">
    </div>
    </form>
</body>
</html>
