neilmcd82

Dashboard Calendar

Aug 14th, 2012
930
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. function ISODateString(d){
  5.  function pad(n){return n<10 ? '0'+n : n}
  6. return d.getUTCFullYear()+'-'
  7.      + pad(d.getUTCMonth()+1)+'-'
  8.      + pad(d.getUTCDate())+'T'
  9.      + pad(d.getUTCHours())+':'
  10.      + pad(d.getUTCMinutes())+':'
  11.      + pad(d.getUTCSeconds())+'Z'}
  12.  
  13. function loadCal(calType){
  14.     var today = new Date();
  15.     var formattedDate = ISODateString(today);
  16.     var objFrame = document.getElementById("calendar_iframe");
  17.     var calSource = "/calendar/" + calType.toString() +".aspx?date=" + formattedDate;
  18.     objFrame.src=calSource;
  19. }
  20. </script>
  21. </head>
  22. <body onload="loadCal('Month')">
  23. <table width="100%" height="100%" cellspacing="0" cellpadding="0">
  24. <tr>
  25. <a href="#" onclick="loadCal('Day')">Day </a>
  26. <a href="#" onclick="loadCal('Week')">Week </a>
  27. <a href="#" onclick="loadCal('Month')">Month</a>
  28. <td>
  29. </td>
  30. </tr>
  31. <tr id="topTR" >
  32. <td>
  33. <table class="ms-crm-Home-Cal-Body" width="100%" height="100%" style="table-layout:fixed;" cellspacing="0" cellpadding="0">
  34. <col /><col width="0" />
  35. <tr height="0" class="ms-crm-Home-Cal-Header">
  36. <td class="ms-crm-Home-Cal-Header ms-crm-Bold-Header"><span id="CalendarTitle"></span></td>
  37. <td class="ms-crm-Home-Cal-Refresh"></td>
  38. </tr>
  39. <tr height="100%">
  40. <td colspan="2">
  41. <table width="100%" height="100%" cellspacing="0" cellpadding="0">
  42. <col /><col width="0" />
  43. <tr>
  44. <td class="ms-crm-Home-Cal-View">
  45. <table width="100%" height="100%" cellspacing="0" cellpadding="0">
  46. <tr>
  47. <td>
  48. <iframe name ="calendar_iframe" frameborder="0" width="100%" height="92%">
  49. </iframe>
  50. </td>
  51. </tr>
  52. </table>
  53. </td>
  54. <td style="padding:0px;" width="0" align="center" valign="top">
  55. <div id="MiniCalendar" class="ms-crm-Home-Cal-MiniCal" style="display: none"></div>
  56. <br />
  57. <div class="ms-crm-Home-Cal-Views-Title ms-crm-Bold-Header" style="display: none"></div>
  58. <table id="CalendarViews" class="ms-crm-Home-Cal-Views-Items" width="0%" cellspacing="0" cellpadding="0">
  59. <tr id="MonthView">
  60. <td class="ms-crm-CalendarViews"><span class="ms-crm-AlignTo16Image"></span></td>
  61. </tr>
  62. <tr id="WeekView">
  63. <td class="ms-crm-CalendarViews"><span class="ms-crm-AlignTo16Image"></span></td>
  64. </tr>
  65. <tr id="DayView">
  66. <td class="ms-crm-CalendarViews"><span class="ms-crm-AlignTo16Image"></span></td>
  67. </tr>
  68. </table>
  69. <br />
  70. <div id="CreateNewArea" class="ms-crm-Home-Cal-CreateNew-Title ms-crm-Bold-Header" style="display: none">
  71. <table width="100%" cellspacing="1" cellpadding="0" class="ms-crm-Home-Cal-CreateNew-Items">
  72. <tr id="CreateAppointmentRow">
  73. <td class="ms-crm-CalendarViews"><nobr></nobr></td>
  74. </tr>
  75. <tr>
  76.     <td class="ms-crm-CalendarViews"><nobr></nobr></td>
  77. </tr>
  78.  
  79. </table>
  80. </div>
  81.  
  82. <br />
  83. </td>
  84. </tr>
  85. </table>
  86. </td>
  87. </tr>
  88. </table>
  89. </td>
  90. </tr>
  91. </table>
  92. </body>
  93. </html>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×