Changeset 16402 for schedule/Module


Ignore:
Timestamp:
05/28/13 15:31:00 (11 years ago)
Author:
tanio
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • schedule/Module/calendar.php

    r16401 r16402  
    122122                                                                xmlhttp.onreadystatechange=function()
    123123                                                                  {
     124                                                                  for(src=0;src<source.length;src++)
     125                                                                  {
    124126                                                                  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    125127                                                                        {
    126                                                                                
    127                                                                                         Data[src]= new Array();
     128                                                                                        if(src==0)
     129                                                                                        {
     130                                                                                                Data[src]= new Array();
     131                                                                                               
     132                                                                                                line=xmlhttp.responseText.split('\n');
     133                                                                                                for(row=0;row<line.length;row++)
     134                                                                                                {
     135                                                                                                        rows=line[row].split(',');
     136                                                                                                        Data[0].push(rows[4]);
     137                                                                                                }
     138                                                                                        }
     139                                                                                        else
     140                                                                                        {
     141                                                                                                Data[src]= new Array();
     142                                                                                               
     143                                                                                                line=xmlhttp.responseText.split('\n');
     144                                                                                                for(row=0;row<line.length;row++)
     145                                                                                                {
     146                                                                                                        rows=line[row].split(',');
     147                                                                                                        Data[1].push(rows[4]);
     148                                                                                                }
    128149                                                                                       
    129                                                                                         line=xmlhttp.responseText.split('\n');
    130                                                                                         for(row=0;row<line.length;row++)
    131                                                                                         {
    132                                                                                                 rows=line[row].split(',');
    133                                                                                                 Data[0].push(rows[4]);
    134150                                                                                        }
    135                                                                                        
    136151                                                                                        GraphData(Data, src);
    137152                                                                                        //document.getElementById('data').innerHTML=Data[src];
     
    142157                                                                xmlhttp.send();
    143158                                                                document.getElementById('data').innerHTML=source.length+""+src;
    144                                                        
     159                                                                }
    145160                                                       
    146161                                                        function GraphData(array, index)
Note: See TracChangeset for help on using the changeset viewer.