Changeset 80 for trunk/form.php
- Timestamp:
- Feb 10, 2009, 3:22:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/form.php
r72 r80 42 42 echo(' <b>Anglická, původní verze</b><br />'); 43 43 } 44 45 $number_version = mysql_fetch_array($Database->SQLCommand('SELECT count(*) FROM '.$Table.' Where entry = '.$Line['entry'].' AND Language <> 0')); 46 echo('Počet verzí: <b>'.$number_version['count(*)'].'</b> '); 47 echo('<a href="TranslationList.php?group='.$GroupId.'&action=searchentry&ID='.$Line['entry'].'">Zobrazit všechny verze tohoto překladu</a>'); 48 44 45 $version = mysql_fetch_array($Database->SQLCommand('SELECT count(*) FROM '.$Table.' Where entry = '.$Line['entry'].' AND Language <> 0')); 46 if ($version['count(*)'] > 1) { 47 echo('<form action="comparison.php" method="get">Počet verzí: <b>'.$version['count(*)'].'</b> 48 <input type="hidden" name="group" value="'.$GroupId.'" /> 49 <input type="hidden" name="entry" value="'.$Line['entry'].'" /> 50 <input type="hidden" name="ID2" value="'.$TextID.'" /> 51 <select onchange="this.form.submit();" name="ID1"> 52 <option value="-1">Vyberte text k porovnání</option> 53 <option value="-1">Zobrazit/porovnat všechny</option>'); 54 $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']); 55 while($version = mysql_fetch_array($DataID)) 56 { 57 if ($version['ID'] == $Line['Take']) echo('<option value="'.$version['ID'].'">'.$version['ID'].' - '.$version['User'].' (převzato)</option>'); 58 else echo('<option value="'.$version['ID'].'">'.$version['ID'].' - '.$version['User'].'</option>'); 59 } 60 echo('</select>'); 61 // echo('<a href="TranslationList.php?group='.$GroupId.'&action=searchentry&ID='.$Line['entry'].'">Zobrazit všechny verze tohoto překladu</a>'); 62 } else { 63 echo('Počet verzí: <b>'.$version['count(*)'].'</b> '); 64 } 65 49 66 // Speciální znaky: $B - Odřádkování, $N - Jméno, $C - povolání 50 67 echo('<form action="save.php?group='.$GroupId.'" method="post"><div>');
Note:
See TracChangeset
for help on using the changeset viewer.