📄 addshop_jsp.java
字号:
package org.apache.jsp.admin;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class addShop_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
public Object 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=UTF-8");
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;
out.write('\n');
out.write('\n');
out.write('\n');
out.write('\n');
out.write("\n");
out.write("\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n");
out.write(" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
out.write("\n");
out.write("<html>\n");
out.write(" <head>\n");
out.write(" <script language=\"javascript\">\n");
out.write(" function check(){\n");
out.write(" if(document.addShop.foodName.value.length==0){\n");
out.write(" alert(\"请输入食品名称!\");\n");
out.write(" document.addShop.foodName.focus();\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" if(document.addShop.foodPrice.value.length==0){\n");
out.write(" alert(\"请输入食品价格!\");\n");
out.write(" document.addShop.foodPrice.focus();\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" if(document.addShop.foodPicture.value.length==0){\n");
out.write(" alert(\"请图片文件名!\");\n");
out.write(" document.addShop.foodPicture.focus();\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" if(document.addShop.foodMaker.value.length==0){\n");
out.write(" alert(\"请输入厨师名!\");\n");
out.write(" document.addShop.foodMaker.focus();\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" if(document.addShop.foodBoss.value.length==0){\n");
out.write(" alert(\"请输入商家姓名!\");\n");
out.write(" document.addShop.foodBoss.focus();\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" if(document.addShop.address.value.length==0){\n");
out.write(" alert(\"请输入商家地址!\");\n");
out.write(" document.addShop.address.focus();\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" if(document.addShop.foodRoomName.value.length==0){\n");
out.write(" alert(\"请输入餐馆名称!\");\n");
out.write(" document.addShop.foodRoomName.focus();\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" if(document.addShop.foodDescribe.value.length==0){\n");
out.write(" alert(\"请输入详细的食品介绍!\");\n");
out.write(" document.addShop.foodDescribe.focus();\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" }\n");
out.write(" </script>\n");
out.write(" </head>\n");
out.write(" <body>\n");
out.write(" <table width=\"600\" height=\"360\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" bordercolor=\"#000000\" bgcolor=\"#CCCCCC\">\n");
out.write(" <tr>\n");
out.write(" <td valign=\"top\" bgcolor=\"#FFFFFF\"><table width=\"100%\" height=\"313\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n");
out.write(" <tr>\n");
out.write(" <td height=\"20\"><div align=\"center\"><font size=\"+3\" color=\"#002299\">食品添加</font></div></td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td height=\"20\">请详细填写以下内容,带<font color=\"#FF0000\">*</font>的必须填写</td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td><hr align=\"center\" /></td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td><form id=\"addShop\" name=\"addShop\" method=\"post\" action=\"/cuiter/AddShopAction\" onsubmit=\"return check();\">\n");
out.write(" <table width=\"100%\" height=\"254\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n");
out.write(" <tr>\n");
out.write(" <td width=\"24%\"><div align=\"right\"><font color=\"#FF0000\">*</font> 食品名称:</div></td>\n");
out.write(" <td width=\"76%\"><input name=\"foodName\" type=\"text\" id=\"foodName\" size=\"30\" /> </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td><div align=\"right\"><font color=\"#FF0000\">*</font> 食品价格:</div></td>\n");
out.write(" <td><input name=\"foodPrice\" type=\"text\" id=\"foodPrice\" size=\"30\" />\n");
out.write(" 请填写数字如:23.5,26等</td>\n");
out.write(" </tr>\n");
out.write("\t\t\t<tr>\n");
out.write(" <td><div align=\"right\"><font color=\"#FF0000\">*</font> 食品图片: </div></td>\n");
out.write(" <td><input name=\"foodPicture\" type=\"text\" id=\"foodPicture\" size=\"30\" />\n");
out.write(" 请上传图片名称如:huoguo.jpg</td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td><div align=\"right\"><font color=\"#FF0000\">*</font> 厨师:</div></td>\n");
out.write(" <td><input name=\"foodMaker\" type=\"text\" id=\"foodMaker\" size=\"30\" /></td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td><div align=\"right\"><font color=\"#FF0000\">*</font> 商家:</div></td>\n");
out.write(" <td><input name=\"foodBoss\" type=\"text\" id=\"foodBoss\" size=\"30\" /></td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td><div align=\"right\"><font color=\"#FF0000\">*</font> 商家地址:</div></td>\n");
out.write(" <td><input name=\"address\" type=\"text\" id=\"address\" size=\"30\" /></td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td><div align=\"right\"><font color=\"#FF0000\">*</font> 食品类别:</div></td>\n");
out.write(" <td><select name=\"foodType\">\n");
out.write(" <option value=\"1\">抄手</option>\n");
out.write(" </select>\n");
out.write(" </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td><div align=\"right\"><font color=\"#FF0000\">*</font> 餐馆名称:</div></td>\n");
out.write(" <td><input name=\"foodRoomName\" type=\"text\" id=\"foodRoomName\" size=\"30\" /></td>\n");
out.write(" </tr>\n");
out.write("\t\t\t<tr>\n");
out.write(" <td><div align=\"right\"><font color=\"#FF0000\">*</font> 食品介绍:</div></td>\n");
out.write(" <td><textarea name=\"foodDescribe\" cols=\"30\" rows=\"6\" id=\"foodDescribe\"></textarea></td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td colspan=\"2\"><table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n");
out.write(" <tr>\n");
out.write(" <td> </td>\n");
out.write(" <td> </td>\n");
out.write(" <td><div align=\"center\">\n");
out.write(" <input name=\"addSubmit\" type=\"submit\" id=\"addSubmit\" value=\"提交\" />\n");
out.write(" </div></td>\n");
out.write(" <td><div align=\"center\">\n");
out.write(" <input type=\"reset\" name=\"Submit\" value=\"重置\" />\n");
out.write(" </div></td>\n");
out.write(" <td> </td>\n");
out.write(" <td> </td>\n");
out.write(" <td> </td>\n");
out.write(" </tr>\n");
out.write(" </table></td>\n");
out.write(" </tr>\n");
out.write(" </table>\n");
out.write(" </form> </td>\n");
out.write(" </tr>\n");
out.write(" </table></td>\n");
out.write(" </tr>\n");
out.write("</table>\n");
out.write("</body>\n");
out.write("</html>\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 + -