📄 kmtreesearch_jsp.java
字号:
package org.apache.jsp.pages.LeftMenu.km;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class kmtreesearch_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fif_005ftest;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005felse;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus_005fid;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fform_005fname_005faction;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005fif_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005felse = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus_005fid = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005fform_005fname_005faction = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.release();
_005fjspx_005ftagPool_005fs_005fif_005ftest.release();
_005fjspx_005ftagPool_005fs_005felse.release();
_005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus_005fid.release();
_005fjspx_005ftagPool_005fs_005fform_005fname_005faction.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
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("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \r\n");
out.write("\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
String cpath=request.getContextPath();
out.write("\r\n");
out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
out.write("\t<head>\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/calendar.js\"></script>\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/page.js\"></script>\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/validate.js\"></script>\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/jquery126.js\"></script>\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/effect.js\"></script>\t\t\t\r\n");
out.write("\t\t\r\n");
out.write("\t\t<script language=\"JavaScript\">\r\n");
out.write("\t\t\r\n");
out.write("<!--\r\n");
out.write("var strCode;\r\n");
out.write("//判断文本框是否为空\r\n");
out.write(" $(function(){\r\n");
out.write("\t \taddInputEffect();\r\n");
out.write("\t });\r\n");
out.write(" function str_is_null(str)\r\n");
out.write("{\r\n");
out.write(" if( trim_spaces(str,\"both\").length ==0 )\r\n");
out.write(" return true;\r\n");
out.write(" else\r\n");
out.write(" return false;\r\n");
out.write("\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("function CheckAll(thread_form)\r\n");
out.write("{\r\n");
out.write(" for (var i=0;i< thread_form.selItem.length;i++)\r\n");
out.write(" {\r\n");
out.write(" thread_form.selItem[i].checked = thread_form.chkAll.checked;\r\n");
out.write(" } \r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("//去空格\r\n");
out.write("function trim_spaces(str,from_where)\r\n");
out.write("{\r\n");
out.write("\tvar temp_string=new String(str);\r\n");
out.write("\tif (arguments.length == 0)\r\n");
out.write("\t{\r\n");
out.write("\t\tfrom_where = \"BOTH\";\r\n");
out.write("\t}\r\n");
out.write("\r\n");
out.write("\tif (from_where.toUpperCase() == \"LEFT\" || from_where.toUpperCase() == \"BOTH\")\r\n");
out.write("\t{\r\n");
out.write("\t\twhile (temp_string.substring(0,1) ==\" \")\r\n");
out.write("\t\t{\r\n");
out.write("\t\t\ttemp_string = temp_string.substring(1);\r\n");
out.write("\t\t}\r\n");
out.write("\t}\r\n");
out.write("\r\n");
out.write("\tif (from_where.toUpperCase() == \"RIGHT\" || from_where.toUpperCase() == \"BOTH\")\r\n");
out.write("\t{\r\n");
out.write("\t\twhile (temp_string.substr(temp_string.length-1,1) ==\" \")\r\n");
out.write("\t\t{\r\n");
out.write("\t\t\ttemp_string = temp_string.substring(0,temp_string.length - 1);\r\n");
out.write("\t\t}\r\n");
out.write("\t}\r\n");
out.write("\treturn temp_string;\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("function thread_search() {\r\n");
out.write("\t\r\n");
out.write("\tdocument.thread_form.action=\"");
out.print(cpath);
out.write("/blackorred/listkmtree.action\";\r\n");
out.write("\r\n");
out.write("\tgosubmit(document.thread_form);\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("function myopenWindows(url,name,id){\r\n");
out.write("\t try{\r\n");
out.write("\t\twindow.top.frames['left'].openWindows(url,name,id); \r\n");
out.write("\t }catch(er){\r\n");
out.write("\t alert(er.name+\":\"+er.message);\r\n");
out.write("\t }\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("function openLuceneWindows(url,name,id){\r\n");
out.write("\t\r\n");
out.write("\tvar keyword=document.thread_form.keyWord.value;\r\n");
out.write("\t\r\n");
out.write("\t try{\r\n");
out.write("\t\twindow.top.frames['left'].openWindows(url+keyword,name,id); \r\n");
out.write("\t }catch(er){\r\n");
out.write("\t alert(er.name+\":\"+er.message);\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("-->\r\n");
out.write("</script>\r\n");
out.write("\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n");
out.write("\t\t<title>知识点检索</title>\r\n");
out.write("\t\t<link href=\"");
out.print(cpath);
out.write("/style/css_common1.css\" rel=\"stylesheet\"\r\n");
out.write("\t\t\ttype=\"text/css\" />\r\n");
out.write("\t\t<link href=\"");
out.print(cpath);
out.write("/style/mian.css\" rel=\"stylesheet\"\r\n");
out.write("\t\t\ttype=\"text/css\" />\r\n");
out.write("\r\n");
out.write("\t</head>\r\n");
out.write("\r\n");
out.write("\t<body leftmargin=\"0\" topmargin=\"0\" class=\"bgOffice\" style=\"width:100%;\">\r\n");
out.write("\r\n");
out.write("\t\t<form method=\"post\" name=\"thread_form\">\r\n");
out.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:100%;height:100%;\">\r\n");
out.write("\t<tr>\r\n");
out.write("\t\t<td valign=\"top\">\r\n");
out.write("\t\t\t<table cellpadding=\"0\" cellspacing=\"0\" class=\"title\" width=\"100%\">\r\n");
out.write("\t\t \t<tr>\r\n");
out.write("\t\t <td style=\"height:25px\">知识点检索</td>\r\n");
out.write("\t\t <td align=\"right\">\r\n");
out.write("\t\t \t<input name=\"ok\" type=\"button\" value=\"查 询\" class=\"input02\" onClick=\"javascript:thread_search()\" />\r\n");
out.write("\t\t \t \r\n");
out.write("\t\t\t\t\t<input name=\"allsearch\" value=\"全文搜索\" type=\"button\" class=\"input02\" onClick=\"javascript:openLuceneWindows('");
out.print(cpath);
out.write("/km/lucenesearch.action?keyWord=','全文搜索','lucenesearch',window)\"\" />\r\n");
out.write("\t\t\t\t\t \r\n");
out.write("\t\t\t\t\t<input name=\"cancel\" type=\"reset\" class=\"input02\" value=\"重 置\" />\r\n");
out.write("\t\t\t\t\t\r\n");
out.write("\t\t </td>\r\n");
out.write("\t\t </tr>\r\n");
out.write("\t\t </table>\r\n");
out.write("\t\t</td>\r\n");
out.write("\t</tr>\r\n");
out.write("\t <tr>\r\n");
out.write(" \t\t<td class=\"bgOffice\" valign=\"top\" style=\"height:auto;\">\r\n");
out.write("\t\t\t\t<table width=\"100%\" boder=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"table02\">\r\n");
out.write("\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t<td class=\"right\" width=\"20%\">\r\n");
out.write("\t\t\t\t\t\t\t关键字:\r\n");
out.write("\t\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t\t<td align=\"left\" class=\"bgInput\" width=\"30%\">\r\n");
out.write("\t\t\t\t\t\t\t<input type=text name=\"keyWord\" style=\"width:150px\" class=\"input01\" value=\"");
if (_jspx_meth_s_005fproperty_005f0(_jspx_page_context))
return;
out.write("\" maxlength=\"20\"/>\r\n");
out.write("\t\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t\t<td class=\"right\" width=\"20%\"> \r\n");
out.write("\t\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t\t<td class=\"bgInput\" width=\"30%\"> \r\n");
out.write("\t\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t\r\n");
out.write("\t\t\t\t\t</tr>\r\n");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -