Paradisebg Posted December 12, 2006 Posted December 12, 2006 I want when box "Keyword" is empty automatic to put "." or "."
boxtel Posted December 12, 2006 Posted December 12, 2006 I want when box "Keyword" is empty automatic to put "." or "." you are selling dots? Treasurer MFC
Paradisebg Posted December 12, 2006 Author Posted December 12, 2006 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.
boxtel Posted December 12, 2006 Posted December 12, 2006 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
Paradisebg Posted December 12, 2006 Author Posted December 12, 2006 then why not put your most valuable keyword in there? echo tep_draw_input_field('keywords', 'My most valuable keyword'); Wher to put this?
boxtel Posted December 12, 2006 Posted December 12, 2006 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
Paradisebg Posted December 12, 2006 Author Posted December 12, 2006 Can I use? onFocus="this.value=' ' "value="." and how?
boxtel Posted December 12, 2006 Posted December 12, 2006 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
Paradisebg Posted December 12, 2006 Author Posted December 12, 2006 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
Paradisebg Posted December 12, 2006 Author Posted December 12, 2006 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); ?>
boxtel Posted December 12, 2006 Posted December 12, 2006 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
Paradisebg Posted December 12, 2006 Author Posted December 12, 2006 :'( :'( :'( :'( 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); ?>
boxtel Posted December 12, 2006 Posted December 12, 2006 :'( :'( :'( :'( 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.