Changeset 16070


Ignore:
Timestamp:
05/23/13 04:20:44 (11 years ago)
Author:
tanio
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • schedule/Transaction/insert.php

    r16069 r16070  
    3434                                                for($j=0;$j<=$new_limit-1;$j++){
    3535
    36                                                         echo $Times[$i];
     36                                                        echo $Times[$j];
    3737                                                        echo "sgsdgdsg";
    38                                                         $ex_counter = explode(":",$Times[$i]);
    39                                                         //$ex_counter2 = explode(" ",$ex_counter[1]);
    40                                                        
     38                                                        $ex_counter = explode(":",$Times[$j]);
     39                                       
    4140                                                        $counter[$j] = $ex_counter[0];
    4241                                                                       
     
    4443                                                                        echo "<br />";
    4544                                                if($new_limit > 0){
    46                                                         for($j=0;$j<=$new_limit-1;$j++){               
     45                                                        for($j=0;$j<=$new_limit;$j++){         
    4746                                                                       
    48                                                                 for($y=0;$y<=$new_limit-1;$y++){
     47                                                                for($y=0;$y<=$new_limit;$y++){
     48                                                                        if($y > 0){
     49                                                                                if($counter[$j]==$counter[$y]){
     50                                                                               
     51                                                                                        if(empty($by_count[$y]) || $by_count[$y] == 0){
    4952                                                                       
    50                                                                         if($counter[$j]==$counter[$y+1]){
     53                                                                                                $by_count[$y] = $y;
     54                                                                                        }else{
     55                                                                                       
     56                                                                                                 $by_count[$y] = 0;
     57                                                                                        }
     58                                                                                }
     59                                                                        }else{
    5160                                                                       
    52                                                                                 if(empty($by_count[$j])){
    5361                                                                       
    54                                                                                         $by_count[$j] = $y;
    55                                                                                 }
     62                                                                        $by_count[$y] = 0;
     63                                                                       
     64                                                                       
    5665                                                                        }
    5766                                                                       
Note: See TracChangeset for help on using the changeset viewer.