Changeset 1125 for trunk/search.php


Ignore:
Timestamp:
Apr 5, 2006, 4:01:36 AM (18 years ago)
Author:
rvelices
Message:

image sort order for tags

very minor code and language simplifications and corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/search.php

    r1119 r1125  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | branch        : BSF (Best So Far)
     
    7373      );
    7474  }
    75  
     75
    7676  if ($_POST['search_author'])
    7777  {
     
    177177
    178178$template->set_filenames( array('search'=>'search.tpl') );
     179
     180$available_tags = get_available_tags(
     181      isset($user['forbidden_categories'])
     182      ? explode(',', $user['forbidden_categories'])
     183      : null
     184      );
     185usort( $available_tags, 'name_compare');
     186
    179187$template->assign_vars(array(
    180   'L_SEARCH_TITLE' => $lang['search_title'],
    181   'L_SEARCH_OPTIONS' => $lang['search_options'],
    182   'L_RETURN' => $lang['home'],
    183   'L_SUBMIT' => $lang['submit'],
    184   'L_RESET' => $lang['reset'],
    185   'L_SEARCH_KEYWORDS'=>$lang['search_keywords'],
    186   'L_SEARCH_ANY_TERMS'=>$lang['search_mode_or'],
    187   'L_SEARCH_ALL_TERMS'=>$lang['search_mode_and'],
    188   'L_SEARCH_AUTHOR'=>$lang['search_author'],
    189   'L_SEARCH_AUTHOR_HINT'=>$lang['search_explain'],
    190   'L_SEARCH_CATEGORIES'=>$lang['search_categories'],
    191   'L_SEARCH_SUBFORUMS'=>$lang['search_subcats_included'],
    192   'L_YES' => $lang['yes'],
    193   'L_NO' => $lang['no'],
    194   'L_SEARCH_DATE' => $lang['search_date'],
    195   'L_TODAY' => $lang['today'],
    196   'L_SEARCH_DATE_FROM'=>$lang['search_date_from'],
    197   'L_SEARCH_DATE_TO'=>$lang['search_date_to'],
    198   'L_DAYS'=>$lang['days'],
    199   'L_MONTH'=>$lang['w_month'],
    200   'L_SEARCH_DATE_TYPE'=>$lang['search_date_type'],
    201   'L_RESULT_SORT'=>$lang['search_sort'],
    202   'L_SORT_ASCENDING'=>$lang['search_ascending'],
    203   'L_SORT_DESCENDING'=>$lang['search_descending'],
    204 
    205188  'TODAY_DAY' => date('d', time()),
    206189  'TODAY_MONTH' => date('m', time()),
     
    211194
    212195  'TAG_SELECTION' => get_html_tag_selection(
    213     get_available_tags(
    214       isset($user['forbidden_categories'])
    215       ? explode(',', $user['forbidden_categories'])
    216       : null
    217       ),
     196    $available_tags,
    218197    'tags',
    219198    isset($_POST['tags']) ? $_POST['tags'] : array()
Note: See TracChangeset for help on using the changeset viewer.