Changeset 238 for trunk/form.php


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í

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>');         
Note: See TracChangeset for help on using the changeset viewer.