Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

inserted bg image..but need cell in front transparent?


Guest

Recommended Posts

Posted

I have added a background image to advanced_search.php. However, there

is a cell that contains the form with 'categories'/'manufacturers'/'price from', etc

in front of it that is white in colour. When i check its properties in

Dreamweaver, it shows that it has the default colour.

 

 

How do i set it to transparent?

 

If this involves making changes in the stylesheet, i am not used to working

with stylesheets....how does one know which part of the style sheet refers

to this particular cell??

 

 

If anyone reads this and has the knowledge, I would be grateful if you

could take a minute out and share it by posting <here> ;)

Posted

Towards the end of advanced_search.php, there is the following code:

        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

         <tr class="infoBoxContents">

           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">

             <tr>

               <td class="fieldKey"><?php echo ENTRY_CATEGORIES; ?></td>

               <td class="fieldValue"><?php echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))); ?></td>

             </tr>

If you look, you will see that there are classes defined for the table, row, and data cells. In this case, both infoBox and infoBoxContents have backgrounds defined. You can either remove the background line from the infoBox definition in stylesheet.css (just delete the whole line) or make a new class and change the class= above to the new class. For example:

.infoBoxContents {

 background: #f8f8f9;

 font-family: Verdana, Arial, sans-serif;

 font-size: 10px;

}

would become

.infoBoxContentsTransparent {

 font-family: Verdana, Arial, sans-serif;

 font-size: 10px;

}

and you would change class="infoBoxContents" to class="infoBoxContentsTransparent" in advanced_search.php.

 

Good luck,

Matt

Posted

Thanks for the dig out Matt. I removed the lines from the code in the stylesheet and that did the trick. Couldnt figure out the second option suggested - we may be that we're using different versions?? I'm using 2.2 MS1 and the code is a bit different (see below).

 

But thats irrelevant really....you've sorted my problem and im a happy camper :lol:

 

Source code from advanced_search.php

*******************************************

?php

/*

$Id: advanced_search.php,v 1.49 2003/02/13 04:23:22 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVANCED_SEARCH);

 

$breadcrumb->add(NAvb script:popupWindow('' . tep_href_link(FILENAME_POPUP_SEARCH_HELP) . '')">' . TEXT_SEARCH_HELP_LINK . '</a>'; ?></td>

<td class="smallText" align="right"><?php echo tep_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td>

<?php

$options_box = '<table border="0" width="100%" cellspacing="0" cellpadding="2">' . "n" .

' <tr>' . "n" .

' <td class="fieldKey">' . ENTRY_CATEGORIES . '</td>' . "n" .

' <td class="fieldValue">' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))) . '<br></td>' . "n" .

' </tr>' . "n" .

' <tr>' . "n" .

' <td class="fieldKey"> </td>' . "n" .

' <td class="smallText">' . tep_draw_checkbox_field('inc_subcat', '1', true) . ' ' . ENTRY_INCLUDE_SUBCATEGORIES . '</td>' . "n" .

' </tr>' . "n" .

' <tr>' . "n" .

' <td colspan="2">' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td>' . "n" .

' </tr>' . "n" .

' <tr>' . "n" .

' <td class="fieldKey">' . ENTRY_MANUFACTURERS . '</td>' . "n" .

' <td class="fieldValue">' . tep_draw_pull_down_menu('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)))) . '</td>' . "n" .

' </tr>' . "n" .

' <tr>' . "n" .

' <td colspan="2">' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td>' . "n" .

' </tr>' . "n" .

' <tr>' . "n" .

' <td class="fieldKey">' . ENTRY_PRICE_FROM . '</td>' . "n" .

' <td class="fieldValue">' . tep_draw_input_field('pfrom') . '</td>' . "n" .

' </tr>' . "n" .

' <tr>' . "n" .

' <td class="fieldKey">' . ENTRY_PRICE_TO . '</td>' . "n" .

' <td class="fieldValue">' . tep_draw_input_field('pto') . '</td>' . "n" .

' </tr>' . "n" .

' <tr>' . "n" .

' <td colspan="2">' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td>' . "n" .

' </tr>' . "n" .

' <tr>' . "n" .

' <td class="fieldKey">' . ENTRY_DATE_FROM . '</td>' . "n" .

' <td class="fieldValue">' . tep_draw_input_field('dfrom', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, '' . DOB_FORMAT_STRING . '')"') . '</td>' . "n" .

' </tr>' . "n" .

' <tr>' . "n" .

' <td class="fieldKey">' . ENTRY_DATE_TO . '</td>' . "n" .

' <td class="fieldValue">' . tep_draw_input_field('dto', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, '' . DOB_FORMAT_STRING . '')"') . '</td>' . "n" .

' </tr>' . "n" .

'</table>';

 

$info_box_contents = array();

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

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="main">

<?php

if (isset($HTTP_GET_VARS['errorno'])) {

if (($HTTP_GET_VARS['errorno'] & 1) == 1) {

echo str_replace('n', '<br>', JS_AT_LEAST_ONE_INPUT);

}

if (($HTTP_GET_VARS['errorno'] & 10) == 10) {

echo str_replace('n', '<br>', JS_INVALID_FROM_DATE);

}

if (($HTTP_GET_VARS['errorno'] & 100) == 100) {

echo str_replace('n', '<br>', JS_INVALID_TO_DATE);

}

if (($HTTP_GET_VARS['errorno'] & 1000) == 1000) {

echo str_replace('n', '<br>', JS_TO_DATE_LESS_THAN_FROM_DATE);

}

if (($HTTP_GET_VARS['errorno'] & 10000) == 10000) {

echo str_replace('n', '<br>', JS_PRICE_FROM_MUST_BE_NUM);

}

if (($HTTP_GET_VARS['errorno'] & 100000) == 100000) {

echo str_replace('n', '<br>', JS_PRICE_TO_MUST_BE_NUM);

}

if (($HTTP_GET_VARS['errorno'] & 1000000) == 1000000) {

echo str_replace('n', '<br>', JS_PRICE_TO_LESS_THAN_PRICE_FROM);

}

if (($HTTP_GET_VARS['errorno'] & 10000000) == 10000000) {

echo str_replace('n', '<br>', JS_INVALID_KEYWORDS);

}

}

?>

</td>

</tr>

</table></form></td>

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Archived

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

×
×
  • Create New...