Changeset 120 for trunk/form.php
- Timestamp:
- Feb 21, 2009, 7:38:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/form.php
r91 r120 44 44 45 45 $version = mysql_fetch_array($Database->SQLCommand('SELECT count(*) FROM '.$Table.' Where entry = '.$Line['entry'].' AND Language <> 0')); 46 if ($version['count(*)'] > 1) { 46 if ($version['count(*)'] > 1) 47 { 47 48 echo('<form action="comparison.php" method="get"><a href="TranslationList.php?group='.$GroupId.'&action=searchentry&ID='.$Line['entry'].'" Title="Zobrazit všechny verze tohoto překladu">Počet verzí: <b>'.$version['count(*)'].'</b></a> 48 49 <input type="hidden" name="group" value="'.$GroupId.'" /> … … 52 53 <option value="-1">Vyberte text k porovnání</option> 53 54 <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.' W here entry = '.$Line['entry'].' AND Language <> 0 AND ID <> '.$Line['ID']);55 $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 56 while($version = mysql_fetch_array($DataID)) 56 57 { … … 59 60 } 60 61 echo('</select></form>'); 61 } else { 62 } else 63 { 62 64 echo('<a href="TranslationList.php?group='.$GroupId.'&action=searchentry&ID='.$Line['entry'].'" Title="Zobrazit všechny verze tohoto překladu">Počet verzí: <b>'.$version['count(*)'].'</b></a>'); 63 65 } … … 100 102 echo('</td></tr>'); 101 103 foreach($TranslationTree[$GroupId]['Items'] as $Index => $TextItem) 104 if($TextItem['Visible'] == 1) 102 105 { 103 106 if(($LineAJ[$TextItem['Column']] <> '') or ($Line[$TextItem['Column']] <> '')) … … 106 109 <td>'.htmlspecialchars($LineAJ[$TextItem['Column']]).'</td> 107 110 <td><textarea rows="8" cols="40" onkeydown="ResizeTextArea(this)" class="textedit" id="'.$TextItem['Column'].'" name="'.$TextItem['Column'].'">'.htmlspecialchars($Line[$TextItem['Column']]).'</textarea></td></tr>'); 111 } else 112 { 113 echo('<input id="'.$TextItem['Column'].'" name="'.$TextItem['Column'].'" type="hidden" value="'.htmlspecialchars($Line[$TextItem['Column']]).'" />'); 108 114 } 109 115 echo('</table></div></form>');
Note:
See TracChangeset
for help on using the changeset viewer.