Changeset 243


Ignore:
Timestamp:
Jul 12, 2009, 12:28:48 PM (15 years ago)
Author:
maron
Message:

Menší chybičky v porovnávání textů, možnost porovnávat texty i v případě jedné verze textu.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/comparison.php

    r238 r243  
    4242if(array_key_exists('group', $_GET)) $GroupId = $_GET['group']; else $GroupId = 1;
    4343$Table = $TranslationTree[$GroupId]['TablePrefix'];
    44 if(array_key_exists('action', $_GET)) $Action = $_GET['action']; else $Action = '';
    4544
    4645if(array_key_exists('entry', $_GET))
     
    5453  } else $WhereID = '';
    5554
    56   $DataID = $Database->SQLCommand('SELECT * FROM '.$Table.' Where entry = '.$Textentry.$WhereID.' ORDER BY Language');
     55  $DataID = $Database->SQLCommand('SELECT * FROM '.$Table.' Where entry = '.$Textentry.' '.$WhereID.' ORDER BY Language');
    5756  $i = 0;
    5857  while($Line = mysql_fetch_assoc($DataID))
     
    111110          for($i = 0; $i < count($Line); $i++)
    112111          {
    113         if($i > 1)
     112        if($i > 0)
    114113                {
    115114          echo('<td>');
  • trunk/form.php

    r242 r243  
    3636  if($Line['Language'] <> 0)
    3737  {
    38     if($Line['Complete'] == 1) echo(' <b>Hotov</b><br />');
     38    if($Line['Complete'] == 1) echo(' <b>Hotov</b>');
    3939      else echo(' <b> Uložen v rozepsaných</b> ');
    4040  } else
     
    4242    echo(' <b>Anglická, původní verze</b> ');
    4343  }
    44         echo (GetVersionWOW($Line['VersionStart']).' - '.GetVersionWOW($Line['VersionEnd']));
     44        echo('<br />');
     45        echo ('Verze: <b>'.GetVersionWOW($Line['VersionStart']).' - '.GetVersionWOW($Line['VersionEnd'].'</b>'));
    4546        echo('<br />');
    4647   
    4748  $version = mysql_fetch_array($Database->SQLCommand('SELECT count(*) FROM '.$Table.' Where entry = '.$Line['entry'].' AND Language <> 0'));
    48   if ($version['count(*)'] > 1)
     49  if ($version['count(*)'] > 0)
    4950  {
    5051    echo('<form action="comparison.php" method="get"><a href="TranslationList.php?group='.$GroupId.'&amp;action=searchentry&amp;ID='.$Line['entry'].'">Počet verzí: <strong>'.$version['count(*)'].'</strong></a> 
     
    6162        else {
    6263                  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                  echo('<option value="'.$version['ID'].'">'.$version['ID'].' - '.$version['User'].' ('.GetVersionWOW($version['VersionStart']).' - '.GetVersionWOW($version['VersionEnd']).')</option>');
    6465                }
    6566     }
Note: See TracChangeset for help on using the changeset viewer.