⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fuzhuang_005fdel_jsp.java

📁 用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 fuzhuang_005fdel_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_fwupinming="";
  String s_fyanse="";
  String s_fchangjia="";
  String s_fcailiao="";
  String s_fshiyongnianxian="";
  String s_fshengchanriqi="";
  String s_fgoumaichishu="";
  String s_ftuijianzhishu="";
  String s_fyoudian="";
  String s_ftupian="";
  int s_ftebietuijian=-1;
  int typeid=-1;
    int sale=-1;
      int newgood=-1;
  String s_fdatupian="";
  float s_fprice=(float)0.0;
PID=request.getParameter("ID");
if (PID!=null && PID!=""){
	int fuzhuangid=Integer.parseInt(PID);
       ResultSet rs=conn.executeQuery("select * from fuzhuang where fuzhuangid="+fuzhuangid);
	if(!rs.next()){
		out.println("<script lanuage='javascript'>alert('您的操作有误!');window.location.href='index.jsp';</script>");
	}else{

                    s_fwupinming=rs.getString("wupinming");
                      s_fyanse=rs.getString("yanse");
                       s_fchangjia=rs.getString("changjia");
                        s_fcailiao=rs.getString("cailiao");
                         s_fshiyongnianxian=rs.getString("shiyongnianxian");
                          s_fshengchanriqi=rs.getString("shengchanriqi");
                          s_fgoumaichishu=rs.getString("goumaichishu");
                           s_ftuijianzhishu=rs.getString("tuijianzhishu");
                            s_fyoudian=rs.getString("youdian");
                            s_ftupian=rs.getString("tupian");
                            s_ftebietuijian=rs.getInt("tebietuijian");
                            s_fdatupian=rs.getString("datupian");
                             s_fprice=rs.getFloat("price");
                              typeid=rs.getInt("typeid");
                              sale=rs.getInt("sale");
                               newgood=rs.getInt("newgood");

	}



      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\">&nbsp;添加其他信息]</a>&nbsp;<a href=\"addfuzhuang.jsp\">[ <img src=\"../images/list.gif\" width=\"11\" height=\"13\">&nbsp;添加服装信息]</a>&nbsp;<a href=\"addshipin.jsp\">[ <img src=\"../images/list.gif\" width=\"11\" height=\"13\">&nbsp;添加饰品信息]</a>&nbsp;<a href=\"addshenghuoyongpin.jsp\">[ <img src=\"../images/list.gif\" width=\"11\" height=\"13\">&nbsp;添加生活用品信息]</a></td>\r\n");
      out.write("            <td width=\"2%\">&nbsp;</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=\"fuzhuang_del_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=\"fuzhuangid\" type=\"text\" value=\"");
      out.print(fuzhuangid);
      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=\"wupinming\" type=\"text\" value=\"");
      out.print(s_fwupinming);
      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=\"yanse\" value=\"");
      out.print(s_fyanse);
      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=\"changjia\" value=\"");
      out.print(s_fchangjia);
      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 class=\"style2\">材料</span></div></td>\r\n");
      out.write("    <td><input type=\"text\" name=\"cailiao\" value=\"");
      out.print(s_fcailiao);
      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=\"shiyongnianxian\" value=\"");
      out.print(s_fshiyongnianxian);
      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\"><span class=\"style2\">生产日期</span></div></td>\r\n");
      out.write("    <td><input type=\"text\" name=\"shengchanriqi\" value=\"");
      out.print(s_fshengchanriqi);
      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\" class=\"style2\">购买次数</div></td>\r\n");
      out.write("    <td><input type=\"text\" name=\"goumaichishu\" value=\"");
      out.print(s_fgoumaichishu);
      out.write("\" size=\"50\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"32\"><div align=\"center\" class=\"style2\">推荐指数</div></td>\r\n");
      out.write("    <td><input type=\"text\" name=\"tuijianzhishu\" value=\"");
      out.print(s_ftuijianzhishu);
      out.write("\" size=\"50\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"32\"><div align=\"center\" class=\"style2\">优点</div></td>\r\n");
      out.write("    <td><input type=\"text\" name=\"youdian\" value=\"");
      out.print(s_ftuijianzhishu);
      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 class=\"style2\">图片</span></div></td>\r\n");
      out.write("    <td><input type=\"text\" name=\"tupian\" value=\"");
      out.print(s_ftupian);
      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 class=\"style2\">特别推荐</span></div></td>\r\n");
      out.write("    <td><input name=\"tebietuijian\" type=\"text\" value=\"");
      out.print(s_ftebietuijian);
      out.write("\" size=\"50\">\r\n");
      out.write("  </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"31\"><div align=\"center\"><span class=\"style2\">大图片</span></div></td>\r\n");
      out.write("    <td><input type=\"text\" name=\"datupian\" value=\"");
      out.print(s_fdatupian);
      out.write("\" size=\"50\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"32\"><div align=\"center\"><span class=\"style2\">价格</span></div></td>\r\n");
      out.write("    <td><input type=\"text\" name=\"price\" value=\"");
      out.print(s_fprice);
      out.write("\" size=\"50\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("   <tr>\r\n");
      out.write("    <td height=\"32\"><div align=\"center\"><span class=\"style2\">类型</span></div></td>\r\n");
      out.write("    <td><input type=\"text\" name=\"typeid\" value=\"");
      out.print(typeid);
      out.write("\" size=\"50\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("   <tr>\r\n");
      out.write("    <td height=\"32\"><div align=\"center\"><span class=\"style2\">特价</span></div></td>\r\n");
      out.write("    <td><input type=\"text\" name=\"sale\" value=\"");
      out.print(sale);
      out.write("\" size=\"50\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("   <tr>\r\n");
      out.write("    <td height=\"32\"><div align=\"center\"><span class=\"style2\">新品</span></div></td>\r\n");
      out.write("    <td><input type=\"text\" name=\"newgood\" value=\"");
      out.print(newgood);
      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\">&nbsp;</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 + -