📄 addnewsform_jsp.java
字号:
package org.apache.jsp.WEB_002dINF.jsp.oa.admin.tiles;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class addNewsForm_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(3);
_jspx_dependants.add("/WEB-INF/tags/struts-bean.tld");
_jspx_dependants.add("/WEB-INF/tags/struts-html.tld");
_jspx_dependants.add("/WEB-INF/tags/struts-logic.tld");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_forEach_var_items;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_forEach_var_items = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_out_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_forEach_var_items.release();
_jspx_tagPool_c_out_value_nobody.release();
_jspx_tagPool_c_if_test.release();
}
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=GBK");
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("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<style>\r\n");
out.write("body,td,input,textarea {font-size:9pt}\r\n");
out.write("</style>\r\n");
out.write("<SCRIPT language=javascript src=\"Jslib.js\"></SCRIPT>\r\n");
out.write("<script language=\"JavaScript\">\r\n");
out.write("function checkItem()\r\n");
out.write("{\r\n");
out.write(" var flag=true;\r\n");
out.write(" \tif (isEmpty(document.forms[0].newstlt.value))\r\n");
out.write(" {\r\n");
out.write(" alert(\"新闻标题不能为空!\");\r\n");
out.write(" document.forms[0].newstlt.focus();\r\n");
out.write(" flag = false;\r\n");
out.write(" }\r\n");
out.write(" else if (isEmpty(document.forms[0].newsfbr.value))\r\n");
out.write(" {\r\n");
out.write(" alert(\"新闻发布人不能为空!\");\r\n");
out.write(" document.forms[0].newsfbr.focus();\r\n");
out.write(" flag = false;\r\n");
out.write(" }\r\n");
out.write(" else if (isEmpty(document.forms[0].newstop.value))\r\n");
out.write(" {\r\n");
out.write(" alert(\"新闻序号不能为空!\");\r\n");
out.write(" document.forms[0].newstop.focus();\r\n");
out.write(" flag = false;\r\n");
out.write(" }\r\n");
out.write("return flag;\r\n");
out.write("}\r\n");
out.write("</script>\r\n");
out.write("<form action=\"addnews.do\" method=\"post\" enctype=\"multipart/form-data\" name=\"doublecombo\" id=\"FORM\" >\r\n");
out.write("<TABLE border=\"0\" cellpadding=\"2\" cellspacing=\"1\" width=100%>\r\n");
out.write("<tr>\r\n");
out.write("<tr><td colspan=2>注意:带<font color=red>*</font>号为必填项,若无相关信息,请填‘无’字!</td></tr>\r\n");
out.write("<td width=30%>新闻标题:</td><td><input name=\"newstlt\" type=\"text\" id=\"news\" size=\"50\" maxlength=\"50\"><font color=red>*</font></td></tr>\r\n");
out.write("<tr><td>所属新闻类别:</td><td> \r\n");
out.write("<select name=\"type\" onChange=\"redirect(this.options.selectedIndex)\">\r\n");
out.write(" ");
if (_jspx_meth_c_forEach_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("</select></td></tr>\r\n");
out.write("<tr><td>所属新闻栏目:</td><td> \r\n");
out.write("\t<select name=\"sort\">\r\n");
out.write(" ");
if (_jspx_meth_c_forEach_1(_jspx_page_context))
return;
out.write("\r\n");
out.write(" </select></td></tr>\r\n");
out.write("<tr>\r\n");
out.write("<td>上传新闻主题图片:</td><td><input name=\"newsPicFile\" type=\"file\" disabled=\"disabled\" id=\"newsPic\"></td></tr>\r\n");
out.write("<tr>\r\n");
out.write("<td>上传视频服务视频:</td><td><input name=\"newsWmvFile\" type=\"file\" disabled=\"disabled\" id=\"newsWmv\"></td></tr>\r\n");
out.write("<tr>\r\n");
out.write("<td>新闻内容:</td><td></td></tr>\r\n");
out.write("<TR>\r\n");
out.write("\t<TD colspan=2>\r\n");
out.write("\t\t<INPUT type=\"hidden\" name=\"newstext\" value=\"请在此次添加新闻信息\">\r\n");
out.write("\t\t<IFRAME ID=\"eWebEditor1\" name=\"eWebEditor1\" src=\"../eWebEditor.jsp?id=newstext&style=standard\" frameborder=\"0\" scrolling=\"no\" width=\"100%\" height=\"350\"></IFRAME>\r\n");
out.write("\t</TD>\r\n");
out.write("</TR>\r\n");
out.write("<input name=\"newsfbr\" type=\"hidden\" id=\"news\" value=\"");
if (_jspx_meth_c_out_6(_jspx_page_context))
return;
out.write("\">\r\n");
out.write("<tr><td height=\"40\">新闻备注<br> </br>(注:企业风采,区域就业相关链接地址):</td><td><textarea name=\"newsbz\" rows=\"5\" cols=\"40\"></textarea></td></tr>\r\n");
out.write("\r\n");
out.write("<tr><td>新闻显示颜色:</td><td><input name=\"newscolor\" type=\"text\" id=\"news\"></td></tr>\r\n");
out.write("<tr><td>新闻状态:</td><td>\r\n");
out.write("\t<select name=\"newsstatus\">\r\n");
out.write("\t\t<option value=\"1\">发布</option>\r\n");
out.write("\t\t<option value=\"0\">不发布</option>\r\n");
out.write(" </select>\r\n");
out.write("\t<font color=red>*</font>\r\n");
out.write("</td></tr>\r\n");
out.write("<tr><td>新闻排序:</td><td><input name=\"newstop\" type=\"text\" id=\"news\" value=\"0\"><font color=red>*</font></td></tr>\r\n");
out.write("<TR>\r\n");
out.write("\t<TD align=right onmouseover=\"check_nr();\" colspan=2>\r\n");
out.write("\t<INPUT type=submit name=b1 value=\"请确认栏目内容不为空再提交!\" onmousedown=\"check_nr();\" onclick=\"return checkItem();\">\r\n");
out.write("\t</TD>\r\n");
out.write("</TR>\r\n");
out.write("<script>\r\n");
out.write("<!--\r\n");
out.write(" var groups=document.doublecombo.type.options.length\r\n");
out.write(" var group=new Array(groups)\r\n");
out.write(" \r\n");
out.write(" var size=document.doublecombo.sort.options.length\r\n");
out.write("\r\n");
out.write(" for (I=0; I<groups; I++)\r\n");
out.write(" \t\tgroup[I]=new Array()\r\n");
out.write(" \r\n");
out.write(" \tfor (M=0; M<size; M++)\r\n");
out.write("\tgroup[0][M]=new Option(document.doublecombo.sort.options[M].text,document.doublecombo.sort.options[M].value)\r\n");
out.write("\tgroup[1][0]=new Option(\"\",\"0\")\r\n");
out.write("\tgroup[2][0]=new Option(\"\",\"0\")\r\n");
out.write("\tgroup[3][0]=new Option(\"\",\"0\")\r\n");
out.write("\tgroup[4][0]=new Option(\"\",\"0\")\r\n");
out.write("\tgroup[5][0]=new Option(\"\",\"0\")\r\n");
out.write("\tgroup[6][0]=new Option(\"招聘会现场\",\"1\")\r\n");
out.write("\tgroup[6][1]=new Option(\"单位介绍\",\"2\")\r\n");
out.write("\tgroup[6][2]=new Option(\"就业指导视频\",\"3\")\r\n");
out.write("\tgroup[7][0]=new Option(\"\",\"0\")\r\n");
out.write(" var temp=document.doublecombo.sort\r\n");
out.write("function redirect(x){\r\n");
out.write("if(document.doublecombo.type.value==5||document.doublecombo.type.value==6||document.doublecombo.type.value==7)\r\n");
out.write("\tdocument.doublecombo.newsPicFile.disabled=\"\";\r\n");
out.write("else document.doublecombo.newsPicFile.disabled=\"false\";\r\n");
out.write("\r\n");
out.write("if(document.doublecombo.type.value==7)\r\n");
out.write("\tdocument.doublecombo.newsWmvFile.disabled=\"\";\r\n");
out.write("else document.doublecombo.newsWmvFile.disabled=\"false\";\t\r\n");
out.write("\r\n");
out.write(" for (m=temp.options.length-1;m>0;m--)\r\n");
out.write(" temp.options[m]=null\r\n");
out.write(" for (I=0;I<group[x].length;I++){\r\n");
out.write(" temp.options[I]=new Option(group[x][I].text,group[x][I].value)\r\n");
out.write(" }\r\n");
out.write(" temp.options[0].selected=true\r\n");
out.write(" \r\n");
out.write(" }\r\n");
out.write(" //-->\r\n");
out.write(" </script>\r\n");
out.write("</FORM>\r\n");
out.write("\r\n");
out.write("<script>\r\n");
out.write("function check_nr(){\r\n");
out.write("\tvar nr =window.eWebEditor1.eWebEditor.document.body.innerHTML;\r\n");
out.write("\tif(nr==\"<p> </p>\"||nr==\"<P> </P>\"){\r\n");
out.write("\t\talert(\"栏目内容不能为空,请填写内容后再提交!\")\r\n");
out.write("\t\tdocument.all.b1.disabled=\"yes\";\r\n");
out.write(" return fales;\r\n");
out.write("\t\t\t}\r\n");
out.write("\t\telse{\r\n");
out.write(" document.all.b1.disabled=\"\";\r\n");
out.write(" return true;\r\n");
out.write("\t}\r\n");
out.write("\r\n");
out.write("\t}\r\n");
out.write("</script>");
} 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);
}
}
private boolean _jspx_meth_c_forEach_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:forEach
org.apache.taglibs.standard.tag.el.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.el.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.el.core.ForEachTag.class);
_jspx_th_c_forEach_0.setPageContext(_jspx_page_context);
_jspx_th_c_forEach_0.setParent(null);
_jspx_th_c_forEach_0.setVar("typeid");
_jspx_th_c_forEach_0.setItems("${typelist}");
int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
try {
int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\t<option value=\"");
if (_jspx_meth_c_out_0(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
return true;
out.write('"');
out.write('>');
if (_jspx_meth_c_out_1(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
return true;
out.write("</option>\r\n");
out.write(" ");
int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
return true;
}
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_forEach_0[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_c_forEach_0.doCatch(_jspx_exception);
} finally {
_jspx_th_c_forEach_0.doFinally();
_jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_0);
}
return false;
}
private boolean _jspx_meth_c_out_0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_0 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
_jspx_th_c_out_0.setPageContext(_jspx_page_context);
_jspx_th_c_out_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
_jspx_th_c_out_0.setValue("${typeid.id}");
int _jspx_eval_c_out_0 = _jspx_th_c_out_0.doStartTag();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -