Jquery + fullcalendar + jsp + 无组件(JSON +ORACLE 带日历考勤系统 index.js里面代码
even ts: function( start, end, timez one, callback
$.ajax({
type:POST,
url:gettcdbsdb.jsp,
dataType:js on,
asyn c:false,
data: {
startstime: start.format(),
en dstime: en d.format()
},
success: function( data) {
var events =[];
$.each(data, function (i) {
even ts.push({
title: data[i].title, start: data[i].start, end: data[i].e nd, allDay: true
});
});
callback(eve nts);
},
error: function( XMLHttpRequest, textStatus, errorThrow n){ alert(errorThrow n);
}
});
},
url:gettcdbsdb.jsp ,(无数据库)
中的代码
%@ page conten tType=text/js on; charset=gb2312 %
%@ page import=java.io.*%
%
String stime = request.getParameter(startstime);
String etime = request.getParameter(e ndstime);
String temps=[ { +\title\ +: \ 祝你成功 \,; temps=temps + \start\ +: \2020-06-30\,;
temps=temps + \end\ +: \2020-06-30\ + },; temps=temps + { \title\ +: \ 祝你 1 成功 \,;
temps=temps + \start\ +: \2020-06-28\,; temps=temps + \end\ +: \2020-06-28\ + } ];
out.println(temps);
%
有数据库,无需JSON组件!
%@ page contentType=text/json; charset=gb2312 %
%@ page import=java.io.*%
%@ page info=database handler%
%@ page import=java.io.*%
%@ page import=java.lang.*%
%@ page import=java.util.*%
%@ page import=java.sql.*%
%
String stime = request.getParameter(startstime);
String etime = request.getParameter(endstime);
String col1=,col2=;
String strSql;
Connection con;
Statement stmt;
ResultSet rs;
Class.forName(oracle.jdbc.driver.OracleDriver);
String url=jdbc:oracle:thin:@:1521:tet3; con=DriverManager.getConnection(url,sys as sysdba,man123); stmt=con.createStatement();
strSql = select s1,s2 from test_yuye where s1 between + stime +and + etime + order by s1 ;
rs=stmt.executeQuery(strSql);
String stemp=[;
while(rs.next())
{
col1=rs.getString(1).trim();
col2=rs.getString(2).trim();
stemp=stemp+ { \title\ +: \+col2+\,; stemp=stemp + \start\ +: \+col1+\,;
stemp=stemp + \end\ +: \+col1+\ + },;
} stemp=stemp.substring(0,stemp.length()-10?stemp.length()-1:1);
stemp=stemp+]
您可能关注的文档
- 9.创业7大必备条件.docx
- 9.与教师沟通记录.docx
- 8附件3:出差报备表.docx
- 9.抗癫痫药及抗惊厥药分类及结构特点总结.docx
- 9.结题答辩记录.docx
- 8预备人选任职资格联审表(换届和届中调整的支部都用).docx
- 9丽水学院管理岗、工勤岗人员年度考核登记.docx
- 9、有限空间作业教育记录表.docx
- 9丽水学院中层干部年度考核登记表.docx
- 9学院应征入伍现在服兵役学生信息表.docx
- 2026年衡水职业技术学院单招职业技能考试题库含答案详解(典型题).docx
- 2023中考_中考复习计划范文五篇.pdf
- 2023届江苏省七市(南通、泰州、扬州‘、宿迁)高三下学期第三次调研考试数学试题答案.pdf
- 2026年衡水职业技术学院单招职业技能考试题库及答案详解(有一套).docx
- 2026年衡水职业技术学院单招职业技能考试题库及答案详解(真题汇编).docx
- 2023学年江苏省泰州市兴化市第一中学高三第二次模拟考试生物试卷(含解析).pdf
- 2026年衡水职业技术学院单招职业技能考试题库及答案详解(最新).docx
- 2026年衡水职业技术学院单招职业技能考试题库及答案详解(易错题).docx
- 2026年衡水职业技术学院单招职业技能考试题库及答案详解(夺冠系列).docx
- 2026年衡水职业技术学院单招职业技能考试题库及答案详解(名校卷).docx
最近下载
- 幕墙成品保护措施及细则.docx VIP
- 巴西-狂欢节含内容.pptx VIP
- 蛋鸡合理的蛋白能量比.doc VIP
- 350MW超临界循环流化床机组调试大纲.doc VIP
- 初中奥数二次根式计算专项讲义.docx VIP
- 《基于MATLAB的10kV小电流接地系统中单相接地故障仿真研究》6500字.docx VIP
- 2025年第四季度电网工程设备材料信息参考价.docx VIP
- 深度解析(2026)《GBT 3511-2018硫化橡胶或热塑性橡胶 耐候性》.pptx VIP
- 深度解析(2026)GBT 14834-2009硫化橡胶或热塑性橡胶 与金属粘附性及对金属腐蚀作用的测定.pptx VIP
- 深度解析(2026)GBT 11211-2009硫化橡胶或热塑性橡胶 与金属粘合强度的测定 二板法.pptx VIP
原创力文档

文档评论(0)