📄 totalbyday_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.Date;
import java.util.Calendar;
import java.io.*;
import java.sql.*;
import java.util.Vector;
import java.text.*;
public class totalbyday_jsp extends HttpJspBase {
private static java.util.Vector _jspx_includes;
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=GB2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write(" \r\n");
String byesdatep = (String)session.getAttribute("PWorkDiary");
session.removeAttribute("PWorkDiary");
String byesdateu = (String)session.getAttribute("UWriteDiary");
session.removeAttribute("UWriteDiary");
String yesdatep = (String)session.getAttribute("yesPWorkDiary");
session.removeAttribute("yesPWorkDiary");
String yesdateu = (String)session.getAttribute("yesUWriteDiary");
session.removeAttribute("yesUWriteDiary");
String todayp = (String)session.getAttribute("todayPWorkDiary");
session.removeAttribute("todayPWorkDiary");
String todayu = (String)session.getAttribute("todayUWriteDiary");
session.removeAttribute("todayUWriteDiary");
if(byesdatep.equals("1") || byesdateu.equals("1") || yesdatep.equals("1") || yesdateu.equals("1")){
out.write("\r\n");
out.write("<script>\r\n ");
out.write("<!--\r\n newWindow =null;\r\n if (! newWindow || newWindow.closed)\r\n {\r\n newWindow = window.open('/krm/jsp/popdiary.jsp?byesdatep=");
out.print(byesdatep);
out.write("&byesdateu=");
out.print(byesdateu);
out.write("&yesdatep=");
out.print(yesdatep);
out.write("&yesdateu=");
out.print(yesdateu);
out.write("&todayp=");
out.print(todayp);
out.write("&todayu=");
out.print(todayu);
out.write("','after','width=280,height=160,left=120,top=0');\r\n }else\r\n {\r\n newWindow.focus();\r\n } \r\n \r\n //-->\r\n");
out.write("</script>\r\n");
}
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/krm/jsp/css/a6oa.css\">\r\n");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/krm/jsp/css/css.css\">\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<title>工作日记填写情况");
out.write("</title>\r\n\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n\r\nbody {\r\n\tfont-family: \"宋体\";\r\n\tfont-size: 12px;\r\n\ttext-decoration: none;\r\n\r\n}\r\ntable {\r\n\tfont-family: \"宋体\";\r\n\tfont-size: 12px;\r\n}\r\na {\r\n\ttext-decoration: none;\r\n}\r\n-->\r\n");
out.write("</style>\r\n");
out.write("</head>\r\n\r\n");
out.write("<body topmargin=\"4\" >\r\n");
out.write("<br>\r\n");
String diaryDate="";
String sqlImage="";
String week="星期 ";
Calendar calendar= Calendar.getInstance();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
calendar.set(Calendar.DATE, calendar.get(Calendar.DATE) - 3);
switch(calendar.get(Calendar.DAY_OF_WEEK)){
case 1: week="日";break;
case 2: week="一";break;
case 3: week="二";break;
case 4: week="三";break;
case 5: week="四";break;
case 6: week="五";break;
case 7: week="六";break;
}
String index=request.getParameter("index");
Date dateTemp = new Date(calendar.getTimeInMillis());
diaryDate = formatter.format(dateTemp);
String blg=request.getParameter("blg");
String pwindex=request.getParameter("pwindex");
String pblg=request.getParameter("pblg");
StringBuffer bufferName=new StringBuffer();
bufferName=(StringBuffer)session.getAttribute("bufferName");
//session.removeAttribute("bufferName");
if(!blg.equals("true"))
{
out.write("\r\n");
out.write("<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\">\r\n ");
out.write("<tr> \r\n ");
out.write("<td valign=\"top\" >\r\n \t");
out.write("<table width=\"100%\" height=\"23\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\" >\r\n ");
out.write("<tr> \r\n ");
out.write("<td height=20 class=\"tdA\"> 未填日记 共 ");
out.print(index);
out.write(" 人 [");
out.print(diaryDate);
out.write("(周");
out.print(week);
out.write(")] ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" height=\"120\"cellspacing=\"1\" >\r\n ");
out.write("<tr cellspacing=6 cellpadding=1 class=\"common\"> \r\n ");
out.print(bufferName);
out.write(" \r\n ");
out.write("</tr>\r\n");
out.write("</table>\r\n");
}
out.write("\r\n");
StringBuffer pwBufferName=new StringBuffer();
pwBufferName=(StringBuffer)session.getAttribute("pwBufferName");
//session.removeAttribute("pwBufferName");
if(pblg.equals("false"))
{
out.write("\r\n");
out.write("<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" >\r\n ");
out.write("<tr> \r\n ");
out.write("<td valign=\"top\" >\r\n \t");
out.write("<table width=\"100%\" height=\"23\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\" >\r\n ");
out.write("<tr> \r\n ");
out.write("<td height=20 class=\"tdA\"> 日记 [工作内容] 不完整 共 ");
out.print(pwindex);
out.write(" 人 [");
out.print(diaryDate);
out.write("(周");
out.print(week);
out.write(")]");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" >\r\n ");
out.write("<tr>\r\n \t\t");
out.write("<td class=\"common\">\r\n\t\t\t\t");
out.write("<table width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"1\">\r\n\t\t\t\t\t");
out.write("<tr cellspacing='2' cellpadding='1'>\r\n\t\t\t\t\t\t\t");
out.write("<TD align='left' width='100%' class=\"common\">");
out.write("<strong>");
out.write("<font color='#cc6600'>");
out.print(pwBufferName);
out.write("</font>");
out.write("</strong>");
out.write("</TD>\r\n\t\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("</table>\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n");
out.write("</table>\r\n");
}
out.write("\r\n");
out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" >\r\n");
out.write("<tr >\r\n");
out.write("<td align=\"center\" colspan=\"2\" class=\"tdA\">\r\n \t\t");
out.write("<input onmouseover=\"this.className='button2'\" onmouseout=\"this.className='button1'\" class=\"button1\" type=\"button\" value=\"关 闭\" onClick=\"javascript:window.close();\">\r\n");
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</table>\r\n");
bufferName=new StringBuffer();
pwBufferName=new StringBuffer();
out.write("\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -