<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_ZGSJPGItem" Title="批改试卷" Codebehind="KS.ZGSJPGItem.Aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
    <asp:Panel ID="listPanel" runat="server" Width="100%">

<div class="content-area mt20"> 
		<div class="myTitle">
   			<a href="KS.ZGSJPG.aspx" class="fr button">返回</a>
            批改试卷
      	</div>  
      	<div class="quickSearch clearfix">
        	<div class="fr tips l_height36">[<%=dr!=null?dr["title"].ToString():String.Empty %>]   
       		试卷总分：<%=dr != null ? dr["score"].ToString() : string.Empty%>分&nbsp;限制时间：<%=dr!=null?dr["kssj"].ToString():string.Empty %> 分钟 </div>
             <div class="SearchBox fl">
                 <asp:DropDownList ID="DrpTJ" runat="server" style="margin-right:8px;">
                      <asp:ListItem Value="a.username">用户名 </asp:ListItem>
                      <asp:ListItem Value="realname">姓名</asp:ListItem>
                 </asp:DropDownList>
                 <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" PagerType="CustomNumeric" Width="99%" EnableTheming="True" OnRowCommand="FieldListView_RowCommand" HorizontalAlign="Center" EmptyDataText="没有试卷可批改!" class="CTable">
            <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;vertical-align: middle;" onerror="this.src='../../SysImg/face/<%# Convert.ToString(Eval("Sex"))=="男"?"boy.jpg":"girl.jpg"%>';" src="<%#Eval("userface") %>" width="45px" height="45px" />
                </itemtemplate>
              </asp:TemplateField>


              <asp:BoundField DataField="username"  HeaderText="用户名">
                <itemstyle width="70px" 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="KSSJ"  HeaderText="用时">
                 <itemstyle HorizontalAlign="Center"/>
                </asp:BoundField>
              <asp:TemplateField HeaderText="得分">
               <itemstyle horizontalalign="Center" />
                <itemtemplate>
                 <%# Convert.ToInt16(Eval("ispg"))==0?"---":"<span><font class='redFont'>"+ Eval("score") +"</font>分</span>" %>
                </itemtemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="状态">
               <itemstyle horizontalalign="Center" />
                <itemtemplate>
                 <%# Convert.ToInt16(Eval("ispg"))==1?"<span class='greenFont'>已批改</span>":"<span class='redFont'>未批改</span>" %>
                </itemtemplate>
              </asp:TemplateField>
             

                <asp:TemplateField HeaderText="操作">
                <itemtemplate>
                <a href="KS.ZGPGScore.aspx?sjid=<%=SJID %>&scoreid=<%# Eval("scoreid") %>" class="greenFont">批改试卷</a>&nbsp;&nbsp;
             	<asp:LinkButton runat="server" id="delete" commandargument=<%#Eval("scoreid") %> commandname="del" CssClass="greenFont">删除</asp:LinkButton>&nbsp;&nbsp;
                <a href='<%# Kesion.BLL.BaseFun.GetRewriteUrl("exam","do-explained/scoreid-"+Convert.ToInt32(Eval("scoreid").ToString()))%>' title="查看作答详情" target="_blank" class="greenFont">查看详情</a>
               	</itemtemplate>
                <itemstyle horizontalalign="Center" width="240px" />
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="CTitle" />
            <EmptyDataRowStyle CssClass="emptycss" />
        </KS:KSGV>
        <br />
        <asp:Panel ID="Panel1" runat="server" Height="30px" Width="739px">
        <div class="listedit">
            <ul>
                <input type="checkbox" name="chkall" id="chkall" onclick="CheckAll(this.form);"/><label for="chkall">全选</label>
                <asp:Button CssClass="button" Text="一键快速批改选中的试卷"  Enabled="false" runat="server" ID="BtnQuickPG" onclick="BtnQuickPG_Click" />
                <asp:Button CssClass="button" Text="一键快速批改全部试卷"  Enabled="false" runat="server" ID="BtnQuickPGAll" onclick="Button1_Click" />
            </ul>
        </div>
        </asp:Panel>
        </div>
        
         <KS:Page ID="Page1" runat="server" />
        
         

     </asp:Panel>
    
</div>    


</asp:Content>