deltabiri Posted June 11, 2010 Share Posted June 11, 2010 Hi, I'm trying to embellish a bit the header of my site trying to gather all the pictures in 2 round corners, so everything is right... <table border="0" cellspacing="0" cellpadding="0" align="center" width="100%"> <tbody> <tr> <td><img alt="" width="14" height="33" src="images/infobox/upper_left.gif" /></td> <td class="mws_boxTop" valign="middle" width="100%" align="center">HEADER </td> <td><img alt="" width="14" height="33" src="images/infobox/upper_right.gif" /></td> </tr> <tr> <td class="mws_boxLeft"></td> <td class="logo_store" align="left"><?php echo ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '" >' . tep_image(DIR_WS_IMAGES . 'grafica/logo_abbigliamento.jpg' , 'Vendita abbigliamento intimo on line'). '</a>';?></td> <td class="mws_boxRight"></td> </tr> </tbody> </table> the problem and that I can not add a box "search" the side of the logo, I tried in every way but in any test I bust graphics... <td class="cerca" valign="middle" colspan="0" ><?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') ?> <table border="0" width="45%" cellspacing="0" cellpadding="1" align="right"> <tr> <td class="cerca" valign="top" colspan="3"> </td> <td class="cerca" valign="middle" colspan="3"><?php echo BOX_HEADING_SEARCH ?></td> <td class="cerca" valign="middle" colspan="3"> </td> <td class="cerca" valign="middle" colspan="3"><?php echo tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-50) . 'px"') ?></td> <td class="cerca" valign="top" colspan="3"> </td> <td width="27%" colspan="3" valign="middle" class="cerca"><center><?php echo tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH); ?></center></td> </tr> </table> </form> </td> Surely I'm confusing with the TD, TR and TABLE Can you help? Thanks Link to comment Share on other sites More sharing options...
NodsDorf Posted June 11, 2010 Share Posted June 11, 2010 I hope I understand the question correctly. You would like to put a search box in your header, is that correct? You can try this add on: http://addons.oscommerce.com/info/3295 Support is here: http://www.oscommerce.com/forums/index.php?showtopic=156945 Link to comment Share on other sites More sharing options...
deltabiri Posted June 11, 2010 Author Share Posted June 11, 2010 yes im add search into header, my problem is breaks down the graphics, as they join code? search code: <?php echo tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH+10) . 'px"') . ' ' . tep_hide_session_id() .tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH, 'align="middle"') . '</form>'; ?> insert into: <table border="0" cellspacing="0" cellpadding="0" align="center" width="100%"> <tbody> <tr> <td><img alt="" width="14" height="33" src="images/infobox/upper_left.gif" /></td> <td class="mws_boxTop" valign="middle" width="100%" align="center">HEADER </td> <td><img alt="" width="14" height="33" src="images/infobox/upper_right.gif" /></td> </tr> <tr> <td class="mws_boxLeft"></td> <td class="logo_store" align="left"><?php echo ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '" >' . tep_image(DIR_WS_IMAGES . 'grafica/logo_abbigliamento.jpg' , 'Vendita abbigliamento intimo on line'). '</a>';?></td> <td class="mws_boxRight"></td> </tr> </tbody> </table> You can combine these two codes ? Link to comment Share on other sites More sharing options...
NodsDorf Posted June 11, 2010 Share Posted June 11, 2010 Try this <table border="0" cellspacing="0" cellpadding="0" align="center" width="100%"> <tbody> <tr> <td><img alt="" width="14" height="33" src="images/infobox/upper_left.gif" /></td> <td class="mws_boxTop" valign="middle" width="100%" align="center">HEADER </td> <td><img alt="" width="14" height="33" src="images/infobox/upper_right.gif" /></td> </tr> <tr> <td class="mws_boxLeft"></td> <td class="logo_store" align="left"><?php echo ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '" >' . tep_image(DIR_WS_IMAGES . 'grafica/logo_abbigliamento.jpg' , 'Vendita abbigliamento intimo on line'). '</a>';?></td> <td align="center"><?php echo tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . 'px"') . ' ' . tep_hide_session_id() .tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH) . '</form>'; ?> </td> <td class="mws_boxRight"></td> </tr> </tbody> </table> Link to comment Share on other sites More sharing options...
deltabiri Posted June 11, 2010 Author Share Posted June 11, 2010 error, search outside ends header look the signal arrow red :( Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.