[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_plugins/forum/search/ -> search_advanced.php (source)

   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/forum/search/search_advanced.php,v $
  14  |     $Revision: 1.2 $
  15  |     $Date: 2005/12/14 19:28:44 $
  16  |     $Author: sweetas $
  17  +----------------------------------------------------------------------------+
  18  */
  19  
  20  if (!defined('e107_INIT')) { exit; }
  21  
  22  $advanced['forum']['type'] = 'dropdown';
  23  $advanced['forum']['text'] = FOR_SCH_LAN_2.':';
  24  $advanced['forum']['list'][] = array('id' => 'all', 'title' => FOR_SCH_LAN_3);
  25  
  26  $advanced_caption['id'] = 'forum';
  27  $advanced_caption['title']['all'] = FOR_SCH_LAN_3;
  28  
  29  if ($sql -> db_Select_gen("SELECT f.forum_id, f.forum_name FROM #forum AS f LEFT JOIN #forum AS fp ON fp.forum_id = f.forum_parent WHERE f.forum_parent != 0 AND fp.forum_class IN (".USERCLASS_LIST.") AND f.forum_class IN (".USERCLASS_LIST.")")) {
  30      while ($row = $sql -> db_Fetch()) {
  31          $advanced['forum']['list'][] = array('id' => $row['forum_id'], 'title' => $row['forum_name']);
  32          $advanced_caption['title'][$row['forum_id']] = FOR_SCH_LAN_1.' -> '.$row['forum_name'];
  33      }
  34  }
  35  
  36  $advanced['date']['type'] = 'date';
  37  $advanced['date']['text'] = LAN_SEARCH_50.':';
  38  
  39  $advanced['author']['type'] = 'author';
  40  $advanced['author']['text'] = LAN_SEARCH_61.':';
  41  
  42  $advanced['match']['type'] = 'dropdown';
  43  $advanced['match']['text'] = LAN_SEARCH_52.':';
  44  $advanced['match']['list'][] = array('id' => 0, 'title' => FOR_SCH_LAN_4);
  45  $advanced['match']['list'][] = array('id' => 1, 'title' => LAN_SEARCH_54);
  46  
  47  ?>


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7