Changeset 16686
- Timestamp:
- 06/04/13 15:20:33 (11 years ago)
- Location:
- schedule
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/Scheduling.php
r16683 r16686 4 4 ?> 5 5 <table width="100%" id="TableHolder" > 6 <?php echo $_GET['year'],'-',$_GET['month'],'-',$_GET['day'];?> 6 7 7 <tr> 8 8 <td width="184" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Time</td> -
schedule/function/function.php
r16683 r16686 58 58 ?> 59 59 $('#save').click(function(){ 60 alert(getDate());60 61 61 62 62 var InputValue = []; -
schedule/include/factdb.php
r16684 r16686 2 2 3 3 4 //$con=mysql_connect("localhost","root","");4 //$con=mysql_connect("localhost","root",""); 5 5 $con=mysql_connect("localhost","scheduletest","t3stsched"); 6 6 mysql_select_db("sandboxschedule",$con); -
schedule/js/chart.js
r16685 r16686 11 11 } 12 12 } 13 function getDate(day){ 14 15 var days = day; 16 return days; 17 } 13 18 14 19 15 function GetXMLData(index, source) … … 32 28 //alert("request ok"); 33 29 line=XML.responseText.split('\n'); 34 dataSource.push(new Array()); 35 n = dataSource.length-1; 36 for(row=0;row<line.length;row++) 37 { 38 rows=line[row].split(','); 39 dataSource[n].push(parseFloat(rows[4])||parseFloat('0')); 40 } 30 dataSource.push(line); 41 31 if (dataSource.length == source.length) 42 32 { … … 94 84 }; 95 85 //This function splits the lines of data per data source 96 //var dataGraph = new Array(source.length);86 var dataGraph = new Array(source.length); 97 87 var Time = new Array(source.length); 98 88 var Temp = new Array(); … … 103 93 for (i=0; i<source.length; i++) 104 94 { 105 //dataGraph[i] = new Array(); //dataGraph contains the individual points for each source i95 dataGraph[i] = new Array(); //dataGraph contains the individual points for each source i 106 96 Time[i] = new Array(); // Time contains the individual time for each sources. 107 97 chart.addSeries({name:source[i], data:[]}); // created a series of data and add name of displayed source … … 110 100 //rows=line[row].split(','); 111 101 Temp[row]=dataSource[i][0]; 112 //dataGraph[i].push(parseFloat(rows[4])||parseFloat('0'));102 dataGraph[i].push(parseFloat(rows[4])||parseFloat('0')); 113 103 for(T=0;T<Temp.length;T++) 114 104 { … … 181 171 182 172 } 183 for(Graph=0;Graph<data Source[i].length;Graph++)173 for(Graph=0;Graph<dataGraph[i].length;Graph++) 184 174 { 185 175 chart.series[i].addPoint({ // series[0] means index of zero in data; 186 176 x:Time[i][Graph], // Time 187 y:data Source[i][Graph] // Value177 y:dataGraph[i][Graph] // Value 188 178 }) 189 179 }
Note:
See TracChangeset
for help on using the changeset viewer.