Changeset 20 for page_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
  • page_form.php

    r19 r20  
    4646      $number_version = mysql_fetch_array($Database->SQLCommand("SELECT count(*) FROM page_text Where entry = ".$Line['entry']." AND Language <> 0"));
    4747      echo 'Poèet verzí: <b>'.$number_version['count(*)'].'</b> ';
     48//kontrolování textù 
     49  $ID_translation = $page_ID;
     50  $type_translation = 3;
     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>';
    4861    echo '<a href="page_list.php?searchentry='.$Line['entry'].'">Zobrazit v¹echny verze tohoto page_text</a>';
    4962
Note: See TracChangeset for help on using the changeset viewer.