<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_SjScoreExport" Codebehind="KS.SjScoreExport.aspx.cs" %>

<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="Server">
    <script>
        function SetManageMenu() {
            parent.openWin("成绩管理菜单项", "Exam/KS.SjFieldStatus.aspx?", true, 550, 200);
        }
    </script>
    <div class="content-area mt20">
        <asp:Panel ID="sjpannel" runat="server" Width="100%">
            <div class="myTitle clearfix">
                <div class="fr headOperation ">
                    <ul>
                        <li class="fl"><a href="KS.SJScore.aspx" class="button">返回考试成绩管理</a></li>
                        <li class="fl"><a href="javascript:;" onclick="SetManageMenu();" class="button button_on">管理菜单</a></li>
                    </ul>
                </div>
                考试成绩管理
            </div>
            <div class="quickSearch clearfix">
                <div class="SearchBox fl">
                    <asp:DropDownList ID="DrpGroupId" runat="server" style="margin-right:8px;">
                        <asp:ListItem Value="0">-用户组不限制-</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="DrpDepartId" runat="server" style="margin-right:8px;">
                        <asp:ListItem Value="0">-部门不限制-</asp:ListItem>
                    </asp:DropDownList>
        
                    <asp:DropDownList ID="DrpType" runat="server" style="margin-right:8px;">
                        <asp:ListItem Value="0">试卷名称</asp:ListItem>
                        <asp:ListItem Value="1">考试者</asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox CssClass="textbox" ID="TxtKeyWord" runat="server"></asp:TextBox>
                    <asp:Button ID="Button1" runat="server" Text=" 搜索 " CssClass="button" OnClick="BtnSearch_Click" />
                </div>
                <div class="property">
                    <div class="name button ml15">属性筛选</div>
                    <div class="propertyBox">
                        <ul class="clearfix">
                            <span class="screen fl">完成状态：</span>
                            <li<%=KSCMS.S("showType")=="0"?" class='active'":string.Empty %>>
                                <a href='KS.SjScoreExport.Aspx?showType=0&iszg=<%=Utils.StrToInt(KSCMS.S("iszg")) %>'><span>已做完的记录</span></a>
                            </li>
                            <li<%=KSCMS.S("showType")=="1"?" class='active'":string.Empty %>>
                                <a href='KS.SjScoreExport.Aspx?showType=1&iszg=<%=Utils.StrToInt(KSCMS.S("iszg")) %>'><span>未做完的记录</span></a>
                            </li>
                        </ul>
                        <ul class="clearfix tabs">
                            <span class="screen fl">试卷类型：</span>
                            <li<%=KSCMS.S("iszg")==""?" class='active'":string.Empty %>><a href='KS.SjScoreExport.aspx'><span>所有记录</span></a></li>
                            <li<%=KSCMS.S("iszg")=="0"?" class='active'":string.Empty %>><a href='KS.SjScoreExport.aspx?iszg=0'><span>模拟考试</span></a></li>
                            <li<%=KSCMS.S("iszg")=="1"?" class='active'":string.Empty %>><a href='KS.SjScoreExport.aspx?iszg=1'><span>正规考试成绩</span></a></li>
                        </ul>
                    </div>
                </div>  
            </div>
        </asp:Panel>
        <asp:Repeater ID="RptList" runat="server" OnItemDataBound="RptList_ItemDataBound">
            <HeaderTemplate>
                <table width="99%" class="CTable" border="0" cellpadding="1" cellspacing="1">
                    <tr class="CTitle">
                        <td align="center"><b>选择</b></td>
                        <asp:Literal ID="LiteralHeader" runat="server"></asp:Literal>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                    <tr onmouseover="this.className='CtrMouseOver'" onmouseout="this.className='CtrMouseOut'">
                        <td class="Ctd" style="text-align: center" onclick="doNone(event)"><input type="checkbox" name="ids" id="ids" value="<%#Eval("scoreid") %>" /></td>
                        <asp:Literal ID="LiteralItem" runat="server"></asp:Literal>
    
                    </tr>
            </ItemTemplate>
            <FooterTemplate>
                    <tr class="tdbg emptycss" style="display: <%# bool.Parse((RptList.Items.Count==0).ToString())?"":"none"%>">
                        <td class="Ctd" style="text-align: center" colspan="12"></td>
                    </tr>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <asp:Panel ID="Panel2" runat="server" Height="30px">
            <div class="listedit">
                <ul>
                    <input type="checkbox" name="chkall" id="chkall" onclick="CheckAll(this.form);" /><label for="chkall">全选</label>
                    <asp:Button ID="ExecuteButton" CssClass="button" runat="server" Text="导出当前" OnClick="ExecuteButton_Click" />
                    <asp:Button ID="Button2" CssClass="button" runat="server" Text="导出所有" OnClick="Button1_Click" />
                </ul>
            </div>
        </asp:Panel>
        <KS:Page ID="Page1" runat="server" />
        <asp:Panel ID="Panel1" runat="server" Height="30px" Width="100%">
            <script type="text/javascript">
                showtips(' <span class="state"><strong>操作说明：</strong><br /></span>所有试卷的考试记录管理，如果限制了考生考试次数，这里的记录不能删除，否则限制次数无效。');
            </script>
        </asp:Panel>
        </div>

</asp:Content>
