Class/styles på dropdown
Jeg sidder og tilpasser en script på en søgefunktion, som jeg har anvendt på mit site. Desværre volder det nogle problemer at få lagt styles på nogle af felterne.Søgningen kan ses her http://www.steen-mikkelsen.dk/soeg.php
Og jeg vil gerne kunne lægge styles på dropdown menuen der giver mulighed for at vælge antal viste resultater.
koden ser sådan ug, og så er det lige , hvor skal jeg sætte min class ind for at "styre" designet:
// Insert the form
print("<form method=\"get\" action=\"".$SelfURL."\" class=\"zoom_searchform\">\n");
print($STR_FORM_SEARCHFOR . " <input type=\"text\" name=\"zoom_query\" size=\"20\" value=\"".htmlspecialchars($query)."\" class=\"zoom_searchbox\" />\n");
print("<input type=\"submit\" value=\"" . $STR_FORM_SUBMIT_BUTTON . "\" class=\"zoom_button\" />\n");
if ($FormFormat == 2) {
print("<span class=\"zoom_options\">" . $STR_FORM_RESULTS_PER_PAGE . "\n");
print("<select name='zoom_per_page'>\n");
reset($PerPageOptions);
foreach ($PerPageOptions as $ppo) {
print("<option");
if ($ppo == $per_page)
print(" selected=\"selected\"");
print(">". $ppo ."</option>\n");
}
print("</select>\n<br /><br />\n");
if ($UseCats) {
print($STR_FORM_CATEGORY . " ");
print("<select name='zoom_cat'>");
// 'all cats option
print("<option value=\"-1\">" . $STR_FORM_CATEGORY_ALL . "</option>");
for($i = 0; $i < count($catnames); $i++) {
print("<option value=\"". $i . "\"");
if ($i == $cat)
print(" selected=\"selected\"");
print(">". $catnames[$i] . "</option>");
}
print("</select> \n");
}
print($STR_FORM_MATCH . "\n");
if ($and == 0) {
print("<input type=\"radio\" name=\"zoom_and\" value=\"0\" checked=\"checked\" />" . $STR_FORM_ANY_SEARCH_WORDS . "\n");
print("<input type=\"radio\" name=\"zoom_and\" value=\"1\" />" . $STR_FORM_ALL_SEARCH_WORDS . "\n");
} else {
print("<input type=\"radio\" name=\"zoom_and\" value=\"0\" />" . $STR_FORM_ANY_SEARCH_WORDS . "\n");
print("<input type=\"radio\" name=\"zoom_and\" value=\"1\" checked=\"checked\" />" . $STR_FORM_ALL_SEARCH_WORDS . "\n");
}
print("<input type=\"hidden\" name=\"zoom_sort\" value=\"" . $sort . "\" />\n");
print("</span>\n");
}
else
{
print("<input type=\"hidden\" name=\"zoom_per_page\" value=\"" . $per_page . "\" />\n");
print("<input type=\"hidden\" name=\"zoom_and\" value=\"" . $and . "\" />\n");
print("<input type=\"hidden\" name=\"zoom_sort\" value=\"" . $sort . "\" />\n");
}
print("</form>\n");
}
