* * $Id: search.php,v 1.9 2000/08/20 17:45:09 haakon Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ include ".sipsconfig.php"; include $config["sipssys"] ."/code/stories.inc.php"; printTop(i18n("story search")); if (isset($search)) { print("

Rezultat wyszukiwania dla \"" .$search ."\"

"); $hits = searchStoriesForText($search, (isset($start)? $start : "0")); if (!$hits) print(i18n("No matches!")); else { print("\n\n"); for ($c=0; $c\n"); } print("
" .i18n("Story") ."" .i18n("Topic") ."" .i18n("Date") ."
" .$a["Title"] ."" .$a["Topic"] ."" .date("j F Y", $a["Time"]) ."
\n
"); print("< " .i18n("First") .""); if (count($hits) == $config["maxhits"]) print(" | " .i18n("Next") ." >"); } } else if (isset($topic)) { $hits = searchStoriesForTopic($topic); print("

" .i18n("Stories about #1#", ucfirst($topic)) ."

"); if (!$hits) { print(i18n("There's currently no stories about this topic in the database.")); } else { print("\n\n"); for ($c=0; $c\n"); } print("
" .i18n("Story") ."" .i18n("Date") ."
" .$a["Title"] ."" .date(" [d-m-Y]", $a["Time"]) ."
"); } } else { print("

" .i18n("Search #1#", $config["sitename"]) ."

"); } print("
\n
\n
"); printBottom(); ?>