Changeset 16437 for schedule/Module/calendar.php
- Timestamp:
- 05/29/13 15:12:19 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16436 r16437 111 111 //int sources = 0; 112 112 113 //for(sources=0;sources<source.length;sources++)114 //{113 /for(sources=0;sources<source.length;sources++) 114 { 115 115 if (window.XMLHttpRequest) 116 116 {// code for IE7+, Firefox, Chrome, Opera, Safari … … 127 127 if (xmlhttp.readyState==4 && xmlhttp.status==200) 128 128 { 129 130 Data[0]= new Array(); 129 for(srcs=0;srcs<sources;srcs++) 130 { 131 Data[srcs]= new Array(); 131 132 //Data[sources]= new Array(); 132 133 … … 135 136 { 136 137 rows=line[row].split(','); 137 Data[ 0].push(rows[4]);138 Data[srcs].push(rows[4]); 138 139 } 139 140 140 141 GraphData(Data, 0);141 } 142 GraphData(Data,srcs); 142 143 //document.getElementById('data').innerHTML=Data[sources]; 143 144 } 144 145 } 145 146 146 xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[ 0])+"&time="+year+"-"+month+"-"+day,true);147 xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[sources])+"&time="+year+"-"+month+"-"+day,true); 147 148 xmlhttp.send(); 148 149 document.getElementById('data').innerHTML=source.length+""+source[0]; 149 //}150 } 150 151 151 152 function GraphData(array, index)
Note:
See TracChangeset
for help on using the changeset viewer.