Changeset 328
- Timestamp:
- Feb 21, 2010, 12:04:54 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/img_statistic.php
r327 r328 37 37 $Percent = substr($Percent, 0, 5); 38 38 39 $Database->SQLCommand('UPDATE '.$Config['Database']['Database'].'.group SET BuffPercent = '.$Percent.' WHERE Id = '.$GroupId);40 41 42 39 $PercentBar = $Percent * 4; 43 40 $NotTran = $NumberAJ - $NumberTranslate; … … 49 46 imagefilledrectangle($Image, 0, 0, 400, 31, $Color1); 50 47 imagefilledrectangle($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);54 48 $FontSize = 10; 55 49 if(($NumberPerDay > 0) and ($team == '') and ($language == '') and ($NotTran > 0)) … … 70 64 71 65 ?> 66 67 -
trunk/statistic.php
r327 r328 13 13 if($Language['Enabled'] == 1) echo(' <a href="?language='.$Language['Id'].'">'.$Language['Name'].'</a>'); 14 14 15 $SortList = $TranslationTree;16 15 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) 16 foreach($TranslationTree as $Group) 35 17 if($Group['TablePrefix'] != '') 36 18 echo('<div class="state-image">
Note:
See TracChangeset
for help on using the changeset viewer.