Changeset 250 for quests/form.php
- Timestamp:
- Jan 20, 2008, 12:08:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/form.php
r249 r250 28 28 } 29 29 30 if ($Line['Language'] <> '0') { 31 echo 'Známka Questu: <b>'.$Line['Vote'].'</b><br />'; 32 } 33 30 34 if (Licence(0) and ($LineUser['ID'] <> $_SESSION['UserID']) and ($Line['Language'] <> 0)) { 35 $LineVote = mysql_fetch_array($Database->SQLCommand("SELECT * FROM quests_vote WHERE 36 IDuser = ".$_SESSION['UserID']." AND IDquest = $QuestID")); 37 if (!$LineVote) { 31 38 echo ' Hodnotit Quest: '; 32 39 for ($i=1; $i<6; ++$i) 33 40 echo '<a href="action.php?vote='.$i.'&ID='.$QuestID.'">'.$i.'</a> '; 34 echo ' bodù (5 nejlep¹í)'; 41 echo ' bodù (5 nejlep¹í)'; 42 } else { echo ' Ji¾ jsi hlasoval: '.$LineVote['vote']; } 35 43 } 36 44 … … 72 80 <td width="300">Anglický</td> 73 81 <td> 74 <select name="Language"> 75 <option value="1" <?php if ($Line['Language'] == '1') echo 'selected="selected"'; ?>>Pøelo¾ení do èeského jazyka</option> 76 <option value="2" <?php if ($Line['Language'] == '2') echo 'selected="selected"'; ?>>Pøelo¾ení do slovenského jazyka</option> 77 <option value="3" <?php if ($Line['Language'] == '3') echo 'selected="selected"'; ?>>Pøelo¾ení do jiného jazyka</option> 78 </select> 82 Pøekládám do: <?php 83 if ($Line['Language'] <> 0) 84 $Language = $Line['Language']; 85 else { 86 $IDUser = $Database->SQLCommand("SELECT * FROM user Where id = '".@$_SESSION['UserID']."'"); 87 $LineUser = mysql_fetch_array($IDUser); 88 $Language = $LineUser['Language']; //jiný user vyèítám 89 } 90 WriteLanguages($Language); 91 ?> 79 92 </td> 80 93 </tr>
Note:
See TracChangeset
for help on using the changeset viewer.