📄 date_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class date_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("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"zh-CN\" lang=\"zh-CN\">\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<title>无标题文档</title>\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write("/* 全局CSS定义 */\r\n");
out.write("body { text-align: center; font-family:宋体, serif;margin:0; padding:0; background: #FFF; font-size:16px; color:#000;}\r\n");
out.write("div,form,img,ul,ol,li,dl,dt,dd {margin: 0; padding: 0; border: 0;}\r\n");
out.write("h1,h2,h3,h4,h5,h6 { margin:0; padding:0;}\r\n");
out.write("table,td,tr,th{font-size:12px;}\r\n");
out.write("\r\n");
out.write(".leftContent .placeList{ position:absolute;display:none;left:-12px;top:18px;width:213px; height:190px; border:0px;}\r\n");
out.write("\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("<script language=\"javascript\" type=\"\">\r\n");
out.write("function getElement(aID)\r\n");
out.write("{\r\n");
out.write(" return (document.getElementById) ? document.getElementById(aID)\r\n");
out.write(" : document.all[aID];\r\n");
out.write("}\r\n");
out.write("//定制地方新闻\r\n");
out.write("\r\n");
out.write("function showLocSelect()\r\n");
out.write("{\r\n");
out.write("\tvar locdiv=getElement(\"locListDiv\");\r\n");
out.write("\tif(locdiv.style.display==\"block\"){\r\n");
out.write("\t\tlocdiv.style.display=\"none\";\r\n");
out.write("\t\treturn;\r\n");
out.write("\t}\r\n");
out.write("\tlocdiv.style.display=\"block\";\r\n");
out.write("\tvar locs=locdiv.getElementsByTagName(\"li\");\r\n");
out.write("\tfor(var i=0;i<locs.length;i++)\r\n");
out.write("\t{\r\n");
out.write("\t\tvar theloc=locs[i];\r\n");
out.write("\t\t\ttheloc.onmouseover=function(){\r\n");
out.write("\t\t\t\tthis.style.backgroundColor=\"#A0AAC8\"\r\n");
out.write("\t\t\t}\r\n");
out.write("\t\t\ttheloc.onmouseout=function(){\r\n");
out.write("\t\t\t\tthis.style.backgroundColor=\"#F2F6FB\"\r\n");
out.write("\t\t\t}\r\n");
out.write("\t\t\ttheloc.onclick=function(){\r\n");
out.write("\t\t\t\tvar locstr=this.innerHTML;\r\n");
out.write("\t\t\t\tif (locstr.indexOf(\" \")!=-1) locstr=locstr.substr(0,locstr.indexOf(\" \")); //fixbug 在IE下多出一个空格\r\n");
out.write("\t\t\t\t//SetCookie(\"NTES_LocNewsAddr\",locstr,365);\r\n");
out.write("\t\t\t\t//setLocNews(locstr);\r\n");
out.write("\t\t\t\thideLocSelect();\r\n");
out.write("\t\t\t\tvar l=getElement(\"locbar\");\r\n");
out.write("\t\t\t\tloadAJAXTab(l.getAttribute(\"urn\"),l.getAttribute(\"rel\"));\r\n");
out.write("\t\t\t}\r\n");
out.write("\t}\r\n");
out.write("}\r\n");
out.write("function hideLocSelect()\r\n");
out.write("{\r\n");
out.write("\tgetElement(\"locListDiv\").style.display=\"none\";\r\n");
out.write("}\r\n");
out.write("document.onmousedown=function(aEvent){\r\n");
out.write("\tvar myEvent = window.event ? window.event : aEvent;\r\n");
out.write("\tvar lo=getElement(\"locListDiv\");\r\n");
out.write("\tif(!IsChild(myEvent.srcElement,lo))hideLocSelect();\r\n");
out.write("}\r\n");
out.write("</script>\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<body>\r\n");
out.write("<div class=\"leftContent\">\r\n");
out.write("<span style=\"position:relative\"><a href=\"javascript:showLocSelect();\" target=\"_self\">\r\n");
out.write("<script language=\"javascript\" type=\"\">\r\n");
out.write("var a=new Date();\r\n");
out.write("document.write(a.getFullYear()+\"年\"+(a.getMonth()+1)+\"月\"+a.getDate()+\"日\");\r\n");
out.write("</script>\r\n");
out.write("</a>\r\n");
out.write("<div id=\"locListDiv\" class=\"placeList\">\r\n");
out.write("<Script LANGUAGE=\"JavaScript\" type=\"\">\r\n");
out.write(" var months = new Array(\"一\", \"二\", \"三\",\"四\", \"五\", \"六\", \"七\", \"八\", \"九\",\"十\", \"十一\", \"十二\");\r\n");
out.write(" var daysInMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31,30, 31, 30, 31);\r\n");
out.write(" var days = new Array(\"日\",\"一\", \"二\", \"三\",\"四\", \"五\", \"六\");\r\n");
out.write(" var classTemp;\r\n");
out.write(" var today=new getToday();\r\n");
out.write(" var year=today.year;\r\n");
out.write(" var month=today.month;\r\n");
out.write(" var newCal;\r\n");
out.write("\r\n");
out.write(" function getDays(month, year) {\r\n");
out.write(" if (1 == month) return ((0 == year % 4) && (0 != (year % 100))) ||(0 == year % 400) ? 29 : 28;\r\n");
out.write(" else return daysInMonth[month];\r\n");
out.write(" }\r\n");
out.write("\r\n");
out.write(" function getToday() {\r\n");
out.write(" this.now = new Date();\r\n");
out.write(" this.year = this.now.getFullYear();\r\n");
out.write(" this.month = this.now.getMonth();\r\n");
out.write(" this.day = this.now.getDate();\r\n");
out.write(" }\r\n");
out.write("\r\n");
out.write(" function Calendar() {\r\n");
out.write(" newCal = new Date(year,month,1);\r\n");
out.write(" today = new getToday();\r\n");
out.write(" var day = -1;\r\n");
out.write(" var startDay = newCal.getDay();\r\n");
out.write(" var endDay=getDays(newCal.getMonth(), newCal.getFullYear());\r\n");
out.write(" var daily = 0;\r\n");
out.write(" if ((today.year == newCal.getFullYear()) &&(today.month == newCal.getMonth()))\r\n");
out.write(" {\r\n");
out.write(" day = today.day;\r\n");
out.write(" }\r\n");
out.write(" var caltable = document.all.caltable.tBodies.calendar;\r\n");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -