Digerdoo Posted January 18, 2005 Posted January 18, 2005 !-- categories //--> <?php function tep_get_paths($categories_array = '', $parent_id = '0', $indent = '') { global $languages_id; if (!is_array($categories_array)) $categories_array = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where parent_id = '" . (int)$parent_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { if ($parent_id=='0'){ $categories_array[] = array('id' => $categories['categories_id'], 'text' => $indent . $categories['categories_name']); } else{ $categories_array[] = array('id' => $parent_id . '_' .$categories['categories_id'], 'text' => $indent . $categories['categories_name']); } if ($categories['categories_id'] != $parent_id) { $categories_array = tep_get_paths($categories_array, $categories['categories_id'], $indent . ' '); } } return $categories_array; } $info_box_contents = array(); $info_box_contents[] = array('form' => '<form action="' . tep_href_link(FILENAME_DEFAULT) . '" method="get">' . tep_hide_session_id(), 'align' => 'left', 'text' => tep_draw_pull_down_menu('cPath', tep_get_paths(array(array('id' => '', 'text' => PULL_DOWN_DEFAULT))), $cPath, 'onchange="this.form.submit();"') ); new infoBox($info_box_contents); ?> <!-- categories_eof //--> This is categories dropdown code but where is background ? If i want take off background what code i remove.. ?
Guest Posted January 18, 2005 Posted January 18, 2005 Probably in your stylesheet. Look for "select". Tj !-- categories //--> <?php function tep_get_paths($categories_array = '', $parent_id = '0', $indent = '') { global $languages_id; if (!is_array($categories_array)) $categories_array = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where parent_id = '" . (int)$parent_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { if ($parent_id=='0'){ $categories_array[] = array('id' => $categories['categories_id'], 'text' => $indent . $categories['categories_name']); } else{ $categories_array[] = array('id' => $parent_id . '_' .$categories['categories_id'], 'text' => $indent . $categories['categories_name']); } if ($categories['categories_id'] != $parent_id) { $categories_array = tep_get_paths($categories_array, $categories['categories_id'], $indent . ' '); } } return $categories_array; } $info_box_contents = array(); $info_box_contents[] = array('form' => '<form action="' . tep_href_link(FILENAME_DEFAULT) . '" method="get">' . tep_hide_session_id(), 'align' => 'left', 'text' => tep_draw_pull_down_menu('cPath', tep_get_paths(array(array('id' => '', 'text' => PULL_DOWN_DEFAULT))), $cPath, 'onchange="this.form.submit();"') ); new infoBox($info_box_contents); ?> <!-- categories_eof //--> This is categories dropdown code but where is background ? If i want take off background what code i remove.. ? <{POST_SNAPBACK}>
Digerdoo Posted January 18, 2005 Author Posted January 18, 2005 Probably in your stylesheet. Look for "select".Tj <{POST_SNAPBACK}> --------------------------------> Code put image in bacground but how i can take that image and border off ? i don't think that is in stylesheet.css
Digerdoo Posted January 18, 2005 Author Posted January 18, 2005 Which image. Can you show me? <{POST_SNAPBACK}> yes i can... i send my www-address and username & password so you can come and see.. t. Digerdoo
Recommended Posts
Archived
This topic is now archived and is closed to further replies.