workcal-view.jsp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "scope");%>
  4. <%pageContext.setAttribute("currentMenu", "workcal");%>
  5. <!doctype html>
  6. <html lang="en">
  7. <head>
  8. <%@include file="/common/meta.jsp"%>
  9. <title>工作日历</title>
  10. <%@include file="/common/s3.jsp"%>
  11. <script type="text/javascript" src="${ctx}/widgets/workcal3/WorkCalendar.js"></script>
  12. <script type="text/javascript">
  13. $(function() {
  14. var workCalendar = new WorkCalendar(${param.year});
  15. workCalendar.render('#m-main');
  16. workCalendar.activeByWeek(${weeks});
  17. workCalendar.markHolidays(${holidays});
  18. workCalendar.markWorkdays(${workdays});
  19. workCalendar.markExtrdays(${extrdays});
  20. workCalendar.markNow();
  21. });
  22. </script>
  23. </head>
  24. <body>
  25. <%@include file="/header/workcal.jsp"%>
  26. <div class="row-fluid">
  27. <%@include file="/menu/workcal.jsp"%>
  28. <!-- start of main -->
  29. <section id="m-main" class="col-md-10" style=" ">
  30. </section>
  31. <!-- end of main -->
  32. </div>
  33. </body>
  34. </html>