| 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 |  | 
|---|
| 10 | <script src="Module/src/js/jscal2.js"></script> | 
|---|
| 11 | <script src="Module/src/js/unicode-letter.js"></script> | 
|---|
| 12 |  | 
|---|
| 13 | <script src="Module/src/js/lang/en.js"></script> | 
|---|
| 14 | <style type="text/css"> | 
|---|
| 15 | .highlight { color: #f00 !important; } | 
|---|
| 16 | .highlight2 { color: #0f0 !important; font-weight: bold; } | 
|---|
| 17 | </style> | 
|---|
| 18 |  | 
|---|
| 19 | </head> | 
|---|
| 20 | <body style="background-color: #fff"> | 
|---|
| 21 |  | 
|---|
| 22 | <table> | 
|---|
| 23 | <tr> | 
|---|
| 24 | <td valign="top" style="width: 30em;"> | 
|---|
| 25 | <div id="cont"></div> | 
|---|
| 26 | <script type="text/javascript"> | 
|---|
| 27 | var DATE_INFO = { | 
|---|
| 28 | 20130207: { klass: "highlight", tooltip: "%Y/%m/%d (%A)<br />That was yesterday" }, | 
|---|
| 29 | 20130208: { klass: "highlight", tooltip: "And this is TODAY" } | 
|---|
| 30 | }; | 
|---|
| 31 |  | 
|---|
| 32 | function getDateInfo(date, wantsClassName) { | 
|---|
| 33 | var as_number = Calendar.dateToInt(date); | 
|---|
| 34 | return DATE_INFO[as_number]; | 
|---|
| 35 | }; | 
|---|
| 36 | var CAL = Calendar.setup({ | 
|---|
| 37 | cont: "cont", | 
|---|
| 38 | // weekNumbers: true, | 
|---|
| 39 | selectionType: Calendar.SEL_MULTIPLE, | 
|---|
| 40 | showTime: 24, | 
|---|
| 41 | //fdow     : 1, | 
|---|
| 42 | dateInfo:getDateInfo | 
|---|
| 43 | // titleFormat: "%B %Y" | 
|---|
| 44 | }) | 
|---|
| 45 | </script> | 
|---|
| 46 | </td> | 
|---|
| 47 |  | 
|---|
| 48 | <tr> | 
|---|
| 49 | <td> | 
|---|
| 50 | <script type="text/javascript">//<![CDATA[ | 
|---|
| 51 |  | 
|---|
| 52 | CAL.addEventListener("onSelect", function(){ | 
|---|
| 53 | var day =this.selection.print("%d").join("\n"); | 
|---|
| 54 | var month =this.selection.print("%m").join("\n"); | 
|---|
| 55 | var year =this.selection.print("%Y").join("\n"); | 
|---|
| 56 | var xmlhttp; | 
|---|
| 57 | if (window.XMLHttpRequest) | 
|---|
| 58 | {// code for IE7+, Firefox, Chrome, Opera, Safari | 
|---|
| 59 | xmlhttp=new XMLHttpRequest(); | 
|---|
| 60 | } | 
|---|
| 61 | else | 
|---|
| 62 | {// code for IE6, IE5 | 
|---|
| 63 | xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); | 
|---|
| 64 | } | 
|---|
| 65 | xmlhttp.onreadystatechange=function() | 
|---|
| 66 | { | 
|---|
| 67 | if (xmlhttp.readyState==4 && xmlhttp.status==200) | 
|---|
| 68 | { | 
|---|
| 69 | var lines =xmlhttp.responseText.split('\n'); | 
|---|
| 70 | //var lineN=lines[4].split(','); | 
|---|
| 71 | //var column3=parseFloat(lineN[3]); | 
|---|
| 72 | var arr = []; | 
|---|
| 73 | for(var row=0;row<xmlhttp.responseText; row++) | 
|---|
| 74 | { | 
|---|
| 75 | var f = lines[row].slit(','); | 
|---|
| 76 | //arr[row].time=f[0]; | 
|---|
| 77 | //arr[row].value=f[5]; | 
|---|
| 78 |  | 
|---|
| 79 |  | 
|---|
| 80 | } | 
|---|
| 81 | document.getElementById('data').innerHTML=f;                                                            } | 
|---|
| 82 | } | 
|---|
| 83 | xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+'Mrk+421'+"&time="+year+"-"+month+"-"+day,true); | 
|---|
| 84 | xmlhttp.send(); | 
|---|
| 85 | $('#Graph').load('chart.php?day='+day+"&month="+month+"&year="+year); | 
|---|
| 86 | }); | 
|---|
| 87 |  | 
|---|
| 88 | //]]></script> | 
|---|
| 89 | </td> | 
|---|
| 90 | </tr> | 
|---|
| 91 |  | 
|---|
| 92 | </table> | 
|---|
| 93 | </td> | 
|---|
| 94 | </tr> | 
|---|
| 95 | </table> | 
|---|
| 96 |  | 
|---|
| 97 | </body> | 
|---|
| 98 | </html> | 
|---|