Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help for advanced search


Paradisebg

Recommended Posts

Posted
I want when box "Keyword" is empty automatic to put "." or "."

 

you are selling dots?

Treasurer MFC

Posted
you are selling dots?

No, I don't want error in advanced_search_result.php

At least one of the fields in the search form must be entered.

Posted
No, I don't want error in advanced_search_result.php

At least one of the fields in the search form must be entered.

 

then why not put your most valuable keyword in there?

 

echo tep_draw_input_field('keywords', 'My most valuable keyword');

Treasurer MFC

Posted
then why not put your most valuable keyword in there?

 

echo tep_draw_input_field('keywords', 'My most valuable keyword');

Wher to put this?

Posted
Wher to put this?

 

in advanced_search.php

 

$info_box_contents = array();

$info_box_contents[] = array('text' => tep_draw_input_field('keywords', '', 'style="width: 100%"'));

$info_box_contents[] = array('align' => 'right', 'text' => tep_draw_checkbox_field('search_in_description', '1') . ' ' . TEXT_SEARCH_IN_DESCRIPTION);

 

 

becomes:

 

$info_box_contents = array();

$info_box_contents[] = array('text' => tep_draw_input_field('keywords', 'search for Dots', 'style="width: 100%"'));

$info_box_contents[] = array('align' => 'right', 'text' => tep_draw_checkbox_field('search_in_description', '1') . ' ' . TEXT_SEARCH_IN_DESCRIPTION);

Treasurer MFC

Posted
Can I use?

onFocus="this.value=' ' "value="."

and how?

 

like?

 

$info_box_contents[] = array('text' => tep_draw_input_field('keywords', 'Show me the Dots', 'style="width: 100%" onFocus="this.value=\'\';"'));

Treasurer MFC

Posted
like?

 

$info_box_contents[] = array('text' => tep_draw_input_field('keywords', 'Show me the Dots', 'style="width: 100%" onFocus="this.value=\'\';"'));

when use click on box the 'search for Dots' to be delete

Posted

Now code is:

<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_ADVSEARCH);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('form' => tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
						   'text' => '<table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_KW . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '.', '', 'size="15" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px" ') . BOX_ADVSEARCH_TEX . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_PRICERANGE . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_input_field('pfrom','','size="4" maxlength="8"') . BOX_ADVSEARCH_PRICESEP . tep_draw_input_field('pto','','size="4" maxlength="8"') . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_CAT . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ADVSEARCH_ALLCAT)))) . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_REG . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_pull_down_menu('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => BOX_ADVSEARCH_ALLREG)))) . '</td></tr><tr><td class="infoBoxContents" align="center" valign="top" colspan="3">' . tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH) . '</td></tr></table>');

 new infoBox($info_box_contents);
?>

Posted
Now code is:

<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_ADVSEARCH);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('form' => tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
						   'text' => '<table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_KW . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '.', '', 'size="15" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px" ') . BOX_ADVSEARCH_TEX . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_PRICERANGE . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_input_field('pfrom','','size="4" maxlength="8"') . BOX_ADVSEARCH_PRICESEP . tep_draw_input_field('pto','','size="4" maxlength="8"') . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_CAT . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ADVSEARCH_ALLCAT)))) . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_REG . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_pull_down_menu('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => BOX_ADVSEARCH_ALLREG)))) . '</td></tr><tr><td class="infoBoxContents" align="center" valign="top" colspan="3">' . tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH) . '</td></tr></table>');

 new infoBox($info_box_contents);
?>

 

ah, that is you little box:

 

 

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_ADVSEARCH);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('form' => tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),

'text' => '<table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_KW . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '.', '', 'size="15" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px" onFocus="this.value=\'\';" ') . BOX_ADVSEARCH_TEX . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_PRICERANGE . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_input_field('pfrom','','size="4" maxlength="8"') . BOX_ADVSEARCH_PRICESEP . tep_draw_input_field('pto','','size="4" maxlength="8"') . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_CAT . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ADVSEARCH_ALLCAT)))) . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_REG . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_pull_down_menu('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => BOX_ADVSEARCH_ALLREG)))) . '</td></tr><tr><td class="infoBoxContents" align="center" valign="top" colspan="3">' . tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH) . '</td></tr></table>');

 

new infoBox($info_box_contents);

?>

Treasurer MFC

Posted

:'( :'( :'( :'(

THIS IS NOT WORK

 

 

ah, that is you little box:

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_ADVSEARCH);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('form' => tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),

'text' => '<table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_KW . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '.', '', 'size="15" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px" onFocus="this.value=\'\';" ') . BOX_ADVSEARCH_TEX . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_PRICERANGE . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_input_field('pfrom','','size="4" maxlength="8"') . BOX_ADVSEARCH_PRICESEP . tep_draw_input_field('pto','','size="4" maxlength="8"') . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_CAT . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ADVSEARCH_ALLCAT)))) . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_REG . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_pull_down_menu('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => BOX_ADVSEARCH_ALLREG)))) . '</td></tr><tr><td class="infoBoxContents" align="center" valign="top" colspan="3">' . tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH) . '</td></tr></table>');

 

new infoBox($info_box_contents);

?>

Posted
:'( :'( :'( :'(

THIS IS NOT WORK

 

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_ADVSEARCH);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('form' => tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),

'text' => '<table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_KW . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', 'hello', 'size="15" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px" onFocus="this.value=\'\';" ') . BOX_ADVSEARCH_TEX . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_PRICERANGE . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_input_field('pfrom','','size="4" maxlength="8"') . BOX_ADVSEARCH_PRICESEP . tep_draw_input_field('pto','','size="4" maxlength="8"') . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_CAT . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ADVSEARCH_ALLCAT)))) . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_REG . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_pull_down_menu('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => BOX_ADVSEARCH_ALLREG)))) . '</td></tr><tr><td class="infoBoxContents" align="center" valign="top" colspan="3">' . tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH) . '</td></tr></table>');

 

new infoBox($info_box_contents);

?>

Treasurer MFC

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...