📄 _edit_0article__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.sql.SQLFacade;
import org.ehotsoft.yekki.sql.SQLUtil;
import org.ehotsoft.yekki.util.ParamUtil;
import org.ehotsoft.yekki.util.StringUtil;
import java.sql.ResultSet;
public class _edit_0article__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);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
SQLFacade facade = new SQLFacade();
int id = ParamUtil.getIntParameter( request, "id", -1 );
int page_no = ParamUtil.getIntParameter( request, "page_no", 1 );
int category_id = ParamUtil.getIntParameter( request, "category_id", -1 );
boolean has_pic = false;
String sql = "select title, content, has_pic, via_title from tbl_info_article where id=" + id;
ResultSet rst = facade.executeQuery( sql );
String title = "";
String content = "";
String via_title = "";
if ( rst.next() ) {
int tmp = rst.getInt( "has_pic" );
has_pic = tmp == 1 ? true : false;
title = rst.getString( "title" );
via_title = StringUtil.nullToString( rst.getString( "via_title" ) );
content = SQLUtil.fetchClob( rst, "content" );
}
facade.close();
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
out.print((category_id));
pageContext.write(_jsp_string2, 0, _jsp_string2.length);
out.print((title));
pageContext.write(_jsp_string3, 0, _jsp_string3.length);
out.print((via_title));
pageContext.write(_jsp_string4, 0, _jsp_string4.length);
out.print((content));
pageContext.write(_jsp_string5, 0, _jsp_string5.length);
if ( has_pic ) out.println( "checked" );
pageContext.write(_jsp_string6, 0, _jsp_string6.length);
out.print((category_id));
pageContext.write(_jsp_string7, 0, _jsp_string7.length);
out.print((category_id));
pageContext.write(_jsp_string8, 0, _jsp_string8.length);
out.print((id));
pageContext.write(_jsp_string9, 0, _jsp_string9.length);
out.print((page_no));
pageContext.write(_jsp_string10, 0, _jsp_string10.length);
out.print((category_id));
pageContext.write(_jsp_string11, 0, _jsp_string11.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("_edit_0article__jsp.java", "/admin/info/edit_article.jsp");
_caucho_line_map.add(6, 1);
_caucho_line_map.add(1, 32);
_caucho_line_map.add(41, 63);
_caucho_line_map.add(99, 65);
_caucho_line_map.add(105, 67);
_caucho_line_map.add(111, 69);
_caucho_line_map.add(117, 71);
_caucho_line_map.add(125, 73);
_caucho_line_map.add(126, 75);
_caucho_line_map.add(127, 77);
_caucho_line_map.add(128, 79);
_caucho_line_map.add(129, 81);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/e:/jnjt/admin/info/edit_article.jsp"), 1030255113709L, 4548L);
_caucho_depends.add(depend);
}
private static byte []_jsp_string4;
private static byte []_jsp_string10;
private static byte []_jsp_string3;
private static byte []_jsp_string1;
private static byte []_jsp_string9;
private static byte []_jsp_string5;
private static byte []_jsp_string7;
private static byte []_jsp_string2;
private static byte []_jsp_string6;
private static byte []_jsp_string8;
private static byte []_jsp_string0;
private static byte []_jsp_string11;
static {
try {
_jsp_string4 = "\">\r\n </td>\r\n </tr>\r\n <tr bgcolor=\"#FFFFFF\"> \r\n <td align=\"right\" valign=\"middle\">文章内容:</td>\r\n <td> \r\n <textarea name=\"content\" cols=\"85\" rows=\"30\">".getBytes("GB2312");
_jsp_string10 = "\">\r\n <input type=\"hidden\" name=\"category_id\" value=\"".getBytes("GB2312");
_jsp_string3 = "\">\r\n </td>\r\n </tr>\r\n <tr bgcolor=\"#FFFFFF\">\r\n <td align=\"right\" width=\"25%\">副标题:</td>\r\n <td>\r\n <input type=\"text\" name=\"via_title\" size=\"70\" maxlength=\"100\" value=\"".getBytes("GB2312");
_jsp_string1 = "\r\n<html>\r\n<head>\r\n<title></title>\r\n<link rel=\"stylesheet\" href=\"../css/style.css\" type=\"text/css\">\r\n<SCRIPT LANGUAGE=\"JavaScript\">\r\n<!--\r\n function addPic( chk ) {\r\n \r\n if ( chk.checked ) {\r\n \r\n window.open( \"upload_pic.jsp?category_id=".getBytes("GB2312");
_jsp_string9 = "\">\r\n <input type=\"hidden\" name=\"page_no\" value=\"".getBytes("GB2312");
_jsp_string5 = "</textarea>\r\n </td>\r\n </tr>\r\n <tr bgcolor=\"#FFFFFF\"> \r\n <td align=\"right\" valign=\"middle\">图片:</td>\r\n <td> \r\n <input type=\"checkbox\" value=\"on\" name=\"has_pic\" onClick=\"javascript:{ addPic( this ); }\" ".getBytes("GB2312");
_jsp_string7 = "' );}\" name=\"button\">\r\n <input type=\"button\" value=\" 返 回 \" onClick=\"javascript:{ window.location = 'article.jsp?category_id=".getBytes("GB2312");
_jsp_string2 = "\" );\r\n }\r\n }\r\n \r\n function checkData() {\r\n \r\n if ( sform.title.value.length < 1 ) {\r\n \r\n alert( \"请输入标题!\" );\r\n sform.title.focus();\r\n \r\n return false;\r\n }\r\n\r\n if ( sform.content.value.length < 1 ) {\r\n \r\n alert( \"请输入内容\" );\r\n sform.content.focus();\r\n return false;\r\n }\r\n\r\n \r\n\r\n return true;\r\n }\r\n\r\n function doSubmit() {\r\n \r\n sform.target = \"_self\";\r\n sform.action = \"action.jsp\";\r\n\r\n if ( checkData() ) sform.submit();\r\n }\r\n \r\n function preview() {\r\n \r\n sform.target = \"_blank\";\r\n sform.action = \"show_article.jsp\";\r\n\r\n if ( checkData() ) sform.submit();\r\n }\r\n//-->\r\n</SCRIPT>\r\n</head>\r\n\r\n<body background=\"../images/background.gif\">\r\n<form name=\"sform\" method=\"POST\" action=\"action.jsp\" >\r\n <table border=\"0\" cellspacing=\"0\" bordercolorlight=\"#000000\" bordercolordark=\"#FFFFFF\" cellpadding=\"0\" align=\"center\" bgcolor=\"#666666\" width=\"85%\">\r\n <tr>\r\n \r\n <td> <b><font color=\"#FFFFFF\">修改文章</font></b> </td>\r\n </tr>\r\n <tr align=\"center\">\r\n <td align=\"center\"> \r\n <table border=\"0\" cellspacing=\"1\" bgcolor=\"#000000\" cellpadding=\"0\" width=\"100%\">\r\n <tr bgcolor=\"#FFFFFF\"> \r\n <td align=\"right\" width=\"25%\">文章标题:</td>\r\n <td> \r\n <input type=\"text\" name=\"title\" size=\"70\" maxlength=\"100\" value=\"".getBytes("GB2312");
_jsp_string6 = ">\r\n </td>\r\n </tr>\r\n <tr bgcolor=\"#FFFFFF\" align=\"center\"> \r\n <td colspan=\"2\" valign=\"bottom\"> \r\n <input type=\"button\" value=\" 更 新 \" onclick=\"javascript:{ doSubmit(); }\">\r\n <input type=\"reset\" value=\" 复 原 \">\r\n <input type=\"button\" value=\" 预 览 \" onClick=\"javascript:{ preview(); }\">\r\n <input type=\"button\" value=\"查看图库\" onClick=\"javascript:{ window.open( 'maintain_pic.jsp?category_id=".getBytes("GB2312");
_jsp_string8 = "' }\" name=\"button2\">\r\n <input type=\"hidden\" name=\"id\" value=\"".getBytes("GB2312");
_jsp_string0 = "\r\n".getBytes("GB2312");
_jsp_string11 = "\">\r\n <input type=\"hidden\" name=\"operator\" value=\"edit_article\">\r\n </td>\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n</form>\r\n</body>\r\n</html>\r\n".getBytes("GB2312");
} catch (java.io.UnsupportedEncodingException e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -