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

📄 _upload_0pic__jsp.java

📁 JSP聊天系统
💻 JAVA
字号:
/*
 * JSP generated by Resin 2.1.2 (built Tue Jun 11 08:26:56 PDT 2002)
 */

package _admin._info;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import org.ehotsoft.yekki.util.ParamUtil;
import org.ehotsoft.yekki.util.SkinUtil;
import org.ehotsoft.yekki.sql.SQLFacade;
import java.sql.ResultSet;

public class _upload_0pic__jsp extends com.caucho.jsp.JavaPage{
  private boolean _caucho_isDead;
  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, null, true, 8192, true);
    javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    javax.servlet.http.HttpSession session = pageContext.getSession();
    javax.servlet.ServletContext application = pageContext.getServletContext();
    response.setContentType("text/html;charset=gb2312");
    request.setCharacterEncoding("GB2312");
    try {
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      
	String pic_id = ParamUtil.getStringParameter( request, "pic_id", "-1" );
	int category_id = ParamUtil.getIntParameter( request, "category_id" );
	
	if ( category_id == -1 ) {
		
		SkinUtil.alert( out, "类别ID丢失!" );
	}

	SQLFacade facade = new SQLFacade();
	String sql = "select id, file_name, file_size from tbl_storage_file where id in(" + pic_id + ")";

	ResultSet rst = facade.executeQuery( sql );

      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      
				while ( rst.next() ) {
			
      pageContext.write(_jsp_string2, 0, _jsp_string2.length);
      out.print((rst.getString( "id" )));
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
      out.print((rst.getString( "id" )));
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      out.print((rst.getString( "file_name" )));
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      out.print((rst.getString( "file_size" )));
      pageContext.write(_jsp_string6, 0, _jsp_string6.length);
      out.print((category_id));
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      out.print((rst.getString( "id" )));
      pageContext.write(_jsp_string8, 0, _jsp_string8.length);
      out.print((java.net.URLEncoder.encode( pic_id )));
      pageContext.write(_jsp_string9, 0, _jsp_string9.length);
      
				}
				
				facade.close();
				
      pageContext.write(_jsp_string10, 0, _jsp_string10.length);
      out.print((pic_id));
      pageContext.write(_jsp_string11, 0, _jsp_string11.length);
      out.print((category_id));
      pageContext.write(_jsp_string12, 0, _jsp_string12.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
    }
  }

  private com.caucho.java.LineMap _caucho_line_map;
  private java.util.ArrayList _caucho_depends = new java.util.ArrayList();

  public boolean _caucho_isModified()
  {
    if (_caucho_isDead)
      return true;
    if (com.caucho.util.CauchoSystem.getVersionId() != 2057024144)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.vfs.Depend depend;
      depend = (com.caucho.vfs.Depend) _caucho_depends.get(i);
      if (depend.isModified())
        return true;
    }
    return false;
  }

  public long _caucho_lastModified()
  {
    return 0;
  }

  public com.caucho.java.LineMap _caucho_getLineMap()
  {
    return _caucho_line_map;
  }

  public void destroy()
  {
      _caucho_isDead = true;
      super.destroy();
  }

  public void init(com.caucho.java.LineMap lineMap,
                   com.caucho.vfs.Path appDir)
    throws javax.servlet.ServletException
  {
    com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
    com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
    mergePath.addMergePath(appDir);
    mergePath.addMergePath(resinHome);
    mergePath.addClassPath(getClass().getClassLoader());
    _caucho_line_map = new com.caucho.java.LineMap("_upload_0pic__jsp.java", "/admin/info/upload_pic.jsp");
    _caucho_line_map.add(5, 1);
    _caucho_line_map.add(1, 31);
    _caucho_line_map.add(88, 51);
    _caucho_line_map.add(93, 55);
    _caucho_line_map.add(96, 57);
    _caucho_line_map.add(96, 59);
    _caucho_line_map.add(99, 61);
    _caucho_line_map.add(103, 63);
    _caucho_line_map.add(103, 65);
    _caucho_line_map.add(103, 67);
    _caucho_line_map.add(107, 69);
    _caucho_line_map.add(130, 75);
    _caucho_line_map.add(131, 77);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/e:/jnjt/admin/info/upload_pic.jsp"), 1029979915908L, 5505L);
    _caucho_depends.add(depend);
  }

  private static byte []_jsp_string12;
  private static byte []_jsp_string3;
  private static byte []_jsp_string4;
  private static byte []_jsp_string5;
  private static byte []_jsp_string8;
  private static byte []_jsp_string2;
  private static byte []_jsp_string7;
  private static byte []_jsp_string11;
  private static byte []_jsp_string10;
  private static byte []_jsp_string9;
  private static byte []_jsp_string0;
  private static byte []_jsp_string1;
  private static byte []_jsp_string6;
  static {
    try {
      _jsp_string12 = "\">\r\n            </td>\r\n          </tr>\r\n        </table>\r\n      </td>\r\n    </tr>\r\n  </table>\r\n</form>\r\n</body>\r\n</html>\r\n".getBytes("GB2312");
      _jsp_string3 = " \r\n                          </div>\r\n                        </td>\r\n                        <td width=\"22%\" bgcolor=\"#FFFFFF\"><a href=\"show_img.jsp?id=".getBytes("GB2312");
      _jsp_string4 = "\" target=\"_blank\">".getBytes("GB2312");
      _jsp_string5 = "</a> \r\n                        </td>\r\n                        <td width=\"34%\" bgcolor=\"#FFFFFF\"> \r\n                          <div align=\"center\"> ".getBytes("GB2312");
      _jsp_string8 = "&pic_id=".getBytes("GB2312");
      _jsp_string2 = "\r\n                      <tr> \r\n                        <td width=\"22%\" bgcolor=\"#FFFFFF\"> \r\n                          <div align=\"center\">".getBytes("GB2312");
      _jsp_string7 = "&action=del_pic&id=".getBytes("GB2312");
      _jsp_string11 = "\">\r\n			  <input type=\"hidden\" name=\"category_id\" value=\"".getBytes("GB2312");
      _jsp_string10 = "\r\n                    </table>\r\n                  </td>\r\n                </tr>\r\n              </table>\r\n            </td>\r\n          </tr>\r\n          <tr bgcolor=\"#FFFFFF\">\r\n            <td colspan=\"2\" align=\"center\"><font size=\"2\">要继续附加文件,请重复第一步和第二步。 \r\n              </font></td>\r\n          </tr>\r\n          <tr bgcolor=\"#FFFFFF\"> \r\n            <td colspan=\"2\"> <b><font size=\"2\">第三步:</font></b><font size=\"2\">单击<b>完成</b>按钮 \r\n              </font></td>\r\n          </tr>\r\n          <tr bgcolor=\"#FFFFFF\"> \r\n            <td colspan=\"2\" align=\"center\"> \r\n              <input type=\"button\" name=\"close_window\" value=\"关闭窗口\" onclick=\"javascript:{ doAction( this ); }\">\r\n			  <input type=\"hidden\" name=\"action\">\r\n			  <input type=\"hidden\" name=\"pic_id\" value=\"".getBytes("GB2312");
      _jsp_string9 = "\">删除</a> \r\n                          </div>\r\n                        </td>\r\n                      </tr>\r\n                      ".getBytes("GB2312");
      _jsp_string0 = "\r\n".getBytes("GB2312");
      _jsp_string1 = "\r\n<html>\r\n<head>\r\n<title>无标题文档</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link rel=\"stylesheet\" href=\"../css/style.css\" type=\"text/css\">\r\n</head>\r\n<SCRIPT LANGUAGE=\"JavaScript\">\r\n<!--\r\n	function doAction( btn ) {\r\n		\r\n		btn.form.action.value = btn.name;\r\n		\r\n		if ( btn.name == \"close_window\" ) {\r\n			\r\n			window.close();\r\n		}\r\n		else {\r\n\r\n			btn.form.submit();\r\n		}\r\n	}\r\n//-->\r\n</SCRIPT>\r\n<body bgcolor=\"#FFFFFF\" text=\"#000000\" background=\"../images/background.gif\">\r\n<form  method=\"post\" action=\"upload_pic_action.jsp\" enctype=\"multipart/form-data\" >\r\n  <table width=\"75%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" bgcolor=\"#666666\">\r\n    <tr> \r\n      <td> \r\n        <table width=\"100%\" border=\"0\" cellspacing=\"1\">\r\n          <tr> \r\n            <td colspan=\"2\"><b><font color=\"#FFFFFF\">图片上传</font></b></td>\r\n          </tr>\r\n          <tr bgcolor=\"#FFFFFF\"> \r\n            <td colspan=\"2\"><font size=\"3\"><b><font color=\"#333333\" size=\"2\">第一步:</font></b><font color=\"#333333\" size=\"2\">单击<b>浏览</b>并选择一个文件</font></font> \r\n            </td>\r\n          </tr>\r\n          <tr bgcolor=\"#FFFFFF\"> \r\n            <td colspan=\"2\"> \r\n              <input type=\"file\" name=\"file\">\r\n            </td>\r\n          </tr>\r\n          <tr bgcolor=\"#FFFFFF\"> \r\n            <td><font size=\"3\" color=\"#000000\"><b><font size=\"2\">第二步:</font></b><font size=\"2\">单击<b>附加文件</b></font></font></td>\r\n            <td> \r\n              <input type=\"button\" onClick=\"javascript:{ doAction( this ); }\" value=\"附加文件\" name=\"add_pic\">\r\n            </td>\r\n          </tr>\r\n          <tr bgcolor=\"#FFFFFF\"> \r\n            <td colspan=\"2\"><font size=\"2\">每个图片不得大于1M</font></td>\r\n          </tr>\r\n          <tr bgcolor=\"#FFFFFF\"> \r\n            <td colspan=\"2\" align=\"center\"> \r\n              <table width=\"75%\" border=\"0\" cellspacing=\"0\" bgcolor=\"#666666\" cellpadding=\"0\">\r\n                <tr> \r\n                  <td> \r\n                    <table width=\"100%\" border=\"0\" cellspacing=\"1\">\r\n                      <tr align=\"center\"> \r\n                        <td> \r\n                          <div align=\"center\"><font color=\"#FFFFFF\"><b>ID</b></font></div>\r\n                        </td>\r\n                        <td><b><font size=\"2\" color=\"#FFFFFF\">已附加的文件</font></b></td>\r\n                        <td> \r\n                          <div align=\"center\"><font color=\"#FFFFFF\"><b><font size=\"2\">大小</font></b></font></div>\r\n                        </td>\r\n                        <td> \r\n                          <div align=\"center\"><font color=\"#FFFFFF\"><b><font size=\"2\">删除</font></b></font></div>\r\n                        </td>\r\n                      </tr>\r\n                      ".getBytes("GB2312");
      _jsp_string6 = " \r\n                          </div>\r\n                        </td>\r\n                        <td width=\"22%\" bgcolor=\"#FFFFFF\"> \r\n                          <div align=\"center\"> <a href=\"action.jsp?category_id=".getBytes("GB2312");
    } catch (java.io.UnsupportedEncodingException e) {
      e.printStackTrace();
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -