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

    r18 r20  
    105105     
    106106      if(array_key_exists('nocheck', $_GET)) {
    107         echo '<a Title="Zobrazit npc_texty podle vlasního filtru" href="npc_list.php?filter">Filtr npc_textù</a> ->
     107        echo '<a Title="Zobrazit npc_texty podle vlasního filtru" href="npc_list.php?filter">Filtr npc_textsù</a> ->
    108108        <a Title="Zatím nezkontrolované npc_texty" href="npc_list.php?nocheck">Nezkontrolované npc_texty</a><br><br>';
    109109
    110           WritePages('npc_list.php?nocheck'," WHERE Language <> 0 AND npc_text.Complete = '1' AND admin_check <> 1");
     110          WritePages('npc_list.php?nocheck'," WHERE Language <> 0 AND npc_text.Complete = '1'
     111          AND NOT EXISTS(SELECT 1 FROM tag WHERE ID_user = ".$_SESSION['UserID']." AND tag.type_translation = 2 AND tag.ID_translation = npc_text.ID)");
    111112
    112113        Write_npc_text("SELECT *, (SELECT user.user FROM user WHERE user.id = npc_text.user) as User
    113          FROM npc_text  WHERE Language <> 0 AND npc_text.Complete = '1' AND admin_check <> 1", $_SESSION['limitx'].','.$_SESSION['limity'],'nocheck');
     114         FROM npc_text WHERE Language <> 0 AND npc_text.Complete = '1'
     115          AND NOT EXISTS(SELECT 1 FROM tag WHERE ID_user = ".$_SESSION['UserID']." AND tag.type_translation = 2 AND tag.ID_translation = npc_text.ID)", $_SESSION['limitx'].','.$_SESSION['limity'],'nocheck');
    114116      }
    115117
     
    118120        <a Title="Zkontrolované npc_texty" href="npc_list.php?nocheck">Zkontrolované npc_texty</a><br><br>';
    119121
    120           WritePages('npc_list.php?nocheck'," WHERE Language <> 0 AND npc_text.Complete = '1' AND admin_check = 1");
    121 
     122  /*        Writenpcs('npc_list.php?nocheck'," WHERE Language <> 0 AND npc_text.Complete = '1'
     123          AND EXISTS(SELECT 1 FROM tag WHERE ID_user = ".$_SESSION['UserID']." AND
     124           tag.type_translation = 2 AND tag.ID_translation = npc_text.ID)");
     125*/
    122126        Write_npc_text("SELECT *, (SELECT user.user FROM user WHERE user.id = npc_text.user) as User
    123          FROM npc_text  WHERE Language <> 0 AND npc_text.Complete = '1' AND admin_check = 1", $_SESSION['limitx'].','.$_SESSION['limity'],'check');
     127         FROM npc_text WHERE Language <> 0 AND npc_text.Complete = '1' AND
     128         EXISTS(SELECT 1 FROM tag WHERE ID_user = ".$_SESSION['UserID']." AND
     129         tag.type_translation = 2 AND tag.ID_translation = npc_text.ID)", $_SESSION['limitx'].','.$_SESSION['limity'],'check');
    124130      }
     131
    125132      if(array_key_exists('notvote', $_GET)) {
    126133        echo '<a Title="Zobrazit npc_texty podle vlasního filtru" href="npc_list.php?filter">Filtr npc_textù</a> ->
Note: See TracChangeset for help on using the changeset viewer.