Changeset 20 for npc_form.php
- Timestamp:
- Oct 2, 2008, 9:38:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
npc_form.php
r19 r20 46 46 $number_version = mysql_fetch_array($Database->SQLCommand("SELECT count(*) FROM npc_text Where entry = ".$Line['entry']." AND Language <> 0")); 47 47 echo 'Poèet verzí: <b>'.$number_version['count(*)'].'</b> '; 48 //kontrolování textù 49 $ID_translation = $npc_ID; 50 $type_translation = 2; 51 $check = mysql_fetch_array($Database->SQLCommand("SELECT * FROM tag WHERE ID_user = ".$_SESSION['UserID']." AND ID_translation = $ID_translation AND type_translation = $type_translation")); 52 echo '<form action="action.php" method="post" name="check">'; 53 if ($check['tag'] == 1) 54 echo '<input name="0" type="submit" value="Odebrat z vlastního výbìru">'; 55 else 56 echo '<input name="1" type="submit" value="Pøidat do vlastního výbìru">'; 57 echo ' <input type="hidden" name="ID_translation" value="'.$ID_translation.'"> 58 <input type="hidden" name="type_translation" value="'.$type_translation.'"> 59 60 </form>'; 48 61 echo '<a href="npc_list.php?searchentry='.$Line['entry'].'">Zobrazit v¹echny verze tohoto npc_text</a><br>'; 49 62
Note:
See TracChangeset
for help on using the changeset viewer.