Changeset 217
- Timestamp:
- Jun 25, 2009, 1:18:16 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/index.php
r215 r217 112 112 } else echo('Funkce pro tvorbu Zip souboru není podporována!'); 113 113 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 114 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 1000)'.114 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 3000)'. 115 115 '</script>'); 116 116 … … 138 138 } else echo('Funkce pro tvorbu Zip souboru není podporována!'); 139 139 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 140 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 1000)'.140 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 3000)'. 141 141 '</script>'); 142 142 … … 209 209 } else echo('Funkce pro tvorbu Zip souboru není podporována!'); 210 210 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 211 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 1000)'.211 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 3000)'. 212 212 '</script>'); 213 213 … … 260 260 } else echo('Funkce pro tvorbu Zip souboru není podporována!'); 261 261 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 262 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 1000)'.262 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 3000)'. 263 263 '</script>'); 264 264 … … 319 319 } else echo('Funkce pro tvorbu Zip souboru není podporována!'); 320 320 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 321 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 1000)'.321 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 3000)'. 322 322 '</script>'); 323 323 … … 341 341 } else echo('Funkce pro tvorbu Zip souboru není podporována!'); 342 342 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 343 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 1000)'.343 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 3000)'. 344 344 '</script>'); 345 345 … … 352 352 353 353 if(in_array($ExportSetting['Export'], $Addon_verses)) 354 { // Addon pro různé verze354 { // Addon pro různé verze 355 355 $Addon_verse = $Addon_verses[array_search($ExportSetting['Export'],$Addon_verses)]; 356 356 if(function_exists('gzcompress')) { … … 372 372 } else echo('Funkce pro tvorbu Zip souboru není podporována!'); 373 373 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 374 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 1000)'.374 'setTimeout("parent.location.href=\''.$SaveFilename.'\'", 3000)'. 375 375 '</script>'); 376 376 … … 380 380 echo('<br /><strong>Použití ve hře</strong><br />Menu addonu ve hře vyvoláte povelem /czwow.'); 381 381 } 382 382 383 //statistika výstupu 384 if ($ExportSetting['Export'] <> 'AoWoWSQLDirect' and $ExportSetting['Export'] <> 'XMLDirect' and $ExportSetting['Export'] <> 'AoWoWImport' and $ExportSetting['Export'] <> 'MangosSQLDirect') { 385 echo '<br /><br />'; 386 foreach($TranslationTree as $Group) 387 if($Group['TablePrefix'] != '') 388 echo('<div class="state-image"><img alt="'.$Group['TablePrefix'].'" src="../img_statistic.php?group='.$Group['Id'].'&user='.$_SESSION['UserID'].'" title="statistika překladů '.$Group['Name'].'"/></div>'); 389 } 390 383 391 WriteLog('Generování SQL výstupu: Typ exportu: <strong>'.$ExportSetting['Export'].'</strong>, Diakritika: <strong>'.$ExportSetting['Diacritics'].'</strong>', 2); 384 392 break; -
trunk/img_statistic.php
r168 r217 13 13 $language = ' AND Language = '.$_GET['language'].''; 14 14 } else $language = ''; 15 if (array_key_exists('user', $_GET)) { 16 $DbResult = $Database->SQLCommand('SELECT user,ExportSetting FROM `user` WHERE ID='.$_GET['user']); 17 $User = mysql_fetch_assoc($DbResult); 18 $ExportSetting = unserialize($User['ExportSetting']); 19 $SelectedUsers = ''; 20 foreach($ExportSetting['users-selection'] as $Item) 21 $SelectedUsers .= ','.$Item; 22 $SelectedUsers = substr($SelectedUsers, 1); 23 $user_sql = ' AND User IN ('.$SelectedUsers.')'; 24 } else $user_sql = ''; 15 25 16 $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(distinct(entry)) FROM '.$Group['TablePrefix'].' WHERE (Language <> 0) AND (Complete = 1) '.$team.$language)); 26 $where = ' (Language <> 0) AND (Complete = 1) '.$team.$language.$user_sql; 27 $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(distinct(entry)) FROM '.$Group['TablePrefix'].' WHERE '.$where)); 17 28 $NumberTranslate = $ID[0]; 18 29 … … 37 48 imagefilledrectangle($Image, 0, 0, $PercentBar, 59, $Color2); 38 49 $FontSize = 10; 39 if (($NumberPerDay > 0) and ($team == '') and ($language == '') and ($ NotTran>0)) {50 if (($NumberPerDay > 0) and ($team == '') and ($language == '') and ($user_sql == '') and ($NotTran>0)) { 40 51 $TimeToTranslate = ($NotTran / $NumberPerDay)* $Days; 41 52 ImageTTFText($Image, $FontSize, 0, 5, 13, $Color3, $FontFile, 'Čas do dokončení'); 42 53 ImageTTFText($Image, $FontSize, 0, 5, 29, $Color3, $FontFile, getmonthyears($TimeToTranslate) ); 54 } 55 if ($user_sql <> '') { 56 ImageTTFText($Image, $FontSize, 0, 5, 13, $Color3, $FontFile, 'Statistika výběru'); 57 ImageTTFText($Image, $FontSize, 0, 5, 29, $Color3, $FontFile, 'uživatele: '.$User['user'] ); 43 58 } 44 59 ImageTTFText($Image, $FontSize, 0, 140, 13, $Color3, $FontFile, $NumberTranslate.'/'.$NumberAJ); -
trunk/statistic.php
r197 r217 27 27 28 28 echo('</strong></div> 29 <div>Počet stáhnutí CZWoW pro clienta: <strong>');29 <div>Počet stáhnutí: <strong>'); 30 30 31 31 $ID = $Database->SQLCommand('SELECT count(distinct(IP)) FROM log WHERE type = 0');
Note:
See TracChangeset
for help on using the changeset viewer.