<%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="FP_Exam.Controller.incorrect" %>
<%@ Import namespace="FangPage.MVC" %>
<%@ Import namespace="FP_Exam" %>
<%@ Import namespace="FP_Exam.Model" %>

<%@ Import namespace="FangPage.WMS" %>
<%@ Import namespace="FangPage.WMS.Model" %>
<script runat="server">
override protected void OnInitComplete(EventArgs e)
{
	/*方配软件技术有限公司(WMS框架)，官方网站：http://www.fangpage.com，生成时间：2015-12-03 18:19:28*/
	base.OnInitComplete(e);
	int loop__id=0;
	ViewBuilder.Append("<!DOCTYPE html>\r\n");
	ViewBuilder.Append("<html lang=\"zh-CN\" class=\"default-layout\">\r\n");
	ViewBuilder.Append("<head>\r\n");
	ViewBuilder.Append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
	ViewBuilder.Append("<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge,chrome=1\">\r\n");
	ViewBuilder.Append("<meta name=\"renderer\" content=\"webkit\">\r\n");
	ViewBuilder.Append("<title>我的错题 - " + pagetitle.ToString() + "</title>\r\n");
	ViewBuilder.Append("	" + meta.ToString() + "\r\n");
	ViewBuilder.Append("<link rel=\"stylesheet\" href=\"" + webpath.ToString() + "sites/exam/statics/css/report.css\">\r\n");
	ViewBuilder.Append("<script type=\"text/javascript\" src=\"" + plupath.ToString() + "jquery/jquery-1.8.2.min.js\"></");
	ViewBuilder.Append("script>\r\n");

	ViewBuilder.Append("<!--[if lte IE 8]><link id=\"ie8Hack\" rel=\"stylesheet\" href=\"#{static(\"common/hack/lte-ie8.css\")}\"/><![endif]-->\r\n");
	ViewBuilder.Append("<!--[if lte IE 7]><link id=\"ie7Hack\" rel=\"stylesheet\" href=\"#{static(\"common/hack/lte-ie7.css\")}\"/><![endif]-->\r\n");
	ViewBuilder.Append("<!--[if gte IE 9]><link id=\"ie9Hack\" rel=\"stylesheet\" href=\"#{static(\"common/hack/gte-ie9.css\")}\"/><![endif]-->\r\n");


	ViewBuilder.Append("<script type=\"text/javascript\">\r\n");
	ViewBuilder.Append("    $(function () {\r\n");
	ViewBuilder.Append("        $('.sprite').click(function () {   // 获取所谓的父行\r\n");
	ViewBuilder.Append("            $(this).toggleClass(\"sprite-selected\");  // 添加/删除图标\r\n");
	ViewBuilder.Append("            $('.child_' + $(this).attr('id')).toggle();  // 隐藏/显示所谓的子行\r\n");
	ViewBuilder.Append("        });\r\n");
	ViewBuilder.Append("    })\r\n");
	ViewBuilder.Append("</");
	ViewBuilder.Append("script>\r\n");
	ViewBuilder.Append("<!--[if gte IE 9]>\r\n");
	ViewBuilder.Append("<style type=\"text/css\">\r\n");
	ViewBuilder.Append(".gradient {\r\n");
	ViewBuilder.Append("    filter: none;\r\n");
	ViewBuilder.Append("}\r\n");
	ViewBuilder.Append("</style>\r\n");
	ViewBuilder.Append("<![endif]-->\r\n");
	ViewBuilder.Append("</head>\r\n");
	ViewBuilder.Append("<body>\r\n");
	ViewBuilder.Append("    <div class=\"wrap\">\r\n");

	ViewBuilder.Append("<div class=\"repeat-x default-t\">\r\n");
	ViewBuilder.Append("    <div class=\"header-left layout default-lt\"></div>\r\n");
	ViewBuilder.Append("    <div class=\"header-right layout default-rt\"></div>\r\n");
	ViewBuilder.Append("</div>\r\n");
	ViewBuilder.Append("<div class=\"default-left repeat-y default-l\"></div>\r\n");
	ViewBuilder.Append("<div class=\"default-right repeat-y default-r\"></div>\r\n");
	ViewBuilder.Append("<div class=\"header\">\r\n");
	ViewBuilder.Append("    <div class=\"navbar-hd clearfix\">\r\n");
	ViewBuilder.Append("        <div class=\"nav-bar-links\">\r\n");
	ViewBuilder.Append("            <a href=\"http://www.fangpage.com\" class=\"course-link course-menu-trigger\" style=\"color:#ffffff\"><strong>方配在线考试系统版本：V" + siteconfig.version.ToString().Trim() + "</strong></a>\r\n");
	ViewBuilder.Append("        </div>\r\n");
	ViewBuilder.Append("        <div class=\"pull-right navbar-links\">\r\n");
	ViewBuilder.Append("            <a href=\"profile.aspx\" class=\"user-nav user-menu-trigger\"><span class=\"sprite sprite-profile i-20\"></span>" + user.realname.ToString().Trim() + "</a>\r\n");
	ViewBuilder.Append("            <a href=\"userpwd.aspx\" class=\"user-nav user-menu-trigger\"><span class=\"sprite sprite-password i-20\"></span>修改密码</a>\r\n");

	if (isadmin)
	{

	ViewBuilder.Append("            <a href=\"" + adminpath.ToString() + "index.aspx\" target=\"_blank\" class=\"user-nav user-menu-trigger\"><span class=\"sprite sprite-admin i-20\"></span>系统后台</a>\r\n");

	}	//end if

	ViewBuilder.Append("            <a href=\"logout.aspx\" class=\"user-nav user-menu-trigger\"><span class=\"sprite sprite-logout i-20\"></span>退出系统</a>\r\n");
	ViewBuilder.Append("        </div>\r\n");
	ViewBuilder.Append("    </div>\r\n");
	ViewBuilder.Append("    <div class=\"navbar-bd\">\r\n");
	ViewBuilder.Append("        <div class=\"container\">\r\n");
	ViewBuilder.Append("            <a href=\"index.aspx\" class=\"logo\">\r\n");
	ViewBuilder.Append("                <img src=\"" + webpath.ToString() + "sites/exam/statics/images/logo.png\" alt=\"" + siteconfig.name.ToString().Trim() + "\">\r\n");
	ViewBuilder.Append("            </a>\r\n");
	ViewBuilder.Append("            <ul class=\"nav main-nav\">\r\n");
	ViewBuilder.Append("                <li \r\n");

	if (pagename=="index.aspx"||pagename=="examlist.aspx")
	{

	ViewBuilder.Append(" class=\"active\" \r\n");

	}	//end if

	ViewBuilder.Append("><a href=\"index.aspx\">练习与考试</a></li>\r\n");
	ViewBuilder.Append("                <li \r\n");

	if (pagename=="examreport.aspx")
	{

	ViewBuilder.Append(" class=\"active\" \r\n");

	}	//end if

	ViewBuilder.Append("><a href=\"examreport.aspx\">能力评估报告</a></li>\r\n");
	ViewBuilder.Append("                <li \r\n");

	if (pagename=="examhistory.aspx"||pagename=="incorrect.aspx"||pagename=="examnote.aspx"||pagename=="favorite.aspx")
	{

	ViewBuilder.Append(" class=\"active\" \r\n");

	}	//end if

	ViewBuilder.Append("><a href=\"examhistory.aspx\">考试历史</a></li>\r\n");
	ViewBuilder.Append("            </ul>\r\n");
	ViewBuilder.Append("        </div>\r\n");
	ViewBuilder.Append("    </div>\r\n");
	ViewBuilder.Append("    <span class=\"repeat-x header-shadow-repeat header-shadow-repeat-l\"></span>\r\n");
	ViewBuilder.Append("    <div class=\"header-shadow\"></div>\r\n");
	ViewBuilder.Append("    <span class=\"repeat-x header-shadow-repeat header-shadow-repeat-r\"></span>\r\n");
	ViewBuilder.Append("</div>\r\n");


	ViewBuilder.Append("        <div class=\"container body-wrap main\">\r\n");
	ViewBuilder.Append("            <div class=\"box-wrap history-wrap\">\r\n");
	ViewBuilder.Append("                <div class=\"box\">\r\n");
	ViewBuilder.Append("                    <div class=\"box-hd\">\r\n");
	ViewBuilder.Append("                        <ul class=\"nav nav-underline\">\r\n");
	ViewBuilder.Append("                            <li><a href=\"examhistory.aspx\">考试记录</a></li>\r\n");
	ViewBuilder.Append("                            <li class=\"active\"><a href=\"incorrect.aspx\">我的错题</a></li>\r\n");
	ViewBuilder.Append("                            <li><a href=\"examnote.aspx\">笔记题目</a></li>\r\n");
	ViewBuilder.Append("                            <li><a href=\"favorite.aspx\">我的收藏</a></li>\r\n");
	ViewBuilder.Append("                        </ul>\r\n");
	ViewBuilder.Append("                    </div>\r\n");
	ViewBuilder.Append("                    <div class=\"box-bd\">\r\n");
	ViewBuilder.Append("                        <div class=\"exercise-list-wrap list-wrap\">\r\n");
	ViewBuilder.Append("                            <div class=\"list\">\r\n");
	ViewBuilder.Append("                                <div class=\"list-hd\">\r\n");
	ViewBuilder.Append("                                    <div class=\"name\">共有" + total.ToString() + "道错题</div>\r\n");
	ViewBuilder.Append("                                </div>\r\n");
	ViewBuilder.Append("                                <div class=\"list-bd\">\r\n");
	ViewBuilder.Append("                                    <table class=\"keypoint-table\">\r\n");
	ViewBuilder.Append("                                        <tbody>\r\n");

	loop__id=0;
	foreach(ExamLogInfo item in examloglist)
	{
	loop__id++;


	if (item.subcounts>0)
	{

	ViewBuilder.Append("                                            <tr class=\"keypoint keypoint-level-0\">\r\n");
	ViewBuilder.Append("                                                <td class=\"name-col\">\r\n");
	ViewBuilder.Append("                                                    <span class=\"text toggle-expand\">\r\n");
	ViewBuilder.Append("                                                        <span id=\"row_" + item.sortid.ToString().Trim() + "\" class=\"sprite sprite-expand i-20\"></span>\r\n");

	if (item.wrongs>0)
	{

	ViewBuilder.Append("                                                        <a href=\"questionview.aspx?sortid=" + item.sortid.ToString().Trim() + "&action=wrong\" target=\"_blank\" class=\"btn btn-link link-button\">" + item.sortname.ToString().Trim() + "(共" + item.wrongs.ToString().Trim() + "道错题)</a>\r\n");

	}
	else
	{

	ViewBuilder.Append("                                                        " + item.sortname.ToString().Trim() + "(共" + item.wrongs.ToString().Trim() + "道错题)\r\n");

	}	//end if

	ViewBuilder.Append("                                                    </span>\r\n");
	ViewBuilder.Append("                                                </td>\r\n");
	ViewBuilder.Append("                                                <td class=\"button-col\">\r\n");

	if (item.wrongs>0)
	{

	ViewBuilder.Append("                                                    <a href=\"questionview.aspx?sortid=" + item.sortid.ToString().Trim() + "&action=wrong\" target=\"_blank\" class=\"btn btn-link link-button\"><span class=\"btn-inner\">查看题目</span></a>&nbsp;&nbsp;\r\n");
	ViewBuilder.Append("                                                    <a href=\"testview_csk.aspx?sortid=" + item.sortid.ToString().Trim() + "\" target=\"_blank\" class=\"btn btn-link link-button\"><span class=\"btn-inner\">专项练习</span></a>\r\n");

	}
	else
	{

	ViewBuilder.Append("                                                    <span class=\"btn-inner\">查看题目</span>&nbsp;&nbsp;\r\n");
	ViewBuilder.Append("                                                    <span class=\"btn-inner\">专项练习</span>\r\n");

	}	//end if

	ViewBuilder.Append("                                                </td>\r\n");
	ViewBuilder.Append("                                            </tr>\r\n");
	ViewBuilder.Append("                                            " + GetChildSort(channelinfo.id,item.sortid,1).ToString() + "\r\n");

	}
	else
	{

	ViewBuilder.Append("                                            <tr class=\"keypoint keypoint-level-0\">\r\n");
	ViewBuilder.Append("                                                <td class=\"name-col\">\r\n");
	ViewBuilder.Append("                                                    <span class=\"text toggle-expand\">\r\n");
	ViewBuilder.Append("                                                        <span class=\"sprite sprite-expand-holder i-20\"></span>\r\n");

	if (item.wrongs>0)
	{

	ViewBuilder.Append("                                                        <a href=\"questionview.aspx?sortid=" + item.sortid.ToString().Trim() + "&action=wrong\" target=\"_blank\" class=\"btn btn-link link-button\">" + item.sortname.ToString().Trim() + "(共" + item.wrongs.ToString().Trim() + "道错题)</a>\r\n");

	}
	else
	{

	ViewBuilder.Append("                                                        " + item.sortname.ToString().Trim() + "(共" + item.wrongs.ToString().Trim() + "道错题)\r\n");

	}	//end if

	ViewBuilder.Append("                                                    </span>\r\n");
	ViewBuilder.Append("                                                </td>\r\n");
	ViewBuilder.Append("                                                <td class=\"button-col\">\r\n");

	if (item.wrongs>0)
	{

	ViewBuilder.Append("                                                    <a href=\"questionview.aspx?sortid=" + item.sortid.ToString().Trim() + "&action=wrong\" target=\"_blank\" class=\"btn btn-link link-button\"><span class=\"btn-inner\">查看题目</span></a>&nbsp;&nbsp;\r\n");
	ViewBuilder.Append("                                                    <a href=\"testview_csk.aspx?sortid=" + item.sortid.ToString().Trim() + "\" target=\"_blank\" class=\"btn btn-link link-button\"><span class=\"btn-inner\">专项练习</span></a>\r\n");

	}
	else
	{

	ViewBuilder.Append("                                                    <span class=\"btn-inner\">查看题目</span>&nbsp;&nbsp;\r\n");
	ViewBuilder.Append("                                                    <span class=\"btn-inner\">专项练习</span>\r\n");

	}	//end if

	ViewBuilder.Append("                                                </td>\r\n");
	ViewBuilder.Append("                                            </tr>\r\n");

	}	//end if


	}	//end loop

	ViewBuilder.Append("                                        </tbody>\r\n");
	ViewBuilder.Append("                                    </table>\r\n");
	ViewBuilder.Append("                                </div>\r\n");
	ViewBuilder.Append("                                <div class=\"list-ft\"></div>\r\n");
	ViewBuilder.Append("                            </div>\r\n");
	ViewBuilder.Append("                        </div>\r\n");
	ViewBuilder.Append("                    </div>\r\n");
	ViewBuilder.Append("                </div>\r\n");
	ViewBuilder.Append("            </div>\r\n");
	ViewBuilder.Append("        </div>\r\n");

	ViewBuilder.Append("<div class=\"footer repeat-x default-b\">\r\n");
	ViewBuilder.Append("    <div class=\"footer-left layout default-lb\"></div>\r\n");
	ViewBuilder.Append("    <div class=\"footer-right layout default-rb\"></div>\r\n");
	ViewBuilder.Append("    <div class=\"container\">\r\n");
	ViewBuilder.Append("        <div class=\"links\">\r\n");
	ViewBuilder.Append("            <p class=\"text-center\">\r\n");
	ViewBuilder.Append("               Copyright &copy; 2013-" + FangPage.MVC.FPUtils.GetDate(datetime,"yyyy") + " <a target=\"_blank\" href=\"http://www.fangpage.com\">方配软件(FangPage.Com)</a>&nbsp;&nbsp;版权所有，版本：V" + siteconfig.version.ToString().Trim() + "\r\n");
	ViewBuilder.Append("            </p>\r\n");
	ViewBuilder.Append("            <p class=\"text-center\">官方网站：<a href=\"http://www.fangpage.com\" target=\"_blank\">http://www.fangpage.com</a>，QQ：12677206，电话：13481092810</p>\r\n");
	ViewBuilder.Append("        </div>\r\n");
	ViewBuilder.Append("    </div>\r\n");
	ViewBuilder.Append("</div>\r\n");


	ViewBuilder.Append("    </div>\r\n");
	ViewBuilder.Append("</body>\r\n");
	ViewBuilder.Append("</html>\r\n");

	Response.Write(ViewBuilder.ToString());
}
</script>
