/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2020-07-17 07:06:32 UTC
 * Note: The last modified time of this file was set to
 *       the last modified time of the source file after
 *       generation to assist with modification tracking.
 */
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import java.net.*;
import java.sql.*;
import wiseoa.*;
import wiseoa.util.*;
import wiseoa.mail.jstl.*;

public final class edu_005fexercise_005flist_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;

  static {
    _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(1);
    _jspx_dependants.put("/rightverify_login.jsp", Long.valueOf(1517794822543L));
  }

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody;

  private volatile javax.el.ExpressionFactory _el_expressionfactory;
  private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
    return _jspx_dependants;
  }

  public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
    if (_el_expressionfactory == null) {
      synchronized (this) {
        if (_el_expressionfactory == null) {
          _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
        }
      }
    }
    return _el_expressionfactory;
  }

  public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
    if (_jsp_instancemanager == null) {
      synchronized (this) {
        if (_jsp_instancemanager == null) {
          _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
        }
      }
    }
    return _jsp_instancemanager;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.release();
  }

  public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
        throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	// æ ¡éªææ OAçæé
	User user_1211 = User.getUserFromRequest(request);

	if (user_1211.getId() < 0) //å¦ææ²¡æç»å½ä¿¡æ¯ï¼é£ä¹çä¸ä¸cookie
	{

		javax.servlet.http.Cookie ck[] = request.getCookies();
		String username_ = "";
		String password_ = "";

		if (ck != null)
		{
			for (int i = 0; i < ck.length; i++)
			{

				if (ck[i].getName().equalsIgnoreCase("username")) username_ = wiseoa.util.Escape.unescape(ck[i].getValue());
				if (ck[i].getName().equalsIgnoreCase("password")) password_ = FF.DecryptString (ck[i].getValue());

			}
		}

		String pass = Login.Validate(username_, password_, "", request, response, getServletContext(), "");
		if (! pass.equals(""))
		{

		 
			String subpath = (String) session.getAttribute("wiseoaappsubpath");
			if (subpath == null) subpath = "";
			response.sendRedirect(subpath + "/SystemTip.jsp?info=" + URLEncoder.encode(pass, "UTF-8"));
			return;
		}
	}

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head><meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" />\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("<title>我的练习历史记录</title>\r\n");
      out.write("\r\n");
      out.write("   <link rel=\"stylesheet\" type=\"text/css\" href=\"css/normal.css\"/>\r\n");
      out.write("   <link href=\"css/paper.css\" type=text/css rel=stylesheet>\r\n");
      out.write("   <link rel=\"stylesheet\" type=\"text/css\" href=\"css/educ/testpaper.css\"/> \r\n");
      out.write(" \r\n");
      out.write("    <script type=\"text/javascript\" src=\"js/json.js\"></script>\r\n");
      out.write("    <script type=\"text/javascript\" src=\"js/jst.js\"></script>\r\n");
      out.write("    <script type=\"text/javascript\" src=\"js/jquery.js\"></script>\r\n");
      out.write("    <script type=\"text/javascript\" src=\"js/zrpc.js.jsp\"></script>\r\n");
      out.write("    <script type=\"text/javascript\" src=\"js/blockUI.js\"></script>\r\n");
      out.write("    <script type=\"text/javascript\" src=\"js/edu/EducUtil.js\"></script>\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\t<style>\r\n");
      out.write("\tbody { \r\n");
      out.write("\t             background-position:right bottom;\r\n");
      out.write("\t             background-repeat:no-repeat;\r\n");
      out.write("\t             margin:0;\r\n");
      out.write("\t             overflow:auto;\r\n");
      out.write("\t             }\r\n");
      out.write("\t\r\n");
      out.write("\t</style>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body >\r\n");
      out.write(" <table border=0 cellpadding=\"0\" cellspacing=\"0\" style=\" background-color:#e5effc ;\" width=100%>\r\n");
      out.write("<tr><td width=60><img src=\"image/home.png\"  align=\"absmiddle\"></td>\r\n");
      out.write("<td style=\"font-size:14px;\">\r\n");
      out.write("我的练习历史记录\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</td></tr>\r\n");
      out.write("</table>\r\n");
      out.write(" \r\n");
      out.write(" <textarea id=\"template\" style=\"display:none;\" rows=\"2\" >\r\n");
      out.write("{foreach item in list}\r\n");
      out.write(" <div style=\"font-size:14px; padding:3px; border-bottom: 1px double #e4e4ff\">\r\n");
      out.write("<img src=\"image/bullet.gif\">&nbsp;\r\n");
      out.write("<span class='asbutton' onclick= \"exercise_go( ");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.id}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
      out.write(" );\">\r\n");
      out.write(" ");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.title}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
      out.write("</span>\r\n");
      out.write("   \r\n");
      out.write(" </div>\r\n");
      out.write("  \r\n");
      out.write(" <table border=0 cellpadding=\"1\">\r\n");
      out.write(" <tr><td nowrap>[题&nbsp;&nbsp;&nbsp;&nbsp;型]：</td><td width='80%'> <font color=green size=2> ");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${ itemType2NameMap[item.itemtype]}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
      out.write("</font>\r\n");
      out.write(" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write(" [难&nbsp;&nbsp;&nbsp;&nbsp;度]：\r\n");
      out.write(" <font color=green>");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${ difficulty2NameMap[item.difficulty]}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
      out.write("</font>\r\n");
      out.write(" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write(" [练习量]：<font color=green> ");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.itemcount}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
      out.write("</font>\r\n");
      out.write(" \r\n");
      out.write(" <tr><td nowrap>[题&nbsp;&nbsp;&nbsp;&nbsp;库]：</td><td> ");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.librarynamelist}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
      out.write(" </td></tr>\r\n");
      out.write(" <tr><td nowrap>[知识点]：</td><td> ");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.knowledgepoint}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
      out.write(" </td></tr>\r\n");
      out.write("  \r\n");
      out.write(" <tr><td nowrap>[最后练习时间]： </td><td>");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.lastdate}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
      out.write("</td></tr>\r\n");
      out.write(" </td></tr>\r\n");
      out.write(" \r\n");
      out.write(" </table>\r\n");
      out.write(" <br>\r\n");
      out.write(" {/foreach}  \r\n");
      out.write(" </textarea>\r\n");
      out.write(" \r\n");
      out.write(" <div id=div-list style=\"padding:10px;\"></div>\r\n");
      out.write(" \r\n");
      out.write(" <script type=\"text/javascript\">\r\n");
      out.write(" \r\n");
      out.write("    //调取我能参加的考试\r\n");
      out.write("\t$.blockUI(\"正在获取练习历史列表....\");\r\n");
      out.write("\t$rpc('educ.exercise.Exercise','getExerciseHistoryList',\r\n");
      out.write("\t            { 'page':'");
      if (_jspx_meth_c_005fout_005f0(_jspx_page_context))
        return;
      out.write("' },\r\n");
      out.write("\t      function( ret)\r\n");
      out.write("\t      {\r\n");
      out.write("\t      \r\n");
      out.write("\t      \t\tvar data= JSON.parse( ret);\r\n");
      out.write("\t      \t\t$.unblockUI();\r\n");
      out.write("\t      \t\tif (! data.success) \r\n");
      out.write("\t      \t\t{\r\n");
      out.write("\t      \t\t\talert( data.message);\r\n");
      out.write("\t      \t\t\treturn;\r\n");
      out.write("\t      \t\t}\r\n");
      out.write("\t      \t\t \r\n");
      out.write("  \t      \t\tvar html = TrimPath.processDOMTemplate(\"template\",data);\r\n");
      out.write("\t      \t\tif ( html.length>0)\r\n");
      out.write("\t\t\t\t{\r\n");
      out.write("\t\t\t\t\t$(\"#div-list\").append( $(html))\r\n");
      out.write("\t\t\t\t\t$(\"#navigateContainer\").html( data.navigateHTML);\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t      \t\t\r\n");
      out.write("\t      }\r\n");
      out.write("\t  );\r\n");
      out.write("\t      \r\n");
      out.write("\t\r\n");
      out.write("\t// 进入练习场\r\n");
      out.write("\tfunction exercise_go(id　)\r\n");
      out.write("\t{  \r\n");
      out.write("\t　\twindow.location.href='edu_exercise_do.jsp?id='+id+\"&action=list\";\r\n");
      out.write("\t}\r\n");
      out.write("\t      \r\n");
      out.write("\t\t  \r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("<div  id=navigateContainer  style=\"text-align:center\"></div>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_c_005fout_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f0 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_005fout_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f0.setParent(null);
    // /edu_exercise_list.jsp(77,23) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.page}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f0 = _jspx_th_c_005fout_005f0.doStartTag();
    if (_jspx_th_c_005fout_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0);
    return false;
  }
}
