Changeset 286 for trunk/form.php
- Timestamp:
- Dec 22, 2009, 10:22:38 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/form.php
r243 r286 5 5 ShowPage(); 6 6 7 if(array_key_exists('group', $_GET)) $GroupId = $_GET['group']; else $GroupId = 1;7 $GroupId = LoadGroupIdParameter(); 8 8 $Table = $TranslationTree[$GroupId]['TablePrefix']; 9 9 if(array_key_exists('action', $_GET)) $Action = $_GET['action']; else $Action = ''; … … 11 11 if(array_key_exists('ID', $_GET)) 12 12 { 13 $TextID = $_GET['ID'] ;13 $TextID = $_GET['ID'] * 1; 14 14 15 15 $Line = mysql_fetch_assoc($Database->SQLCommand('SELECT * FROM '.$Table.' Where ID = '.$TextID)); … … 42 42 echo(' <b>Anglická, původní verze</b> '); 43 43 } 44 45 46 44 echo('<br />'); 45 echo ('Verze: <b>'.GetVersionWOW($Line['VersionStart']).' - '.GetVersionWOW($Line['VersionEnd'].'</b>')); 46 echo('<br />'); 47 47 48 48 $version = mysql_fetch_array($Database->SQLCommand('SELECT count(*) FROM '.$Table.' Where entry = '.$Line['entry'].' AND Language <> 0')); … … 50 50 { 51 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> 52 53 54 55 56 57 58 59 60 61 62 63 64 65 52 <input type="hidden" name="group" value="'.$GroupId.'" /> 53 <input type="hidden" name="entry" value="'.$Line['entry'].'" /> 54 <input type="hidden" name="ID2" value="'.$TextID.'" /> 55 <select onchange="this.form.submit();" name="ID1"> 56 <option value="-1">Vyberte text k porovnání</option> 57 <option value="-1">Zobrazit/porovnat všechny</option>'); 58 $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'].')'); 59 while($version = mysql_fetch_array($DataID)) 60 { 61 if ($version['ID'] == $Line['Take']) echo('<option value="'.$version['ID'].'">'.$version['ID'].' - '.$version['User'].' (převzato)</option>'); 62 else { 63 if (0 == $version['Language']) $version['User'] = 'Předloha'; 64 echo('<option value="'.$version['ID'].'">'.$version['ID'].' - '.$version['User'].' ('.GetVersionWOW($version['VersionStart']).' - '.GetVersionWOW($version['VersionEnd']).')</option>'); 65 } 66 66 } 67 echo('</select></form>'); 67 echo('</select></form>'); 68 68 } else 69 69 { 70 70 echo('<a href="TranslationList.php?group='.$GroupId.'&action=searchentry&ID='.$Line['entry'].'">Počet verzí: <strong>'.$version['count(*)'].'</strong></a>'); 71 71 } 72 72 … … 75 75 if(Licence(LICENCE_USER)) 76 76 { 77 77 if(($GroupId < 4) or ($GroupId == 10) or ($GroupId == 11)) echo ('<a href="dictionary.php?group='.$GroupId.'&ID='.$LineAJ['ID'].'" target="_blank" title="Zobrazit přeložené názvy věci, postav, a herních objektů k tomuto překladu">Vyhledat v názvech</a>'); 78 78 echo(' <input type="submit" value="Uložit do rozepsaných" name="save" title="Klikněte na uložit pro pozdější dokončení překladu" /> 79 79 <input type="submit" value="Dokončeno" name="End" title="Klikněte na Dokončeno jesli jsou všechny texty hotové a chcete již publikovat" /> '); … … 113 113 { 114 114 if(($LineAJ[$TextItem['Column']] <> '') or ($Line[$TextItem['Column']] <> '')) { 115 116 117 118 119 115 if ($TextItem['Name'] == 'Text' AND (($Table == 'global_strings') OR ($Table == 'glue_strings'))) 116 echo('<tr><th>'.$LineAJ['ShortCut'].'</th>'); 117 else 118 echo('<tr><th>'.$TextItem['Name'].'</th>'); 119 echo ('<td>'.htmlspecialchars($LineAJ[$TextItem['Column']]).'</td> 120 120 <td><textarea rows="8" cols="40" onkeydown="ResizeTextArea(this)" class="textedit" id="'.$TextItem['Column'].'" name="'.$TextItem['Column'].'">'.htmlspecialchars($Line[$TextItem['Column']]).'</textarea></td></tr>'); 121 121 } 122 122 } else 123 123 { 124 124 echo('<input id="'.$TextItem['Column'].'" name="'.$TextItem['Column'].'" type="hidden" value="'.htmlspecialchars($Line[$TextItem['Column']]).'" />'); 125 125 } 126 126 echo('</table></div></form>');
Note:
See TracChangeset
for help on using the changeset viewer.