<%@ page autoeventwireup="true" debug="true" inherits="_User_Practice_Ping, App_Web_y-mubyy6" language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>考试</title>
   <%-- <link href="../css/main.css" rel="stylesheet" type="text/css" />--%>
    <link href="../css/control.css" rel="stylesheet" type="text/css"  />
    <link href="../css/StyleSheet.css" rel="stylesheet" type="text/css" />
   <%-- <link href="../css/pager.css" rel="stylesheet" type="text/css" />--%>

    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script src="../jquery-1.5.js" type="text/javascript"></script>


    <script  src="../js/ajaxdroplist.js" type="text/javascript"></script>

    <link href="../alert/jquery.alert.css" rel="stylesheet" type="text/css" />

    <script src="../alert/jquery.easydrag.js" type="text/javascript"></script>

    <script src="../alert/jquery.alert.js" type="text/javascript"></script>
    <script  type="text/javascript"  language="javascript" >
    
    

    
    function submitExam2()
    {
    alert('提交完成!!!'); 
    } 
    
    function btnClick(typeid,typename)
    {
   
   
   
   var ctrl=document.getElementById ("ctrl");
   ctrl.value=typeid;
   
   var btt=document.getElementById  ("TypeListBottom").getElementsByTagName ("input");
   if (btt!=null)
   {
        for(var i = 0; i < btt.length; i++) 
        { 
        if (btt[i].id=="btnbottom"+typeid && btt[i].type=="button")
        {
        btt[i].className="button_r";
        
        }
        else 
        {
          btt[i].className="button_b";
        }
   
      }
  }
   var b_type=document.getElementById  ("TypeList").getElementsByTagName ("input");
   if (b_type!=null)
   {
        for(var i = 0; i < b_type.length; i++) 
        { 
        if (b_type[i].id=="btn"+typeid && b_type[i].type=="button")
        {
        b_type[i].className="button_r";
        
        }
        else 
        {
          b_type[i].className="button_b";
        }
   
      }
  }
//     var div=document.getElementById  ("ExamBody").getElementsByTagName ("div");
//   if (div!=null)
//   {
// 
//        for(var i = 0; i < div.length; i++) 
//        { 
//        
//        if (div[i].id=="QType"+typeid && div[i].className=="QType" )
//        {
//        
//        div[i].style.display="block";
//        
//        }
//        else if( div[i].className=="QType")
//        {
//       
//         div[i].style.display="none";
//        }
//   
//      }
//  }
//   
//    document.documentElement.scrollTop=0;
 
    
    }
  
// idTest=document.getElementById('gotopbtn');
// idTest.onclick=function (){
//  document.documentElement.scrollTop=0;
//  sb();
//  }
// window.onscroll=sb;
// function sb(){
//  if(document.documentElement.scrollTop==0){
//   idTest.style.display="none";
//   }else{
//    idTest.style.display="block";
//    }
//  }
  
  
     function btnClick1(typeid,typename)
    {
   
   
   
   var ctrl=document.getElementById ("ctrl");
   ctrl.value=typeid;
   
   var btt=document.getElementById  ("TypeListBottom").getElementsByTagName ("input");
   if (btt!=null)
   {
        for(var i = 0; i < btt.length; i++) 
        { 
        if (btt[i].id=="btnbottom"+typeid && btt[i].type=="button")
        {
        btt[i].className="button_r";
        
        }
        else 
        {
          btt[i].className="button_b";
        }
   
      }
  }
   var b_type=document.getElementById  ("TypeList").getElementsByTagName ("input");
   if (b_type!=null)
   {
        for(var i = 0; i < b_type.length; i++) 
        { 
        if (b_type[i].id=="btn"+typeid && b_type[i].type=="button")
        {
        b_type[i].className="button_r";
        
        }
        else 
        {
          b_type[i].className="button_b";
        }
   
      }
  }
     var div=document.getElementById  ("ExamBody").getElementsByTagName ("div");
   if (div!=null)
   {
 
        for(var i = 0; i < div.length; i++) 
        { 
        
        if (div[i].id=="QType"+typeid && div[i].className=="QType" )
        {
        
        div[i].style.display="block";
        
        }
        else if( div[i].className=="QType")
        {
       
         div[i].style.display="none";
        }
   
      }
  }
   
   // document.documentElement.scrollTop=0;
 
    
    }
  

    //--------------------
    
    function clear_choose()
    {
    
    
       var ctrl=document.getElementById ("ctrl");
   ctrl.value="0";
     var btt=document.getElementById  ("TypeListBottom").getElementsByTagName ("input");
   if (btt!=null)
   {
        for(var i = 0; i < btt.length; i++) 
        { 
      
          btt[i].className="button_b";
       
   
      }
  }
   var b_type=document.getElementById  ("TypeList").getElementsByTagName ("input");
   if (b_type!=null)
   {
        for(var i = 0; i < b_type.length; i++) 
        { 
       
          b_type[i].className="button_b";
        
   
      }
  }
    
    }
    
    
    function singcheck(tid,check)
    {
  var tt=  document.getElementById(check.id).getElementsByTagName ("input"); 
  
   for(var i = 0; i < tt.length; i++) 
        { 
      if(tt[i].type=="radio")
      {
      
     alert( tt[i].value)
      
      }
  
  
            }
  
  
    alert(tid+"__"+tt.length+"_"+check.id)
    }
    
    
    function disp_confirm(s)    
  {    
  var r=confirm(s)    
  if (r==true)    
    {    
    alert(1)
    }    
  else    
    {    
   alert(0) 
    }    
  }    

   //---------------------------------------------------------
  function  ffx(score,id,str)
   {
  var ttt= document.getElementById("t_"+id) ;
  ttt.value=score;
  var h=document.getElementById ("v_" +id);
  h.value=str;
  
  

   }
    
    
    </script>
