Changeset 238


Ignore:
Timestamp:
Jul 3, 2009, 9:35:30 AM (15 years ago)
Author:
maron
Message:

Možnost porovnávat všechny verze, zobrazení verze v porovnávání

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/comparison.php

    r127 r238  
    9696  }
    9797  echo('</tr>');
     98  echo('<tr><th>Verze</th>');
     99  foreach($Line as $Index => $LineItem)
     100  {
     101        echo('<td>');
     102        echo (GetVersionWOW($LineItem['VersionStart']).' - '.GetVersionWOW($LineItem['VersionEnd']));
     103        echo('</td>');
     104  }
     105  echo('</tr>');
    98106  foreach($TranslationTree[$GroupId]['Items'] as $Index => $TextItem)
    99107  {         
  • trunk/form.php

    r214 r238  
    5555        <option value="-1">Vyberte text k porovnání</option>
    5656        <option value="-1">Zobrazit/porovnat všechny</option>');
    57          $DataID = $Database->SQLCommand('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User  FROM '.$Table.' WHERE (entry = '.$Line['entry'].') AND (Language <> 0) AND (ID <> '.$Line['ID'].')'); 
     57         $DataID = $Database->SQLCommand('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User  FROM '.$Table.' WHERE (entry = '.$Line['entry'].') AND (ID <> '.$Line['ID'].')'); 
    5858         while($version = mysql_fetch_array($DataID))
    5959         {     
    6060                if ($version['ID'] == $Line['Take']) echo('<option value="'.$version['ID'].'">'.$version['ID'].' - '.$version['User'].' (převzato)</option>');   
    61         else echo('<option value="'.$version['ID'].'">'.$version['ID'].' - '.$version['User'].'</option>');
     61        else {
     62                  if (0 == $version['Language']) $version['User'] = 'Předloha';
     63                  echo('<option value="'.$version['ID'].'">'.$version['ID'].' - '.$version['User'].' ('.GetVersionWOW($Line['VersionStart']).' - '.GetVersionWOW($Line['VersionEnd']).')</option>');
     64                }
    6265     }
    6366     echo('</select></form>');         
  • trunk/includes/global_function.php

    r236 r238  
    276276    if(($old <> $new) and ($GroupItem['Column'] <> 'Comment'))
    277277    {
    278       //  echo $old.'X'.$new;
     278        echo $old.'X'.$new;
    279279      $result = false;
    280280    }
Note: See TracChangeset for help on using the changeset viewer.