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


<%@ 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">
                            
                        </asp:DropDownList>
                    </p>
                    <p>
                    <label for="txtCourseName">
                            课程名称：</label>
                        <asp:TextBox runat="server" ID="txtCourseName"></asp:TextBox>
                    </p>
                    <p>
                    <label for="txtUserID">
                            学生学号：</label>
                        <asp:TextBox runat="server" ID="txtUserID"></asp:TextBox>
                    </p>
                    <p>
                    <label for="txtUserName">
                            学生名称：</label>
                        <asp:TextBox runat="server" ID="txtUserName"></asp:TextBox>
                    </p>
                   
                    <p>
                    <label for="drpCState">
                            选课状态：</label>
                        <asp:DropDownList runat="server" ID="drpCState">
                            <asp:ListItem Value="ElectiveState" Text="code"></asp:ListItem>
                        </asp:DropDownList>
                    </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>
                              
                            </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") %>'/>
                                <asp:HiddenField  runat="server" ID="hidUserID" Value='<%#Eval("UserID") %>'/>
                                <asp:HiddenField  runat="server" ID="hidSkyTID" Value='<%#Eval("SkyTID") %>'/>
                            </td>
                             <td>
                                <%#Eval("SkyTName")%>
                            </td>
                             <td>
                                <%#Eval("CourseName")%>
                            </td>
                             <td>
                                <%#Eval("UserID")%>
                            </td>

                           <td>
                                <%#Eval("UserName")%>
                            </td>
                             <td>
                                <%#Eval("CStateName")%>
                            </td>
                            <td align="center">
                                <%#UsToolsDateFormat(Eval("CreateDate"))%>
                            </td>



                            
                            <td align="center">
                               <%#UsToolArtUrl(pDefault.sEditUrl + "?id=" + Eval("SkyDepartCourseID").ToString(), "[查看]",pDefault.sSize)%>
                            </td>
                             <td>
                                 <asp:LinkButton ID="lnkSelect" Visible='<%#Eval("CStateName").ToString()=="预选"?true:false%>' OnClientClick="return elective(this);" CssClass="rptlink" CommandName='1' runat="server" CommandArgument='<%#Eval("SkyDepartCourseID")%>'> 
                                [退选] 
                                </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="divFootInfo">
    </div>
    </form>
</body>
</html>
