📄 index.jsp
字号:
<%@ page contentType="text/html;charset=GB2312"%>
<%@ page import="java.util.Date,java.io.*,java.sql.*,
cn.com.aheadsoft.servlet.BirthdayPopuServlet,cn.com.aheadsoft.util.UserInfo,cn.com.aheadsoft.recordset.TotalDiaryRecordSet,cn.com.aheadsoft.business.TotalDiaryBusiness,
cn.com.aheadsoft.recordset.PersonInfoRecordSet"%>
<%@ page import="cn.com.aheadsoft.servlet.WorkTipServlet" %>
<%@ page import="java.text.*" %>
<%@ page import="java.util.*" %>
<%@ page import="javax.servlet.*" %>
<%@ page import="javax.servlet.http.*" %>
<%
Enumeration e = request.getHeaderNames();
String headerValue = request.getHeader("user-agent");
BirthdayPopuServlet personSt = new BirthdayPopuServlet();
PersonInfoRecordSet personRs = new PersonInfoRecordSet();
UserInfo userinfo = (UserInfo)session.getAttribute("userinfo");
String userID=userinfo.GetUserID();
String birth_Month="";
String birth_Date="";
String blgs="false";
String blg="false";
String yblg="false";
String diaryDate="";
Date dateTemp=new Date();
int index=0;
TotalDiaryRecordSet totalRs=new TotalDiaryRecordSet();
TotalDiaryBusiness totalBu=new TotalDiaryBusiness();
Calendar calendar=null;
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
calendar = Calendar.getInstance();
dateTemp = new Date(calendar.getTimeInMillis());
diaryDate = formatter.format(dateTemp);
birth_Month = diaryDate.substring(5,7);
birth_Date =diaryDate.substring(8,10);
personRs.setList(personSt.getPersonList(birth_Month,birth_Date));
if(personRs.next())
blg="true";
calendar= Calendar.getInstance();
calendar.set(Calendar.DATE, calendar.get(Calendar.DATE) - 1);
dateTemp = new Date(calendar.getTimeInMillis());
diaryDate = formatter.format(dateTemp);
birth_Month = diaryDate.substring(5,7);
birth_Date =diaryDate.substring(8,10);
calendar= Calendar.getInstance();
//added by tong 2004-6-1 begin
calendar.set(Calendar.DATE, calendar.get(Calendar.DATE) - 3);
dateTemp = new Date(calendar.getTimeInMillis());
diaryDate = formatter.format(dateTemp);
totalBu.setQueryWhereTotalDate(diaryDate);
totalBu.execute("query");
String totalflag="false";
totalRs=totalBu.getRecordSet();
if(totalRs.next())
totalflag="true";
//added by tong 2004-6-1 end
personRs.setList(personSt.getPersonList(birth_Month,birth_Date));
if(personRs.next())
yblg="true";
if(headerValue.indexOf("Windows CE")!=-1){
response.sendRedirect("winceright.jsp");
}
%>
<script language=JavaScript>
<%if(yblg.equals("true")){%>
//window.setTimeout("window.open('/krm/servlet/BirthdayPopuServlet?module=y&&status=q','BirthdayPopuYes','width=590,height=445,left=150,top=80,resizable=1,scrollbars=yes')",5000);
window.open('/krm/servlet/BirthdayPopuServlet?module=y&&status=q','BirthdayPopuYes','width=590,height=445,left=150,top=80,resizable=1,scrollbars=yes');
<%}%>
<%
if(blg.equals("true")){
%>
//window.setTimeout("window.open('/krm/servlet/BirthdayPopuServlet?module=t&&status=q','BirthdayPopuServlet','width=590,height=445,left=150,top=80,resizable=1,scrollbars=yes')",3900);
window.open('/krm/servlet/BirthdayPopuServlet?module=t&&status=q','BirthdayPopuServlet','width=590,height=445,left=150,top=80,resizable=1,scrollbars=yes');
<%}%>
<%
//added by tong 2004-6-1 begin
if(totalflag.equals("true")){
//added by tong 2004-6-1 end
%>
//window.setTimeout("window.open('/krm/servlet/TotalDiaryServlet?status=q&module=all','totalbyday','width=530,height=400,left=35,top=15,resizable=1,scrollbars=yes')",5000);
window.open('/krm/servlet/TotalDiaryServlet?status=q&module=all','totalbyday','width=530,height=400,left=35,top=15,resizable=1,scrollbars=yes')
<%}%>
<%if(blgs=="true"){%>
//window.setTimeout("window.open('birthday_all.jsp','birthday_all','width=510,height=420,left=150,top=80,resizable=1,scrollbars=yes'))",6000);
window.open('birthday_all.jsp','birthday_all','width=510,height=420,left=150,top=80,resizable=1,scrollbars=yes');
<%}%>
</script>
<%
int[] all = (int[])session.getAttribute("num");
int a=all[2];
//System.out.println("all[2]:"+a);
String bull= String.valueOf(a);
%>
<%
boolean popflag=bull.equals("0");
//System.out.println("popflag:"+popflag);
%>
<html>
<head>
<title>先锋KRM-A6 3.1W企业版</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
</head>
<frameset rows="87,*,21" frameborder="no" noresize="noresize" border="0" framespacing="0">
<frame src="top.jsp" name="topFrame" frameborder="no" noresize="noresize" scrolling="no" id="topFrame" >
<frame src="middle.jsp" name="middleFrame" frameborder="no" noresize="noresize" scrolling="no" id="middleFrame" >
<frame src="bottom.html" name="middleFrame" frameborder="no" noresize="noresize" scrolling="no" id="bottomFrame" >
</frameset><noframes></noframes><!--<noframes></noframes>-->
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -