diff options
author | Nils Adermann <naderman@naderman.de> | 2006-03-15 23:20:04 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2006-03-15 23:20:04 +0000 |
commit | 7fd17b8251879e6f4592d7c4b5ebdc9faa405429 (patch) | |
tree | a59e660e49183d63f2d1816c38952ad662bf2c88 /phpBB/adm/style/acp_search.html | |
parent | e221b03b957e49cb2248b91af303c453c4d1e975 (diff) | |
download | forums-7fd17b8251879e6f4592d7c4b5ebdc9faa405429.tar forums-7fd17b8251879e6f4592d7c4b5ebdc9faa405429.tar.gz forums-7fd17b8251879e6f4592d7c4b5ebdc9faa405429.tar.bz2 forums-7fd17b8251879e6f4592d7c4b5ebdc9faa405429.tar.xz forums-7fd17b8251879e6f4592d7c4b5ebdc9faa405429.zip |
- removed search settings from load page
- no need to retrieve mysql information on every page => removed (fulltext_mysql)
- added init() method to search plugins which is called when the search backend is changed
- optional create/delete index functions for methods which don't need to loop through all posts (like fulltext_mysql)
- index statistic functions for search plugins, displayed on acp search index page
- only remove words above 60% (fulltext_phpbb)
- added acp method to search plugins so they can display config options specific to a certain search backend
- renamed fulltext_phpbb specific options to make clear that they are a part of the plugin
- reordered lang entries for the load settings section
added acp_search.php:
- settings: general options / search backend / backend specific options
- index: statistics / delete index / create index (progress popup while processing)
git-svn-id: file:///svn/phpbb/trunk@5636 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/style/acp_search.html')
-rw-r--r-- | phpBB/adm/style/acp_search.html | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/phpBB/adm/style/acp_search.html b/phpBB/adm/style/acp_search.html new file mode 100644 index 0000000000..3ec8095720 --- /dev/null +++ b/phpBB/adm/style/acp_search.html @@ -0,0 +1,119 @@ +<!-- INCLUDE overall_header.html --> + +<a name="maincontent"></a> + +<!-- IF S_SETTINGS --> +<h1>{L_ACP_SEARCH_SETTINGS}</h1> + +<p>{L_ACP_SEARCH_SETTINGS_EXPLAIN}</p> + +<form id="acp_search" method="post" action="{U_ACTION}"> +<fieldset> + <legend>{L_GENERAL_SEARCH_SETTINGS}</legend> + + <dl> + <dt><label for="load_search">{L_YES_SEARCH}:</label><br /><span>{L_YES_SEARCH_EXPLAIN}</span></dt> + <dd><input type="radio" id="load_search" name="config[load_search]" value="1"<!-- IF S_YES_SEARCH --> checked="checked"<!-- ENDIF --> class="radio" /> {L_YES} <input type="radio" name="config[load_search]" value="0"<!-- IF not S_YES_SEARCH --> checked="checked"<!-- ENDIF --> class="radio" /> {L_NO}</dd> + </dl> + <dl> + <dt><label for="search_interval">{L_SEARCH_INTERVAL}:</label><br /><span>{L_SEARCH_INTERVAL_EXPLAIN}</span></dt> + <dd><input id="search_interval" type="text" size="4" maxlength="4" name="config[search_interval]" value="{SEARCH_INTERVAL}" /></dd> + </dl> + <dl> + <dt><label for="limit_search_load">{L_LIMIT_SEARCH_LOAD}:</label><br /><span>{L_LIMIT_SEARCH_LOAD_EXPLAIN}</span></dt> + <dd><input id="limit_search_load" type="text" size="4" maxlength="4" name="config[limit_search_load]" value="{LIMIT_SEARCH_LOAD}" /></dd> + </dl> + <dl> + <dt><label for="min_search_author_chars">{L_MIN_SEARCH_AUTHOR_CHARS}:</label><br /><span>{L_MIN_SEARCH_AUTHOR_CHARS_EXPLAIN}</span></dt> + <dd><input id="min_search_author_chars" type="text" size="4" maxlength="4" name="config[min_search_author_chars]" value="{MIN_SEARCH_AUTHOR_CHARS}" /></dd> + </dl> + <dl> + <dt><label for="search_store_results">{L_SEARCH_STORE_RESULTS}:</label><br /><span>{L_SEARCH_STORE_RESULTS_EXPLAIN}</span></dt> + <dd><input id="search_store_results" type="text" size="4" maxlength="6" name="config[search_store_results]" value="{SEARCH_STORE_RESULTS}" /></dd> + </dl> +</fieldset> + +<fieldset> + <legend>{L_SEARCH_TYPE}</legend> + + <dl> + <dt><label for="search_type">{L_SEARCH_TYPE}:</label><br /><span>{L_SEARCH_TYPE_EXPLAIN}</span></dt> + <dd><select id="search_type" name="config[search_type]">{S_SEARCH_TYPES}</select></dd> + </dl> +</fieldset> + +<!-- BEGIN backend --> +<fieldset> + <legend>{backend.NAME}</legend> + + {backend.SETTINGS} +</fieldset> +<!-- END backend --> + +<fieldset class="submit-buttons"> + <input class="button1" type="submit" id="submit" name="submit" value="Submit" /> + <input class="button2" type="reset" id="reset" name="reset" value="Reset" /> +</fieldset> + +</form> + +<!-- ELSEIF S_INDEX --> +<script language="javascript" type="text/javascript"> +<!-- + function popup_progress_bar(progress_type) + { + close_waitscreen = 0; + window.open('{U_PROGRESS_BAR}&type=' + progress_type, '_index', 'HEIGHT=200,resizable=yes,scrollbars=no,WIDTH=400'); + } +//--> +</script> + +<h1>{L_ACP_SEARCH_INDEX}</h1> + +<p>{L_ACP_SEARCH_INDEX_EXPLAIN}</p> + +<!-- IF S_CONTINUE_INDEXING --> + <a href="{U_CONTINUE_INDEXING}" onclick="javascript:popup_progress_bar('{S_CONTINUE_INDEXING}');">{L_CONTINUE}</a> + + <p>{L_CONTINUE_EXPLAIN}</p> +<!-- ELSE --> +<!-- BEGIN backend --> +<!-- IF backend.S_STATS --> +<table cellspacing="1"> + <caption>» {L_INDEX_STATS}: {backend.L_NAME} <!-- IF backend.S_ACTIVE -->({L_ACTIVE}) <!-- ENDIF --></caption> + <col class="col1" /><col class="col2" /><col class="col1" /><col class="col2" /> + <thead> + <tr> + <th>{L_STATISTIC}</th> + <th>{L_VALUE}</th> + <th>{L_STATISTIC}</th> + <th>{L_VALUE}</th> + </tr> + </thead> + <tbody> + <!-- BEGIN data --> + <tr> + <td>{backend.data.STATISTIC_1}:</td> + <td>{backend.data.VALUE_1}</td> + <td>{backend.data.STATISTIC_2}<!-- IF backend.data.STATISTIC_2 -->:<!-- ENDIF --></td> + <td>{backend.data.VALUE_2}</td> + </tr> + <!-- END data --> + </tbody> +</table> +<!-- ENDIF --> +<form id="acp_search_index_{backend.NAME}" method="post" action="{U_ACTION}"> +{backend.S_HIDDEN_FIELDS} + <fieldset class="quick"> + <!-- IF backend.S_INDEXED --> + <input class="button2" type="submit" name="action[delete]" value="{L_DELETE_INDEX}" onclick="javascript:popup_progress_bar('delete')" /> + <!-- ELSE --> + <input class="button2" type="submit" name="action[create]" value="{L_CREATE_INDEX}" onclick="javascript:popup_progress_bar('create')" /> + <!-- ENDIF --> + </fieldset> +</form> +<!-- END backend --> +<!-- ENDIF --> +<!-- ENDIF --> + +<!-- INCLUDE overall_footer.html -->
\ No newline at end of file |