- Timestamp:
- 05/10/13 23:13:34 (12 years ago)
- Location:
- schedule
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r15580 r15584 67 67 if (xmlhttp.readyState==4 && xmlhttp.status==200) 68 68 { 69 var lines =xmlhttp.responseText.split('\n');70 var arr = [];71 var Time = [];72 var h = [];73 for(var row=0;row<lines.length; row++)74 {75 var f = lines[row].split(',');76 Time[row]=f[0];77 arr[row]=f[4];78 for(var t=0; t<Time.length;t++)79 {80 var x=Time[t].split('T');81 h[t]=x[1];82 }83 }84 //source['Mrk 421']=arr;85 document.getElementById('data').innerHTML=arr+'Time'+h;69 var lines =xmlhttp.responseText.split('\n'); 70 var arr = [,]; 71 var Time = []; 72 var h = []; 73 for(var row=0;row<lines.length; row++) 74 { 75 var f = lines[row].split(','); 76 Time[row]=f[0]; 77 arr[row]=f[0][4]; 78 /*for(var t=0; t<Time.length;t++) 79 { 80 var x=Time[t].split('T'); 81 h[t]=x[1]; 82 }*/ 83 } 84 //source['Mrk 421']=arr; 85 document.getElementById('data').innerHTML=arr+'Time'; 86 86 87 87 } -
schedule/chart.php
r15583 r15584 3 3 <script src="js/exporting.js"></script> 4 4 <?php 5 include ' Graph.php';5 include 'function/Graph.php'; 6 6 ?> 7 7 <script type="text/javascript"> 8 document.getElementById('Time').innerHTML=arr;8 //document.getElementById('Time').innerHTML=arr; 9 9 </script> 10 10 <div id="Time" align="center"><?php echo $_GET['year'],'-',$_GET['month'],'-',$_GET['day']; ?></div>
Note:
See TracChangeset
for help on using the changeset viewer.