[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_plugins/calendar_menu/search/search_parser.php,v $ 14 | $Revision: 1.1 $ 15 | $Date: 2005/08/22 18:38:14 $ 16 | $Author: sweetas $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 $return_fields = 'event_id, event_start, event_title, event_location, event_details'; 21 $search_fields = array('event_title', 'event_location', 'event_details'); 22 $weights = array('1.2', '0.6', '0.6'); 23 $no_results = LAN_198; 24 $where = ""; 25 $order = array('event_start' => DESC); 26 27 $ps = $sch -> parsesearch('event', $return_fields, $search_fields, $weights, 'search_events', $no_results, $where, $order); 28 $text .= $ps['text']; 29 $results = $ps['results']; 30 31 function search_events($row) { 32 global $con; 33 $res['link'] = e_PLUGIN."calendar_menu/event.php?".time().".event.".$row['event_id']; 34 $res['title'] = $row['event_title']; 35 $res['summary'] = $row['event_details']; 36 $res['detail'] = $row['event_location']." | ".$con -> convert_date($row['event_start'], "long"); 37 return $res; 38 } 39 40 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |