📄 employeenote_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import StudyNote.*;
import java.util.*;
public final class employeeNote_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=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("\r\n");
out.write("\r\n");
out.write("\t\r\n");
Vector v = (Vector)session.getAttribute(Constants.NOTE_LIST_KEY);
Note note = null;
Integer tpage=(Integer)session.getAttribute(Constants.CUR_PAGEID_KEY);
int pageId=tpage.intValue();
Integer tpageCount=(Integer)session.getAttribute(Constants.NOTE_PAGE_COUNT_KEY);
int pageCount=tpageCount.intValue();;
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("\r\n");
out.write("<head>\r\n");
out.write("<title></title>\r\n");
out.write("<LINK href=\"images/style.css\" rel=stylesheet>\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<body>\r\n");
out.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" bgcolor=\"#FFCC66\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"84%\" bgcolor=\"#FFFFFF\">\r\n");
out.write("<p align=\"right\" style=\"font-size: 10pt; line-height: 140%; border-left-color: black; border-right-color: black; border-top-color: #3333ff; border-bottom-color: black\">\r\n");
out.write("第");
out.print(pageId+1);
out.write('页');
out.write(',');
out.write('共');
out.print(pageCount);
out.write("页</p>\r\n");
out.write("<table cellSpacing=\"0\" borderColorDark=\"#ffffff\" cellPadding=\"0\" width=\"100%\" borderColorLight=\"#cccccc\" border=\"1\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"middle\" width=\"370\" style=\"font-size: 10pt\">\r\n");
out.write(" <div align=\"center\">\r\n");
out.write(" <p style=\"font-size: 10pt; line-height: 140%; border-left-color: black; border-right-color: black; border-top-color: #3333ff; border-bottom-color: black\">\r\n");
out.write(" <font color=\"#cc6633\">公告主题</font></div>\r\n");
out.write(" </td>\r\n");
out.write(" <td align=\"middle\" width=\"75\" style=\"font-size: 10pt\">\r\n");
out.write(" <div align=\"center\">\r\n");
out.write(" <p style=\"font-size: 10pt; line-height: 140%; border-left-color: black; border-right-color: black; border-top-color: #3333ff; border-bottom-color: black\">\r\n");
out.write(" <font color=\"#cc6633\">通知人</font></div>\r\n");
out.write(" </td>\r\n");
out.write(" <td align=\"middle\" width=\"122\" style=\"font-size: 10pt\">\r\n");
out.write(" <div align=\"center\">\r\n");
out.write(" <p style=\"font-size: 10pt; line-height: 140%; border-left-color: black; border-right-color: black; border-top-color: #3333ff; border-bottom-color: black\">\r\n");
out.write(" <font color=\"#cc6633\">通知时间</font></div>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write("\r\n");
out.write(" ");
if(v != null ){
for(int i = 0;i < v.size();i++)
{
note = (Note)v.get(i);
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"middle\" width=\"370\" style=\"font-size: 10pt\">\r\n");
out.write(" <p style=\"font-size: 10pt; line-height: 140%; border-left-color: black; border-right-color: black; border-top-color: #3333ff; border-bottom-color: black\">\r\n");
out.write(" <a href=\"noteDetail.do?noteId=");
out.print(note.getId());
out.write('"');
out.write('>');
out.print(note.getTitle());
out.write("</a></td>\r\n");
out.write(" <td align=\"middle\" width=\"75\" style=\"font-size: 10pt\">\r\n");
out.write(" <p style=\"font-size: 10pt; line-height: 140%; border-left-color: black; border-right-color: black; border-top-color: #3333ff; border-bottom-color: black\">\r\n");
out.write(" ");
out.print(note.getTalker());
out.write("</td>\r\n");
out.write(" <td align=\"middle\" width=\"122\" style=\"font-size: 10pt\">\r\n");
out.write(" <p style=\"font-size: 10pt; line-height: 140%; border-left-color: black; border-right-color: black; border-top-color: #3333ff; border-bottom-color: black\">\r\n");
out.write(" ");
out.print(note.getTime());
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" \r\n");
out.write("\r\n");
out.write(" ");
}
}
out.write("\r\n");
out.write(" \r\n");
out.write(" </table>\r\n");
out.write("<form name=\"sub\" action=\"\" method=\"post\">\r\n");
out.write(" <p style=\"font-size: 10pt; line-height: 140%; border-left-color: black; border-right-color: black; border-top-color: #3333ff; border-bottom-color: black\">\r\n");
out.write(" <a href=\"lookNote.do?pageId=");
out.print(pageId-1);
out.write("\"><<前一页</a> <a href=\"lookNote.do?pageId=");
out.print(pageId+1);
out.write("\"> 下一页</a>\r\n");
out.write(" </p>\r\n");
out.write("</form>\r\n");
out.write("<P align=left><FONT size=2> </FONT></P>\r\n");
out.write(" <p> </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("\r\n");
out.write("</body>\r\n");
out.write("\r\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 {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -