📄 zuixinzhixun_005fmodify_jsp.java
字号:
package org.apache.jsp.guanli;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import liangjuyan.conndb;
import liangjuyan.chStr;
public final class zuixinzhixun_005fmodify_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
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=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;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
conndb conn=new conndb();
chStr chStr=new chStr();
String PID="";
String s_title="";
String s_detail="";
int s_htype=-1;
PID=request.getParameter("ID");
if (PID!=null && PID!=""){
int s_id=Integer.parseInt(PID);
ResultSet rs=conn.executeQuery("select * from haha where id="+s_id);
if(!rs.next()){
out.println("<script lanuage='javascript'>alert('您的操作有误!');window.location.href='index.jsp';</script>");
}else{
s_title=rs.getString("title");
s_detail=rs.getString("detail");
s_htype=rs.getInt("htype");
}
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>后台管理</title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write(".style2 {font-size: 16px}\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<body>\r\n");
out.write("<table width=\"777\" height=\"192\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tableBorder\">\r\n");
out.write("<tr>\r\n");
out.write(" <td>\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "banner.jsp", out, false);
out.write("\r\n");
out.write("<table width=\"777\" height=\"288\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"182\" valign=\"top\"><table width=\"100%\" height=\"431\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td valign=\"top\" background=\"../images/manage_02.gif\">");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "navigation.jsp", out, false);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" <td align=\"center\" valign=\"top\"><table width=\"100%\" height=\"120\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td valign=\"top\" background=\"../images/manage_center_goodsmodi.gif\"><table width=\"100%\" height=\"36\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"98%\" align=\"right\"><a href=\"addqita.jsp\">[ <img src=\"../images/list.gif\" width=\"11\" height=\"13\"> 添加服装信息]</a> <a href=\"addfuzhuang.jsp\">[ <img src=\"../images/list.gif\" width=\"11\" height=\"13\"> 添加服装信息]</a> <a href=\"addshipin.jsp\">[ <img src=\"../images/list.gif\" width=\"11\" height=\"13\"> 添加饰品信息]</a> <a href=\"addshenghuoyongpin.jsp\">[ <img src=\"../images/list.gif\" width=\"11\" height=\"13\"> 添加生活用品信息]</a></td>\r\n");
out.write(" <td width=\"2%\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <table width=\"92%\" height=\"498\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"498\" valign=\"top\">\r\n");
out.write(" <form action=\"zuixinzhixun_modify_deal.jsp\" method=\"post\" name=\"form1\">\r\n");
out.write(" <table width=\"100%\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"39%\" height=\"32\"><div align=\"center\" class=\"style2\">id</div></td>\r\n");
out.write(" <td width=\"61%\"><input name=\"id\" type=\"text\" value=\"");
out.print(s_id);
out.write("\" size=\"50\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"39%\" height=\"32\"><div align=\"center\" class=\"style2\">物品名</div></td>\r\n");
out.write(" <td width=\"61%\"><input name=\"title\" type=\"text\" value=\"");
out.print(s_title);
out.write("\" size=\"50\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"33\"><div align=\"center\"><span>颜色</span></div></td>\r\n");
out.write(" <td><input type=\"text\" name=\"detail\" value=\"");
out.print(s_detail);
out.write("\" size=\"50\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"34\"><div align=\"center\">厂家</div></td>\r\n");
out.write(" <td><input type=\"text\" name=\"htype\" value=\"");
out.print(s_htype);
out.write("\" size=\"50\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"41\" colspan=\"2\"> \r\n");
out.write(" <input type=\"submit\" name=\"Submit\" value=\"保存\">\r\n");
out.write(" \r\n");
out.write(" <input name=\"chongzhi\" type=\"reset\" id=\"chongzhi\" value=\"重置\">\r\n");
out.write(" \r\n");
out.write(" <input name=\"fanhui\" type=\"button\" id=\"fanhui\" value=\"返回\" onClick=\"JScript:history.back()\"></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("\r\n");
out.write("\t\t\t </form> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <table width=\"100%\" height=\"46\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td background=\"../images/manage_06.gif\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("<table width=\"777\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"54\" align=\"center\">");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "copyright.jsp", out, false);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
}else{
out.println("<script language='javascript'>alert('您的操作有误!');window.location.href='index.jsp';");
}
out.write('\r');
out.write('\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 + -