calendar.html.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * The view file of calendar module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2012 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license business(商业软件)
  7. * @author Yangyang Shi <shiyangyang@cnezsoft.com>
  8. * @package calendar
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. css::import($jsRoot . 'zui/calendar/zui.calendar.min.css');
  13. js::import($jsRoot . 'zui/calendar/zui.calendar.min.js');
  14. ?>
  15. <style>
  16. .calendar .event.with-action {position: relative; padding-right: 30px;}
  17. .calendar .event.with-action .action {position: absolute; right: 0; top: 0;}
  18. .calendar .event.with-action .action > a {display: inline-block; padding: 0 4px; color: #fff; background-color: rgba(0,0,0,0.25); line-height: 19px; padding: 0 6px;}
  19. .calendar .event.with-action .action > a:hover {background-color: rgba(0,0,0,0.5)}
  20. td.cell-day {vertical-align: top !important;}
  21. .calendar .table>thead>tr>th {text-align:center !important; padding-bottom:2px !important;}
  22. </style>
  23. <script>
  24. function exportCalendar(href)
  25. {
  26. var thisDate = new Date($('.calendar td.current-month:first').find('div.day').attr('data-date'));
  27. var year = thisDate.getFullYear();
  28. var month = thisDate.getMonth() + 1;
  29. var thisDate = year + '_' + month + '_01';
  30. var href = href.replace("_date_", thisDate);
  31. $.zui.modalTrigger.show({type: 'iframe', url: href, width: 600, position:150});
  32. }
  33. function refreshCalendar()
  34. {
  35. displayDate = 0;
  36. calendar.display();
  37. }
  38. </script>