</head>
<body marginheight="0" marginwidth="0" onload="if(parent.cen!=null){parent.cen.cols='0,*';parent.centop.rows='0,*,0'};"
    scroll="auto" style="float: left; width: 960px; margin: 0px auto; background: url(../images/bg_body.png) repeat-x;
    background-attachment: fixed;">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
      
               <%-- <div style="text-align: center; padding-bottom: 10px;">
                    <asp:Label ID="paper_title" runat="server" Font-Bold="true" Font-Names="宋体" Font-Size="15"
                        ForeColor="Black" Text=""></asp:Label>
                    <asp:Label ID="paper_score" runat="server" Font-Bold="true" Font-Names="宋体" Font-Size="15"
                        ForeColor="red" Text=""></asp:Label>
                </div>
           --%>
        <asp:HiddenField ID="ctrl" runat="server" Value="0" />
     
                <div id="ExamTop">
                    <div class="l">
                        &nbsp;</div>
                    <div class="m">
                        <span>考试时间：<%= Request["time"].ToString()%> 分钟</span> <span>考生：<%=ViewState["name"].ToString ()%></span><span>姓名：<%= ViewState["xm"].ToString ()%></span><span>总分 ：<%=Request["point"].ToString () %> 分</span>
                        <span>通过分：<%= Request["passpoint"].ToString () %> 分</span>
                    </div>
                    <div class="r">
                        &nbsp;</div>
                </div>
                <div id="ExamName">
                    <%= Request["planname"].ToString()%>
                    <img id="viewHelp" alt="" src="../images/help.gif" title="查看【考试帮助】">
                 <%--   <a id="selectFontSize" href="#" style="font-size: 12pt">【字号选择】</a>--%>
                </div>
                <div id="ExamType">
                    <span id="TypeList">
                        <asp:Literal ID="Literal3" runat="server"></asp:Literal>
                     
                     
                    </span>
                </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <span id="ExamBody">
                    <asp:DataList ID="paper_list"   runat="server" OnItemDataBound="paper_list_ItemDataBound"
                        Width="100%" TabIndex="1">
                  
                        <ItemTemplate>
                        
                            <div id="QType<%#Eval("TidType")%>"   class="QType" style="display: block;">
                                <div class="TypeTitle">
                                    <a name="type1"></a><a id="typeaction1" href="#type1"></a>
         <%# "第"+(Container.ItemIndex + 1 + (int.Parse(page_indexpage.Text)-1) * 20)+"部分 "+ Eval("Typ_name") +" ("+ Eval("TidTitle") +")  共"+Eval("tishu") +"小题，每题"+Eval("Tid_Score") +"分"   %>
                                        <asp:HiddenField ID="score" runat="server" Value='<%# Eval("Tid_Score") %>' />
                                    <asp:HiddenField ID="TidType" runat="server" Value='<%# Eval("TidType") %>' />
                            </div>
                              
                                        <asp:DataList ID="DataList1" runat="server" DataKeyField="Pra_Topid" OnItemDataBound="DataList1_ItemDataBound"
                                            Width="100%">
                                            <ItemTemplate>
                                              
                                             
                                                            <div class="Body">
                                                                <asp:Panel ID="Panel5" runat="server" CssClass="QName">
                                                         
                                                            
                                                              
                                                                <%--  <%# Eval("Topic_no") %>--%>
                                                               <%-- <%#Container.ItemIndex + 1 + (int.Parse(page_indexpage.Text)-1) * 20%>--%>
                                                                 <asp:Label ID="Label4" runat="server" ForeColor="red"  Text=""></asp:Label>
                                                                 <asp:Literal ID="Label1" runat="server" ></asp:Literal>
                                                                <asp:HiddenField ID="fill_count"  Value="0" runat="server" />
                                                                 <asp:Panel ID="Panel4" runat="server" style="display:inline ">
                                                                 <asp:Label ID="l0" runat="server" Text=""></asp:Label>
                                                                 
                       <asp:TextBox ID="t0" runat="server"   ReadOnly="true"
                           OnTextChanged="t0_TextChanged" Style="border: none; border-bottom: 1px solid DarkGray;"></asp:TextBox>
                                                                 <asp:Label ID="l1"  Visible="false"  runat="server" Text=""></asp:Label>
                                    <asp:TextBox ID="t1" runat="server" CssClass="fill" OnTextChanged="t1_TextChanged"
                                        ReadOnly="true" Style="border: none; border-bottom: 1px solid DarkGray;" Visible="false"></asp:TextBox>
                                                                    <asp:Label ID="l2" Visible="false"  runat="server" Text="Label"></asp:Label>
                                                                    <asp:TextBox ID="t2" ReadOnly="true"   runat="server"  OnTextChanged="t2_TextChanged"
                                                                        Style="border: none; border-bottom: 1px solid DarkGray; "
                                                                        Visible="false"></asp:TextBox>
                                                                    <asp:Label ID="l3" runat="server" ReadOnly="true" Text="" Visible="false"></asp:Label>
                                                                    <asp:TextBox ID="t3" runat="server"  OnTextChanged="t3_TextChanged"
                                                                        Style="border: none; border-bottom: 1px solid DarkGray; "
                                                                        Visible="false"></asp:TextBox>
                                                                    <asp:Label ID="l4"  runat="server" Text="" Visible="false"></asp:Label>
                                                                    <asp:TextBox ID="t4" runat="server" OnTextChanged="t4_TextChanged" ReadOnly="true"
                                                                        Style="border: none; border-bottom: 1px solid DarkGray;" Visible="false"></asp:TextBox>
                                                                    <asp:Label ID="l5" runat="server" Text="" Visible="false"></asp:Label>
                                                                    <asp:TextBox ID="t5" runat="server" OnTextChanged="t5_TextChanged" ReadOnly="true"
                                                                        Style="border: none; border-bottom: 1px solid DarkGray;" Visible="false"></asp:TextBox>
                                                                    <asp:Label ID="l6" runat="server" Text="" Visible="false"></asp:Label>
                                                                    <asp:TextBox ID="t6" runat="server" OnTextChanged="t6_TextChanged" ReadOnly="true"
                                                                        Style="border: none; border-bottom: 1px solid DarkGray;" Visible="false"></asp:TextBox>
                                                                    <asp:Label ID="l7" runat="server" Text="" Visible="false"></asp:Label>
                                                                    <asp:TextBox ID="t7" runat="server" OnTextChanged="t7_TextChanged" ReadOnly="true"
                                                                        Style="border: none; border-bottom: 1px solid DarkGray;" Visible="false"></asp:TextBox>
                                                                     <asp:Label ID="l8" runat="server" Text="" Visible="false"></asp:Label>
                                                                     <asp:TextBox ID="t8" runat="server" OnTextChanged="t8_TextChanged" ReadOnly="true"
                                                                         Style="border: none; border-bottom: 1px solid DarkGray;" Visible="false"></asp:TextBox>
                                                                     <asp:Label ID="l9" runat="server" Text="" Visible="false"></asp:Label>
                                                                     <asp:TextBox ID="t9" runat="server" OnTextChanged="t9_TextChanged" ReadOnly="true"
                                                                         Style="border: none; border-bottom: 1px solid DarkGray;" Visible="false"></asp:TextBox>
                                                                </asp:Panel>
                                                                <%#"【章节：" + Eval("K_Name") + " 题型：" + Eval("Typ_name") + "】"%>
                                                           
                                                                </asp:Panel>
                                                              
                                                               <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                                                         
                                                            </div>
                                                   
                                                        <div  >
                                                        <asp:Panel ID="Panel2" runat="server" CssClass="Answer" style="vertical-align:middle; display:inline ;  ">
                                                            用户答案：
                                     <asp:RadioButtonList ID="singchoose" runat="server" 
                                         OnSelectedIndexChanged="singchoose_SelectedIndexChanged" RepeatColumns="10" Style="display: inline"
                                         TextAlign="Left" ValidationGroup="singchoose">
                                                              </asp:RadioButtonList>
                                                        <asp:CheckBoxList ID="doubchoose"  runat="server" RepeatColumns="10" Style="display: inline"
                                                            TextAlign="Left" OnSelectedIndexChanged="doubchoose_SelectedIndexChanged">
                                                        </asp:CheckBoxList>
                                                        </asp:Panel>
                                                        
                                                        <asp:Panel ID="Panel3" runat="server" style="display:inline ;" >
                                              <asp:TextBox ID="fill1"     ReadOnly="true"   runat="server"  OnTextChanged="fill1_TextChanged"
                                                  Rows="8" TextMode="MultiLine" Width="100%">
                                              </asp:TextBox> 
                                                        </asp:Panel>
                                                        </div>
                                                <asp:Panel ID="AnswerAdmin" runat="server" CssClass="AnswerAdmin"  style="display:inline;">
                                                          
                                                          <ul>
                                                          <li>
                                                           <span style="color: Red; font-weight: bolder;">正确答案：</span>
                                                                <asp:Label ID="Label3" runat="server" Font-Bold="true" ForeColor="Red" Text=""></asp:Label>
                                                                
                                                                <asp:HiddenField ID="answer" runat="server" />
                                                          </li>
                                                          
                                                             <li>
                                                                
                                                                
                                                
                                                    <span style="color: Red; font-weight: bolder;">人工评卷：</span>
                                                    
                                                    
                                                                 <asp:Literal ID="Literal4" runat="server"></asp:Literal>
                                                    <asp:Label ID="Label2" runat="server" Font-Bold="true" ForeColor="Red" Text=""></asp:Label>
                                                             
                                                             </li>
                                                             <li>
                                                    <span style="color: Red; font-weight: bolder;">试题解析：</span>
                                                    <asp:Label ID="Label5" runat="server" Font-Bold="true" ForeColor="Red" Text=""></asp:Label>
                                                             </li>
                                                          </ul>
                                                </asp:Panel>
                                              
                                                   
                                      
                                               
                                              
                                                          
                                                 <asp:Panel ID="AnswerMark" runat="server" CssClass="AnswerMark"  style="display:none; ">
                                                                <span style="color: black; font-weight: bolder;">关键词：  
                                                                </span>
                                                               <%# Eval("Top_KeyWord")%>
                                                                <asp:HiddenField ID="guanjianci" runat="server" />
                                                                
                                                                </asp:Panel> 
                                                           
                                                     
                                             
                                            </ItemTemplate>
                                        </asp:DataList>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
               
                    
                    
                </span>
                    <asp:Panel ID="Panel1" runat="server" Visible="false" Width="100%">
                        <div class="paginator">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="left">
                                        <webdiyer:aspnetpager id="PagerButtom" runat="server" alwaysshow="True" bordercolor="Aqua"
                                            cssclass="paginator" custominfoclass="" custominfohtml="当前第%CurrentPageIndex%/%PageCount%页 共%RecordCount%条记录 每页%PageSize%条 "
                                            custominfosectionwidth="" firstpagetext="首页" horizontalalign="Right" lastpagetext="尾页"
                                            layouttype="Table" morebuttonsclass="" nextpagetext="下一页" numericbuttoncount="10"
                                            onpagechanged="Pager_PageChanged" pageindexboxclass="cpb" pagesize="20" prevpagetext="上一页"
                                            showcustominfosection="Right" showpageindexbox="Always">
