?? 刪除設備_jsp.java
字號:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
public final class 刪除設備_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.Vector _jspx_dependants;
private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
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 {
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
_jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");
out.write("\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
del.DB db = null;
synchronized (_jspx_page_context) {
db = (del.DB) _jspx_page_context.getAttribute("db", PageContext.PAGE_SCOPE);
if (db == null){
db = new del.DB();
_jspx_page_context.setAttribute("db", db, PageContext.PAGE_SCOPE);
}
}
out.write("\n");
out.write("<html>\n");
out.write("<head>\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\n");
out.write("<title>無標題文檔</title>\n");
out.write("</head>\n");
out.write("\n");
out.write("<body background=\"resources/設備管理系統.jpg\">\n");
out.write("\n");
out.write("<table width=\"100%\" height=\"96\" border=\"0\">\n");
out.write(" <tr>\n");
out.write(" <td width=\"17%\"><p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p><a href=\"自定義查詢.jsp\">自定義查詢</a></p></td>\n");
out.write(" <td width=\"16%\"><p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p><a href=\"添加設備.jsp\">添加設備</a></p></td>\n");
out.write(" <td width=\"14%\"><p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p><a href=\"刪除設備.jsp\">刪除設備</a></p></td>\n");
out.write(" <td width=\"15%\"><p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p><a href=\"更新設備信息.jsp\">更新設備信息</a></p></td>\n");
out.write(" <td width=\"13%\"><p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p><a href=\"維修設備.jsp\">維修設備</a></p></td>\n");
out.write(" <td width=\"12%\"><p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p><a href=\"備份.jsp\">備份</a></p></td>\n");
out.write(" <td width=\"13%\"><p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <p><a href=\"退出系統.jsp\">退出系統</a></p></td>\n");
out.write(" </tr>\n");
out.write("</table>\n");
out.write(" <center>\n");
out.write(" <form action=\"dodelete.jsp\" name=\"deleteform\">\n");
out.write(" <table cellspacing=\"0\" border=\"1\" bordercolor=\"black\" bordercolorlight=\"black\" bordercolordark=\"white\" style=\"margin-top:100\">\n");
out.write(" <tr bgcolor=\"lightgrey\" height=\"25\">\n");
out.write(" <td align=\"center\">用戶名</td>\n");
out.write(" <td align=\"center\">性別</td>\n");
out.write(" <td align=\"center\">年齡</td>\n");
out.write(" <td align=\"center\">職務</td>\n");
out.write("\n");
out.write(" </tr>\n");
out.write(" ");
ResultSet rsall=db.getRs("select * from tb_user"); while(rsall.next()){
out.write("\n");
out.write(" <tr>\n");
out.write(" <td align=\"center\">");
out.print(rsall.getString("user_name"));
out.write("</td>\n");
out.write(" <td align=\"center\">");
out.print(rsall.getString("user_sex"));
out.write("</td>\n");
out.write(" <td align=\"center\">");
out.print(rsall.getInt("user_age"));
out.write("</td>\n");
out.write(" <td align=\"center\">");
out.print(rsall.getString("user_job"));
out.write("</td>\n");
out.write("\n");
out.write(" </tr>\n");
out.write(" ");
}
out.write("\n");
out.write(" <tr bgcolor=\"lightgrey\">\n");
out.write(" <td colspan=\"1\" align=\"center\">用戶名:</td>\n");
out.write(" <td colspan=\"3\" align=\"cener\">\n");
out.write(" <input type=\"text\" name=\"delusername\">\n");
out.write(" </td>\n");
out.write(" <td align=\"center\" colspan=\"1\">\n");
out.write(" <input type=\"submit\" name=\"delsubmit\" value=\"刪除該用戶\" onclick=\"return check()\">\n");
out.write(" </td>\n");
out.write(" </tr>\n");
out.write(" </table>\n");
out.write(" </form>\n");
out.write(" </center>\n");
out.write("</body>\n");
out.write("</html>\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -