<?xml version="1.0"?>
<labeltemplate>
  <label name="mymade">
     <![CDATA[
  <div class="dingzhi">
<ul id="test_collect">
<li >      
<div class="imgbox">
<a href="{M:HomeDir}Exam/MyMade.aspx?action=open&classid={$Field(ClassID,text,0,...,2,)}" title="{$Field(ClassName,text,0,...,2,)}"><img src="{M:HomeDir}images4/shijuan.jpg" height="320" /></a>
<strong>{$Field(ClassName,text,0,...,2,)}</strong>
</div>
</li>
</ul>
</div>
  ]]>
</label>
  <label name="mymade2">
  <![CDATA[
<div class="dingzhierji">
<ul id="test_collect">
<li >      
<div class="imgbox">
<img src="{M:HomeDir}images4/shijuan.jpg" height="320" />
<strong>{$Field(ClassName,text,0,...,2,)}</strong>
<span>{KS:getOpenStatus}</span>
</div>
</li>
</ul>
</div>
       ]]>
  </label>
  <label name="myexam">
    <![CDATA[
    <div class="myexam">
      <ul id="test_collect">
        <li>
          <div class="myexam_pic">
            <img alt="{$Field(ClassName,text,0,...,2,)}" src="{M:HomeDir}images4/shijuan.jpg" onerror="this.src='{M:HomeDir}images4/shijuan.jpg';" width="80">	
		    </div>
          <div class="myexam_con">
            <h2>{$Field(ClassName,text,0,...,2,)}</h2>
            <p class="tips">
              开卷时间:{KS_Time}<br>共有试卷：<span style="color:Red">{KS_SJTotal}</span>份<br> 共有试题：<span style="color:Red">{KS_STTotal}</span>题
            </p>
            <p class="ks_btn">
              <span class="pic_test">
                <a href="{M:HomeDir}Exam/MyTj.aspx?Id={$Field(ClassID,text,0,...,2,)}">
                  <img src="{M:HomeDir}images4/lx.jpg"/>
                </a>
              </span>
              <span class="pic_test">
                <a href="{M:HomeDir}Exam/MyPractice.aspx?classid={$Field(ClassID,text,0,...,2,)}">
                  <img src="{M:HomeDir}images4/rndexam.jpg"/>
                </a>
              </span>
            </p>
          </div>
        </li>
      </ul>
    </div>
     ]]>
  </label>
  <label name="mywrong">
    <![CDATA[
    <div class="mywrong">
      <div class="mywrong_title">
        <h3>
          错题本共有<span style="color:Red;">{KS_Total}</span>道试题
        </h3>
      </div>
      <div>
        <ul id="test_collect">
        [loop]
          <li>
            <span>
            <h3>
              <strong>{$Field(Title,text,0,...,2,)}</strong>
              </h3>
            </span>
            <span class="time">{$Field(AddDate,date,YY-MM-DD)}</span>
              <span class="xuanxiang">
                {$Field(TMNR,text,0,...,2,)}
              </span>
              <span class="ctb_btn"><a href="{M:HomeDir}Exam/MyWrong.aspx?action=Detail&id={$Field(TMID,text,0,...,2,)}">详情</a>
              <a href="{M:HomeDir}Exam/MyWrong.aspx?action=Cancel&id={$Field(ID,text,0,...,2,)}" onclick="return(confirm('确认删除？'));">删除</a></span>
            </li>
             [/loop]
        </ul>
      </div>
    </div>
    ]]>
  </label>
  <label name="detail">
    <![CDATA[
     <form name="aspnetForm" method="post" action="{M:HomeDir}Exam/MyWrong.aspx?action=Detail&id={KS:TMID}" id="aspnetForm">
    <script>
      fromuser = 1;
  </script>
   <table id="tablist" width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="border">
      <tr class="title">
      <td ><h3>查看试题详情<h3></td>
      </tr>
      <tr>
       <td>
        {KS:LabContent}
      </td>
     </tr>
    </table>
  <div class="backto">
<input type="button" class="button" value="返回上一页" onclick="history.back();" />
  </div>
   </form>
    ]]>
  </label>
  <label name="mywrong2">
    <![CDATA[
    [loop]
    <li>
            <span>
            <h3>
              <strong>{$Field(Title,text,0,...,2,)}</strong>
              </h3>
            </span>
            <span class="time">{$Field(AddDate,date,YY-MM-DD)}</span>
            <br>
              <span class="xuanxiang">
                {$Field(TMNR,text,0,...,2,)}
              </span>
              <span class="ctb_btn"><a href="{M:HomeDir}Exam/MyWrong.aspx?action=Detail&id={$Field(TMID,text,0,...,2,)}">详情</a>
              <a href="{M:HomeDir}Exam/MyWrong.aspx?action=Cancel&id={$Field(ID,text,0,...,2,)}" onclick="return(confirm('确认删除？'));">删除</a></span>
            </li>
    [/loop]
    ]]>
  </label>
  <label name="mycollect">
    <![CDATA[
    <div class="mycollect">
      <div class="mycollect_title">
        <h3>
          收藏夹本共有<span style="color:Red;">{KS_Total}</span>道试题
        </h3>
      </div>
      <div>
        <ul id="test_collect">
        [loop]
          <li>
            <span>
             <h3> <strong>{$Field(Title,text,0,...,2,)}</strong>
             </h3>
            </span>
            <span class="time">{$Field(AddDate,date,YY-MM-DD)}</span>
             <span class="xuanxiang">
                {$Field(TMNR,text,0,...,2,)}
              </span>
               <span class="sc_btn"><a href="{M:HomeDir}Exam/MyCollect.aspx?action=Detail&id={$Field(TMID,text,0,...,2,)}">详情</a>
              <a href="{M:HomeDir}Exam/MyWrong.aspx?action=Cancel&id={$Field(ID,text,0,...,2,)}" onclick="return(confirm('确认删除？'));">删除</a></span>
            </li>
             [/loop]
        </ul>
      </div>
    </div>
     ]]>
  </label>
  <label name="mycollect2">
    <![CDATA[
    [loop]
    <li>
          <span>
             <h3> <strong>{$Field(Title,text,0,...,2,)}</strong>
             </h3>
            </span>
            <span class="time">{$Field(AddDate,date,YY-MM-DD)}</span>
             <span class="xuanxiang">
                {$Field(TMNR,text,0,...,2,)}
              </span>
               <span class="sc_btn"><a href="{M:HomeDir}Exam/MyCollect.aspx?action=Detail&id={$Field(TMID,text,0,...,2,)}">详情</a>
              <a href="{M:HomeDir}Exam/MyWrong.aspx?action=Cancel&id={$Field(ID,text,0,...,2,)}" onclick="return(confirm('确认删除？'));">删除</a></span>
            </li>
             [/loop]
     ]]>
  </label>
  <label name="myscore">
    <![CDATA[
    <div class="mycj">
      <div class="mycj_title">
        <h3>
          您本共有<span style="color:Red;">{KS_Total}</span>条考试记录
        </h3>
      </div>
      <div>
        <ul id="test_collect">
        [loop]
          <li>
            <h3> <strong>{$Field(Title,text,0,...,2,)}</strong> </h3>
              <span>得分：</span><span style="color:red">{$Field(Score,text,0,...,2,)}</span>分
                <span class="right">用时：{$Field(KSSJ,text,0,...,2,)}</span>
                 <span class="time">{$Field(AddDate,text,0,...,2,)}</span>
                  <span class="cj_btn">
                    <a href="{M:HomeDir}exam/explained.aspx?scoreid={$Field(ScoreID,text,0,...,2,)}">查看详情</a>
                    <a href="{M:HomeDir}exam/Confirm.aspx?id={$Field(SJID,text,0,...,2,)}">重新考试</a>
                    <a href="{M:HomeDir}exam/MyScore.aspx?action=Cancel&ids={$Field(ScoreID,text,0,...,2,)}" onclick="return(confirm('确认删除？'));">删除</a>
                  </span>
   </li>  
   [/loop]
   </ul>
      </div>
    </div>
    ]]>
  </label>
  <label name="myscore2">
    <![CDATA[
        [loop]
          <li>
            <h3> <strong>{$Field(Title,text,0,...,2,)}</strong> </h3>
              <span>得分：</span><span style="color:red">{$Field(Score,text,0,...,2,)}</span>分
                <span class="right">用时：{$Field(KSSJ,text,0,...,2,)}</span>
                 <span class="time"><img src="{M:HomeDir}images4/time.png"/>{$Field(AddDate,text,0,...,2,)}</span>
                  <span class="cj_btn">
                    <a href="{M:HomeDir}exam/explained.aspx?scoreid={$Field(ScoreID,text,0,...,2,)}">查看详情</a>
                    <a href="{M:HomeDir}exam/Confirm.aspx?id={$Field(SJID,text,0,...,2,)}">重新考试</a>
                      <a href="{M:HomeDir}exam/MyScore.aspx?action=Cancel&ids={$Field(ScoreID,text,0,...,2,)}" onclick="return(confirm('确认删除？'));">删除</a>
                  </span>
   </li>  
   [/loop]
    ]]>
  </label>
  <label name="mytiaojuan">
    <![CDATA[
    <div class="xiugaimytj">
      <div class="xiugaimytjtype">
        {KS:ShowBySJType}
        <div>
          <div class="tjcontent">
            <ul id="test_collect">
             [loop]
              <li>
              <div class="tjPic">
                <span>
                  <img src="{M:HomeDir}images4/shijuan.jpg" width="100" height="150" />
                </span>
                </div>
                <div class="tjConment">
                <span>标题:{$Field(Title,text,0,...,2,)}</span>
                <span>上传时间：{$Field(AddDate,date,YY-MM-DD)}</span>
                <span>总分：{$Field(Score,text,0,...,2,)}分&nbsp;&nbsp;共有<em style="color:red"> {$Field(TestHits,text,0,...,2,)}</em>人</span>
                <span>类别：<em style="color:red"> {$Field(typename,text,0,...,2,)}</em></span>
                <span>
                  <a href="{M:HomeDir}Exam/Confirm.aspx?id={$Field(id,text,0,...,2,)}">
                    <img src="{M:HomeDir}images4/entersj.png"  border="0" />
                  </a>
                </span>
                </div>
              </li>
               [/loop]
            </ul>
          </div>
        </div>
         ]]>
  </label>
  <label name="mytiaojuan2">
    <![CDATA[
    <div class="xiugaimytj">
      <div class="xiugaimytjtype">
        {KS:ShowBySJType}
        <div>
          <div class="tjcontent">
            <ul >
              <li>
              对不起没有您的套卷练习！
              </li>
            </ul>
          </div>
        </div>
         ]]>
  </label>
  <label name="mytiaojuan3">
    <![CDATA[
             [loop]
              <li>
                <span>
                  <img src="{M:HomeDir}images4/shijuan.jpg" height="320" />
                </span>
                <span>标题:{$Field(Title,text,0,...,2,)}</span>
                <span>上传时间：{$Field(AddDate,date,YY-MM-DD)}</span>
                <span>总分：{$Field(Score,text,0,...,2,)}分</span>
                <span>
                  共有<em style="color:red"> {$Field(TestHits,text,0,...,2,)}</em>人
                </span>
                <span>类别：<em style="color:red"> {$Field(typename,text,0,...,2,)}</em></span>
                <span>
                  <a href="{M:HomeDir}Exam/Confirm.aspx?id={$Field(id,text,0,...,2,)}">
                    <img src="{M:HomeDir}images4/entersj.gif"  border="0" />
                  </a>
                </span>
              </li>
               [/loop]
         ]]>
  </label>
  <label name="myrand">
    <![CDATA[
    <form method="get" id="aspnetForm">
   <script>
    var limitTotalTMS=100; //限制总抽题数
    jQuery(document).ready(function(){
      if (parseInt($("#TxtTM1").val())>parseInt($("#n0").html())){
       $("#TxtTM1").val($("#n0").html());
      }
      if (parseInt($("#TxtTM2").val())>parseInt($("#n1").html())){
       $("#TxtTM2").val($("#n1").html());
      }
      if (parseInt($("#TxtTM3").val())>parseInt($("#n2").html())){
       $("#TxtTM3").val($("#n2").html());
      }
      if (parseInt($("#TxtTM4").val())>parseInt($("#n3").html())){
       $("#TxtTM4").val($("#n3").html());
      }
        if (parseInt($("#TxtTM5").val())>parseInt($("#n4").html())){
            $("#TxtTM5").val($("#n4").html());
      }
        if (parseInt($("#TxtTM6").val())>parseInt($("#n5").html())){
            $("#TxtTM6").val($("#n5").html());
      }
       
    });
    function getTMS(v) {
        var tm1=$("#TxtTM1");
        var tm2=$("#TxtTM2>");
        var tm3=$("#TxtTM3");
        var tm4=$("#TxtTM4>");
        var tm5=$("#TxtTM5");
        var tm6=$("#TxtTM6");
    

        jQuery.get('MyPractice.aspx', {rnd:Math.random(), action: "gettms", classId:{KS:classid},knowledgeId: v }, function (d) { 
        var darr=d.split('|');
         for(var i=0;i<6;i++)
         {
             jQuery("#n"+i).html(darr[i]);
             if (darr[i]>10){
                 eval("tm"+(i+1)).val(10);
             }else{
                 eval("tm"+(i+1)).val(darr[i]);
             }
             if (darr[i]==0){
                 $("#show"+i).hide();
             }else{
                 $("#show"+i).show();
             }
         }
         
    });
    }
    function checkTm(){
      
      if ($("#TxtTitle").val()==''){
        KesionJS.Alert("练习名称必须输入！",'$("#TxtTitle").focus()');
        return false;
      }
      if ($("#TxtTime").val()==''){
        KesionJS.Alert("做题时长必须输入！",'$("#TxtTime").focus()');
        return false;
      }
      var tm1=parseInt($("#TxtTM1").val());
      var tm2=parseInt($("#TxtTM2").val());
      var tm3=parseInt($("#TxtTM3").val());
      var tm4=parseInt($("#TxtTM4").val());
      var tm5=parseInt($("#TxtTM5").val());
      var tm6=parseInt($("#TxtTM6").val());
    
        if (tm2>parseInt($("#n1").html())){
        KesionJS.Alert("单选题最多只能选"+$("#n1").html()+"题！",'$("#TxtTM2").focus()');
        return false;
      }
      if (tm3>parseInt($("#n2").html())){
        KesionJS.Alert("多选题最多只能选"+$("#n2").html()+"题！",'$("#TxtTM3").focus()');
        return false;
      }
      if (tm4>parseInt($("#n3").html())){
        KesionJS.Alert("判断题最多只能选"+$("#n3").html()+"题！",'$("#TxtTM4").focus()');
        return false;
      }
        if (tm5>parseInt($("#n4").html())){
            KesionJS.Alert("填空题最多只能选"+$("#n4").html()+"题！",'$("#TxtTM5").focus()');
          return false;
      }
        if (tm6>parseInt($("#n5").html())){
            KesionJS.Alert("阅读分析题最多只能选"+$("#n5").html()+"题！",'$("#TxtTM6").focus()');
          return false;
      }
       
      if (tm1>parseInt($("#n0").html())){
        KesionJS.Alert("主观题最多只能选"+$("#n0").html()+"题！",'$("#TxtTM1").focus()');
        return false;
      }
      if (tm1+tm2+tm3+tm4+tm5+tm6>limitTotalTMS){
        KesionJS.Alert("系统限制每次只能抽"+limitTotalTMS+"题！",'');
        return false;
      }

    }
    $(document).ready(function(){
        getTMS(0);
    });
</script>
    <div class="rand">
      <div class="active_tit">
        <h3 >配置练习规则</h3>
      </div>
      <div class="active_con">
        <ul>
          <li>
            <span class="opin_name">练习名称：</span>
            <input class="full_input" type="text" name="TxtTitle" id="TxtTitle" value="{KS_DateTime}强化练习" />
            <span class="gray">请为您的练习取个名字，方便在答题记录中查找</span>
          </li>
          <li>
            <span class="opin_name">选择知识点：</span>

           {KS_DrpKnowledge}

            <span class="gray">可以针对某个知识点进行练习</span>
          </li>
          <li>
            <span class="opin_name">做题时长：</span>
            <input id="TxtTime" class="normal_input" type="text" value="60" name="TxtTime"/>
            <span>分钟</span>
          </li>
        </ul>
      </div>
    </div>
    <div class="question_type">
      <div class="question_tit">
        <h3>题型:(如果您不希望做某种题型，请在选题数值框内填0)</h3>
      </div>
      <div class="question_con">
        <ul>
          <li id="show1" style="display:none">
            <span class="num_first">单选题： 共 <span id="n1">0</span> 题，选</span> <input class="num_input" id="TxtTM2" name="TxtTM2" type="text" value="0" />题
          </li>
          <li id="show2" style="display:none">
            <span class="num_first">多选题： 共 <span id="n2">0</span> 题，选</span> <input class="num_input" id="TxtTM3" name="TxtTM3" type="text" value="0" />题
          </li>
          <li id="show3" style="display:none">
            <span class="num_first">判断题： 共 <span id="n3">0</span> 题，选</span> <input class="num_input" id="TxtTM4" name="TxtTM4" type="text" value="0" />题
          </li>

          <li id="show4" style="display:none">
            <span class="num_first">填空题： 共 <span id="n4">0</span> 题，选</span>
            <input class="num_input" id="TxtTM5" name="TxtTM5" type="text" value="10""/>题</li>
          <li id="show0" style="display:none">
            <span class="num_first">主观题： 共 <span id="n0">0</span> 题，选 </span><input class="num_input" id="TxtTM1" name="TxtTM1" type="text" value="0" />题
          </li>

          <li id="show5" style="display:none">
            <span class="num_first">阅读分析： 共 <span id="n5">0</span> 题，选</span> <input class="num_input" id="TxtTM6" name="TxtTM6" type="text" value="0"/>题
          </li>
        </ul>
      </div>
    </div>
    <p class="select_to_start_test">
      <input type="submit" id="Submit"  name="Submit" value="开始" class="btn"  onclick="return(checkTm());" />
    </p>
    <div>
    </div>
    </form>
    ]]>
  </label>
  <label name="shijuanlist">
    <![CDATA[
    <form  name="examsearchform" method="post" action="{M:HomeDir}exam/shijuanlist.aspx">
    <div class="m_search_box">
        <div class="m_search_icon"></div>
        <div class="m_res_search_resetbox" style="display: none" id="m_res_search_reset">
            <div class="m_res_search_reset"></div>
        </div>
        <div class="m_search_text">
            <input id="key" name="key" type="text" value="输入关键字..." onFocus="if (this.value=='输入关键字...')this.value='';" onBlur="if (this.value=='') this.value='输入关键字...';"/>
        </div>
        <div class="m_search_sub" onClick="return(doSearch())"></div>
    </div>
</form>
<div>
<div class="demo">
      <ul class="sf-menu">
          <li><a href="#">分类</a>
             <ul>
                 {KS_sj_classname}
             </ul>
          </li>
           <li><a href="#">类型</a>
             <ul>
                 {KS_sj_typename}
             </ul>
          </li>
          <li><a href="#">综合偏序</a>
		  
		  <ul>
                 <li><a href="{M:HomeDir}Exam/ShiJuanList.aspx?action=time">时间</a></li>
                 <li><a href="{M:HomeDir}Exam/ShiJuanList.aspx?action=renqi">人气</a> 
                 </li>
               
             </ul>
		  
		  
		  </li>
		  
      </ul>
   </div>
   </div>
   <div class="sj_list">
   <ul id="test_collect">
   [loop]
   <li>
   <span class="imgnav"><img src="{M:Homedir}images4/shijuan.jpg"</span>
   <span class="htitnav">[<a class="orange">{$Field(classname,text,0,...,2,)}</a>]{$Field(Title,text,0,...,2,)} </span>
  <div class="icon_and_text">
   <span class="ren"><a class="blue">{$Field(TestHits,text,0,...,2,)}</a></span>
   <span class="fen"><a class="blue">{$Field(Score,text,0,...,2,)}分</a></span>
   <span class="bo"><a class="blue">{$Field(Hits,text,0,...,2,)}</a></span>
  </div>
   <span class="testtype">类型：{$Field(typename,text,0,...,2,)}</span>
   <span class="right">
    <a href="{M:HomeDir}Exam/Confirm.aspx?id={$Field(id,text,0,...,2,)}" class="green en_exam">
   进入考试
    </a>
   </span>
   </li>
   [/loop]
   </ul>
   </div>
    ]]>
  </label>
  <label name="shijuanlist2">
    <![CDATA[
   [loop]
   <li>
   <span ><img src="{M:Homedir}images4/shijuan.jpg"</span>
   <span>{$Field(Title,text,0,...,2,)} </span>
   <span>共有{$Field(Hits,text,0,...,2,)}人作答</span>
   <span>总分{$Field(Score,text,0,...,2,)}分</span>
     <span>点击数：{$Field(Hits,text,0,...,2,)}</span>
   <span>
    <a href="{M:HomeDir}Exam/Confirm.aspx?id={$Field(id,text,0,...,2,)}">
   进入考试
    </a>
   </span>
   </li>
   [/loop]
    ]]>
  </label>
  <label name="shijuanlist3">
    <![CDATA[
    <form  name="examsearchform" method="post" action="{M:HomeDir}exam/shijuanlist.aspx">
    <div class="m_search_box">
        <div class="m_search_icon"></div>
        <div class="m_res_search_resetbox" style="display: none" id="m_res_search_reset">
            <div class="m_res_search_reset"></div>
        </div>
        <div class="m_search_text">
            <input id="key" name="key" type="text" value="输入关键字..." onFocus="if (this.value=='输入关键字...')this.value='';" onBlur="if (this.value=='') this.value='输入关键字...';"/>
        </div>
        <div class="m_search_sub" onClick="return(doSearch())"></div>
    </div>
</form>
<div>
<div class="demo">
      <ul class="sf-menu">
          <li><a href="#">分类</a>
             <ul>
                 {KS_sj_classname}
             </ul>
          </li>
           <li><a href="#">类型</a>
             <ul>
                 {KS_sj_typename}
             </ul>
          </li>
          <li><a href="#">综合偏序</a>
		  <ul>
                 <li><a href="#">时间</a></li>
                 <li><a href="#">人气</a> 
                 </li>
               
             </ul>
		  
		  </li>
      </ul>
   </div>
   </div>
   <div class="sj_list">
   <ul id="test_collect">
   <li>
  没有您输入的信息请重新输入！
   </li>
   </ul>
   </div>
    ]]>
  </label>
  
</labeltemplate>
 
