<TD width=707> <DIV align=right> <TABLE style="WIDTH: 409px" cellSpacing=0 cellPadding=0 width=409 border=0> <FORM onsubmit="return checksearch(this)" action=/index.php?action=|admin|10910|cn method=post target=_top> <TBODY> <TR> <TD align=middle width=121 height=30>搜索内容 </TD> <TD width=194 height=30><INPUT size=16 name=keyword> </TD> <TD align=middle width=122 height=30>搜索类别 </TD> <TD width=116 height=30><SELECT name=search_type> <OPTION value=all selected>所有</OPTION> <OPTION value=page>网页</OPTION> <OPTION value=news>新闻</OPTION> <OPTION value=ware>产品</OPTION></SELECT> </TD> <TD width=142 height=30> <P align=left><INPUT type=hidden name=faction><INPUT type=submit value=搜索 name=sub_search> </P></TD></TR></TBODY></FORM></TABLE> <SCRIPT language=JavaScript> <!-- function checksearch(theForm) { if (theForm.keyword.value == '') { alert('请输入要搜索的内容!'); theForm.keyword.focus(); return(false); } if (theForm.search_type.value=='all') { theForm.faction.value='searchall'; return true; } if (theForm.search_type.value=='page') { theForm.faction.value='search'; return true; } if (theForm.search_type.value=='news') { theForm.faction.value='news'; return true; } if (theForm.search_type.value=='ware') { theForm.faction.value='list'; return true; } } //--> </SCRIPT> </DIV></TD>
以下演示:
|