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

<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">

<style type="text/css">
     @media print { 
          .noprint{display: none; }                
    }  
</style>
    <asp:Panel ID="listPanel" runat="server" Width="100%">
      <div id="manage_top " class="message noprint">       
       &nbsp;&nbsp;<a href="KS.JSToatl.aspx"><strong>返 回</strong></a>
      </div>    
	<div class="content-area">    
        <div style="text-align:center" class="message">
         试卷标题：<asp:Label ID="Label2" runat="server" ></asp:Label>   
      </div>   
    <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="ListView" runat="server" AutoGenerateColumns="False" DataKeyNames="FieldID" GridLines="None"
            OnRowDataBound="FieldListView_RowDataBound"  Width="99%" EnableTheming="True" OnRowCommand="FieldListView_RowCommand"  CssClass="CTable" EmptyDataText="没有考试记录!">
            <Columns>
            <asp:BoundField DataField="id"  HeaderText="排序">
                <itemstyle width="70px" Height="35px" Font-Bold="true"  horizontalalign="Center" />
                </asp:BoundField>
                        
              <asp:BoundField DataField="name"  HeaderText="学校">
                <itemstyle  horizontalalign="Center" />
                </asp:BoundField>
                    
              <asp:TemplateField HeaderText="参考人数">
               <itemstyle horizontalalign="Center" />
                <itemtemplate>
                 <span style="color:Green;font-weight:bold;font-size:15px"><%# gettotal(Utils.StrToInt(Eval("id"))) %></span>人
                </itemtemplate>
              </asp:TemplateField>

              <asp:TemplateField HeaderText="实考人数">
               <itemstyle horizontalalign="Center" />
                <itemtemplate>
                 <a href="KS.BjScore.aspx?schoolid=<%#Eval("id")%>&sjid=<%=SJID%>"><span style="color:red;font-weight:bold;font-size:15px"><%# getck(Utils.StrToInt(Eval("id")),SJID) %></span>人</a>
                    <a href="KS.BjScore.aspx?schoolid=<%#Eval("id")%>&sjid=<%=SJID%>">(查看)</a>
                </itemtemplate>
              </asp:TemplateField>

              <asp:TemplateField HeaderText="平均成绩">
               <itemstyle horizontalalign="Center" />
                <itemtemplate>
                  <span style="color:red;font-weight:bold;font-size:15px"><%# getpj(Utils.StrToInt(Eval("id")),SJID) %>分</span>
                </itemtemplate>
              </asp:TemplateField>                         
            </Columns>
            <HeaderStyle CssClass="CTitle" />
            <EmptyDataRowStyle CssClass="emptycss" />
        </KS:KSGV>
        <div class="noprint">  
        <asp:Panel ID="Panel1" runat="server"  CssClass="noprint" Width="739px">        
            &nbsp;&nbsp;            
            <input type="button" class="button" value="打印本页" onclick="window.print()" /> <asp:Button ID="BtnExportExcel" Text="导出Excel" runat="server" CssClass="button" 
                onclick="BtnExportExcel_Click" />        
         <KS:Page ID="Page1" runat="server" />
        </asp:Panel>
        
         
        </div>
     </asp:Panel>
    
    
	</div>
</asp:Content>