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

📄 _lanmu_0add__jsp.java

📁 javaWEB应用网立足于提供从WEB技术到WEB应用全方位免费 ║ ║ 共享服务。这个平台是大家学习、应用、交流WEB技术的最 ║ ║ 有力平台。我们坚信成功来源于共享和合作
💻 JAVA
字号:
/*
 * JSP generated by Resin 2.1.4 (built Fri Aug  2 14:16:52 PDT 2002)
 */

import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;

public class _lanmu_0add__jsp extends com.caucho.jsp.JavaPage{
  private boolean _caucho_isDead;
  
ResultSet rs;
String LanmuName;
int Id;

  
  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);
      sk.Lanmu Lanmu;
      Lanmu = (sk.Lanmu) pageContext.getAttribute("Lanmu");
      if (Lanmu == null) {
        Lanmu = new sk.Lanmu();
        pageContext.setAttribute("Lanmu", Lanmu);
      }
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      
String bianji="bj";
String shichang="sc";
String admin="zh";
if(session.getValue("type").toString().equals("admin"))
;
else response.sendRedirect("login.htm");


      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      pageContext.write(_jsp_string2, 0, _jsp_string2.length);
      
                rs=Lanmu.getRS();
                rs.first();
                if(rs.isFirst()){
                while(true){
                    if(rs.getObject(4).toString().equals("1")){  
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
      out.print((rs.getObject(1).toString()));
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      out.print((rs.getObject(2).toString()));
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      }
               if(!rs.next()){ break;}
              }
              } 
      pageContext.write(_jsp_string6, 0, _jsp_string6.length);
      
                rs.first();
                if(rs.isFirst()){
                  while(true){
                    if(rs.getObject(4).toString().equals("2")){  
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
      out.print((rs.getObject(1).toString()));
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      out.print((rs.getObject(2).toString()));
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      }
               if(!rs.next()){break;}
              }
              }
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      pageContext.write(_jsp_string8, 0, _jsp_string8.length);
      rs.close();
      pageContext.write(_jsp_string9, 0, _jsp_string9.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() != 2057024146)
      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("_lanmu_0add__jsp.java", "/back/lanmu_add.jsp");
    _caucho_line_map.add(2, 1);
    _caucho_line_map.add(13, 13);
    _caucho_line_map.add(1, 33);
    _caucho_line_map.add(4, 42);
    _caucho_line_map.add(13, 52);
    _caucho_line_map.add(131, 54);
    _caucho_line_map.add(137, 61);
    _caucho_line_map.add(138, 63);
    _caucho_line_map.add(149, 70);
    _caucho_line_map.add(154, 76);
    _caucho_line_map.add(155, 78);
    _caucho_line_map.add(189, 86);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(appDir.lookup("lanmu_add.jsp"), 1035008873187L, 5967L);
    _caucho_depends.add(depend);
  }

  private static byte []_jsp_string7;
  private static byte []_jsp_string9;
  private static byte []_jsp_string8;
  private static byte []_jsp_string3;
  private static byte []_jsp_string5;
  private static byte []_jsp_string4;
  private static byte []_jsp_string1;
  private static byte []_jsp_string2;
  private static byte []_jsp_string0;
  private static byte []_jsp_string6;
  static {
    try {
      _jsp_string7 = "\r\n                </select>\r\n              </p>\r\n            </td>\r\n          </tr>\r\n          <tr>\r\n            <td align=\"RIGHT\"></td>\r\n            <td><br>\r\n              <input type=\"button\" value=\"添加\" onclick=\"javascript:SendForm()\"/>\r\n              <input type=\"reset\" name=\"Add\" value=\"重添\" />\r\n            </td>\r\n          </tr>\r\n        </form>\r\n      </table>\r\n    </td>\r\n  </tr>\r\n  <tr>\r\n    <td height=\"1\" align=\"center\" valign=\"bottom\">&nbsp;</td>\r\n  </tr>\r\n  <tr>\r\n    <td height=\"1\" align=\"center\" valign=\"bottom\"> <b><a href=\"javascript:history.back()\">返回</a></b>\r\n    </td>\r\n  </tr>\r\n  <tr>\r\n    <td width=\"100%\" height=\"1\" colspan=\"2\" align=\"center\"></td>\r\n  </tr>\r\n</table>\r\n".getBytes("GB2312");
      _jsp_string9 = "\r\n</html>".getBytes("GB2312");
      _jsp_string8 = "\r\n</body>\r\n".getBytes("GB2312");
      _jsp_string3 = "\r\n                        <option value=\"".getBytes("GB2312");
      _jsp_string5 = "\r\n                        </option>\r\n               ".getBytes("GB2312");
      _jsp_string4 = "\">\r\n                        ".getBytes("GB2312");
      _jsp_string1 = "\r\n<html>\r\n<head>\r\n<script language=\"javascript\">\r\n<!--\r\n  function DisLevel(){\r\n    index=document.LanmuForm.SelLevel.selectedIndex;\r\n    index--;\r\n    p1=\"document.LanmuForm.\";\r\n    for( i=0; i<document.LanmuForm.SelLevel.length-1; i++)\r\n    {\r\n	p2=\"Level\"+i+\".style\";\r\n	p3=eval(p1+p2);\r\n      if(i==index){\r\n        p3.display=\"block\";\r\n      }\r\n      else\r\n        p3.display=\"none\";\r\n    }\r\n  }\r\n  function SendForm(){\r\n\r\n    if(document.LanmuForm.LanmuName.value==\"\"){\r\n      alert(\"栏目名不能为空!\");\r\n      return;\r\n    }\r\n    if(document.LanmuForm.SelLevel.selectedIndex==0){\r\n      alert(\"栏目级别不能为空!\");\r\n      return;\r\n    }\r\n    if(document.LanmuForm.SelLevel.selectedIndex==2&&document.LanmuForm.Level1.selectedIndex==0){\r\n      alert(\"上级栏目不能为空!\");\r\n      return;\r\n    }\r\n    if(document.LanmuForm.SelLevel.selectedIndex==3&&document.LanmuForm.Level2.selectedIndex==0){\r\n      alert(\"上级栏目不能为空!\");\r\n      return;\r\n    }\r\n    LanmuForm.action=\"LanmuRes.jsp\";\r\n    LanmuForm.submit();\r\n  }\r\n-->\r\n</script>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../CSS/style.css\">\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>后台管理系统</title>\r\n</head>\r\n<BODY bgColor=#ffffff leftMargin=0 text=#000000 topMargin=0>\r\n".getBytes("GB2312");
      _jsp_string2 = "\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" height=\"400\">\r\n  <tr>\r\n    <td width=\"100%\" height=\"30\" colspan=\"2\" align=\"center\"></td>\r\n  </tr>\r\n  <tr>\r\n    <td height=\"10\" align=\"center\" valign=\"top\">栏目管理</td>\r\n  </tr>\r\n  <tr>\r\n    <td height=\"10\" align=\"center\" valign=\"top\">&nbsp;</td>\r\n  </tr>\r\n  <tr  align=\"center\">\r\n    <td align=\"center\" valign=\"top\">\r\n      <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber2\" align=\"center\">\r\n        <form action=\"LanmuRes.jsp\" method=\"POST\" name=\"LanmuForm\">\r\n          <input type=\"hidden\" name=\"submitit\" value=\"submitit\" />\r\n          <tr>\r\n            <td align=\"center\">当前位置>>栏目管理</td>\r\n            <td></td>\r\n          </tr>\r\n          <tr>\r\n            <td align=\"RIGHT\" width=\"50%\">栏目名称:</td>\r\n            <td>\r\n              <input type=\"text\" name=\"LanmuName\" value='' size=\"20\" />\r\n            </td>\r\n          </tr>\r\n          <tr>\r\n            <td align=\"RIGHT\">&nbsp;</td>\r\n            <td>&nbsp;</td>\r\n          </tr>\r\n          <tr>\r\n            <td align=\"RIGHT\">栏目说明:</td>\r\n            <td>\r\n              <textarea name=\"LanmuDes\" value='' rows=\"5\" cols=\"30\"/></textarea>\r\n            </td>\r\n          </tr>\r\n          <tr>\r\n            <td align=\"RIGHT\">&nbsp;</td>\r\n            <td>&nbsp;</td>\r\n          </tr>\r\n          <tr>\r\n            <td align=\"RIGHT\">栏目级别:</td>\r\n            <td>\r\n              <select name=\"SelLevel\" onchange='DisLevel()'>\r\n                <option value=\"-1\">请选择</option>\r\n                <option value=\"1\">1</option>\r\n                <option value=\"2\">2</option>\r\n                <option value=\"3\">3</option>\r\n              </select>\r\n            </td>\r\n          </tr>\r\n          <tr>\r\n            <td align=\"RIGHT\">&nbsp;</td>\r\n            <td>&nbsp;</td>\r\n          </tr>\r\n          <tr>\r\n            <td align=\"RIGHT\">上级栏目:</td>\r\n            <td>\r\n              <p>\r\n                <select name=\"Level0\" disabled>\r\n                  <option value='-1'>顶级栏目</option>\r\n                </select>\r\n              </p>\r\n              <p>\r\n              <select name=\"Level1\" style=\"display:none\">\r\n                <option value='-1' selected>1级栏目....</option>\r\n              ".getBytes("GB2312");
      _jsp_string0 = "\r\n".getBytes("GB2312");
      _jsp_string6 = "\r\n              </select>\r\n              </p>\r\n              <p>\r\n                <select name=\"Level2\" style=\"display:none\">\r\n                  <option value='-1' selected>2级栏目....</option>\r\n                 ".getBytes("GB2312");
    } catch (java.io.UnsupportedEncodingException e) {
      e.printStackTrace();
    }
  }
}

⌨️ 快捷键说明

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