Changeset 500 for trunk


Ignore:
Timestamp:
Jan 31, 2013, 11:20:59 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Nechtěné skrývání rámečku nabídky v pravém menu překladových skupin při pohybu myši.
  • Opraveno: Nezobrazování seznamu překladových položek.
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/TranslationList.php

    r498 r500  
    192192 
    193193  $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`) '.
    195196    'AS `UserName` FROM `'.$Table.'` AS `T` WHERE 1 '.$Filter['SQL'];
    196197  //echo($Query);
     
    358359
    359360?>
    360  
  • trunk/includes/global.php

    r498 r500  
    164164  foreach($TranslationTree as $Group)
    165165  {
    166     echo('<div id="menuitem-group'.$Group['Id'].'" onmousemove="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'].'\')">'.
    167167      '<a href="'.$System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;action=filter').'">'.$Group['Name'].'</a></div>'.
    168       '<div id="group'.$Group['Id'].'" class="hidden-menu-item" onmousemove="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'].'\')">');
    169169    echo('&nbsp;<a title="Zde můžete začít překládat" href="'.$System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=1&amp;user=0&amp;entry=&amp;text=').'">Nepřeložené</a><br />'.
    170170    '&nbsp;<a title="Přeložené texty, můžete zde hlasovat, nebo opravovat překlady" href="'.$System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=2&amp;user=0&amp;entry=&amp;text=').'">Přeložené</a><br />');
  • trunk/index.php

    r472 r500  
    3939  {
    4040    //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`';
    4347  }
    4448  $Query = 'SELECT `TT`.*, `User`.`Name` AS `UserName` FROM ('.implode(' UNION ', $UnionItems).') AS `TT`'.
     
    6367function ShowRSSChannel()
    6468{
    65   global $System, $Config, $System;
     69  global $System, $Config;
    6670 
    6771  $Items = array(); 
     
    135139      'Items' => $Items,
    136140    )));
    137   }
     141  } else echo('Žádný kanál');
    138142}
    139143
  • trunk/sql/updates/498.sql

    r498 r500  
    6868ALTER TABLE `CzWoWPackageVersion` ADD FOREIGN KEY ( `User` ) REFERENCES `User` (
    6969`ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ;
     70ALTER TABLE `Log` CHANGE `User` `User` INT( 11 ) NULL DEFAULT NULL ;
     71UPDATE `Log` SET `User` = NULL WHERE `User` =0;
    7072ALTER TABLE `Log` ADD FOREIGN KEY ( `User` ) REFERENCES `User` (
    7173`ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ;
    7274ALTER TABLE `Log` ADD FOREIGN KEY ( `Type` ) REFERENCES `LogType` (
    7375`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;
    74 ALTER TABLE `Log` CHANGE `User` `User` INT( 11 ) NULL DEFAULT NULL ;
    7576ALTER TABLE `News` ADD FOREIGN KEY ( `User` ) REFERENCES `User` (
    7677`ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ;
     
    104105ALTER TABLE `ExportTask` ADD FOREIGN KEY ( `Export` ) REFERENCES `Export` (
    105106`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;
    106 ALTER TABLE `ExportLanguage` ADD INDEX ( `Sequence` )
     107ALTER TABLE `ExportLanguage` ADD INDEX ( `Sequence` ) ;
    107108ALTER TABLE `ExportLanguage` ADD INDEX ( `Language` ) ;
    108109ALTER TABLE `ExportLanguage` ADD INDEX ( `Export` ) ;
  • trunk/team.php

    r498 r500  
    177177function TeamShow()
    178178{
    179   global $System, $TranslationTree, $User, $Config;
     179  global $System, $User, $Config;
    180180 
    181181  if(array_key_exists('id', $_GET) and is_numeric($_GET['id']))
Note: See TracChangeset for help on using the changeset viewer.