📄 manage_0002ejsp_jsp.java
字号:
package manage;
import bookutil.BookTools;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class manage_0002ejsp_jsp extends HttpJspBase {
static {
}
public manage_0002ejsp_jsp( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
}
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;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
}
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=Big5");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/manage/manage.jsp";from=(0,49);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/manage/manage.jsp";from=(1,39);to=(85,0)]
out.write("\r\n<html>\r\n<head>\r\n<title>\r\nmanage\r\n</title>\r\n<script src=../convert.js></script>\r\n<script>\r\nfunction delCheck(fm)\r\n {\r\n var str_del = fm.id.value;\r\n if(isSpace(str_del))\r\n {\r\n alert(\"Enter the number or numbers split with ',' !\");\r\n fm.id.focus();\r\n return false;\r\n }\r\n else\r\n {\r\n var patrn = /^\\d+(|,\\d+)*$/;\r\n if(!patrn.exec(str_del))\r\n {\r\n alert(\"Enter the number or numbers split with ',' !\");\r\n fm.id.focus();\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\nfunction repCheck(fm)\r\n {\r\n var str_rep = fm.reply.value;\r\n var str_id = fm.id.value;\r\n if(isSpace(str_id))\r\n {\r\n alert(\"Enter your reply id !\");\r\n fm.id.focus();\r\n return false;\r\n }\r\n else\r\n {\r\n var patrn = /^\\d+$/\r\n if(!patrn.exec(str_id))\r\n {\r\n alert(\"Enter the proper id you want to reply to !\");\r\n fm.id.focus();\r\n return false;\r\n }\r\n }\r\n if(isSpace(str_rep))\r\n {\r\n alert(\"Enter your reply words !\");\r\n fm.reply.focus();\r\n return false;\r\n }\r\n else\r\n {\r\n fm.reply.value = convert(str_rep);\r\n }\r\n return true;\r\n }\r\nfunction modCheck(fm)\r\n {\r\n var str_name = fm.master_name.value;\r\n var str_psw = fm.master_psw.value;\r\n if(isSpace(str_name) || isSpace(str_psw))\r\n {\r\n alert(\"Please enter your name and password !\");\r\n fm.master_name.focus();\r\n return false;\r\n }\r\n else\r\n {\r\n\t fm.master_name.value = convert(str_name);\r\n\t\t fm.master_psw.value = convert(str_psw);\r\n }\r\n return true;\r\n }\r\n</script>\r\n</head>\r\n<body bgcolor=\"#ffffff\">\r\n<h1>\r\nManage\r\n</h1><a href=\"../disp.beyondplus\">displaylist</a>\r\n");
// end
// begin [file="/manage/manage.jsp";from=(85,2);to=(91,0)]
BookTools bt = new BookTools();
String name = bt.elicitCookie(request,"master").toString();
if(name == null || name.length() == 0){
out.println("<script>window.location=\"masterlogin.jsp\"</script>");
return;}
// end
// HTML // begin [file="/manage/manage.jsp";from=(91,2);to=(123,90)]
out.write("\r\n<!--/////////////////// Delete Massage /////////////////////////-->\r\n<hr align=\"left\" width=\"60%\">\r\nDelete Massage >>\r\n<form method=\"post\" name=del_form action=\"../manage.beyondplus\" onsubmit=\"return delCheck(this);\">\r\n<br>\r\nPlease enter ID that you want to delete:<input type=\"text\" name=\"id\">\r\n<br><br>(Split id with \",\" then you can delete more once ! )<br><br>\r\n<input type=\"submit\" name=\"smdelete\" value=\"Submit\">\r\n \r\n<input type=\"reset\" value=\"Reset\">\r\n</form>\r\n<!--/////////////////// Reply Massage /////////////////////////-->\r\n<hr align=\"left\" width=\"60%\">\r\nReply Massage >>\r\n<form method=\"post\" name=rep_form action=\"../manage.beyondplus\" onsubmit=\"return repCheck(this);\">\r\n<br>\r\nPlease enter ID that you want to reply:<input type=\"text\" name=\"id\">\r\n<br>\r\n \r\nPlease enter reply words:<textarea name=\"reply\" style=\"width=200\"></textarea>\r\n<br><br>\r\n<input type=\"submit\" name=\"smreply\" value=\"Submit\">\r\n \r\n<input type=\"reset\" value=\"Reset\">\r\n</form>\r\n<!--/////////////////// Modify Master /////////////////////////-->\r\n<hr align=\"left\" width=\"60%\">\r\nModify Master >>\r\n<form method=\"post\" name=mod_form action=\"../manage.beyondplus\" onsubmit=\"return modCheck(this);\">\r\n<br>\r\n \r\nPlease modify your login name:<input type=\"text\" name=\"master_name\" maxlength=\"12\" value=\"");
// end
// begin [file="/manage/manage.jsp";from=(123,93);to=(123,97)]
out.print(name);
// end
// HTML // begin [file="/manage/manage.jsp";from=(123,99);to=(133,0)]
out.write("\">\r\n<br>\r\nPlease modify your login password:<input type=\"password\" name=\"master_psw\" maxlength=\"12\" value=\"********\">\r\n<br><br>\r\n<input type=\"submit\" name=\"smmodify\" value=\"Submit\">\r\n \r\n<input type=\"reset\" value=\"Reset\">\r\n</form>\r\n</body>\r\n</html>\r\n");
// end
} catch (Throwable t) {
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -