Parašė Kižas· 2010 Rugp. 18 20:08:52
#6
Gal tiks šitas kodukas:
openside("Paieska");
echo "<form id='searchform' name='searchform' method='get' action='".BASEDIR."search.php'>\n";
echo "<input type='text' name='stext' value='".urldecode($_GET['stext'])."' class='textbox' style='width:150px' />\n";
echo "<label><input type='hidden' name='stype' value='news'".($_GET['stype'] == "news" ? " checked='checked'" : "")." onclick=\"display(this.value)\" /></label><br>\n";
echo "<input type='submit' name='search' value='Search' class='button' /> <input type='reset' name='reset' value='Reset' class='button' />\n</form>\n";
closeside();
?>