Changeset 524 for trunk/team.php
- Timestamp:
- Feb 20, 2013, 9:40:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/team.php
r507 r524 207 207 'Webové stránky: <a href="http://'.$Team['URL'].'">'.$Team['URL'].'</a><br/>'. 208 208 'Vedoucí: <strong>'.$Leader.'</strong><br/>'. 209 $Team['Description'].'<br /><br />';209 'Popis: '.$Team['Description'].'<br /><br />'; 210 210 //$Output .= '<a href="export/?team='.$Team['Id'].'">Exportovat překlad týmu</a> '; 211 211 if($User->Licence(LICENCE_USER)) … … 227 227 { 228 228 $Query .= 'SELECT (SELECT COUNT(DISTINCT(`Entry`)) FROM ('. 229 ' SELECT `T`.* FROM `'.$DbRow['TablePrefix'].'` AS `T`'. 230 ' WHERE (`User` IN (SELECT `ID` FROM `User` WHERE `Team` = '.$Team['Id'].')) AND (`Complete` = 1) AND (`T`.`Language`!=0) AND (`VersionStart` <= '.$BuildNumber.') AND (`VersionEnd` >= '.$BuildNumber.')'. 229 ' SELECT `T`.* FROM `'.$DbRow['TablePrefix'].'` AS `T` '. 230 'WHERE (`User` IN (SELECT `ID` FROM `User` WHERE `Team` = '.$Team['Id'].')) '. 231 'AND (`Complete` = 1) AND (`T`.`Language`!='.$Config['OriginalLanguage'].') '. 232 'AND (`VersionStart` <= '.$BuildNumber.') AND (`VersionEnd` >= '.$BuildNumber.')'. 231 233 ') AS `C1`) AS `Translated`, '. 232 234 '(SELECT COUNT(DISTINCT(`Entry`)) FROM ('. … … 262 264 $Total += $Group['Total']; 263 265 } 264 $Output .='<tr><td><strong>Celkem</strong></td><td><strong>'.$Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'.ProgressBar(150, round($Translated / $Total * 100, 2)).'</strong></td></tr>'; 266 if($Total > 0) $Progress = round($Translated / $Total * 100, 2); 267 else $Progress = 0; 268 $Output .='<tr><td><strong>Celkem</strong></td><td><strong>'.$Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'.ProgressBar(150, $Progress).'</strong></td></tr>'; 265 269 $Output .='</table>'; 266 270 }
Note:
See TracChangeset
for help on using the changeset viewer.