Changeset 208 for quests/action.php


Ignore:
Timestamp:
Jan 11, 2008, 10:12:28 PM (17 years ago)
Author:
maron
Message:

Vyhledávání, oprava Q pro moderátory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/action.php

    r204 r208  
    3737    } else echo 'Ji¾ jste hlasoval!';
    3838  }
    39          
     39
     40  if (array_key_exists('search', $_GET)) {
     41    $Search = $_GET['search'];
     42 
     43 
     44  $sql = "SELECT *
     45FROM `quests`.`quests`
     46WHERE `ID` LIKE '%$Search%'
     47OR `entry` LIKE '%$Search%'
     48OR `Title` LIKE CONVERT( _utf8 '%$Search%'
     49USING latin2 )
     50COLLATE latin2_czech_cs
     51OR `Details` LIKE CONVERT( _utf8 '%$Search%'
     52USING latin2 )
     53COLLATE latin2_czech_cs
     54OR `Objectives` LIKE CONVERT( _utf8 '%$Search%'
     55USING latin2 )
     56COLLATE latin2_czech_cs
     57OR `OfferRewardText` LIKE CONVERT( _utf8 '%$Search%'
     58USING latin2 )
     59COLLATE latin2_czech_cs
     60OR `RequestItemsText` LIKE CONVERT( _utf8 '%$Search%'
     61USING latin2 )
     62COLLATE latin2_czech_cs
     63OR `EndText` LIKE CONVERT( _utf8 '%$Search%'
     64USING latin2 )
     65COLLATE latin2_czech_cs
     66OR `ObjectiveText1` LIKE CONVERT( _utf8 '%$Search%'
     67USING latin2 )
     68COLLATE latin2_czech_cs
     69OR `ObjectiveText2` LIKE CONVERT( _utf8 '%$Search%'
     70USING latin2 )
     71COLLATE latin2_czech_cs
     72OR `ObjectiveText3` LIKE CONVERT( _utf8 '%$Search%'
     73USING latin2 )
     74COLLATE latin2_czech_cs
     75OR `ObjectiveText4` LIKE CONVERT( _utf8 '%$Search%'
     76USING latin2 )
     77COLLATE latin2_czech_cs
     78OR `Language` LIKE '%$Search%'
     79OR `Vote` LIKE '%$Search%'
     80OR `User` LIKE '%$Search%'
     81OR `complete` LIKE '%$Search%'";
     82
     83 
     84        echo '<table border="1" cellpadding="2" cellspacing="0">
     85              <tr><th>Poøadové èíslo</th><th>ID questu</th><th>Název Questu</th><th>Poèet hlasù</th></tr>';
     86        $ID = $Database->SQLCommand($sql);
     87          while ($Line = mysql_fetch_array($ID)) {
     88            echo '<tr><td><a href="form.php?ID='.$Line['ID'].'">'.$Line['ID'].'</a></td>
     89            <td>'.$Line['entry'].'</td>
     90            <td>'.$Line['Title'].'</td>
     91            <td>'.$Line['Vote'].'</td></tr>';
     92          }
     93        echo '</table>'; 
     94 
     95 
     96 
     97  }       
    4098  ShowFooter();     
    4199?>
Note: See TracChangeset for help on using the changeset viewer.