<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="KS.ZGMonitorAjax.aspx.cs" Inherits="Kesion.NET.WebSite.Admin.Exam.ZGMonitorAjax" %>

    <form id="form1" runat="server">
     <KS:KSGV ID="ProListView" runat="server" AutoGenerateColumns="False" DataKeyNames="FieldID" GridLines="None"
            PagerType="CustomNumeric" Width="99%" EnableTheming="True" HorizontalAlign="Center" EmptyDataText="还没有人在参与考试!">
            <Columns>
              <asp:TemplateField HeaderText="选择">
                <itemstyle horizontalalign="Center" width="50px" />
                <itemtemplate>
                    <input type="checkbox"  name="ids" id="ids" value="<%#Eval("scoreID") %>" />
                </itemtemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="头像">
                 <itemstyle width="55px" horizontalalign="Center" />
                <itemtemplate>
                  <img style="border:1px solid #ccc;padding:1px;" onerror="this.src='../../SysImg/face/<%# Convert.ToString(Eval("Sex"))=="男"?"boy.jpg":"girl.jpg"%>';" src="<%#Eval("userface") %>" width="40px" height="45px" />
                </itemtemplate>
              </asp:TemplateField>

          
              <asp:TemplateField HeaderText="准考证号">
                <itemtemplate>
                   <span style="font-family:@微软雅黑;font-size:16px;font-weight:bold"><%#Eval("CardNum") %></span>
                </itemtemplate>
              </asp:TemplateField>

              <asp:BoundField DataField="username"  HeaderText="用户名">
                <itemstyle horizontalalign="Center" />
                </asp:BoundField>
            
              <asp:BoundField DataField="realname"  HeaderText="姓名">
              <itemstyle HorizontalAlign="Center"/>
                </asp:BoundField>
            
              <asp:BoundField DataField="sex"  HeaderText="性别">
                 <itemstyle HorizontalAlign="Center"/>
                </asp:BoundField>
            
              <asp:BoundField DataField="idcard"  HeaderText="身份证">
                </asp:BoundField>
             <asp:TemplateField HeaderText="已用时">
               <itemstyle horizontalalign="Center" />
                <itemtemplate>
                 <%# Convert.ToString(Eval("hasusetime")).Replace(":","分") %>秒
                </itemtemplate>
              </asp:TemplateField>   
                
              
              <asp:TemplateField HeaderText="总题目数">
               <itemstyle horizontalalign="Center" />
                <itemtemplate>
                 <span style='color:green'><%# Convert.ToString(Eval("totaltms"))%></span> 题
                </itemtemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="未做题目数">
               <itemstyle horizontalalign="Center" />
                <itemtemplate>
                 <span style='color:Red'><%# Convert.ToString(Eval("nofinishtms")) %></span> 题
                </itemtemplate>
              </asp:TemplateField>
              
              <asp:TemplateField HeaderText="被警告">
               <itemstyle horizontalalign="Center" />
                <itemtemplate>
                 <a href="javascript:;" onclick="attentmanage(<%# Eval("scoreid") %>);"><span style='color:brown'><%# Convert.ToString(Eval("warntimes"))%></span> 次</a>
                </itemtemplate>
              </asp:TemplateField>
              

                
              <asp:TemplateField HeaderText="状态">
               <itemstyle horizontalalign="Center" />
                <itemtemplate>
                 <%# Convert.ToString(Eval("locked"))=="0"?(Convert.ToString(Eval("istj"))=="0"?"已交卷":"<span style='color:green'>考试中</span>"):"<span style='color:red'>已被踢出</span>" %>
                </itemtemplate>
              </asp:TemplateField>
             

                <asp:TemplateField HeaderText="管理操作">
                <itemstyle horizontalalign="Center"/>
                <itemtemplate>
                
                
                 <%# Convert.ToString(Eval("locked")) == "0" ? (Convert.ToString(Eval("istj")) == "0" ? "---" : @"<a href='javascript:;' onclick=""attent('" + Eval("scoreid") + @"');"">发出警告</a>&nbsp;<a href=""KS.ZGMonitorAjax.aspx?scoreid=" + Eval("scoreid") + @"&sjid=" + SJID + @"&action=out"" onclick=""return(confirm('考生被踢出后，将不能再进行考试，且此操作不可逆，确定踢出考场吗？'));"">踢出考场</a>") : "---"%>

                
               </itemtemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="CTitle" />
            <EmptyDataRowStyle CssClass="emptycss" />
        </KS:KSGV>
        
        <div class="noprint">
        <%=sb.ToString() %>
        </div>
    </form>
