Changeset 551 for trunk/pages/search.php
- Timestamp:
- Mar 29, 2009, 2:10:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/search.php
r405 r551 1 1 <?php 2 echo "<center><h3>Vyhledávání :</h3></center>";3 2 4 5 if (isset($_POST["find"]) AND $_POST["find_char"] != "")3 echo('<center><h3>Vyhledávání :</h3></center>'); 4 if(isset($_POST['find']) and $_POST['find_char'] != '') 6 5 { 7 8 9 $find = str_replace(" ", "+",$_POST["find_char"]); 10 11 echo " 12 13 <table align=\"center\" width=\"300\"> 14 <tr> 15 <td colspan=\"2\"><b>Vyhledáno na :</b></td> 16 </tr> 17 <tr> 18 <td>Stránky ohledně WoW</td> 19 <td>Vyhledávače</td> 20 </tr> 21 <tr> 22 <td><a href=\"http://wow.allakhazam.com/search.html?q=".$find."\" target=\"_blank\">Allakhazam</a></td> 23 <td><a href=\"http://www.google.cz/search?hl=cs&q=".$find."\" target=\"_blank\">Google</a></td> 24 </tr> 25 <tr> 26 <td><a href=\"http://www.wowhead.com/?search=".$find."\" target=\"_blank\">Wowhead</a></td> 27 <td><a href=\"http://search.yahoo.com/search?p=".$find."\" target=\"_blank\">Yahoo</a></td> 28 </tr> 29 <tr> 30 <td><a href=\"http://thottbot.com/?s=".$find."\" target=\"_blank\">Thottbot</a></td> 31 <td>-</td> 32 </tr> 33 <tr> 34 <td><a href=\"http://www.wowwiki.com/Special:Search?search=".$find."&go=1\" target=\"_blank\">WoWWiky</a></td> 35 <td>-</td> 36 </tr> 37 <tr> 38 <td colspan=\"2\"><a href=\"?page=search\">Nové vyhledávání</a></td> 39 </tr> 40 </table> 41 42 "; 43 44 45 46 } 47 else 6 $find = str_replace(' ', '+', $_POST['find_char']); 7 echo('<table align="center" width="300">'. 8 '<tr>'. 9 '<td colspan="2"><b>Vyhledáno na :</b></td>'. 10 '</tr>'. 11 '<tr>'. 12 '<td>Stránky ohledně WoW</td>'. 13 '.<td>Vyhledávače</td>'. 14 '</tr>'. 15 '<tr>'. 16 '<td><a href="http://wow.allakhazam.com/search.html?q='.$find.'" target="_blank">Allakhazam</a></td>'. 17 '<td><a href="http://www.google.cz/search?hl=cs&q='.$find.'" target="_blank">Google</a></td>'. 18 '</tr>'. 19 '<tr>'. 20 '<td><a href="http://www.wowhead.com/?search='.$find.'" target="_blank">Wowhead</a></td>'. 21 '<td><a href="http://search.yahoo.com/search?p='.$find.'" target="_blank">Yahoo</a></td>'. 22 '</tr>'. 23 '<tr>'. 24 '<td><a href="http://thottbot.com/?s='.$find.'" target="_blank">Thottbot</a></td>'. 25 '<td>-</td>'. 26 '</tr>'. 27 '<tr>'. 28 '<td><a href="http://www.wowwiki.com/Special:Search?search='.$find.'&go=1" target="_blank">WoWWiky</a></td>'. 29 '<td>-</td>'. 30 '</tr>'. 31 '<tr>'. 32 '<td colspan="2"><a href="?page=search">Nové vyhledávání</a></td>'. 33 '</tr>'. 34 '</table>'); 35 } else 48 36 { 49 echo " 50 <form method=\"post\"> 51 <table align=\"center\"> 52 <tr> 53 <td> 54 Klíčové slovo k vyhledání</td> 55 <td> 56 <input type=\"text\" name=\"find_char\"></td> 57 </tr> 58 <tr> 59 <td colspan=\"2\" align=\"right\"> 60 <input type=\"submit\" value=\"Hledat\" name=\"find\"></td> 61 </tr> 62 </table> 63 </form> 64 "; 37 echo('<form method="post">'. 38 '<table align="center">'. 39 '<tr>'. 40 '<td>'. 41 'Klíčové slovo k vyhledání</td>'. 42 '<td>'. 43 '<input type="text" name="find_char"></td>'. 44 '</tr>'. 45 '<tr>'. 46 '<td colspan="2" align="right">'. 47 '<input type="submit" value="Hledat" name="find"></td>'. 48 '</tr></table></form>'); 65 49 } 66 50 67 68 51 ?>
Note:
See TracChangeset
for help on using the changeset viewer.