myAgendaCalendar.jsp 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. %>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  8. <html>
  9. <head>
  10. <title>我的日程日历</title>
  11. <link href="<%=basePath %>resource/gnt/resources/css/ext-all-gray.css" rel="stylesheet" type="text/css" />
  12. <link rel="stylesheet" type="text/css" href="<%=basePath %>resource/gnt/resources/resources/css/calendar.css" />
  13. <link rel="stylesheet" type="text/css" href="<%=basePath %>resource/gnt/resources/resources/css/examples.css" />
  14. <script src="<%=basePath %>resource/gnt/ext-all.js" type="text/javascript"></script>
  15. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
  16. <script type="text/javascript">
  17. Ext.Loader.setConfig({
  18. enabled: true,
  19. paths: {
  20. 'Ext.calendar': 'src'
  21. }
  22. });
  23. Ext.require([
  24. 'Ext.calendar.App'
  25. ]);
  26. var todo={
  27. add:[],
  28. update:[],
  29. destroy:[]
  30. };
  31. var EventsData='';
  32. var type='factory';
  33. Ext.onReady(function(){
  34. Ext.Ajax.request({//拿到grid的columns
  35. url : basePath + 'plm/calendar/getMyAgenda.action',
  36. params:{
  37. emid:emid
  38. },
  39. method : 'post',
  40. callback : function(options,success,response){
  41. var res = new Ext.decode(response.responseText);
  42. if(res.exceptionInfo){
  43. showError(res.exceptionInfo);return;
  44. }if(res.success){
  45. EventsData=res.evts;
  46. Ext.create('Ext.calendar.App');
  47. }
  48. }
  49. });
  50. document.getElementById('logo-body').innerHTML = new Date().getDate();
  51. });
  52. </script>
  53. <script type="text/javascript">
  54. var recorder = '<%=session.getAttribute("em_name")%>';
  55. var emid='<%=session.getAttribute("em_uu")%>';
  56. var basePath="<%=basePath%>";
  57. </script>
  58. </head>
  59. <body>
  60. <div style="display:none;">
  61. <div id="app-header-content">
  62. <div id="app-logo">
  63. <div class="logo-top">&nbsp;</div>
  64. <div id="logo-body">&nbsp;</div>
  65. <div class="logo-bottom">&nbsp;</div>
  66. </div>
  67. <h1>我的日程日历</h1>
  68. <span id="app-msg" class="x-hidden"></span>
  69. </div>
  70. </div>
  71. </body>
  72. </html>