Changeset 20 for form.php


Ignore:
Timestamp:
Oct 2, 2008, 9:38:57 PM (16 years ago)
Author:
maron
Message:

Vlastní výběr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • form.php

    r19 r20  
    4444      echo ' bodù (5 nejlep¹í)';
    4545    } else { echo ' Ji¾ jsi hlasoval: '.$LineVote['vote']; } 
    46   echo '<br>';
     46  echo '<br>
     47
     48';
     49//kontrolování textù 
     50  $ID_translation = $QuestID;
     51  $type_translation = 1;
     52  $check = mysql_fetch_array($Database->SQLCommand("SELECT * FROM tag WHERE ID_user = ".$_SESSION['UserID']." AND ID_translation = $ID_translation AND type_translation = $type_translation"));
     53  echo '<form action="action.php" method="post" name="check">';
     54  if ($check['tag'] == 1)
     55    echo '<input name="0" type="submit" value="Odebrat z vlastního výbìru">';
     56  else
     57    echo '<input name="1" type="submit" value="Pøidat do vlastního výbìru">';
     58  echo '  <input type="hidden" name="ID_translation" value="'.$ID_translation.'">
     59  <input type="hidden" name="type_translation" value="'.$type_translation.'">
     60         
     61</form>';
     62 
     63 
     64 
    4765  }
    4866 
     
    5169    }
    5270    if (Licence(2)) {
    53       $check = mysql_fetch_array($Database->SQLCommand("SELECT ID FROM quests Where entry = ".$Line['entry']." AND admin_check = 1 AND ID <> $QuestID"));
    54       if (isset($check['ID']))
    55         echo 'Ji¾ byla zkontrolována adminem jiná verze questu: <a href="form.php?ID='.$check['ID'].'">'.$check['ID'].'</a><br />';
     71      $admin_check = mysql_fetch_array($Database->SQLCommand("SELECT ID FROM quests Where entry = ".$Line['entry']." AND admin_check = 1 AND ID <> $QuestID"));
     72      if (isset($admin_check['ID']))
     73        echo 'Ji¾ byla zkontrolována adminem jiná verze questu: <a href="form.php?ID='.$admin_check['ID'].'">'.$admin_check['ID'].'</a><br />';
    5674    }
    5775      $number_version = mysql_fetch_array($Database->SQLCommand("SELECT count(*) FROM quests Where entry = ".$Line['entry']." AND Language <> 0"));
Note: See TracChangeset for help on using the changeset viewer.