Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

advanced search


pbianchi

Recommended Posts

hi

are you speaking about advanced_search.php? because it is like this:

code

$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" .

 

code

 

:(

 

what have i to look at?

thanks

Link to comment
Share on other sites

ok i have this in html_output.php

 

// Output a form pull down menu

function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {

$field = '<select name="' . $name . '"';

 

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

 

$field .= '>';

 

for ($i=0; $i<sizeof($values); $i++) {

$field .= '<option value="' . $values[$i]['id'] . '"';

if ( ($GLOBALS[$name] == $values[$i]['id']) || ($default == $values[$i]['id']) ) {

$field .= ' SELECTED';

}

$field .= '>' . htmlspecialchars($values[$i]['text']) . '</option>';

}

$field .= '</select>';

 

if ($required == true) $field .= TEXT_FIELD_REQUIRED;

 

return $field;

}

 

////

 

 

what have i to check?

Link to comment
Share on other sites

This is a known problem - at least it was the last time I checked. If you search the forums you should find some comments from the core devs about it, there was an explanation of the problem and why it wasn't easy to fix.

 

It might of been fixed by now - I haven't checked this in the latest snapshot.

 

Jon.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...