Changeset 455 for trunk/statistic.php
- Timestamp:
- Apr 13, 2010, 10:03:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/statistic.php
r450 r455 8 8 function ShowStatTable() 9 9 { 10 global $ Database, $Config;10 global $System; 11 11 12 12 $LanguageId = LoadLanguageIdParameter(); … … 15 15 $GroupListQuery = 'SELECT `Group`.* FROM `Group`'; 16 16 $Query = ''; 17 $DbResult = $ Database->SQLCommand($GroupListQuery);18 while($DbRow = mysql_fetch_assoc($DbResult))17 $DbResult = $System->Database->query($GroupListQuery); 18 while($DbRow = $DbResult->fetch_assoc()) 19 19 { 20 20 $Query .= 'SELECT (SELECT COUNT(DISTINCT(`Entry`)) FROM ('. … … 29 29 $Query = substr($Query, 0, - 6); 30 30 31 $DbResult = $ Database->SQLCommand('SELECT COUNT(*) FROM ('.$GroupListQuery.') AS `T`');32 $DbRow = mysql_fetch_row($DbResult);31 $DbResult = $System->Database->query('SELECT COUNT(*) FROM ('.$GroupListQuery.') AS `T`'); 32 $DbRow = $DbResult->fetch_row(); 33 33 $PageList = GetPageList($DbRow[0]); 34 34 echo($PageList['Output']); … … 47 47 $Translated = 0; 48 48 $Total = 0; 49 $ ID = $Database->SQLCommand('SELECT *, ROUND(`Translated` / `Total` * 100, 2) AS `Percent` FROM ('.$Query.') AS `C3` '.$Order['SQL'].$PageList['SQLLimit']);50 while($Group = mysql_fetch_assoc($ID))49 $DbResult = $System->Database->query('SELECT *, ROUND(`Translated` / `Total` * 100, 2) AS `Percent` FROM ('.$Query.') AS `C3` '.$Order['SQL'].$PageList['SQLLimit']); 50 while($Group = $DbResult->fetch_assoc()) 51 51 { 52 52 echo('<tr><td>'.$Group['Name'].'</td><td>'.$Group['Translated'].'</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>'); … … 83 83 <div>Počet stáhnutí přeložených textů v SQL souboru: <strong>'); 84 84 85 $ID = $ Database->SQLCommand('SELECT count(distinct(`IP`)) FROM `Log` WHERE `Type` = 2');86 $Line = mysql_fetch_row($ID);85 $ID = $System->Database->query('SELECT count(distinct(`IP`)) FROM `Log` WHERE `Type` = 2'); 86 $Line = $ID->fetch_row(); 87 87 echo($Line[0]); 88 88 … … 90 90 <div>Počet stáhnutí: <strong>'); 91 91 92 $ID = $ Database->SQLCommand('SELECT count(distinct(`IP`)) FROM `Log` WHERE `Type` = 0');93 $Line = mysql_fetch_row($ID);92 $ID = $System->Database->query('SELECT count(distinct(`IP`)) FROM `Log` WHERE `Type` = 0'); 93 $Line = $ID->fetch_row(); 94 94 echo($Line[0]); 95 95
Note:
See TracChangeset
for help on using the changeset viewer.