Hello esm,
why don't you just call the function DisplayCategoryListBox?
paste this lines into your index.php or browse.php
Code:
// generate category quick select
$category_obj = new clsCategory;
$category_obj->InitDB($dbServer,$dbHostname,$dbUsername,$dbPassword,$dbName);
$category_obj->table_name = "idx_category";
$category_obj->separator = $category_separator;
$quickselect = $category_obj->DisplayCategoryListBox(-1);
the quickselect has to be passed forward to the template file by adding it to the list of variables e.g.
Code:
DisplayTemplate($theme_path."header.html","\$title,\$cat,\$quickselect");
finaly edit your template file wÃ*th the form tags:
Code:
<form action="browse.php?cat=<%cat%>" method="get">
<%quickselect%> <input type="submit" name="submit" value="go" border="0"></form>
greets
Joerg