source: schedule/Module/calendar.php@ 17428

Last change on this file since 17428 was 17422, checked in by tanio, 11 years ago
File size: 2.7 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html>
3 <head>
4 <link type="text/css" rel="stylesheet" href="Module/src/css/jscal2.css" />
5 <link type="text/css" rel="stylesheet" href="Module/src/css/border-radius.css" />
6
7 <link id="skin-win2k" title="Win 2K" type="text/css" rel="alternate stylesheet" href="Module/src/css/win2k/win2k.css" />
8
9 <script src="js/highcharts.js"></script>
10 <script src="js/exporting.js"></script>
11
12 <script src="Module/src/js/jscal2.js"></script>
13 <script src="Module/src/js/unicode-letter.js"></script>
14 <script src="js/chart.js"></script>
15 <script src="js/Graph.js"></script>
16
17 <script src="Module/src/js/lang/en.js"></script>
18 <style type="text/css">
19 .highlight { color: #0f0 !important; font-weight: bold; }
20 </style>
21
22 </head>
23 <body style="background-color: #fff">
24
25 <table>
26 <tr>
27 <td valign="top" style="width: 30em;">
28 <div id="cont"></div>
29 <script type="text/javascript">
30 var DATE_INFO = {
31 <?php
32 $sqlSched=mysql_query("SELECT*FROM schedule");
33 $SchedCnt=mysql_num_rows($sqlSched);
34 $src=1;
35 while($rowSched=mysql_fetch_array($sqlSched))
36 {
37 $timestamp=strtotime($rowSched['fStart']);
38 if($SchedCnt==$src)
39 {
40 echo date("Ymd",$timestamp);?>:{klass: "highlight"}<?php
41 }
42 else
43 {
44 echo date("Ymd",$timestamp);?>:{klass: "highlight"},<?php
45 }
46 $src++;
47 ?>
48
49 <?php
50 }
51 ?>
52 };
53
54 function getDateInfo(date, wantsClassName) {
55 var as_number = Calendar.dateToInt(date);
56 return DATE_INFO[as_number];
57 };
58 var CAL = Calendar.setup({
59 cont: "cont",
60 selectionType: Calendar.SEL_MULTIPLE,
61 showTime: 24,
62 dateInfo:getDateInfo
63 })
64 </script>
65 </td>
66 <tr>
67 <td>
68 <script type="text/javascript">
69 $(document).ready(function(){
70 Graph();
71 });
72 var day;
73 var year;
74 var month;
75 CAL.addEventListener("onSelect", function(){
76 day =this.selection.print("%d").join("\n");
77 month =this.selection.print("%m").join("\n");
78 year =this.selection.print("%Y").join("\n");
79 GetData();
80 GetDate(day,month,year);
81 $('#Scheduling').load('Module/Scheduling.php?days='+year+'-'+month+'-'+day);
82 });
83 </script>
84 </td>
85 </tr>
86
87 </table>
88 </td>
89 </tr>
90 </table>
91 </body>
92</html>
93
94
Note: See TracBrowser for help on using the repository browser.