Search. Editing the search template

Principle of search of sites in toplist:
The entered line is split into words and search of each word runs separately, the found words are marked with color. Search of a site in all categories or the chosen category is possible. Fields in which the search will run, can be chosen; search in some fields is possible only with the permission of the toplist's admin.

The information on which search is possible:
snm - Site Name
sdc - Site Decription
sul - Site Url
sbu - Site Banner Url
sbw,sbh - Banner Height, Banner Width
sfu - *the status bar of a browser (Fake URL)
sru - *address from which the traffic goes (Reciprocal Link URL)
sf1,sf2,sf3 -*three configurable fields (Sample Image URL, ICQ Number, Contact Name)
sem - *Member's E-mail

*in the marked fields search is possible only with the permission of the admin.
Some fields can be renamed and filled with the information that is different from the information listed above.
On the left, names of input-forms for a choice of the information for search are specified. Using input-form with name 'select_search' being detected if the selection of search-forms is used. If there is not this form, then search runs only for the name and the description of the site.
Example:
<input type="hidden" name="select_search" value="ON">
<input type="checkbox" name="snm" value="ON" [#SNM#]> Site Name


Macros of html-template search page:
[#USR_FLD1_NAME#] - the name of the first appointed field
[#USR_FLD2_NAME#] - the name of the second appointed field
[#USR_FLD3_NAME#] - the name of the third appointed field

[#NUM#] - current number of the found site
[#CATEGORY#] - a category of a site
[#CAT_URL#] - the reference to a category
[#ID#] - Identifier of member
[#SITE_URL#] - the address of a site
[#TITLE#],[#TITLE_SELKEY#] - title of a site
[#DESCRIPTION#],[#DESCRPT_SELKEY#] - the description of a site
[#BANNER#] - html-code of a site banner
[#BNR_URL#],[#BNRURL_SELKEY#] - the address of a banner
[#BNR_WD#],[#BNRWD_SELKEY#] - width of a banner
[#BNR_HT#],[#BNRHT_SELKEY#] - height of a banner
[#FAKE_URL#],[#FAKEURL_SELKEY#] - a line of the browser status (Fake URL)
[#RCP_URL#],[#RCPURL_SELKEY#] - reciprocal Link URL
[#USR_FLD1#],[#USRFLD1_SELKEY#] - the first appointed field
[#USR_FLD2#],[#USRFLD2_SELKEY#] - the second appointed field
[#USR_FLD3#],[#USRFLD3_SELKEY#] - the third appointed field
[#EMAIL#], [#EMAIL_SELKEY#] e-mail address of member

[#PBNR_WD#],[#PBNR_HT#] - the configured sizes of a banner

In macro containing the text '_SELKEY' the found words will be highlighted.

Configuring the size of a banner:
It is possible to set the size of preliminary shown banner using the hidden forms (wpbanner, hpbanner). It is possible to set both two sizes and one of two. If one size is set, the second will be automatically calculated using proportions of the real size of a banner. If will not be set any size, a banner will be shown in real size.
Example of setting:
<input type="hidden" name="wpbanner" value="100">
<input type="hidden" name="hpbanner" value="60">