Changeset 16429 for schedule/Module/calendar.php
- Timestamp:
- 05/29/13 14:54:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16411 r16429 109 109 var val = []; 110 110 var T = []; 111 var src= 0;111 int sources = 0; 112 112 113 for(s rc=0;src<source.length;src++)113 for(sources=0;src<source.length;sources++) 114 114 { 115 115 if (window.XMLHttpRequest) … … 128 128 { 129 129 130 Data[s rc]= new Array();131 //Data[s rc]= new Array();130 Data[sources]= new Array(); 131 //Data[sources]= new Array(); 132 132 133 133 line=xmlhttp.responseText.split('\n'); … … 135 135 { 136 136 rows=line[row].split(','); 137 Data[s rc].push(rows[4]);137 Data[sources].push(rows[4]); 138 138 } 139 139 140 140 141 GraphData(Data, s rc);142 //document.getElementById('data').innerHTML=Data[s rc];141 GraphData(Data, sources); 142 //document.getElementById('data').innerHTML=Data[sources]; 143 143 } 144 144 } 145 145 146 xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[s rc])+"&time="+year+"-"+month+"-"+day,true);146 xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[sources])+"&time="+year+"-"+month+"-"+day,true); 147 147 xmlhttp.send(); 148 document.getElementById('data').innerHTML=source.length+""+s rc;148 document.getElementById('data').innerHTML=source.length+""+sources; 149 149 } 150 150 … … 155 155 /*for(ii=0;ii<Data[i].length;ii++) 156 156 {*/ 157 document.getElementById('day').innerHTML=array[i ];157 document.getElementById('day').innerHTML=array[index]; 158 158 /*}*/ 159 159 }
Note:
See TracChangeset
for help on using the changeset viewer.