mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
207 lines
4.7 KiB
PHP
207 lines
4.7 KiB
PHP
<?php
|
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); }
|
|
/*
|
|
if (!defined('SEARCH_SHORTCODE_REF')) {
|
|
define('SEARCH_SHORTCODE_REF',"");
|
|
}
|
|
*/
|
|
|
|
|
|
if(!isset($SEARCH_SHORTCODE))
|
|
{
|
|
|
|
$SEARCH_SHORTCODE = "<input class='tbox search' type='text' name='q' size='20' value='' maxlength='50' />
|
|
<input class='btn btn-default button search' type='submit' name='s' value=\"".LAN_180."\" />";
|
|
|
|
/* // Image Version Example
|
|
$SEARCH_SHORTCODE = "<input class='tbox search' type='text' name='q' size='20' value='Default Value' maxlength='50' onclick=\"this.value=''\" />
|
|
<input type='image' name='s' src='".e_PLUGIN_ABS."search_menu/images/search.png' value='".LAN_180."' style='width: 16px; height: 16px; border: 0px; vertical-align: middle' />";
|
|
*/
|
|
}
|
|
|
|
|
|
|
|
|
|
if(!isset($SEARCH_TOP_TABLE))
|
|
{
|
|
$SEARCH_TOP_TABLE = "<div>
|
|
<form id='searchform' method='get' action='".e_SELF."'>
|
|
<table style='".USER_WIDTH."' class='table fborder'><tr>
|
|
<td class='forumheader3' style='width: 40%'>".LAN_199."</td>
|
|
<td class='forumheader3' style='width: 60%; white-space: nowrap'>
|
|
{SEARCH_MAIN_SEARCHFIELD} {SEARCH_MAIN_SUBMIT} {ENHANCED_ICON}
|
|
</td>
|
|
</tr>";
|
|
}
|
|
|
|
|
|
|
|
if(!isset($SEARCH_ENHANCED))
|
|
{
|
|
$SEARCH_ENHANCED = "<tr id='{ENHANCED_DISPLAY_ID}' {ENHANCED_DISPLAY}>
|
|
<td class='forumheader3' style='width: 40%; white-space: nowrap'>{ENHANCED_TEXT}</td>
|
|
<td class='forumheader3' style='width: 60%; white-space: nowrap'>
|
|
{ENHANCED_FIELD}
|
|
</td>
|
|
</tr>";
|
|
}
|
|
|
|
|
|
|
|
if(!isset($SEARCH_CATS))
|
|
{
|
|
$SEARCH_CATS = "<tr>
|
|
<td style='width:30%' class='forumheader3'>".LAN_SEARCH_19."<br />
|
|
{SEARCH_MAIN_CHECKALL} {SEARCH_MAIN_UNCHECKALL}
|
|
</td>
|
|
<td style='width:70%' class='forumheader3'>
|
|
{SEARCH_MAIN_CHECKBOXES}{SEARCH_DROPDOWN} {SEARCH_ADVANCED}
|
|
<br />
|
|
</td>
|
|
</tr>";
|
|
}
|
|
|
|
|
|
if(!isset($SEARCH_TYPE))
|
|
{
|
|
$SEARCH_TYPE = "<tr id='advanced_type' {SEARCH_TYPE_DISPLAY}>
|
|
<td style='width:30%' class='forumheader3'>".LAN_SEARCH_75.":</td>
|
|
<td style='width:70%' class='forumheader3'>
|
|
{SEARCH_TYPE_SEL}
|
|
<br />
|
|
</td>
|
|
</tr>";
|
|
}
|
|
|
|
|
|
if(!isset($SEARCH_ADV))
|
|
{
|
|
$SEARCH_ADV = "<tr>
|
|
<td class='forumheader3'>
|
|
{SEARCH_ADV_A}
|
|
</td>
|
|
<td class='forumheader3'>
|
|
{SEARCH_ADV_B}
|
|
</td>
|
|
</tr>";
|
|
}
|
|
|
|
|
|
if(!isset($SEARCH_ADV_COMBO))
|
|
{
|
|
$SEARCH_ADV_COMBO = "<tr>
|
|
<td class='forumheader3' colspan='2'>
|
|
{SEARCH_ADV_TEXT}
|
|
</td>
|
|
</tr>";
|
|
}
|
|
|
|
|
|
if(!isset($SEARCH_TABLE_MSG))
|
|
{
|
|
$SEARCH_TABLE_MSG = "<tr>
|
|
<td class='forumheader3' style='text-align: center' colspan='2'>
|
|
{SEARCH_MESSAGE}
|
|
</td>
|
|
</tr>";
|
|
}
|
|
|
|
|
|
if(!isset($SEARCH_BOT_TABLE))
|
|
{
|
|
$SEARCH_BOT_TABLE = "<tr style='display: none !important; display: visible'>
|
|
<td style='display: none' colspan='2'></td>
|
|
</tr></table>
|
|
</form>
|
|
</div>";
|
|
}
|
|
|
|
|
|
if(!isset($PRE_CHECKBOXES))
|
|
{
|
|
$PRE_CHECKBOXES = "<span style='white-space: nowrap; padding-bottom: 7px; padding-top: 7px'>"; /* string thats printed before each category checkbox */
|
|
}
|
|
|
|
if(!isset($POST_CHECKBOXES))
|
|
{
|
|
$POST_CHECKBOXES = "</span>"; /* string thats printed after each category checkbox */
|
|
}
|
|
|
|
|
|
|
|
// Bootstrap v2.
|
|
|
|
|
|
$SEARCH_TEMPLATE['form']['start'] = '
|
|
<form class="form-horizontal" role="form" id="searchform" method="get" action="'.e_SELF.'">
|
|
<div class="form-group">
|
|
<label for="inputEmail3" class="col-sm-3 control-label">'.LAN_199.'</label>
|
|
<div class="col-sm-9">{SEARCH_MAIN}
|
|
</div>
|
|
</div>
|
|
<div id="search-enhanced" {ENHANCED_DISPLAY}>
|
|
{SEARCH_ENHANCED}
|
|
</div>
|
|
';
|
|
|
|
$SEARCH_TEMPLATE['form']['advanced'] = '
|
|
<div class="form-group">
|
|
<label for="inputPassword3" class="col-sm-3 control-label">{SEARCH_ADV_A}</label>
|
|
<div class="col-sm-9">
|
|
|
|
{SEARCH_ADV_B}
|
|
|
|
</div>
|
|
</div>';
|
|
|
|
|
|
|
|
$SEARCH_TEMPLATE['form']['enhanced'] = '
|
|
<div id="{ENHANCED_DISPLAY_ID}" class="form-group">
|
|
<label for="inputPassword3" class="col-sm-3 control-label">{ENHANCED_TEXT}</label>
|
|
<div class="col-sm-9">
|
|
{ENHANCED_FIELD}
|
|
</div>
|
|
</div>';
|
|
|
|
|
|
/*
|
|
$SEARCH_TEMPLATE['form']['type'] = '
|
|
<div class="form-group">
|
|
<label for="inputPassword3" class="col-sm-3 control-label">'.LAN_SEARCH_75.'</label>
|
|
<div class="col-sm-9">
|
|
{SEARCH_TYPE_SEL}
|
|
</div>
|
|
</div>';
|
|
*/
|
|
|
|
$SEARCH_TEMPLATE['form']['category'] = '
|
|
<div class="form-group">
|
|
<label for="inputPassword3" class="col-sm-3 control-label">'.LAN_SEARCH_19.'</label>
|
|
<div class="col-sm-9">
|
|
{SEARCH_MAIN_CHECKBOXES}{SEARCH_DROPDOWN} {SEARCH_ADVANCED}
|
|
</div>
|
|
</div>';
|
|
|
|
$SEARCH_TEMPLATE['form']['end'] = "
|
|
</form>
|
|
";
|
|
|
|
$SEARCH_TEMPLATE['form']['advanced-combo'] = '<div>{SEARCH_ADV_TEXT}</div>';
|
|
|
|
|
|
/*
|
|
|
|
"<tr>
|
|
<td style='width:30%' class='forumheader3'>".LAN_SEARCH_19."<br />
|
|
{SEARCH_MAIN_CHECKALL} {SEARCH_MAIN_UNCHECKALL}
|
|
</td>
|
|
<td style='width:70%' class='forumheader3'>
|
|
{SEARCH_MAIN_CHECKBOXES}{SEARCH_DROPDOWN} {SEARCH_ADVANCED}
|
|
<br />
|
|
</td>
|
|
</tr>";
|
|
*/
|
|
?>
|