Changeset 500
- Timestamp:
- Jan 31, 2013, 11:20:59 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r498 r500 192 192 193 193 $Query = 'SELECT `T`.`ID`, `T`.`Entry`, `T`.`VersionStart`, `T`.`VersionEnd`, '. 194 '`T`.`Name`, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `T`.`User`)'. 194 '`T`.`'.$TranslationTree[$Filter['Group']]['Items'][0]['Column'].'`, '. 195 '(SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `T`.`User`) '. 195 196 'AS `UserName` FROM `'.$Table.'` AS `T` WHERE 1 '.$Filter['SQL']; 196 197 //echo($Query); … … 358 359 359 360 ?> 360 -
trunk/includes/global.php
r498 r500 164 164 foreach($TranslationTree as $Group) 165 165 { 166 echo('<div id="menuitem-group'.$Group['Id'].'" onmouse move="show(\'group'.$Group['Id'].'\')" onmouseout="hide(\'group'.$Group['Id'].'\')">'.166 echo('<div id="menuitem-group'.$Group['Id'].'" onmouseover="show(\'group'.$Group['Id'].'\')" onmouseout="hide(\'group'.$Group['Id'].'\')">'. 167 167 '<a href="'.$System->Link('/TranslationList.php?group='.$Group['Id'].'&action=filter').'">'.$Group['Name'].'</a></div>'. 168 '<div id="group'.$Group['Id'].'" class="hidden-menu-item" onmouse move="show(\'group'.$Group['Id'].'\')" onmouseout="hide(\'group'.$Group['Id'].'\')">');168 '<div id="group'.$Group['Id'].'" class="hidden-menu-item" onmouseover="show(\'group'.$Group['Id'].'\')" onmouseout="hide(\'group'.$Group['Id'].'\')">'); 169 169 echo(' <a title="Zde můžete začít překládat" href="'.$System->Link('/TranslationList.php?group='.$Group['Id'].'&state=1&user=0&entry=&text=').'">Nepřeložené</a><br />'. 170 170 ' <a title="Přeložené texty, můžete zde hlasovat, nebo opravovat překlady" href="'.$System->Link('/TranslationList.php?group='.$Group['Id'].'&state=2&user=0&entry=&text=').'">Přeložené</a><br />'); -
trunk/index.php
r472 r500 39 39 { 40 40 //echo($DbRow['Name'].', '); 41 $UnionItems[] = 'SELECT * FROM(SELECT `T`.`User`, `T`.`ID`, `T`.`ModifyTime`, '.$DbRow['Id'].' AS `Group`, "'.addslashes($DbRow['Name']).'" AS `GroupName`, `T`.`Take` FROM `'.$DbRow['TablePrefix'].'` AS `T`'. 42 ' WHERE (`T`.`Complete` = 1) AND (`T`.`Language` != 0) ORDER BY `T`.`ModifyTime` DESC LIMIT '.$Count.') AS `T`'; 41 $UnionItems[] = 'SELECT `T`.`ID`, `T`.`Take`, `T`.`User`, `T`.`ModifyTime`, `T`.`Group`, `T`.`GroupName` '. 42 'FROM (SELECT `T`.`User`, `T`.`ID`, `T`.`ModifyTime`, '. 43 $DbRow['Id'].' AS `Group`, "'.addslashes($DbRow['Name']).'" AS `GroupName`, `T`.`Take` FROM `'. 44 $DbRow['TablePrefix'].'` AS `T`'. 45 ' WHERE (`T`.`Complete` = 1) AND (`T`.`Language` != 0) ORDER BY `T`.`ModifyTime` DESC LIMIT '. 46 $Count.') AS `T`'; 43 47 } 44 48 $Query = 'SELECT `TT`.*, `User`.`Name` AS `UserName` FROM ('.implode(' UNION ', $UnionItems).') AS `TT`'. … … 63 67 function ShowRSSChannel() 64 68 { 65 global $System, $Config , $System;69 global $System, $Config; 66 70 67 71 $Items = array(); … … 135 139 'Items' => $Items, 136 140 ))); 137 } 141 } else echo('Žádný kanál'); 138 142 } 139 143 -
trunk/sql/updates/498.sql
r498 r500 68 68 ALTER TABLE `CzWoWPackageVersion` ADD FOREIGN KEY ( `User` ) REFERENCES `User` ( 69 69 `ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ; 70 ALTER TABLE `Log` CHANGE `User` `User` INT( 11 ) NULL DEFAULT NULL ; 71 UPDATE `Log` SET `User` = NULL WHERE `User` =0; 70 72 ALTER TABLE `Log` ADD FOREIGN KEY ( `User` ) REFERENCES `User` ( 71 73 `ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ; 72 74 ALTER TABLE `Log` ADD FOREIGN KEY ( `Type` ) REFERENCES `LogType` ( 73 75 `Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ; 74 ALTER TABLE `Log` CHANGE `User` `User` INT( 11 ) NULL DEFAULT NULL ;75 76 ALTER TABLE `News` ADD FOREIGN KEY ( `User` ) REFERENCES `User` ( 76 77 `ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ; … … 104 105 ALTER TABLE `ExportTask` ADD FOREIGN KEY ( `Export` ) REFERENCES `Export` ( 105 106 `Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ; 106 ALTER TABLE `ExportLanguage` ADD INDEX ( `Sequence` ) 107 ALTER TABLE `ExportLanguage` ADD INDEX ( `Sequence` ) ; 107 108 ALTER TABLE `ExportLanguage` ADD INDEX ( `Language` ) ; 108 109 ALTER TABLE `ExportLanguage` ADD INDEX ( `Export` ) ; -
trunk/team.php
r498 r500 177 177 function TeamShow() 178 178 { 179 global $System, $ TranslationTree, $User, $Config;179 global $System, $User, $Config; 180 180 181 181 if(array_key_exists('id', $_GET) and is_numeric($_GET['id']))
Note:
See TracChangeset
for help on using the changeset viewer.