📄 listeducate_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.List;
import java.util.Iterator;
import entity.Educate;
import tool.*;
public final class listeducate_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List 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=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("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>人力资源管理系统</title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\">\r\n");
out.write("<link href=\"css/css.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<body>\r\n");
out.write("<table width=\"100%\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" bordercolorlight=\"#CCCCCC\" bordercolor=\"#FFFFFF\" bordercolordark=\"#FFFFFF\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"22\" colspan=\"6\" align=\"left\" ><strong class=\"text13\">\r\n");
out.write("\t");
String educate=null;
try{
educate=request.getParameter("educate").toString();
}catch(Exception e){
educate="0";
}
if("1".equals(educate)){
out.print("培训总结");
}else{
out.print("培训计划");
}
out.write("\r\n");
out.write("\t</strong></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr class=\"tdhui\">\r\n");
out.write(" <td height=\"22\" align=\"center\" >培训名称</td>\r\n");
out.write(" <td height=\"22\" align=\"center\" >讲师</td>\r\n");
out.write(" <td height=\"22\" align=\"center\" >培训人员</td>\r\n");
out.write(" <td height=\"22\" align=\"center\" >开始时间</td>\r\n");
out.write(" <td height=\"22\" align=\"center\" >结束时间</td>\r\n");
out.write(" <td height=\"22\" align=\"center\" >执行操作</td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
List list=(List)request.getAttribute("list");
if(list!=null&&list.size()>0){
Iterator it = list.iterator();
while (it.hasNext()) {
Educate j = (Educate) it.next();
out.write("\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"22\" align=\"center\" >");
out.print(j.getName());
out.write("</td>\r\n");
out.write(" <td height=\"22\" align=\"center\" >");
out.print(j.getTeacher());
out.write("</td>\r\n");
out.write(" <td height=\"22\" align=\"center\" >");
out.print(j.getStudent());
out.write("</td>\r\n");
out.write(" <td height=\"22\" align=\"center\" >");
out.print(StringUtil.notNull(DateUtil.parseToString(j.getBegintime(),DateUtil.yyyyMMdd)));
out.write("</td>\r\n");
out.write(" <td height=\"22\" align=\"center\" >");
out.print(StringUtil.notNull(DateUtil.parseToString(j.getEndtime(),DateUtil.yyyyMMdd)));
out.write("</td>\r\n");
out.write(" <td height=\"22\" align=\"center\" ><a href=\"detaileducate.do?educate=");
out.print(educate);
out.write("&action=detaileducate&id=");
out.print(j.getId());
out.write("\">详细</a> <a href=\"modifyeducate.do?action=deleteeducate&id=");
out.print(j.getId());
out.write("\">删除</a>");
if(!"1".equals(educate)){
out.write(" <a href=\"updateeducate.do?educate=1&action=detaileducate&id=");
out.print(j.getId());
out.write("\">培训完成</a>");
}
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
}
}else{
out.write("\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"22\" colspan=\"6\" align=\"center\" >对不起,没有信息!!!</td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
}
out.write("\r\n");
out.write("</table>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\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 + -