<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="RM.Web.Training.Chapter.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_title")%></title>

    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/artDialog.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/iframeTools.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>

    <style type="text/css">
        .menu{ width:700px; margin:10px auto; clear:both;}
        .menu li{ list-style:none; width:280px;padding:10px; border:1px #ccc solid; margin:5px; background-color:#f4f4f4;  float:left; line-height:30px;}
        .menu li img{ float:left; margin:10px;border:0;}
        .menu li a{ font-size:16px; display:block;  font-weight:bold;}
        .menu li a span{ color:Gray; text-decoration:none; text-transform:none;text-decoration:none;   font-weight:200;font-size:12px;}
        .menu li ul{ margin:0; padding:0; display:none; }
        .menu li ul li{ margin:2px 0; background:#fff; font-size:12px; padding:3px;width:243px; }
        .menu li ul li a{ font-size:12px; color:Blue; }
        .menu li span{ color:Gray;font-weight:bold;text-decoration:none; text-transform:none;text-decoration:none;   font-weight:200;font-size:12px;}
        a:link { color:Blue; text-decoration: none; }
a:visited { color:Blue;  text-decoration: none; }
a:hover { color:Blue; text-decoration: none; }
a:active { color:Blue; text-decoration: none; }
        
    </style>

</head>

<body>
    <form runat="server" id="form1" >
    <div style=" height:800px;" >
    <div style=" width:600px; margin:10px auto; font: Verdana, Geneva, sans-serif,宋体; font-size:12px;   " >
    <%--<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_xzkm")%>：<asp:RadioButtonList ID="rblkemu" runat="server" 
        RepeatDirection="Horizontal" AutoPostBack="True" RepeatLayout="Flow" >
    </asp:RadioButtonList>--%>
    </div>
  
    <div class="menu">
        <li><a href="#"><img src="/Themes/Images/32/300.png" width="32" height="32" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_zjlx")%><br /><span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_azzjzgtm")%></span></a>
        <ul id="zhangjie">               
               <li><a href="javascript:zjlx();"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_zjlx")%></a></li>               
            </ul></li>
        <li><a href="/Training/Chapter/err_index.htm"><img src="/Themes/Images/32/298.png" width="32" height="32" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_ctlx")%><br /><span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_jywzgdcthgyx")%></span></a>
            <ul id="cuoti">                
                <!--<%=cishu %>-->                
            </ul>
        </li>
        <li><a href="javascript:void(0);" onclick="javascript:znxt();" ><img src="/Themes/Images/32/308.png" width="32" height="32" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_znxt")%><br /><span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_zdlxqkznsxlxt")%></span></a></li>
        <%--
        <li><a href="#"><img src="/Themes/Images/32/299.png" width="32" height="32" />难点练习<br /><span>学习下大家都容易错的题目</span></a>
        <ul id="Ul1">
               <%=nandu %>
            </ul>
        </li>

       
        <li><a href="#"><img src="/Themes/Images/32/308.png" width="32" height="32" />模拟考试<br /><span>测试下自己这段时间的学习成果</span></a>
            <ul id="aaa"><li><a href="javascript:void(0);" >难度</a></li></ul>
        </li>
        --%>
        <%=CustomExam %>
        
        

        <div style=" clear:both;"></div>
        
    </div>
      </div>
    </form>
<script type="text/javascript">
    $.ajaxSetup({
        cache: false //关闭AJAX相应的缓存 
    }); 

    $(function () {
        $("li:has(ul)").find("ul").hide(100);
        $("li").find("ul").prev().click(function () {
            $(this).next().toggle(200);
        });
    });
   
    //错题练习
    function cishu(id) {
        if(kemu==""){        
            alert("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Chapter_wukemu")%>");
        }else{
            window.location.href = "/Training/Chapter/ChapterList.aspx?action=cishu&id=" + id;
        }
    }

    //难点练习
    function nandu(id) {        
        window.location.href = "/Training/Chapter/ChapterList.aspx?action=nandu&id=" + id;
    }

    //智能选题
    function znxt() {
        var url = "/Training/Chapter/SmartQuestion.aspx";
        top.openDialog(url, 'TKS_ChapterPlan_add', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_znxt")%>', 625, 200, 50, 50);        
    }

    //自定义考试
    function getExamList(key,examName) {
        if(examName=="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_mnks")%>"){
            top.openDialog("/Training/Exam/ExamIntroduce.aspx?ExamKey=" + key , 'Examination_Test', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_sjlb")%> - <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_ksxz")%>', 650, 380, 50, 50);
        }else{
            top.openDialog("/Training/Exam/ExamIntroduce.aspx?exam=not&ExamKey=" + key , 'Examination_Test', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_sjlb")%> - <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterIndex_ksxz")%>', 650, 380, 50, 50);
        }
        return false;
    }

    //进入试题练习
    function Golianxi(examId) {
        window.location = "/Training/Exam/Practise.aspx?EKey=" + examId; 
    }

    //进入章节练习
    function zjlx(){
        window.location = "/Training/Chapter/Chapter_frame.aspx";
    }

</script>
</body>
</html>