</webdiyer:aspnetpager>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </asp:Panel>
                    <asp:HiddenField ID="IsEdit" runat="server" />
                    <asp:HiddenField ID="modify" runat="server" />
            
            </ContentTemplate>
            <Triggers>
        <asp:AsyncPostBackTrigger ControlID="Button2" />
                
            </Triggers>
        </asp:UpdatePanel>
      

        <div style="left: 266.5px; bottom: 0px; position: fixed;">
            <div id="ExamTool">
                <div style="float: left; margin-left: 50px; width: 730px;">
                    <span id="TypeListBottom">
                        <asp:Literal ID="Literal2" runat="server"></asp:Literal>
                    </span>
                 <%--   <img id="viewHelpBottom" alt="" src="../images/help.gif" title="查看【考试帮助】"/>--%>
               <%--     <input id="checkExam" class="button_g" type="button"   value="检测答卷"/>--%>
                  
                  
                  
                    <asp:Button ID="Button2" runat="server"  CssClass="button_b" OnClick="Button2_Click"
                        Text="提交评分" />
                    <asp:Button ID="Button1" runat="server" CssClass="button_g" Text="返回" OnClick="Button1_Click2"  />
                        
                </div>
                <div id="timer" style="float: right; width: auto; color: #ff0000; margin-right: 10px;">
                  </div>
            </div>
        </div>

        
        
    </form>
 
    <asp:Label ID="lb_pageid" runat="server" Text="" Visible="false"></asp:Label>
    <asp:Label ID="recordcount" runat="server" Visible="false"></asp:Label>
    <asp:Label ID="page_indexpage" runat="server" Text="1" Visible="false"></asp:Label>
    <asp:Label ID="page_count" runat="server" Text="0" Visible="false"></asp:Label>


<asp:Label ID="l2" runat="server" ></asp:Label>

</body>
</html>
