Had tested with ZC v1.3.0.2 but not sure for v1.3.5.
Copy the following file
includes/templates/template_default/sideboxes/tpl_search.php
And save it to a new file for the use of override
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_search.php
Then modify about line 21 with refer to the codes below.
Note the code below only for reference and for prevous version, also added with comment.
Please compare with the newest version and make according changes.
Orginal code
PHP Code:
$content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px" 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 . '\';"') . '<br /><input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 50px" />';
Modified code
PHP Code:
// Orginal use text as button
// $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';"') . '<br /><input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 50px" />';
// Begin: Modified to use image as button
$content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH, HEADER_SEARCH_BUTTON, ' style="width: 50px"');
// Ended: Modified to use image as button
Note:
Also the about code use the existing botton botton_search.gif as the button.
Please also modify it according to your requirement.
.