<%@ Page Language="C#"  MasterPageFile="~/Admin/MasterPage.master"  AutoEventWireup="true" Inherits="Kesion.Net.WebExam.Admin.Exam.KS_BJUser" Codebehind="KS.BJUser.aspx.cs" %>

<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.BLL" %>

<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">

<style>
     @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.BjScore.aspx?SJID=<%=sjId %>">返 回</a>  
      </div> 
 <div class="content-area">       
      <div style="text-align:center" class="message">
        标题：<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>   
      </div>  
    <asp:Repeater ID="Repeater1" runat="server">
              <HeaderTemplate>
               <table id="tablist" width="95%"  border="0" align="center" cellpadding="1" cellspacing="1" class="CTable">
                <tr align="center" class="title">
                    <td width="30px" align="center">序号</td>
                    <td width="40px" align="center">状态</td>    
                     <td width="120px" align="center">用户</td>                       
                     <td  align="center">班级</td>                                  
                     <td  align="center">成绩</td>
                     <td width="100px" align="center">用时</td>                       
                    <td width="80px" align="center">做题时间</td>          
                    <td  width="80px" align="center" class="noprint">操作</td>              
                  </tr>            
              </HeaderTemplate>
             <ItemTemplate>                              
                 <TR class="tdbg">
                   <td align="center" height="40px">
                    <%#Repeater1.Items.Count + 1%>
                     </span>
                     </td> 
                     <td align="center">
                     <%# thestatus(Utils.StrToInt(Eval("istj")), Utils.StrToInt( Eval("ScoreID")))%>    
                     </span>
                     </td> 
              		  <td >
                    <%# UserManage.GetUserInfo(Utils.StrToInt(Eval("Userid"))).UserName%>&nbsp;<%# UserManage.GetUserInfo(Utils.StrToInt(Eval("Userid"))).RealName=="" ? "":"("+UserManage.GetUserInfo(Utils.StrToInt(Eval("Userid"))).RealName+")"%>
                    </td> 
                   <td >
                        <%# Kesion.Exam.Grades.GradeSchoolName(Utils.StrToInt(Eval("schoolid")),"name")%><%# Kesion.Exam.Grades.GradeNianJiName(Utils.StrToInt(Eval("njid")),"name")%><%# Kesion.Exam.Grades.GradeName(Utils.StrToInt(Eval("classid")),"name")%>
                    </td> 
                   <td align="center">
                   <span style='font-weight:bold;'><font style='color:brown'> <%# Utils.StrToFloat( Eval("score")).ToString("f2")%></font>(分)</span>
                    </td>          	                                   
                   <td align="center">
                     <%# getstatus(Utils.StrToInt(Eval("istj")), Utils.StrToInt( Eval("ScoreID")),"0",Eval("hasusetime").ToString())%>       
                    </td>                       			              
                    <td align="center">
                    <%#  Eval("adddate").ToString()=="" ? "":Utils.StrToDateTime(Eval("adddate")).ToShortDateString() %>
                    </td>         
                       <td width="80px" align="center" class="noprint">
                          <a <%# Utils.StrToInt(Eval("ScoreID"))>0 ? "":"style='display:none'"%> href='/jingsai/explained.aspx?scoreid=<%# Eval("ScoreID") %>' target="_blank">查看</a>   				   
                       </td>
			     </TR>
		  
             </ItemTemplate>
              <FooterTemplate>           
                 <TR class="tdbg sort bar" style="display:<%# bool.Parse((Repeater1.Items.Count==0).ToString())?"":"none"%>">
                    <td colspan="5">
                     没有考试成绩记录
                    </td>
                   </TR> 
               </table>
              </FooterTemplate>
            </asp:Repeater>  

          
         <div class="message noprint">

     <KS:Page ID="Page1" runat="server" />
    <input type="button" class="button" value="打印本页" onclick="window.print()" /> 
        </div>

</asp:Panel>
</div>

</asp:Content>







