Changeset 507 for trunk/statistic.php
- Timestamp:
- Feb 15, 2013, 10:12:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/statistic.php
r506 r507 12 12 global $System; 13 13 14 $LanguageId = LoadLanguageIdParameter(); 14 $Output = ''; 15 if(!isset($_SESSION['language'])) 16 { 17 if($User->Licence(LICENCE_USER)) 18 { 19 $_SESSION['language'] = $User->Language; 20 } else $_SESSION['language'] = 2; 21 } 22 if(array_key_exists('language', $_GET)) $_SESSION['language'] = LoadLanguageIdParameter(); 23 15 24 $BuildNumber = GetBuildNumber($_SESSION['StatVersion']); 16 25 … … 18 27 $Query = ''; 19 28 $DbResult = $System->Database->query($GroupListQuery); 29 if($DbResult->num_rows > 0) 30 { 20 31 while($DbRow = $DbResult->fetch_assoc()) 21 32 { 22 33 $Query .= 'SELECT (SELECT COUNT(DISTINCT(`Entry`)) FROM ('. 23 34 ' SELECT `T`.`Id`, `T`.`Entry` FROM `'.$DbRow['TablePrefix'].'` AS `T`'. 24 ' WHERE (`Complete` = 1) AND (`Language`='.$ LanguageId.') AND (`VersionStart` <= '.$BuildNumber.') AND (`VersionEnd` >= '.$BuildNumber.')'.35 ' WHERE (`Complete` = 1) AND (`Language`='.$_SESSION['language'].') AND (`VersionStart` <= '.$BuildNumber.') AND (`VersionEnd` >= '.$BuildNumber.')'. 25 36 ') AS `C1`) AS `Translated`, '. 26 37 '(SELECT COUNT(DISTINCT(`Entry`)) FROM ('. … … 34 45 $DbRow = $DbResult->fetch_row(); 35 46 $PageList = GetPageList($DbRow[0]); 36 $Output = $PageList['Output'];47 $Output .= $PageList['Output']; 37 48 38 49 $Output .= '<table class="BaseTable">'; … … 60 71 $Output .= '<tr><td><strong>Celkem</strong></td><td><strong>'.$Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'.ProgressBar(150, $TotalCount).'</strong></td></tr>'. 61 72 '</table>'; 73 } 62 74 return($Output); 63 75 }
Note:
See TracChangeset
for help on using the changeset viewer.