Changeset 243
- Timestamp:
- Jul 12, 2009, 12:28:48 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comparison.php
r238 r243 42 42 if(array_key_exists('group', $_GET)) $GroupId = $_GET['group']; else $GroupId = 1; 43 43 $Table = $TranslationTree[$GroupId]['TablePrefix']; 44 if(array_key_exists('action', $_GET)) $Action = $_GET['action']; else $Action = '';45 44 46 45 if(array_key_exists('entry', $_GET)) … … 54 53 } else $WhereID = ''; 55 54 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'); 57 56 $i = 0; 58 57 while($Line = mysql_fetch_assoc($DataID)) … … 111 110 for($i = 0; $i < count($Line); $i++) 112 111 { 113 if($i > 1)112 if($i > 0) 114 113 { 115 114 echo('<td>'); -
trunk/form.php
r242 r243 36 36 if($Line['Language'] <> 0) 37 37 { 38 if($Line['Complete'] == 1) echo(' <b>Hotov</b> <br />');38 if($Line['Complete'] == 1) echo(' <b>Hotov</b>'); 39 39 else echo(' <b> Uložen v rozepsaných</b> '); 40 40 } else … … 42 42 echo(' <b>Anglická, původní verze</b> '); 43 43 } 44 echo (GetVersionWOW($Line['VersionStart']).' - '.GetVersionWOW($Line['VersionEnd'])); 44 echo('<br />'); 45 echo ('Verze: <b>'.GetVersionWOW($Line['VersionStart']).' - '.GetVersionWOW($Line['VersionEnd'].'</b>')); 45 46 echo('<br />'); 46 47 47 48 $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) 49 50 { 50 51 echo('<form action="comparison.php" method="get"><a href="TranslationList.php?group='.$GroupId.'&action=searchentry&ID='.$Line['entry'].'">Počet verzí: <strong>'.$version['count(*)'].'</strong></a> … … 61 62 else { 62 63 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>'); 64 65 } 65 66 }
Note:
See TracChangeset
for help on using the changeset viewer.