Advertisement
Guest User

Untitled

a guest
Feb 28th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.88 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.       }
  57.       scheduler.load("php/data_r.xml");
  58.    }
  59.    
  60.    function show(){
  61.       alert(scheduler.toXML());
  62.    }
  63.    function save(){
  64.       var form = document.getElementById("xml_form");
  65.       form.elements.data.value = scheduler.toXML();
  66.       form.submit();
  67.    }
  68.    
  69.     // updating dates to display on before view change
  70.     scheduler.attachEvent("onBeforeViewChange", function(old_mode, old_date, new_mode, new_date) {
  71.     scheduler.config.map_start = scheduler.date.month_start(new Date((new_date||old_date).valueOf()));
  72.     scheduler.config.map_end = scheduler.date.add(scheduler.config.map_start, 1, "month");
  73.     return true;
  74.     });
  75.  
  76.     // defining add function for prev/next arrows
  77.     scheduler.date.add_map = function(date, inc) {
  78.         return scheduler.date.add(date, inc, "month");
  79.     };
  80.  
  81.     // defining date header
  82.     var format = scheduler.date.date_to_str("%Y-%m-%d");
  83.     scheduler.templates.map_date = function(start, end, mode){
  84.         return format(start)+" — "+format(end);
  85.     };
  86.  
  87.     // Map-Tab
  88.     scheduler.locale.labels.map_tab = "Map";
  89.     scheduler.locale.labels.section_location = "Location";
  90.    
  91.     scheduler.xy.map_date_width = 180; // date column width
  92.     scheduler.xy.map_description_width = 400; // description column width
  93.    
  94.    
  95.     scheduler.config.lightbox.sections=[   
  96.         { name:"description", height:50, map_to:"text", type:"textarea", focus:true },
  97.         { name:"location", height:43, map_to:"event_location", type:"textarea"  },
  98.         { name:"time", height:72, type:"time", map_to:"auto"}  
  99.     ]
  100.    
  101.     scheduler.config.map_inital_zoom = 8;
  102.    
  103.     scheduler.init('scheduler_here',new Date(2010,8,1),"map");
  104.     scheduler.load("php/events_map_view.php");
  105.  
  106.     dp = new dataProcessor("php/events_map_view.php");
  107.     dp.init(scheduler);
  108.  
  109. </script>
  110.  
  111. <body onload="init();">
  112.     <form action="./php/xml_writer_r.php" id="xml_form" method="post" target="hidden_frame" accept-charset="utf-8">
  113.         <input type="hidden" name="data" value="" id="data">
  114.     </form>
  115.     <iframe src='about:blank' frameborder="0" style="width:0px; height:0px;" id="hidden_frame" name="hidden_frame"></iframe>
  116.     <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
  117.         <div class="dhx_cal_navline">
  118.             <div class="dhx_cal_prev_button">&nbsp;</div>
  119.             <div class="dhx_cal_next_button">&nbsp;</div>
  120.             <div class="dhx_cal_today_button"></div>
  121.             <div class="dhx_cal_date"></div>
  122.             <input type="button" name="save" value="Speichern" onclick="save()" style="right:380px;">
  123.             <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
  124.             <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
  125.             <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
  126.             <div class="dhx_cal_tab" name="map_tab" style="right:280px;"></div>
  127.         </div>
  128.         <div class="dhx_cal_header">
  129.         </div>
  130.         <div class="dhx_cal_data">
  131.         </div>     
  132.     </div>
  133. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement