📄 projectdelete_jsp.java
字号:
out.write(" <td><div align=\"center\"><a href=\"ProjectInfoUpdate.jsp\"><font color=\"#ffffff\">修改基本信息 </font></a></div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <strong></strong></div></td>\r\n");
out.write(" </tr>\r\n");
out.write("\t\t\t\t <tr bgcolor=\"#000000\"> \r\n");
out.write(" \t\t\t<td colspan=\"2\" height=\"1\"><img src=\"../images/dot.gif\" width=\"1\" height=\"1\"></td>\r\n");
out.write(" \t\t\t </tr>\r\n");
out.write(" \t\t\t \r\n");
out.write(" \t\t\t \r\n");
out.write(" \t\t\t \r\n");
out.write(" <tr> \r\n");
out.write(" <td bgcolor=\"#8DB6CD\"><div align=\"center\"> \r\n");
out.write(" <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td><div align=\"center\"><a href=\"ProjectPersonAdd.jsp\"><font color=\"#FFFFFF\">增加人员信息 </font></a></div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <strong></strong></div></td>\r\n");
out.write(" </tr>\r\n");
out.write("\t\t\t\t <tr bgcolor=\"#000000\"> \r\n");
out.write(" \t\t\t<td colspan=\"2\" height=\"1\"><img src=\"../images/dot.gif\" width=\"1\" height=\"1\"></td>\r\n");
out.write(" \t\t\t </tr>\r\n");
out.write(" \t\t\t \r\n");
out.write(" \t\t\t <tr> \r\n");
out.write(" <td bgcolor=\"#8DB6CD\"><div align=\"center\"> \r\n");
out.write(" <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td><div align=\"center\"><a href=\"ProjectPersonDelete.jsp\"><font color=\"#FFFFFF\">删除人员信息 </font></a></div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <strong></strong></div></td>\r\n");
out.write(" </tr>\r\n");
out.write("\t\t\t\t <tr bgcolor=\"#000000\"> \r\n");
out.write(" \t\t\t<td colspan=\"2\" height=\"1\"><img src=\"../images/dot.gif\" width=\"1\" height=\"1\"></td>\r\n");
out.write(" \t\t\t </tr>\r\n");
out.write(" \t\t\t \r\n");
out.write("\r\n");
out.write(" \t\t\t \r\n");
out.write("\r\n");
out.write(" \t\t\t \r\n");
out.write(" \t\t\t \r\n");
out.write(" \t\t\t \r\n");
out.write("<!-- 菜单完成 -->\r\n");
out.write("\t\t\t\t <tr bgcolor=\"#000000\"> \r\n");
out.write(" \t\t\t<td colspan=\"2\" height=\"1\"><img src=\"../images/dot.gif\" width=\"1\" height=\"1\"></td>\r\n");
out.write(" \t\t\t </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" <td width=\"15%\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table> </td>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<!-- 右页面 -->\r\n");
out.write(" <td bgcolor=\"#C4C4C4\" width=\"3\" height=\"143\"><img src=\"../images/dot1.gif\" width=\"1\" height=\"1\"></td>\r\n");
out.write(" <td colspan=\"2\" height=\"143\" valign=\"top\" align=\"right\">\r\n");
out.write(" \t\r\n");
out.write(" \r\n");
out.write("<!---- -- -- -- -- -- -- -- -- -- -- -- -- -- 删除方法一 -- -- -- -- -- -- -- -- -- -- -- --> \t\r\n");
out.write(" \t\r\n");
out.write(" \t<table border=\"0\" width=\"98%\" cellspacing=\"1\" cellpadding=\"0\" >\r\n");
out.write(" \r\n");
out.write(" \t<tr>\r\n");
out.write(" \t\t<td align=\"left\" colspan=\"3\">\r\n");
out.write(" \t\t\t选择要删除的项目名称:\r\n");
out.write(" \t\t</td>\r\n");
out.write(" \t</tr>\r\n");
out.write(" \t\t\r\n");
out.write(" \t<form method=\"POST\" action=\"~ProjectDelete.jsp\">\r\n");
out.write(" \t<tr>\r\n");
out.write(" \t\t<td align=\"center\" valign=\"middle\" width=\"100\" bgcolor=\"#304D7C\">\r\n");
out.write("\t\t\t\t<font color=\"ffffff\"> 项目名称: </font>\r\n");
out.write("\t\t\t\t</td>\t\r\n");
out.write("\t\t\t \t<td align=\"left\" bgcolor=\"#8DB6CD\" width=\"420\" height=\"30\"> \r\n");
out.write("\t\t\t\t<input type=\"text\" name=\"name\" size=\"32\"> *\r\n");
out.write("\t\t\t\t</td>\r\n");
out.write("\t\t\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"#8DB6CD\" width=\"80\" height=\"30\"> \r\n");
out.write("\t\t\t\t<input type=\"submit\" name=\"delete\" value=\"删除\">\r\n");
out.write("\t\t\t\t</td>\r\n");
out.write(" \t</tr>\r\n");
out.write(" \t</form>\r\n");
out.write(" \t\r\n");
out.write(" \t<tr>\r\n");
out.write(" \t\t \r\n");
out.write(" \t</tr>\r\n");
out.write(" \t\t </table>\r\n");
out.write(" \t\t \r\n");
out.write("<!---- -- -- -- -- -- -- -- -- -- -- -- -- -- 删除方法二 -- -- -- -- -- -- -- -- -- -- -- --> \t\r\n");
out.write("\t\t\r\n");
out.write("\t\t<table>\r\n");
out.write("\t\t<tr>\r\n");
out.write("\t\t<td width=\"1%\"> </td>\r\n");
out.write("\t\t<td>\r\n");
out.write(" \t<table border=\"0\" cellspacing=\"1\" width=\"100%\" bordercolor=\"#000000\" cellpadding=\"0\" bgcolor=\"#ffffff\">\r\n");
out.write("\r\n");
out.write(" \t\r\n");
out.write(" \t\t\r\n");
out.write(" <tr> </tr> \r\n");
out.write(" \t\r\n");
out.write(" <tr>\r\n");
out.write(" \t\t<td align=\"left\" colspan=\"4\" >\r\n");
out.write(" \t\t\t在下面挑选要删除的项目:\r\n");
out.write(" \t\t</td>\r\n");
out.write(" \t</tr> \r\n");
out.write(" <tr bgcolor=\"#304D7C\"> \r\n");
out.write(" \t\t\t\t\t<td width=\"200\" align=\"center\">\r\n");
out.write(" <font color=\"#FFFFFF\">项目名称 </font></td>\r\n");
out.write("\t\t\t\t\t<td width=\"150\" align=\"center\">\r\n");
out.write(" <font color=\"#FFFFFF\">项目级别 </font></td>\r\n");
out.write(" <td width=\"200\" align=\"center\">\r\n");
out.write(" <font color=\"#FFFFFF\">项目来源 </font></td> \r\n");
out.write(" <td width=\"80\" align=\"center\">\r\n");
out.write(" <font color=\"#FFFFFF\">操作 </font></td>\r\n");
out.write(" </tr>\r\n");
out.write(" \r\n");
out.write(" \t ");
//输出职员列表
ResultSet rs;
int pid;
String name,lvl,source;
rs = myPM.getAll();
while(rs!=null && rs.next())
{
pid =rs.getInt("Pid");
name =rs.getString("Name");
lvl =rs.getString("ProjectLevel");
source =rs.getString("Source");
out.write("\r\n");
out.write(" \t \t<tr bgcolor=\"8DB6CD\" border=\"1\" >\t\t\r\n");
out.write(" \t\t\t\t\t<td width=\"200\" align=\"center\">\r\n");
out.write(" <font color=\"#000000\"> ");
out.print(name);
out.write("</font></td>\r\n");
out.write("\t\t\t\t\t<td width=\"150\" align=\"center\"> \r\n");
out.write(" <font color=\"#000000\"> ");
out.print(lvl);
out.write(" </font></td>\r\n");
out.write(" <td width=\"200\" align=\"center\">\r\n");
out.write(" <font color=\"#000000\"> ");
out.print(source);
out.write(" </font></td> \r\n");
out.write(" <td width=\"80\" align=\"center\">\r\n");
out.write(" <font color=\"#000080\"> \r\n");
out.write(" <a href=\"~ProjectDelete.jsp?pid=");
out.print(pid);
out.write("\"> 删除 </font>\r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write(" \t \t</tr>\r\n");
out.write(" \t \t");
}
out.write(" \t\r\n");
out.write(" \t\t<tr><td> </td></tr>\r\n");
out.write(" \t\t</table> \r\n");
out.write("\t\t\t</td>\r\n");
out.write("\t\t\t</tr>\r\n");
out.write("\t\t\t</table>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write("\t<!-- include common bottom.htm -->\r\n");
out.write(" ");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "bottom.htm", out, false);
out.write("\r\n");
out.write(" </center></div>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\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 {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -