Advertisement
Guest User

Untitled

a guest
Feb 28th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <head>
  4. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  5. <title></title>
  6. <!-- Google Maps source -->
  7. <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
  8.  
  9. <!-- Active js scripts -->
  10. <script src="../../codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
  11. <script src="../../codebase/ext/dhtmlxscheduler_serialize.js" type="text/javascript" charset="utf-8"></script>
  12. <script src="../../codebase/ext/dhtmlxscheduler_recurring.js" type="text/javascript" charset="utf-8"></script>
  13. <script src="../../codebase/ext/dhtmlxscheduler_map_view.js" type="text/javascript" charset="utf-8"></script>
  14.  
  15. <!-- Sprache -->
  16. <script src="../../sources/locale_de.js" type="text/javascript" charset="utf-8"></script>
  17. <script src="../../sources/locale_recurring_de.js" type="text/javascript" charset="utf-8"></script>
  18.  
  19. <!-- CSS definieren -->
  20. <link rel="stylesheet" href="../../codebase/dhtmlxscheduler_glossy.css" type="text/css" media="screen" title="no title" charset="utf-8">
  21.  
  22.  
  23.  
  24. <style type="text/css" media="screen">
  25. html, body{
  26. margin:0px;
  27. padding:0px;
  28. height:100%;
  29. overflow:hidden;
  30. }
  31. .dhx_cal_navline input{
  32. width:80px;
  33. position:absolute;
  34. top:1px;
  35. font-family:Tahoma;
  36. font-weight:8pt;
  37. }
  38. </style>
  39.  
  40. </head>
  41. <script type="text/javascript" charset="utf-8">
  42. function init() {
  43. scheduler.config.xml_date="%Y-%m-%d %H:%i";
  44. scheduler.config.prevent_cache = true;
  45.  
  46. scheduler.init('scheduler_here',new Date(2012,1,20),"month");
  47. scheduler.data_attributes = function(){
  48. var empty = function(a){ return a||""; }
  49. return [["id"],
  50. ["text"],
  51. ["start_date",scheduler.templates.xml_format],
  52. ["end_date",scheduler.templates.xml_format],
  53. ["rec_type",empty],
  54. ["event_length",empty],
  55. ["event_pid",empty],
  56. ["event_location",empty]];
  57. }
  58. scheduler.load("php/data_r.xml");
  59. }
  60.  
  61. function show(){
  62. alert(scheduler.toXML());
  63. }
  64. function save(){
  65. var form = document.getElementById("xml_form");
  66. form.elements.data.value = scheduler.toXML();
  67. form.submit();
  68. }
  69.  
  70. // updating dates to display on before view change
  71. scheduler.attachEvent("onBeforeViewChange", function(old_mode, old_date, new_mode, new_date) {
  72. scheduler.config.map_start = scheduler.date.month_start(new Date((new_date||old_date).valueOf()));
  73. scheduler.config.map_end = scheduler.date.add(scheduler.config.map_start, 1, "month");
  74. return true;
  75. });
  76.  
  77. // defining add function for prev/next arrows
  78. scheduler.date.add_map = function(date, inc) {
  79. return scheduler.date.add(date, inc, "month");
  80. };
  81.  
  82. // defining date header
  83. var format = scheduler.date.date_to_str("%Y-%m-%d");
  84. scheduler.templates.map_date = function(start, end, mode){
  85. return format(start)+" — "+format(end);
  86. };
  87.  
  88. // Map-Tab
  89.  
  90. scheduler.locale.labels.map_tab = "Map";
  91. scheduler.locale.labels.section_location = "Location";
  92.  
  93. scheduler.xy.map_date_width = 180; // date column width
  94. scheduler.xy.map_description_width = 400; // description column width
  95.  
  96.  
  97. scheduler.config.lightbox.sections=[
  98. { name:"description", height:50, map_to:"text", type:"textarea", focus:true },
  99. { name:"location", height:43, map_to:"event_location", type:"textarea" },
  100. { name:"time", height:72, type:"time", map_to:"auto"}
  101. ]
  102.  
  103. scheduler.config.map_inital_zoom = 8;
  104.  
  105. scheduler.init('scheduler_here',new Date(2010,8,1),"map");
  106. scheduler.load("php/events_map_view.php");
  107.  
  108. dp = new dataProcessor("php/events_map_view.php");
  109. dp.init(scheduler);
  110.  
  111.  
  112.  
  113. </script>
  114.  
  115. <body onload="init();">
  116. <form action="./php/xml_writer_r.php" id="xml_form" method="post" target="hidden_frame" accept-charset="utf-8">
  117. <input type="hidden" name="data" value="" id="data">
  118. </form>
  119. <iframe src='about:blank' frameborder="0" style="width:0px; height:0px;" id="hidden_frame" name="hidden_frame"></iframe>
  120. <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
  121. <div class="dhx_cal_navline">
  122. <div class="dhx_cal_prev_button">&nbsp;</div>
  123. <div class="dhx_cal_next_button">&nbsp;</div>
  124. <div class="dhx_cal_today_button"></div>
  125. <div class="dhx_cal_date"></div>
  126. <input type="button" name="save" value="Speichern" onclick="save()" style="right:380px;">
  127. <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
  128. <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
  129. <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
  130. <div class="dhx_cal_tab" name="map_tab" style="right:280px;"></div>
  131. </div>
  132. <div class="dhx_cal_header">
  133. </div>
  134. <div class="dhx_cal_data">
  135. </div>
  136. </div>
  137. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement