Yeah, I coded my own searchbox like you said thinking I could use the code as a reference to copy onto ZC's own searchbox. I think the best way to describe what I'm trying to do is to show you...
This is the HTML I'm using for my own search box... (found top right of market-stalls.co.uk/store)
HTML Code:
<form id="searchform" action="NOTSURE.php">
<fieldset>
<label for="query">Search</label>
<input type="text" name="query" id="query" value="" style="height:13px; font-family:Lucida Sans Unicode, Lucida Sans, Lucida Grande, Tahoma, Arial, Helvetica, sans-serif;" />
<input type="submit" name="submitquery" id="submitquery" value="Go" />
</fieldset>
</form>
(I'm also linking to several additional stylesheets and a piece of javascript in html_header.php which provide functionality)
This is what I see when I open tpl_search_header.php, which I assume is the file I'm meant to be editing to add my own styles to the searchbox?
PHP Code:
$content = "";
$content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
$content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
$content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
$content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . ' ' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
} else {
$content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . ' <input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 45px" />';
}
$content .= "</form>";
I can make out the HTML code within the PHP but I'm not sure how I could integrate my own code successfully (I'm not proficient in PHP as you may have guessed) ...I've given it several stabs without success, any help would be much appreciated.
Thanks!
Bookmarks