calendar.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>H+ 后台主题UI框架 - 日历</title>
  7. <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
  8. <meta name="description" content="H+是一个完全响应式,基于Bootstrap3最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术">
  9. <link rel="shortcut icon" href="favicon.ico"> <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
  10. <link href="../css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
  11. <link href="../css/plugins/iCheck/custom.css" rel="stylesheet">
  12. <link href="../css/plugins/fullcalendar/fullcalendar.css" rel="stylesheet">
  13. <link href="../css/plugins/fullcalendar/fullcalendar.print.css" rel="stylesheet">
  14. <link href="../css/animate.min.css" rel="stylesheet">
  15. <link href="../css/style.min.css?v=4.1.0" rel="stylesheet">
  16. </head>
  17. <body class="gray-bg">
  18. <div class="wrapper wrapper-content">
  19. <div class="row animated fadeInDown">
  20. <div class="col-sm-3">
  21. <div class="ibox float-e-margins">
  22. <div class="ibox-title">
  23. <h5>Draggable Events</h5>
  24. <div class="ibox-tools">
  25. <a class="collapse-link">
  26. <i class="fa fa-chevron-up"></i>
  27. </a>
  28. <a class="dropdown-toggle" data-toggle="dropdown" href="calendar.html#">
  29. <i class="fa fa-wrench"></i>
  30. </a>
  31. <ul class="dropdown-menu dropdown-user">
  32. <li><a href="calendar.html#">选项1</a>
  33. </li>
  34. <li><a href="calendar.html#">选项2</a>
  35. </li>
  36. </ul>
  37. <a class="close-link">
  38. <i class="fa fa-times"></i>
  39. </a>
  40. </div>
  41. </div>
  42. <div class="ibox-content">
  43. <div id='external-events'>
  44. <p>可拖动的活动</p>
  45. <div class='external-event navy-bg'>确定活动目标</div>
  46. <div class='external-event navy-bg'>各部门职责及分工</div>
  47. <div class='external-event navy-bg'>案例分享</div>
  48. <div class='external-event navy-bg'>xxx</div>
  49. <p class="m-t">
  50. <input type='checkbox' id='drop-remove' class="i-checks" checked />
  51. <label for='drop-remove'>移动后删除</label>
  52. </p>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="ibox float-e-margins">
  57. <div class="ibox-content">
  58. <h2>FullCalendar</h2> 这是一个jQuery插件,它提供了全尺寸,可拖动,使用Ajax的操作方式,并且可以使用自己的feed格式,如谷歌日历。
  59. <p>
  60. <a href="http://arshaw.com/fullcalendar/" target="_blank">FullCalendar开发文档</a>
  61. </p>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="col-sm-9">
  66. <div class="ibox float-e-margins">
  67. <div class="ibox-title">
  68. <h5>FullCalendar示例 </h5>
  69. <div class="ibox-tools">
  70. <a class="collapse-link">
  71. <i class="fa fa-chevron-up"></i>
  72. </a>
  73. <a class="dropdown-toggle" data-toggle="dropdown" href="calendar.html#">
  74. <i class="fa fa-wrench"></i>
  75. </a>
  76. <ul class="dropdown-menu dropdown-user">
  77. <li><a href="calendar.html#">选项1</a>
  78. </li>
  79. <li><a href="calendar.html#">选项2</a>
  80. </li>
  81. </ul>
  82. <a class="close-link">
  83. <i class="fa fa-times"></i>
  84. </a>
  85. </div>
  86. </div>
  87. <div class="ibox-content">
  88. <div id="calendar"></div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <script src="../js/jquery.min.js?v=2.1.4"></script>
  95. <script src="../js/bootstrap.min.js?v=3.3.6"></script>
  96. <script src="../js/content.min.js?v=1.0.0"></script>
  97. <script src="../js/jquery-ui.custom.min.js"></script>
  98. <script src="../js/plugins/iCheck/icheck.min.js"></script>
  99. <script src="../js/plugins/fullcalendar/fullcalendar.min.js"></script>
  100. <script>
  101. $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",});$("#external-events div.external-event").each(function(){var d={title:$.trim($(this).text())};$(this).data("eventObject",d);$(this).draggable({zIndex:999,revert:true,revertDuration:0})});var b=new Date();var c=b.getDate();var a=b.getMonth();var e=b.getFullYear();$("#calendar").fullCalendar({header:{left:"prev,next",center:"title",right:"month,agendaWeek,agendaDay"},editable:true,droppable:true,drop:function(g,h){var f=$(this).data("eventObject");var d=$.extend({},f);d.start=g;d.allDay=h;$("#calendar").fullCalendar("renderEvent",d,true);if($("#drop-remove").is(":checked")){$(this).remove()}},events:[{title:"日事件",start:new Date(e,a,1)},{title:"长事件",start:new Date(e,a,c-5),end:new Date(e,a,c-2),},{id:999,title:"重复事件",start:new Date(e,a,c-3,16,0),allDay:false,},{id:999,title:"重复事件",start:new Date(e,a,c+4,16,0),allDay:false},{title:"会议",start:new Date(e,a,c,10,30),allDay:false},{title:"午餐",start:new Date(e,a,c,12,0),end:new Date(e,a,c,14,0),allDay:false},{title:"生日",start:new Date(e,a,c+1,19,0),end:new Date(e,a,c+1,22,30),allDay:false},{title:"打开百度",start:new Date(e,a,28),end:new Date(e,a,29),url:"http://baidu.com/"}],})});
  102. </script>
  103. </body>
  104. </html>