Changeset 328


Ignore:
Timestamp:
Feb 21, 2010, 12:04:54 AM (15 years ago)
Author:
maron
Message:

Oprava posledního nechtěného commitu 2 souborů

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/img_statistic.php

    r327 r328  
    3737$Percent = substr($Percent, 0, 5);
    3838
    39 $Database->SQLCommand('UPDATE '.$Config['Database']['Database'].'.group SET BuffPercent = '.$Percent.' WHERE Id = '.$GroupId);
    40 
    41 
    4239$PercentBar = $Percent * 4;
    4340$NotTran = $NumberAJ - $NumberTranslate;
     
    4946imagefilledrectangle($Image, 0, 0, 400, 31, $Color1);
    5047imagefilledrectangle($Image, 0, 0, $PercentBar, 59, $Color2);
    51 imagefilledrectangle($Image, 0, 0, 400, 0, $Color3);
    52 imagefilledrectangle($Image, 0, 31, 0, 0, $Color3);
    53 imagefilledrectangle($Image, 0, 31, 400, 31, $Color3);
    5448$FontSize = 10;
    5549if(($NumberPerDay > 0) and ($team == '') and ($language == '') and ($NotTran > 0))
     
    7064           
    7165?>
     66
     67
  • trunk/statistic.php

    r327 r328  
    1313if($Language['Enabled'] == 1) echo(' <a href="?language='.$Language['Id'].'">'.$Language['Name'].'</a>');
    1414
    15 $SortList = $TranslationTree;
    1615
    17   $last = 1;
    18 
    19 for ($y = 0; $y < 1000; $y = $y + 1) {
    20   foreach($TranslationTree as $Group)
    21   { 
    22     $i = $Group['Id'];
    23     if ($i != 1)
    24      if ($SortList[$last]['BuffPercent'] > $SortList[$i]['BuffPercent']) {
    25        echo($SortList[$last]['BuffPercent'].'-'.$SortList[$i]['BuffPercent'].' ');
    26        $tmp = $SortList[$last];
    27        $SortList[$last] = $SortList[$i];
    28        $SortList[$i] = $tmp;
    29      }
    30      $last = $i;
    31   }
    32   $last = 1;
    33 }
    34 foreach($SortList as $Group)
     16foreach($TranslationTree as $Group)
    3517  if($Group['TablePrefix'] != '')
    3618  echo('<div class="state-image">
Note: See TracChangeset for help on using the changeset viewer.