As for search
HTML Code:
<form name="productsearchform" action="your_domain/pathtoyourstore/search.php" method="post">
<input type="hidden" value="Y" name="simple_search"/>
<input type="hidden" value="search" name="mode"/>
<input type="hidden" value="Y" name="posted_data[by_title]"/>
<input type="hidden" value="Y" name="posted_data[by_shortdescr]"/>
<input type="hidden" value="Y" name="posted_data[by_fulldescr]"/>
<input type="hidden" value="all" name="posted_data[including]"/>
<input type="text" value="" name="posted_data[substring]"/>
<input type="submit" />
</form>
Featured products is a little bit complex.
PHP Code:
require ("/pathtostore/auth.php");
include ("/pathtostore/featured_products.php")
and array $products will contains featured products.
Surely you should change your_domain and pathtostore to it's actual values