📄 _boardmanager__jsp.java
字号:
board.setBoardMasterword(masterword);board.setBoardMasteremail(masteremail);board.updateBoard(boardid);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.forward("boardmanager.jsp?method=0");
if (true) return;
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
} //'End if method==2
pageContext.write(_jsp_string3, 0, _jsp_string3.length);
if (method==3) {//'method=3 为删除论坛 tempSTR=request.getParameter("boardid");boardid=java.lang.Integer.parseInt(tempSTR);board.delBoard(boardid);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.forward("boardmanager.jsp?method=0");
if (true) return;
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
} //'End if METHOD==3
pageContext.write(_jsp_string4, 0, _jsp_string4.length);
sqlRst=board.listBoard(1);while (sqlRst.next()){boardid=sqlRst.getInt("boardid");boardname=sqlRst.getString("boardname");boardmaster=sqlRst.getString("boardmaster");masteremail=sqlRst.getString("masteremail");
pageContext.write(_jsp_string5, 0, _jsp_string5.length);
out.print((boardid));
pageContext.write(_jsp_string6, 0, _jsp_string6.length);
out.print((boardid));
pageContext.write(_jsp_string7, 0, _jsp_string7.length);
out.print((boardname));
pageContext.write(_jsp_string8, 0, _jsp_string8.length);
out.print((masteremail));
pageContext.write(_jsp_string7, 0, _jsp_string7.length);
out.print((boardmaster));
pageContext.write(_jsp_string9, 0, _jsp_string9.length);
}sqlRst.close();
pageContext.write(_jsp_string10, 0, _jsp_string10.length);
if (method==4) {//'method=4 显示增加论坛表格
pageContext.write(_jsp_string11, 0, _jsp_string11.length);
} //'End if method==4
pageContext.write(_jsp_string12, 0, _jsp_string12.length);
if (method==5) {//'method=5 显示修改删除论坛表格 tempSTR=request.getParameter("boardid");boardid=java.lang.Integer.parseInt(tempSTR);boardname="要修改板块吗?";boardmaster="";masteremail="";masterpwd="";masterword="";if (board.getBoardInfo(boardid)) { boardname=board.getBoardName(); boardmaster=board.getBoardMaster(); masteremail=board.getBoardMasteremail(); masterpwd=board.getBoardMasterpwd(); masterword=board.getBoardMasterword();}
pageContext.write(_jsp_string13, 0, _jsp_string13.length);
out.print((boardid));
pageContext.write(_jsp_string14, 0, _jsp_string14.length);
out.print((boardname));
pageContext.write(_jsp_string15, 0, _jsp_string15.length);
out.print((boardmaster));
pageContext.write(_jsp_string16, 0, _jsp_string16.length);
out.print((masterpwd));
pageContext.write(_jsp_string17, 0, _jsp_string17.length);
out.print((masteremail));
pageContext.write(_jsp_string18, 0, _jsp_string18.length);
out.print((masterword));
pageContext.write(_jsp_string19, 0, _jsp_string19.length);
out.print((boardid));
pageContext.write(_jsp_string20, 0, _jsp_string20.length);
} //'End if method==5
pageContext.write(_jsp_string21, 0, _jsp_string21.length);
} catch (java.lang.Throwable _jsp_e) {
pageContext.handlePageException(_jsp_e);
} finally {
JspFactory.getDefaultFactory().releasePageContext(pageContext);
}
}
private com.caucho.java.LineMap _caucho_line_map;
private java.util.ArrayList _caucho_depends = new java.util.ArrayList();
public boolean _caucho_isModified()
{
if (_caucho_isDead)
return true;
if (com.caucho.util.CauchoSystem.getVersionId() != 2058990000)
return true;
for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
com.caucho.vfs.Depend depend;
depend = (com.caucho.vfs.Depend) _caucho_depends.get(i);
if (depend.isModified())
return true;
}
return false;
}
public long _caucho_lastModified()
{
return 0;
}
public com.caucho.java.LineMap _caucho_getLineMap()
{
return _caucho_line_map;
}
public void destroy()
{
_caucho_isDead = true;
super.destroy();
}
public void init(com.caucho.java.LineMap lineMap,
com.caucho.vfs.Path appDir)
throws javax.servlet.ServletException
{
com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
mergePath.addMergePath(appDir);
mergePath.addMergePath(resinHome);
mergePath.addClassPath(getClass().getClassLoader());
_caucho_line_map = new com.caucho.java.LineMap("_boardmanager__jsp.java", "d:\\guestbook\\jsp-access\\boardmanager.jsp");
_caucho_line_map.add("/boardmanager.jsp", 1, 1);
_caucho_line_map.add("/incdb.jsp", 2, 1);
_caucho_line_map.add("/boardmanager.jsp", 1, 35);
_caucho_line_map.add("/incdb.jsp", 2, 38);
_caucho_line_map.add("d:\\guestbook\\jsp-access\\boardmanager.jsp", 4, 44);
_caucho_line_map.add(5, 51);
_caucho_line_map.add(17, 75);
_caucho_line_map.add(18, 78);
_caucho_line_map.add(39, 120);
_caucho_line_map.add(44, 130);
_caucho_line_map.add(45, 133);
_caucho_line_map.add(46, 135);
_caucho_line_map.add(74, 191);
_caucho_line_map.add(75, 193);
_caucho_line_map.add(76, 196);
_caucho_line_map.add(89, 222);
_caucho_line_map.add(90, 225);
_caucho_line_map.add(126, 297);
_caucho_line_map.add(127, 300);
_caucho_line_map.add(137, 318);
_caucho_line_map.add(138, 321);
_caucho_line_map.add(282, 323);
_caucho_line_map.add(294, 343);
_caucho_line_map.add(295, 345);
_caucho_line_map.add(295, 347);
_caucho_line_map.add(296, 349);
_caucho_line_map.add(296, 351);
_caucho_line_map.add(307, 361);
_caucho_line_map.add(335, 369);
_caucho_line_map.add(336, 371);
_caucho_line_map.add(366, 411);
_caucho_line_map.add(371, 413);
_caucho_line_map.add(372, 415);
_caucho_line_map.add(373, 417);
_caucho_line_map.add(378, 423);
_caucho_line_map.add(388, 425);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/d:/guestbook/jsp-access/incdb.jsp"), 972283860000L, 251L);
_caucho_depends.add(depend);
depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/d:/guestbook/jsp-access/boardmanager.jsp"), 1006597046000L, 18264L);
_caucho_depends.add(depend);
}
private static byte []_jsp_string8;
private static byte []_jsp_string9;
private static byte []_jsp_string14;
private static byte []_jsp_string17;
private static byte []_jsp_string13;
private static byte []_jsp_string10;
private static byte []_jsp_string21;
private static byte []_jsp_string4;
private static byte []_jsp_string19;
private static byte []_jsp_string1;
private static byte []_jsp_string5;
private static byte []_jsp_string7;
private static byte []_jsp_string0;
private static byte []_jsp_string12;
private static byte []_jsp_string2;
private static byte []_jsp_string18;
private static byte []_jsp_string16;
private static byte []_jsp_string6;
private static byte []_jsp_string15;
private static byte []_jsp_string11;
private static byte []_jsp_string3;
private static byte []_jsp_string20;
static {
try {
_jsp_string8 = "</a></td> \r\n <td width=\"40%\" align=\"center\"><a href=\"mailto:".getBytes("GB2312");
_jsp_string9 = "</a></td> \r\n </tr> \r\n".getBytes("GB2312");
_jsp_string14 = "\"> \r\n <input type=\"hidden\" name=\"method\" value=2> \r\n <table border=\"0\" width=\"87%\"> \r\n <tr> \r\n <td width=\"50%\"> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">版名:".getBytes("GB2312");
_jsp_string17 = "\"></p> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">EMAIL:</p> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\"><input type=\"text\" name=\"masteremail\" size=\"26\" value=\"".getBytes("GB2312");
_jsp_string13 = " \r\n<div style=\"width: 208; height: 242; position: absolute; left: 433; top: 93\"> \r\n<table border=\"0\" width=\"89%\"> \r\n <tr> \r\n <td width=\"100%\"> \r\n <p align=\"center\"><b>版面修改、删除</b></p> \r\n </td> \r\n </tr> \r\n <tr> \r\n <td width=\"100%\"> \r\n <form method=\"POST\" action=\"boardmanager.jsp\" onSubmit=\"return check_input(this)\" name=\"frmUpdate\"> \r\n <input type=\"hidden\" name=\"boardid\" value=\"".getBytes("GB2312");
_jsp_string10 = " \r\n </table> \r\n </td> \r\n </tr> \r\n </table> \r\n \r\n".getBytes("GB2312");
_jsp_string21 = " \r\n</body> \r\n</html> ".getBytes("GB2312");
_jsp_string4 = " \r\n\r\n<html>\r\n\r\n<head>\r\n<meta http-equiv=\"Content-Language\" content=\"zh-cn\">\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 4.0\">\r\n<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">\r\n<title>New Page 1</title>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"css/css02.css\">\r\n<script Language=\"JavaScript\">\r\n<!--\r\nfunction isspacestring(mystring)\r\n//是否为空格字符串;true为空,FALSE为非空\r\n{ var istring=mystring;\r\n var temp,i,strlen;\r\n temp=true;\r\n strlen=istring.length;\r\n for (i=0;i<strlen;i++)\r\n {\r\n if ((istring.substring(i,i+1)!=\" \")&(temp))\r\n { temp=false; }\r\n }\r\n return temp;\r\n}\r\n\r\nfunction firstisspace(mystring)\r\n//检查首字母是否是空格,TRUE首字母为空格;FALSE首字母不为空格\r\n{ var istring=mystring;\r\n var temp,i;\r\n temp=true;\r\n if (istring.substring(0,1)!=\" \")\r\n { temp=false; }\r\n return temp;\r\n}\r\n\r\nfunction isemail(mystring)\r\n{\r\n var istring=mystring;\r\n var atpos=mystring.indexOf(\"@\");\r\n var temp=true;\r\n if (atpos==-1) //email中没有@符号;不正确的EMAIL\r\n {\r\n temp=false;\r\n }\r\n return temp;\r\n}\r\n\r\n\r\nfunction check_input(theForm)\r\n{\r\n\r\n if ((theForm.boardmaster.value == \"\")|(isspacestring(theForm.boardmaster.value)))\r\n {\r\n alert(\"请输入版主.\");\r\n theForm.boardmaster.focus();\r\n return (false);\r\n }\r\n\r\n if (theForm.boardmaster.value.length > 20)\r\n {\r\n alert(\"版主名太长了,请重新输入.\");\r\n theForm.boardmaster.focus();\r\n return (false);\r\n }\r\n\r\n if ((theForm.masterpwd.value == \"\")|(isspacestring(theForm.masterpwd.value)))\r\n {\r\n alert(\"请输入密码.\");\r\n theForm.masterpwd.focus();\r\n return (false);\r\n }\r\n\r\n if (theForm.masterpwd.value.length > 10)\r\n {\r\n alert(\"密码太长了,请重新输入.\");\r\n theForm.masterpwd.focus();\r\n return (false);\r\n }\r\n \r\n\r\n if (!(isemail(theForm.masteremail.value)))\r\n {\r\n alert(\"请输入正确的EMAIL.\");\r\n theForm.masteremail.focus();\r\n return (false);\r\n }\r\n \r\n// if (theForm=\"frmAdd\") {\r\n\r\n if ((frmAdd.boardname.value == \"\")|(isspacestring(frmAdd.boardname.value)))\r\n {\r\n alert(\"请输入版块名.\");\r\n frmAdd.boardname.focus();\r\n return (false);\r\n }\r\n\r\n if (frmAdd.boardname.value.length > 20)\r\n {\r\n alert(\"太长了,请重新输入.\");\r\n frmAdd.boardname.focus();\r\n return (false);\r\n }\r\n \r\n// }\r\n\r\n return (true);\r\n}\r\n-->\r\n</script>\r\n\r\n</head>\r\n<body>\r\n<table border=\"0\" width=\"100%\">\r\n <tr>\r\n <td width=\"25%\" align=\"center\"><a href=\"boardmanager.jsp\" target=\"_self\">版面管理</a></td>\r\n <td width=\"25%\" align=\"center\"><a href=\"usermanager.jsp\" target=\"_self\">注册用户管理</a></td>\r\n <td width=\"25%\" align=\"center\"><a href=\"emaillist.jsp\" target=\"_self\">用户邮件列表</a></td>\r\n <td width=\"25%\" align=\"center\"><a href=\"boardmanager.jsp?method=6\" target=\"_self\">退出</a></td>\r\n </tr>\r\n <tr>\r\n <td width=\"100%\" colspan=\"4\">\r\n <hr>\r\n </td>\r\n </tr>\r\n</table>\r\n <table border=\"0\" width=\"400\">\r\n <tr>\r\n <td width=\"100%\">\r\n <table border=\"0\" width=\"100%\">\r\n <tr>\r\n <td width=\"100%\">\r\n <p align=\"center\"><b>论坛版面管理</b></p>\r\n <p align=\"center\">操作请点击版面 <a href=\"boardmanager.jsp?method=4\">增加版面</a></p> \r\n </td> \r\n </tr> \r\n</table> \r\n <table border=\"1\" width=\"100%\" bordercolorlight=\"#000000\" bordercolordark=\"#FFFFFF\" cellspacing=\"0\" cellpadding=\"0\"> \r\n <tr> \r\n <td width=\"10%\" align=\"center\" bgcolor=\"#5d91c0\"><font color=\"#FFFFFF\">ID</font></td> \r\n <td width=\"50%\" align=\"center\" bgcolor=\"#5d91c0\"><font color=\"#FFFFFF\">版面</font></td> \r\n <td width=\"40%\" align=\"center\" bgcolor=\"#5d91c0\"><font color=\"#FFFFFF\">版主</font></td> \r\n </tr> \r\n".getBytes("GB2312");
_jsp_string19 = "</textarea></p> \r\n <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\"><input class=\"buttonface\" type=\"submit\" value=\"修改\" name=\"B1\"> <a href=\"boardmanager.jsp?boardid=".getBytes("GB2312");
_jsp_string1 = "<!--开始导入packages-->\r\n".getBytes("GB2312");
_jsp_string5 = " \r\n \r\n <tr> \r\n <td width=\"10%\" align=\"center\">".getBytes("GB2312");
_jsp_string7 = "\">".getBytes("GB2312");
_jsp_string0 = "\r\n".getBytes("GB2312");
_jsp_string12 = " \r\n".getBytes("GB2312");
_jsp_string2 = "\r\n<!--导入结束-->\r\n".getBytes("GB2312");
_jsp_string18 = "\"></p> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">版块说明:</p> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\"><textarea rows=\"2\" name=\"masterword\" cols=\"22\">".getBytes("GB2312");
_jsp_string16 = "\"></p> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">密码:<input type=\"text\" name=\"masterpwd\" size=\"20\" value=\"".getBytes("GB2312");
_jsp_string6 = "</td> \r\n <td width=\"50%\" align=\"center\"><a href=\"boardmanager.jsp?method=5&boardid=".getBytes("GB2312");
_jsp_string15 = "</p> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">版主:<input type=\"text\" name=\"boardmaster\" size=\"20\" value=\"".getBytes("GB2312");
_jsp_string11 = " \r\n<div style=\"width: 214; height: 235; position: absolute; left: 432; top: 73\"> \r\n<table border=\"0\" width=\"100%\"> \r\n <tr> \r\n <td width=\"100%\"> \r\n <p align=\"center\"><b>版面增加</b></p> \r\n </td> \r\n </tr> \r\n <tr> \r\n <td width=\"100%\"> \r\n <form method=\"POST\" action=\"boardmanager.jsp?method=1\" onSubmit=\"return check_input(this)\" name=\"frmAdd\"> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">版名:<input type=\"text\" name=\"boardname\" size=\"20\"></p> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">版主:<input type=\"text\" name=\"boardmaster\" size=\"20\"></p> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">密码:<input type=\"text\" name=\"masterpwd\" size=\"20\"></p> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">EMAIL:</p> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\"><input type=\"text\" name=\"masteremail\" size=\"26\"></p> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">版块说明:</p> \r\n <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\"><textarea rows=\"2\" name=\"masterword\" cols=\"22\"></textarea></p> \r\n <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\"><input class=\"buttonface\" type=\"submit\" value=\"增加\" name=\"B1\"> \r\n <input class=\"buttonface\" type=\"reset\" value=\"重写\" name=\"B2\"></p> \r\n </form> \r\n </td> \r\n </tr> \r\n</table> \r\n</div> \r\n".getBytes("GB2312");
_jsp_string3 = "\r\n\r\n".getBytes("GB2312");
_jsp_string20 = "&method=3\">删除</a> \r\n </p> \r\n </td> \r\n </tr> \r\n </table> \r\n </form> \r\n </td> \r\n </tr> \r\n</table> \r\n</div> \r\n".getBytes("GB2312");
} catch (java.io.UnsupportedEncodingException e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -