Main Page | Directories | File List | File Members

project/search.php

Go to the documentation of this file.
00001 <?php
00002 # This file is part of the Savane project
00003 # <http://gna.org/projects/savane/>
00004 #
00005 # $Id: search.php 5385 2006-02-15 15:09:19Z yeupou $
00006 #
00007 #  Copyright 2005-2006 (c) Mathieu Roy <yeupou--gnu.org>
00008 #
00009 # The Savane project is free software; you can redistribute it and/or
00010 # modify it under the terms of the GNU General Public License
00011 # as published by the Free Software Foundation; either version 2
00012 # of the License, or (at your option) any later version.
00013 #
00014 # The Savane project is distributed in the hope that it will be useful,
00015 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 # GNU General Public License for more details.
00018 #
00019 # You should have received a copy of the GNU General Public License
00020 # along with the Savane project; if not, write to the Free Software
00021 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00022 
00023 require "../include/pre.php";
00024 
00025 site_project_header(array('group'=>$group_id,
00026                           'context'=>'searchingroup'));
00027 
00028 
00029 # Ideally, we would like to do a real site wide search, which mean being able 
00030 # to do a search without selecting a given tracker.
00031 # To do that, we must run a SQL command per tracker, put everything in an 
00032 # array. Fine, but the current function returns SQL results, and we wont 
00033 # change that right now. So we ask the user to provide input.
00034 # But it has to be kept in mind that we want this page to allow a search
00035 # over all trackers, in the end.
00036 print '<p>'.sprintf(_("With the following form, you can perform a search in the items summaries and details of a given tracker of the project %s. If you need to perform more complex search, use the query forms in Browse items page of this tracker. If you want to perform a site-wide search, use the search box in the left menu."), group_getname($group_id)).'</p>';
00037 # use the string alltrackers to say we want a search to be performed over 
00038 # all of them
00039 # (this must not be in a boxoption, it is no option, it is the only purpose of
00040 # the page)
00041 print '<p>'.search_box('', '', 45).'</p>';
00042 
00043 site_project_footer(array());
00044 
00045 ?>

Generated on Sun Feb 26 13:23:04 2006 for Savane PHP Frontend Developer Reference by  doxygen 1.4.4