Changeset 471


Ignore:
Timestamp:
Apr 22, 2010, 8:58:41 AM (15 years ago)
Author:
george
Message:
  • Upraveno: Zobrazení odkazu na původní text při překládání i pro anglické originály.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/form.php

    r467 r471  
    6060    $Language = $DbResult->fetch_assoc();
    6161    // echo $Language['Language'].'  '.$Line['Take'];
    62     if($Language['Language'] <> 0)
    63       echo('Převzato z: <a href="form.php?group='.$GroupId.'&amp;ID='.$Line['Take'].'">'.$Line['Take'].'</a> <br />');
     62   
     63    $DbResult = $System->Database->query('SELECT `Name` FROM `Language` WHERE `Id` ='.$Language['Language']);
     64    $Lang = $DbResult->fetch_assoc();
     65   
     66    echo('Původní text: <strong>');
     67    echo(' ID <a href="form.php?group='.$GroupId.'&amp;ID='.$Line['Take'].'">'.$Line['Take'].'</a></strong>');
     68    echo(' ('.$Lang['Name'].')');
     69    echo(' <br />');
    6470  }
    6571  echo('Text: ');
  • trunk/sql/updates/470.sql

    r470 r471  
    22UPDATE  `DbVersion` SET  `Version` =  'Rev. 470' WHERE  `DbVersion`.`Id` =1;
    33
    4 ALTER TABLE  `ShoutBox` CHANGE  `User`  `UserName` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NUL;
     4ALTER TABLE  `ShoutBox` CHANGE  `User`  `UserName` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
    55ALTER TABLE  `ShoutBox` ADD  `User` INT NOT NULL AFTER  `ID`;
    66ALTER TABLE  `ShoutBox` ADD INDEX (  `User` );
    77
    8 UPDATE `ShoutBox` SET `User` = (SELECT `ID` FROM `User` WHERE `User`.`Name` = `ShoutBox`.`UserName`)
     8UPDATE `ShoutBox` SET `User` = (SELECT `ID` FROM `User` WHERE `User`.`Name` = `ShoutBox`.`UserName`);
    99
Note: See TracChangeset for help on using the changeset viewer.