📄 managereligiousspots_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.horizongroup.mcompanion.web.model.*;
import com.horizongroup.mcompanion.web.db.*;
import java.util.*;
public final class manageReligiousSpots_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.Vector _jspx_dependants;
private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
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 {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
_jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");
out.write("\n");
out.write(" <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
out.write(" <head>\n");
out.write("\t<!-- TemplateBeginEditable name=\"doctitle\" -->\n");
out.write("\t<title>Free Website Templates</title>\n");
out.write("\t<!-- TemplateEndEditable --><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n");
out.write("\t<link href=\"file:///C|/Documents%20and%20Settings/User/My%20Documents/project/template133/style.css\" rel=\"stylesheet\" type=\"text/css\" />\n");
out.write("<style type=\"text/css\">\n");
out.write("<!--\n");
out.write("body {\n");
out.write("\tbackground-color: #44648A;\n");
out.write("}\n");
out.write(".style8 {\n");
out.write("\tfont-family: Georgia, \"Times New Roman\", Times, serif;\n");
out.write("\tfont-style: italic;\n");
out.write("\tfont-size: 14px;\n");
out.write("\tcolor: #33FF00;\n");
out.write("}\n");
out.write(".style5 {color: #990000}\n");
out.write(".style11 {color: #333333}\n");
out.write(".style13 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; }\n");
out.write(".style34 {font-size: 9px}\n");
out.write(".style35 {color: #666666; font-weight: bold; }\n");
out.write(".style36 {font-size: 9px; font-weight: bold; }\n");
out.write(".style37 {\n");
out.write("\tcolor: #000000;\n");
out.write("\tfont-weight: bold;\n");
out.write("}\n");
out.write("-->\n");
out.write("</style>\n");
out.write("<!-- TemplateBeginEditable name=\"head\" --><!-- TemplateEndEditable -->\n");
out.write("</head>\n");
out.write("<script language=\"javascript\">\n");
out.write("function searchReligiousSpots() {\n");
out.write(" alert(\"..\");\n");
out.write(" document.religiousspotsForm.submit();\n");
out.write("}\n");
out.write("\n");
out.write("function deleteReligiousSpots(value){\n");
out.write(" var url= \"delete.jsp?destPage=manageReligiousSpots.jsp\";\n");
out.write(" url += \"&table=religiousspots\";\n");
out.write(" url += \"&property=rs_id\";\n");
out.write(" url += \"&value=\"+value;\n");
out.write(" \n");
out.write(" if(confirm(\"Are You Sure You Want to Delete this?\")){\n");
out.write(" window.location = url;\n");
out.write(" }else{\n");
out.write(" return;\n");
out.write(" }\n");
out.write("}\n");
out.write("</script>\n");
out.write("<body>\n");
ArrayList religiousspots=new ArrayList(); DBManager manager=new DBManager(); String[] returnValues = new String[]{"rs_id", "address_id", "rs_name", "mythology", "history"}; religiousspots = manager.findListByLikeCondition("religiousspots", returnValues, new String[]{"rs_name"}, new Object[]{request.getParameter("place")});
out.write("\n");
out.write("<form name=\"religiousspotsForm\" method=\"post\" action=\"manageReligiousSpots.jsp\">\n");
out.write(" <div id=\"wrapper\">\n");
out.write(" <div id=\"wrapper-i\">\n");
out.write("<img src=\"file:///C|/Documents%20and%20Settings/User/My%20Documents/project/template133/images/headernew1.JPG\" alt=\"\" name=\"smitha\" width=\"100%\" height=\"193\" hspace=\"0\" vspace=\"0\" id=\"smitha\" />\n");
out.write("<!-- end header -->\n");
out.write("<!-- end spacer -->\n");
out.write("<div id=\"body\"> \n");
out.write(" <p><img src=\"images/toppic.gif\" width=\"371\" height=\"70\" /> </p>\n");
out.write(" <table width=\"570\" border=\"0\">\n");
out.write(" <tr>\n");
out.write(" <td width=\"2\"> </td>\n");
out.write(" <td colspan=\"2\" class=\"producthdr\"> </td>\n");
out.write(" <td width=\"2\"> </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td> </td>\n");
out.write(" <td colspan=\"2\" class=\"producthdr\">Welcome to MCompanion Administration Tool </td>\n");
out.write(" <td> </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td> </td>\n");
out.write(" <td colspan=\"2\" class=\"sidelinks style6\"> </td>\n");
out.write(" <td> </td>\n");
out.write(" </tr>\n");
out.write(" <tr align=\"left\" valign=\"middle\">\n");
out.write(" <td> </td>\n");
out.write(" <td width=\"15\"><img src=\"../../Images/images/brick/letters/l.gif\" width=\"13\" height=\"13\" /></td>\n");
out.write(" <td width=\"596\"><span class=\"style35\">Manage Religious Spots </span></td>\n");
out.write(" <td> </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td> </td>\n");
out.write(" <td colspan=\"2\"><hr width=\"100%\" size=\"1\" noshade=\"noshade\" class=\"style5\" /></td>\n");
out.write(" <td> </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td> </td>\n");
out.write(" <td colspan=\"2\"><span class=\"sidetable\"><a href=\"addReligiousSpots.jsp\">Add New</a></span> <span class=\"style5\">|</span> <span class=\"sidetable style8\">Search</span> </td>\n");
out.write(" <td> </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td> </td>\n");
out.write(" <td colspan=\"2\"> </td>\n");
out.write(" <td> </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td> </td>\n");
out.write(" <td colspan=\"2\"><table width=\"615\" border=\"0\">\n");
out.write(" <tr>\n");
out.write(" <td width=\"54\">Name</td>\n");
out.write(" <td width=\"100\"><input name=\"place\" type=\"text\" class=\"sidelinks\" size=\"10\" />\n");
out.write(" </td>\n");
out.write(" <td width=\"48\"><div align=\"right\"></div></td>\n");
out.write(" <td width=\"144\"><div align=\"left\"> </div></td>\n");
out.write(" <td width=\"68\"><div align=\"right\"></div></td>\n");
out.write(" <td width=\"79\"></td>\n");
out.write(" <td width=\"92\"><div align=\"left\"><span class=\"style17\"><strong>\n");
out.write(" <input name=\"enter\" type=\"button\" class=\"style13\" id=\"enter\" onclick=\"javascript:searchReligiousSpots();\" value=\"Search\" />\n");
out.write(" </strong></span> </div></td>\n");
out.write(" </tr>\n");
out.write(" </table></td>\n");
out.write(" <td> </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td> </td>\n");
out.write(" <td colspan=\"2\"> </td>\n");
out.write(" <td> </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td height=\"78\"> </td>\n");
out.write(" <td colspan=\"2\"><table width=\"603\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" class=\"forumline\" bordercolordak=\"#666666\" bordercolorlight=\"#FFFFFF\">\n");
out.write(" <tr class=\"bottomline\">\n");
out.write(" <td width=\"87\" height=\"18\"><div align=\"left\" class=\"style11\">\n");
out.write(" <div align=\"center\" class=\"style34\"><strong>rs_id</strong></div>\n");
out.write(" </div></td>\n");
out.write(" <td width=\"95\"><span class=\"style37\">address_id</span></td>\n");
out.write(" <td width=\"96\"><div align=\"left\" class=\"style11\">\n");
out.write(" <div align=\"center\" class=\"style34\">name</div>\n");
out.write(" </div></td>\n");
out.write(" <td width=\"66\"><div align=\"left\" class=\"style11\">\n");
out.write(" <div align=\"center\" class=\"style34\"><strong><strong>mythology</strong></strong></div>\n");
out.write(" </div></td>\n");
out.write(" <td width=\"175\"><div align=\"left\" class=\"style11\">\n");
out.write(" <div align=\"center\" class=\"style36\">history</div>\n");
out.write(" </div></td>\n");
out.write(" <td width=\"38\"><div align=\"center\"><span class=\"style34\"><strong>Actions</strong></span></div></td>\n");
out.write(" </tr>\n");
out.write(" \n");
out.write(" \n");
out.write(" \n");
out.write(" \n");
out.write(" \n");
out.write(" \n");
out.write(" ");
if(religiousspots != null) { for (int i=0; i<religiousspots.size(); i++) { Object[] religiousspot = (Object[]) religiousspots.get(i);
out.write("\n");
out.write(" <tr class=\"clsCMOn\">\n");
out.write(" \n");
out.write(" <td> ");
out.print(religiousspot[0]);
out.write("</td>\n");
out.write(" <td> ");
out.print(religiousspot[1]);
out.write("</td>\n");
out.write(" <td> ");
out.print(religiousspot[2]);
out.write("</td>\n");
out.write(" <td> ");
out.print(religiousspot[3]);
out.write("</td>\n");
out.write(" <td> ");
out.print(religiousspot[4]);
out.write("</td>\n");
out.write(" \n");
out.write(" ");
String id=(String)religiousspot[0];
out.write(" \n");
out.write(" \n");
out.write(" <td><div align=\"center\"> <img src=\"images/edit.gif\" width=\"16\" height=\"16\" />\n");
out.write(" <input type=\"button\" name=\"Submit\" value=\"Delete\" onclick=\"JavaScript:deleteReligiousSpots(");
out.print(religiousspot[0]);
out.write(");\" />\n");
out.write(" </div></td>\n");
out.write(" </tr>\n");
out.write(" ");
} }
out.write("\n");
out.write(" </table></td>\n");
out.write(" <td> </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td> </td>\n");
out.write(" <td colspan=\"2\"> </td>\n");
out.write(" <td> </td>\n");
out.write(" </tr>\n");
out.write(" </table>\n");
out.write(" <p> </p>\n");
out.write(" <p> </p>\n");
out.write(" <div id=\"footer\">\n");
out.write(" <div class=\"l\">\n");
out.write(" <div class=\"r\">\n");
out.write(" <div align=\"center\"></div>\n");
out.write(" <div id=\"foot-nav\">\n");
out.write(" <div class=\"l\">\n");
out.write(" <div class=\"r\">\n");
out.write(" <div align=\"center\"><a href=\"index.jsp\">HOME </a>| <a href=\"service.jsp\">SERVICES</a> | <a href=\"contactus.jsp\">CONTACT US</a> </div>\n");
out.write(" </div>\n");
out.write(" </div>\n");
out.write(" </div>\n");
out.write(" <div align=\"center\">\n");
out.write(" <!-- end foot-nav -->\n");
out.write(" </div>\n");
out.write(" <p align=\"center\">Powered by <a href=\"http://www.freewebsitetemplates.com\">Free Website Templates</a></p>\n");
out.write(" </div>\n");
out.write(" </div>\n");
out.write(" </div>\n");
out.write(" </div>\n");
out.write("<!-- end body -->\n");
out.write(" </div><!-- end wrapper-i -->\n");
out.write(" </div><!-- end wrapper -->\n");
out.write(" \n");
out.write("</form>\n");
out.write("</body>\n");
out.write("</html");
} 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 {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -