mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 12:21:45 +02:00
Search upgrades - new e_search.php standard added.
This commit is contained in:
@@ -9,7 +9,8 @@ if (!defined('SEARCH_SHORTCODE_REF')) {
|
||||
*/
|
||||
|
||||
|
||||
if (!isset($SEARCH_SHORTCODE)) {
|
||||
if(!isset($SEARCH_SHORTCODE))
|
||||
{
|
||||
|
||||
$SEARCH_SHORTCODE = "<input class='tbox search' type='text' name='q' size='20' value='' maxlength='50' />
|
||||
<input class='btn button search' type='submit' name='s' value=\"".LAN_180."\" />";
|
||||
@@ -23,8 +24,9 @@ if (!isset($SEARCH_SHORTCODE)) {
|
||||
|
||||
|
||||
|
||||
if (!isset($SEARCH_TOP_TABLE)) {
|
||||
$SEARCH_TOP_TABLE = "<div style='text-align: center'>
|
||||
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>
|
||||
@@ -34,7 +36,10 @@ if (!isset($SEARCH_TOP_TABLE)) {
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if (!isset($SEARCH_ENHANCED)) {
|
||||
|
||||
|
||||
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'>
|
||||
@@ -43,7 +48,10 @@ if (!isset($SEARCH_ENHANCED)) {
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if (!isset($SEARCH_CATS)) {
|
||||
|
||||
|
||||
if(!isset($SEARCH_CATS))
|
||||
{
|
||||
$SEARCH_CATS = "<tr>
|
||||
<td style='width:30%' class='forumheader3'>".LAN_SEARCH_19."<br />
|
||||
{SEARCH_MAIN_CHECKALL} {SEARCH_MAIN_UNCHECKALL}
|
||||
@@ -55,7 +63,9 @@ if (!isset($SEARCH_CATS)) {
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if (!isset($SEARCH_TYPE)) {
|
||||
|
||||
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'>
|
||||
@@ -65,7 +75,9 @@ if (!isset($SEARCH_TYPE)) {
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if (!isset($SEARCH_ADV)) {
|
||||
|
||||
if(!isset($SEARCH_ADV))
|
||||
{
|
||||
$SEARCH_ADV = "<tr>
|
||||
<td class='forumheader3'>
|
||||
{SEARCH_ADV_A}
|
||||
@@ -76,7 +88,9 @@ if (!isset($SEARCH_ADV)) {
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if (!isset($SEARCH_ADV_COMBO)) {
|
||||
|
||||
if(!isset($SEARCH_ADV_COMBO))
|
||||
{
|
||||
$SEARCH_ADV_COMBO = "<tr>
|
||||
<td class='forumheader3' colspan='2'>
|
||||
{SEARCH_ADV_TEXT}
|
||||
@@ -84,7 +98,9 @@ if (!isset($SEARCH_ADV_COMBO)) {
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if (!isset($SEARCH_TABLE_MSG)) {
|
||||
|
||||
if(!isset($SEARCH_TABLE_MSG))
|
||||
{
|
||||
$SEARCH_TABLE_MSG = "<tr>
|
||||
<td class='forumheader3' style='text-align: center' colspan='2'>
|
||||
{SEARCH_MESSAGE}
|
||||
@@ -92,7 +108,9 @@ if (!isset($SEARCH_TABLE_MSG)) {
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if (!isset($SEARCH_BOT_TABLE)) {
|
||||
|
||||
if(!isset($SEARCH_BOT_TABLE))
|
||||
{
|
||||
$SEARCH_BOT_TABLE = "<tr style='display: none !important; display: visible'>
|
||||
<td style='display: none' colspan='2'></td>
|
||||
</tr></table>
|
||||
@@ -100,12 +118,86 @@ if (!isset($SEARCH_BOT_TABLE)) {
|
||||
</div>";
|
||||
}
|
||||
|
||||
if (!isset($PRE_CHECKBOXES)) {
|
||||
|
||||
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)) {
|
||||
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_SEARCHFIELD}{SEARCH_MAIN_SUBMIT} {ENHANCED_ICON}
|
||||
</div>
|
||||
</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 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>";
|
||||
*/
|
||||
?>
|
Reference in New Issue
Block a user