/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2020-07-17 07:06:30 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_005fnew_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_005fif_0026_005ftest;
  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_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.release();
    _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=\"tab3/tab.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  scroll=\"no\" >\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("自由练习</td></tr>\r\n");
      out.write("</table>\r\n");
      out.write(" \r\n");
      out.write(" 　\r\n");
      out.write("\r\n");
      out.write("  \r\n");
      out.write("<table border=0 width=650 align=\"center\" >\r\n");
      out.write("<tr><td>\r\n");
      out.write("  \r\n");
      out.write(" <SCRIPT language=\"javascript\">\r\n");
      out.write("     var  t=new tab( 't');\r\n");
      out.write("\t t.addTab('选择课程及题库','tab_library' );\t \r\n");
      out.write("\t t.addTab('选择题型','tab_itemtype' );\r\n");
      out.write("\t t.addTab('选择难度','tab_difficulty' );\r\n");
      out.write("\t t.addTab('选择知识点','tab_knowledge' );\r\n");
      out.write("\t  \r\n");
      out.write("\t t.create();\r\n");
      out.write("  </SCRIPT>\r\n");
      out.write(" <div  style=\"border-left:1px solid #919b9c;\r\n");
      out.write("\t\tborder-right:1px solid #919b9c;\r\n");
      out.write("\t\tborder-bottom:1px solid #919b9c;\r\n");
      out.write("\t\tposition:relative; height:300px; width:100% ; \r\n");
      out.write("\t\toverflow:auto\" >\r\n");
      out.write("   <div id=tab_itemtype style=\" padding:10px;position:relative\"> \r\n");
      out.write("     <p><br>\r\n");
      out.write("  &nbsp;&nbsp; 本次练习重 点练习指定的题型：       </p>\r\n");
      out.write("     <table width=\"334\" border=\"0\" align=\"left\"  style=\" margin-left:50px;\"　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　>\r\n");
      out.write("       <tr>\r\n");
      out.write("         <td nowrap>客观题：</td>\r\n");
      out.write("         <td nowrap>&nbsp;</td>\r\n");
      out.write("         <td nowrap>主观题：</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("       <tr>\r\n");
      out.write("         <td valign=\"top\"><hr size=\"1\">\r\n");
      out.write("\t\t <!-- name用来控制radio为一组，class用来做脚本中的$的选择器　-->\r\n");
      out.write("           <input name=\"itemtype\" type=\"radio\" class=\"itemtype\" value=\"PD\" checked>\r\n");
      out.write("           判断题<br>\r\n");
      out.write("             <input type=\"radio\" name=\"itemtype\" class=\"itemtype\" value=\"DX\">\r\n");
      out.write("单选题 <br>\r\n");
      out.write("<input type=\"radio\" name=\"itemtype\" class=\"itemtype\" value=\"FX\">\r\n");
      out.write("多选题</td>\r\n");
      out.write("         <td nowrap>&nbsp; </td>\r\n");
      out.write("         <td nowrap><hr size=\"1\">\r\n");
      out.write("         <input type=\"radio\" name=\"itemtype\" class=\"itemtype\" value=\"GC\">\r\n");
      out.write("         判断改错题<br>\r\n");
      out.write("           <input type=\"radio\" name=\"itemtype\" class=\"itemtype\" value=\"JS\">\r\n");
      out.write("           演算题<br>\r\n");
      out.write("           <input type=\"radio\" name=\"itemtype\" class=\"itemtype\" value=\"TK\">\r\n");
      out.write("           填空题<br>\r\n");
      out.write("           <input type=\"radio\" name=\"itemtype\" class=\"itemtype\" value=\"MC\">\r\n");
      out.write("           名词解释<br>\r\n");
      out.write("           <input type=\"radio\" name=\"itemtype\" class=\"itemtype\" value=\"JD\">\r\n");
      out.write("           简答题<br>\r\n");
      out.write("           <input type=\"radio\" name=\"itemtype\" class=\"itemtype\" value=\"LS\">\r\n");
      out.write("           论述题<br>\r\n");
      out.write("           <input type=\"radio\" name=\"itemtype\" class=\"itemtype\" value=\"AL\">\r\n");
      out.write("           案例分析题<br></td>\r\n");
      out.write("       </tr>\r\n");
      out.write("     </table>\r\n");
      out.write("     <p>&nbsp;</p>\r\n");
      out.write("   </div>\r\n");
      out.write("\t <div id=tab_difficulty style=\" padding:10px;position:relative\"> \r\n");
      out.write("     <p><br>\r\n");
      out.write("  &nbsp;&nbsp; 本次练习题目的难度：       </p>\r\n");
      out.write("     <table   border=\"0\" align=\"left\"  style=\" margin-left:50px;\"  width=\"200\"><tr>\r\n");
      out.write("         <td valign=\"top\"><hr size=\"1\">\r\n");
      out.write("\t\t <!-- name用来控制radio为一组，class用来做脚本中的$的选择器　-->\r\n");
      out.write("        <input name=\"difficulty\" type=\"radio\" class=\"difficulty\" value=\"0\" checked> 随机<br>\r\n");
      out.write("        <input type=\"radio\" name=\"difficulty\" class=\"difficulty\" value=\"1\">&nbsp;简单 <br>\r\n");
      out.write("\t\t<input type=\"radio\" name=\"difficulty\" class=\"difficulty\" value=\"2\">&nbsp;基础 <br>\r\n");
      out.write("\t\t<input type=\"radio\" name=\"difficulty\" class=\"difficulty\" value=\"3\">&nbsp;中等 <br>\r\n");
      out.write("\t\t<input type=\"radio\" name=\"difficulty\" class=\"difficulty\" value=\"4\">&nbsp;较难 <br>\r\n");
      out.write("\t\t<input type=\"radio\" name=\"difficulty\" class=\"difficulty\" value=\"5\">&nbsp;极难 <br>\r\n");
      out.write("</td>\r\n");
      out.write("         　\r\n");
      out.write("       </tr>\r\n");
      out.write("     </table>\r\n");
      out.write("     <p>&nbsp;</p>\r\n");
      out.write("   </div>\r\n");
      out.write("   <div id=tab_library style=\" padding:10px\"> <br>&nbsp;&nbsp;&nbsp;&nbsp; 从课程\r\n");
      out.write("   <span id=coursecontainer><span id=coursename></span>\r\n");
      out.write("\t   <input type=\"hidden\" id=courseid name=courseid value=0>\r\n");
      out.write("      <input type=\"button\" value=\"选择课程\" id=\"cb_selectCourse\"   onclick='selectCourse();'>\r\n");
      out.write("       </span> 关联的题库中选题： &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write("     <input name=\"button\" type=\"button\"  onClick=\"addLibrary( );\" value=\"添加题库\"><br><br>\r\n");
      out.write("     &nbsp;&nbsp;&nbsp;&nbsp;<font color= gray>【提示】：如果课程列表中没有列出我需要的课程，请进入<a href=\"edu_learning_case.jsp\">课程列表</a>，\r\n");
      out.write("     执行刷新课程列表</font><br><br>\r\n");
      out.write("     <div id=libraryContainer name=libraryContainer style=\"position:relative; width:90%; height:180px; overflow:auto;  text-align:center;\">\r\n");
      out.write("       <div id=libraryFlag></div>\r\n");
      out.write("     </div>\r\n");
      out.write("   </div>\r\n");
      out.write("   <div id=tab_knowledge style=\" padding:10px\">\r\n");
      out.write("     <p>如果指定了知识点，那么仅从属于这些知识点的题目中选择试题。当指定知识点的题目数不够时，随机取其它题目</p>\r\n");
      out.write("     <textarea  id= knowledgepoint name=knowledgepoint rows=6 style=\"width:400px;\" \r\n");
      out.write("   ></textarea>\r\n");
      out.write("     <p>&nbsp;</p>\r\n");
      out.write("   </div>\r\n");
      out.write(" </div>\r\n");
      out.write("<!-- ------------------------------------------------------ -->\r\n");
      out.write("</td></tr></table>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<div align=\"center\" style=\"text-align:center;\">\r\n");
      out.write(" <br><img src=\"image/click.gif\" align=\"absmiddle\">\r\n");
      out.write("  <input type=\"button\" value=\"开始练习\" onclick=\"letsGo();\">\r\n");
      out.write("</div>\r\n");
      out.write(" <SCRIPT language=\"javascript\">\r\n");
      out.write("\tt.showTab(\"tab_library\");\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("/**\r\n");
      out.write(" * 添加一个库\r\n");
      out.write(" */\r\n");
      out.write("function addLibrary( libid )\r\n");
      out.write("{\r\n");
      out.write("\tvar courseid=$('#courseid').val(  );\r\n");
      out.write("\tif ( courseid==0)\r\n");
      out.write("\t{\r\n");
      out.write("\t\talert('请先选择课程');\r\n");
      out.write("\t\t\r\n");
      out.write("\t\treturn;\r\n");
      out.write("\t}\r\n");
      out.write("    if  ( libid==undefined) libid='';\r\n");
      out.write("    var html= LS.getHTML( libid)\r\n");
      out.write("    $('#libraryContainer' ).append ( $(html));\r\n");
      out.write("     \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function letsGo()\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("\tvar config={ };\r\n");
      out.write("\t//题库\r\n");
      out.write("    config.librarylist=[ ];\r\n");
      out.write("    config.librarynamelist=\"\";\r\n");
      out.write("\t\r\n");
      out.write("\tvar its= $('input.itemtype');\r\n");
      out.write("\t\r\n");
      out.write("\tfor( var i=0;i<its.length;i++)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tif ( its[i].checked) config.itemtype= its[i].value;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tvar diffs= $('input.difficulty');\r\n");
      out.write("\t\r\n");
      out.write("\tfor( var i=0;i<diffs.length;i++)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tif ( diffs[i].checked) config.difficulty= diffs[i].value;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t  \r\n");
      out.write("    var libs=$(\"select.libraryselect\");\r\n");
      out.write("\t\r\n");
      out.write("\tif ( libs.length==0) \r\n");
      out.write("\t{\r\n");
      out.write("\t\talert('请至少选择一个题库');\r\n");
      out.write("\t\treturn;\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("    for ( var i=0;i< libs.length;i++)\r\n");
      out.write("    {\r\n");
      out.write("        if (libs[i].options.length==0) continue;\r\n");
      out.write("        config.librarylist[ config.librarylist.length] = libs[i].value;\r\n");
      out.write("        config.librarynamelist+= \"&nbsp;\"+libs[i].options[libs[i].selectedIndex].text ;\r\n");
      out.write(" \r\n");
      out.write("\t\t\r\n");
      out.write("    }\r\n");
      out.write("    \r\n");
      out.write("    if ( config.librarylist.length==0) \r\n");
      out.write("    {\r\n");
      out.write("    \talert('请至少选择一个题库');\r\n");
      out.write("\t\treturn;\r\n");
      out.write("    }\r\n");
      out.write("\t//知识点\r\n");
      out.write("\tconfig.knowledgepoint = $('#knowledgepoint').val( );\r\n");
      out.write("\t\r\n");
      out.write("    //使用同步方式 \r\n");
      out.write("    var ret=$rpc( 'educ.exercise.Exercise', 'newExercise' , config );\r\n");
      out.write("    //alert( JSON.toString( ret));\r\n");
      out.write("    if ( ret.success)\r\n");
      out.write("    {\r\n");
      out.write("         \r\n");
      out.write("        window.location.href='edu_exercise_do.jsp?id='+ret.id+\"&action=next\";\r\n");
      out.write("        \r\n");
      out.write("    }else\r\n");
      out.write("    {\r\n");
      out.write("        alert(  ret.message);\r\n");
      out.write("    }\r\n");
      out.write("    \r\n");
      out.write("\t\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("function selectCourse()\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("    $.blockUI(\"正在获取我的课程列表....\");\r\n");
      out.write("\t$rpc('educ.teachingplan.TeachingPlan','getMyLearningCourseList',\r\n");
      out.write("\t            { 'page':1 ,\r\n");
      out.write("\t               'rebuild': false \r\n");
      out.write("\t             },\r\n");
      out.write("\t             \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=\"\";\r\n");
      out.write("\t      \t\tfor(  var i=0;i< data.list.length;i++)\r\n");
      out.write("\t      \t\t{\r\n");
      out.write("\t      \t\t\thtml=html+\"<option value='\"+data.list[i].id+\"'>\"+data.list[i].name+\"</option>\";\r\n");
      out.write("\t      \t\t}\r\n");
      out.write("\t      \t\t\r\n");
      out.write("  \t      \t　$('#coursecontainer').html( \"<select id=courseid name=courseid  >\"+  html+\"</select>\");\r\n");
      out.write("                $('#cb_selectcourse').css(\"display\",\"none\");\r\n");
      out.write("                ");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
        return;
      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(" * LS这个对象用来处理题库项的HTML代码\r\n");
      out.write(" */\r\n");
      out.write("var LS={ courseid:0};\r\n");
      out.write("\r\n");
      out.write("LS.libraryData=null;\r\n");
      out.write("\r\n");
      out.write("LS.getHTML=function( libID)\r\n");
      out.write("{\r\n");
      out.write("        var courseid=$('#courseid').val(  );\r\n");
      out.write("        if ( courseid==0)\r\n");
      out.write("        {\r\n");
      out.write("                alert(\"请先选择课程\");\r\n");
      out.write("                 return \"\";   \r\n");
      out.write("         }\r\n");
      out.write("         \r\n");
      out.write("         if ( this.courseid!=courseid)  this.libraryData=null;\r\n");
      out.write("        this.courseid =courseid;  \r\n");
      out.write("        if ( this.libraryData==null)\r\n");
      out.write("        {\r\n");
      out.write("            var data= $rpc( 'educ.library.Librarylist', 'getAllLibraryNameAndIdList' , {courseid: courseid } );\r\n");
      out.write("            this.libraryData = data ;\r\n");
      out.write("        }\r\n");
      out.write("        this.libraryData.selectedId= libID;\r\n");
      out.write("        var html = TrimPath.processDOMTemplate(\"librarySelectTemplate\", this.libraryData);                  \r\n");
      out.write("        return html;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("$(document).ready( function()\r\n");
      out.write("{\r\n");
      out.write("\t\tselectCourse();\r\n");
      out.write("}\r\n");
      out.write(");\r\n");
      out.write("\r\n");
      out.write(" </SCRIPT>\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("<!--   用来显示题库项目的模板 -->\r\n");
      out.write("<textarea id='librarySelectTemplate' rows=1 style=\"display:none\">\r\n");
      out.write("<div>\r\n");
      out.write("<select   class='libraryselect' style=\"width:350px\" >\r\n");
      out.write("{foreach d in datas}\r\n");
      out.write(" <option value='");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${d.id}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
      out.write("'    {if ( d.id==selectedId) }selected {/if}>");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${d.name}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
      out.write("</option>\r\n");
      out.write("{/foreach}\r\n");
      out.write("</select>&nbsp;&nbsp;&nbsp;&nbsp;<input type='button' value='删除' onclick=\" $( this).parent().remove();\" >\r\n");
      out.write("</div>\r\n");
      out.write("</textarea>\r\n");
      out.write("\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_005fif_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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f0.setParent(null);
    // /edu_exercise_new.jsp(265,16) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.courseid!=null}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
    if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("                \t$('#courseid').val('");
        if (_jspx_meth_c_005fout_005f0(_jspx_th_c_005fif_005f0, _jspx_page_context))
          return true;
        out.write("');\r\n");
        out.write("                \t$('#courseid').get(0).disabled=true;\r\n");
        out.write("                ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_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((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f0);
    // /edu_exercise_new.jsp(266,37) 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.courseid}", 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;
  }
}
