Changeset 292 for trunk/img_statistic.php
- Timestamp:
- Dec 27, 2009, 8:19:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/img_statistic.php
r289 r292 18 18 } else $language = ''; 19 19 20 if(array_key_exists('user', $_GET))21 {22 $DbResult = $Database->SQLCommand('SELECT `user`,`ExportSetting` FROM `user` WHERE ID='.($_GET['user'] * 1));23 if(mysql_num_rows($DbResult) > 0)24 {25 $User = mysql_fetch_assoc($DbResult);26 $ExportSetting = unserialize($User['ExportSetting']);27 $SelectedUsers = '';28 foreach($ExportSetting['users-selection'] as $Item)29 $SelectedUsers .= ','.$Item;30 $SelectedUsers = substr($SelectedUsers, 1);31 $user_sql = ' AND `User` IN ('.$SelectedUsers.')';32 } else $user_sql = '';33 } else $user_sql = '';34 35 20 36 21 $ID = mysql_fetch_row($Database->SQLCommand('SELECT MAX(`VersionEnd`) FROM '.$Group['TablePrefix'])); 37 22 $BuildNumber_max = $ID[0]; 38 23 39 $where = 'VersionEnd = '.$BuildNumber_max.' AND (`Language` <> 0) AND (`Complete` = 1) '.$team.$language .$user_sql;24 $where = 'VersionEnd = '.$BuildNumber_max.' AND (`Language` <> 0) AND (`Complete` = 1) '.$team.$language; 40 25 $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(distinct(`entry`)) FROM '.$Group['TablePrefix'].' WHERE '.$where)); 41 26 $NumberTranslate = $ID[0]; … … 68 53 ImageTTFText($Image, $FontSize, 0, 5, 29, $Color3, $FontFile, getmonthyears($TimeToTranslate)); 69 54 } 70 if($user_sql <> '')71 {72 ImageTTFText($Image, $FontSize, 0, 5, 13, $Color3, $FontFile, 'Statistika výběru');73 ImageTTFText($Image, $FontSize, 0, 5, 29, $Color3, $FontFile, 'uživatele: '.$User['user'] );74 }75 55 ImageTTFText($Image, $FontSize, 0, 140, 13, $Color3, $FontFile, $NumberTranslate.'/'.$NumberAJ); 76 56 ImageTTFText($Image, $FontSize, 0, 240, 13, $Color3, $FontFile, $Group['Name']);
Note:
See TracChangeset
for help on using the changeset viewer.