<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master"  AutoEventWireup="true"  Title= "成绩统计排名管理" Inherits="Kesion.Net.WebExam.Admin.Exam.KS_JSToatl" Codebehind="KS.JSToatl.aspx.cs" %>

<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
<KS:TopNav ID="TopNav1" runat="server" Text="竞赛成绩统计" />
        
<style>
.categorynav{line-height:25px;width:97%;margin:0 auto;margin-bottom:10px;border:1px solid #DEEFFA;background-color:#F7FBFE;padding:5px 0px 5px 10px; height:100%; overflow:hidden;}
ul,li{padding:0px;margin:0px}
.categorynav li{width:160px;float:left;}
</style>
<div class="content-area">
        <div class="myTitle">
	     <div class="quickSearch">
          搜索试卷：      
          <asp:TextBox runat="server" ID="TxtKeyWord" CssClass="textbox" /> 
    <asp:Button ID="BtnSearch" runat="server" CssClass="button" Text="开始搜索" 
            onclick="BtnSearch_Click"  />
             </div>
        成绩统计
        </div>
        
<KS:ksgv id="list" cssclass="CTable" runat="server" AutoGenerateColumns="False" 
            EmptyDataText="没有可批改的试卷!" PagerType="CustomNumeric" Width="99%" 
            HorizontalAlign="Center" GridLines="None" OnRowCommand="List_RowCommand" 
            OnRowCreated="List_RowCreated" onrowdatabound="list_RowDataBound">
        <Columns>

            <asp:BoundField HeaderText="试卷ID" DataField="ID" >
                <itemstyle horizontalalign="Center" />
            </asp:BoundField>
            
            <asp:TemplateField HeaderText="试卷名称">
                <itemtemplate><a href="<%# Kesion.HtmlTags.BasicField.GetRewriteUrl("examview",Convert.ToInt32(Eval("id").ToString())) %>" target="_blank"><span class="doc_1"></span></a>
                <strong><%# Utils.CutStr(Convert.ToString(Eval("title")),40) %></strong>
                <div class="tips" style="padding-left:6px">试卷分类：<%# MyCache.GetCacheSJCategory(Convert.ToInt32(Eval("classid")),1) %> 试卷总分：<%# Eval("score") %>分 考试时间：<%# Eval("KSSJ") %>分钟</div>
                </itemtemplate>
            </asp:TemplateField>
           
            
            <asp:TemplateField HeaderText="参加人数/次数">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
               <span style='color:green'><%# GetEnterExamRS(Convert.ToInt16(Eval("id")))%></span>人/ <span style='color:green'><%# GetEnterExamNum(Convert.ToInt16(Eval("id"))) %></span>次
                </itemtemplate>
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="平均得分人数/次数">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
                <span style='font-weight:bold;'><font style='color:brown'><%# GetAgvScore(Convert.ToInt16(Eval("id")),1)%></font> 分/<font style='color:brown'><%# GetAgvScore(Convert.ToInt16(Eval("id")),2)%></font> 分</span>
                </itemtemplate>
            </asp:TemplateField>
               
            <asp:TemplateField HeaderText="按用户排名统计">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
             <a href="KS.UserScore.Aspx?sjid=<%#Eval("id") %>">查看</a>
                </itemtemplate>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="按学校统计">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
             <a href="KS.SchoolTotal.Aspx?sjid=<%#Eval("id") %>">查看</a>
                </itemtemplate>
            </asp:TemplateField>

               <asp:TemplateField HeaderText="按班级统计">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
             <a href="KS.BjScore.Aspx?sjid=<%#Eval("id") %>">查看</a>
                </itemtemplate>
            </asp:TemplateField>


        </Columns>
        <HeaderStyle CssClass="CTitle" />
        <EmptyDataRowStyle CssClass="emptycss" />
    </KS:ksgv>
    
 <KS:Page ID="Page1" runat="server" />
</div>   
   
</asp:Content>

