Changeset 80
- Timestamp:
- Feb 10, 2009, 3:22:31 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comparison.php
r79 r80 43 43 $Textentry = $_GET['entry']; 44 44 45 $DataID = $Database->SQLCommand('SELECT * FROM '.$Table.' Where entry = '.$Textentry); 45 46 if ((array_key_exists('ID1', $_GET)) and ($_GET['ID1'] <> -1)) { //porovnání pouze 2 textů 47 $TextID1 = $_GET['ID1']; 48 $TextID2 = $_GET['ID2']; 49 $WhereID = " AND (ID = $TextID1 OR ID = $TextID2 OR Language = 0)"; 50 } else $WhereID = ''; 51 52 $DataID = $Database->SQLCommand('SELECT * FROM '.$Table.' Where entry = '.$Textentry.$WhereID); 46 53 $i = 0; 47 54 while($Line = mysql_fetch_assoc($DataID)) { … … 86 93 <th>'.$TextItem['Name'].'</th>'); 87 94 for ($i = 0; $i < count($Line); $i++) { 88 if ($i > =1) {95 if ($i > 1) { 89 96 echo ('<td>'); 90 97 CompareString($Line[$i][$TextItem['Column']],$Line[$i-1][$TextItem['Column']]); -
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>'); -
trunk/style/style.css
r79 r80 77 77 /***************Porovnávání textu**********/ 78 78 #edit { 79 background-color: # E8E8E8;79 background-color: #DB7093; 80 80 } 81 81
Note:
See TracChangeset
for help on using the changeset viewer.