<%@ page language="VB" validaterequest="false" inherits="WebExam.Web.checkpaper, App_Web_os0xwql2" masterpagefile="~/Page.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="mainCopy" runat="Server">

<script type="text/javascript" >
  function download(file,testid,examinee){
    var url="download.aspx?";
    
    url+="f="+file;
    url+="&e="+examid;
    url+="&t="+testid;
    url+="&i="+examinee;
    downloadFrm.location=url; 
  }
  function changeScore(examinee,keyAddr,score){
    var box=document.getElementById("<%= TB_check.ClientID() %>");
    var cScore=box.value;//examinee1=add&score_add&score,examinee2=add&score_add&score
    var e=examinee +"="
    var fsStar=-1;
    if(cScore.startsWith(e)){
       fsStar=e.length;    
    }
    else{
      var t=cScore.indexOf(","+e,0);
      if (t!=-1)fsStar=t+e.length+1;
    }
    if(t==-1)return;
    
    var fsEnd=-1;
    fsEnd =cScore.indexOf(",",fsStar);
    if(fsEnd ==-1)fsEnd =cScore.length -1;else fsEnd -=1;
    var keyAddrStr=keyAddr +"&";
    if((cScore.indexOf(keyAddrStr,fsStar))==fsStar) {fsStar+=keyAddrStr.length; }
    else {
      var bb= cScore.indexOf("_"+keyAddrStr,fsStar);
      if(bb==-1)return;
      if (bb>fsEnd )return ;
      fsStar=bb+keyAddrStr.length+1; 
    } 
   
    var qian=cScore.substring(0,fsStar);
    var aaa=cScore.substr (fsStar,1);
    while ((aaa!="_")&&(aaa!="")&&(aaa!=",")){
      fsStar +=1;
      aaa=cScore.substr (fsStar,1);
      
      
    } 
    var hou=cScore.substring(fsStar);
    box.value=qian+score +hou; 
  }
</script>

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
        
        <div style="color: red;">
        <img src="../../../images/progress_ani.gif"  alt="Progress……" />Progress……
        </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <div style="text-align: center; font-size: 20pt; line-height: 30pt">
        考试名称：
        <asp:Label ID="L_examId" runat="server" Text=""></asp:Label>

    </div>
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>     
            <div style="text-align: center;">
                <div style="margin-left: 10px; margin-bottom: 10px">
                    <div style="text-align: left;">
                        共有有效试卷
                        <asp:Label ID="lbtotal" runat="server"></asp:Label>份&nbsp;任务完成 填空题
                        <asp:Label ID="lb_t2_checked" runat="server"></asp:Label>/
                        <asp:Label ID="lb_t2_total" runat="server"></asp:Label>
                        问答题
                        <asp:Label ID="lb_t4_checked" runat="server"></asp:Label>/
                        <asp:Label ID="lb_t4_total" runat="server"></asp:Label>
                        
                         文件上传题
                        <asp:Label ID="lb_t11_checked" runat="server"></asp:Label>/
                        <asp:Label ID="lb_t11_total" runat="server"></asp:Label>
                        
                        </div>
                    <div style="line-height: 33px">
                        题型<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
                            <asp:ListItem Text="填空题" Value="c"></asp:ListItem>
                            <asp:ListItem Text="问答题" Value="e"></asp:ListItem>
                            <asp:ListItem Text="文件上传题" Value="l"></asp:ListItem>
                            
                        </asp:DropDownList>
                       
                        <asp:RadioButton ID="RadioButton1" Text="已阅试卷" GroupName="paper" runat="server" AutoPostBack="True" />
                        <asp:RadioButton ID="RadioButton2" Checked="true" Text="未阅试卷" GroupName="paper" runat="server"
                            AutoPostBack="True" />
                    </div>
                    <div style="text-align:left; margin-bottom:5px">
                   
                        <asp:TextBox ReadOnly="true"  ID="TB_test" TextMode="MultiLine" style="overflow:auto;border-width: 0px;width: 90%;" runat="server"></asp:TextBox>
                        <asp:Label ID="L_test" runat="server" Text=""></asp:Label>
                    </div>
                    <div>
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                            ForeColor="#333333" GridLines="None">
                            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#E3EAEB" />
                            <Columns>
                                <asp:BoundField DataField="sn" HeaderText="编号" />
                                
                                <asp:TemplateField HeaderText="">
                               
                                    <ItemTemplate>
                                        <asp:label id="L_examineeId" Visible="true" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.examineeId") %>'></asp:label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="testId" HeaderText="试题ID" />
                                <asp:BoundField DataField="checker" HeaderText="阅卷人" />
                                
                                
                            </Columns>
                            <EmptyDataTemplate><b>-----没有数据-----</b></EmptyDataTemplate>
                            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#7C6F57" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                    </div>
                    <asp:TextBox ID="TB_check" runat="server" Width="200" style="display:none"></asp:TextBox>
                    <asp:LinkButton ID="LB_pre" CausesValidation="false" Enabled="false" runat="server">上一页</asp:LinkButton>
                    <asp:LinkButton ID="LB_next" CausesValidation="false" Enabled="false" runat="server">下一页</asp:LinkButton>
                    <asp:Button ID="Button1" runat="server" Text="保存转下一页" /></div>
                    <iframe id="downloadFrm" height="50px" width ="100%" frameborder="0" scrolling="no" ></iframe>
            </div>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
