boognish Posted September 11, 2008 Share Posted September 11, 2008 I've moved the search box into the header of my site... http://rippledesigns.co.uk/ct/catalog/ Managed to remove the title and text, but I'd also like to get rid of the surrounding table. Is it possible to do this? search.php <?php $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), 'align' => 'right', 'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" border="1px" style="width:130px;border:1px solid #333366;"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br><br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a><br />'); new infoBox($info_box_contents); ?> Rendered HTML, would like to remove all parts in bold <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="right" class="boxText"><form name="quick_find" action="http://rippledesigns.co.uk/ct/catalog/advanced_search_result.php" method="get"><input type="text" name="keywords" value="test" size="10" maxlength="30" border="1px" style="width:130px;border:1px solid #333366;"> <input type="image" src="includes/languages/english/images/buttons/button_quick_find.gif" border="0" alt="Quick Find" title=" Quick Find "><br><br><a href="http://rippledesigns.co.uk/ct/catalog/advanced_search.php"><b>Advanced Search</b></a><br /></form></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> Link to comment Share on other sites More sharing options...
burt Posted September 11, 2008 Share Posted September 11, 2008 You need to understand that the table is created by this: new infoBox($info_box_contents); So you need to play with the box CLASS file. OR use this: <?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'); echo tep_draw_input_field('keywords', '', 'size="10" maxlength="30" border="1px" style="width:130px;border:1px solid #333366;"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '</form><br /><br /><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'; ?> Code might not be 100% correct - watch out for too many of these => ( or these => ) Link to comment Share on other sites More sharing options...
boognish Posted September 11, 2008 Author Share Posted September 11, 2008 The script worked perfectly - http://rippledesigns.co.uk/ct/catalog/ Thanks very much for the help, really appreciated! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.