📄 search2.jsp
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ include file="incoming/check.jsp"%>
<html>
<head>
<title>欢迎光临E-BOOK网上书店</title>
<link href="incoming/style.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!--
function fsubmit()
{
if(searchForm.rcond[0].checked)
{
searchForm.action="list?cond=all"
}
else if(searchForm.rcond[1].checked)
{
searchForm.action="list?cond=precision"
}
else
{
searchForm.action="list?cond=keyword"
}
}
function hideall()
{
if(searchForm.rcond[0].checked)
{
pre.style.display = "none";
key.style.display = "none";
}
}
function showpre()
{
if(searchForm.rcond[1].checked)
{
pre.style.display = "";
key.style.display = "none";
}
else
{
pre.style.display = "none";
}
}
function showkey()
{
if(searchForm.rcond[2].checked)
{
key.style.display = "";
pre.style.display = "none";
}
else
{
key.style.display = "none";
}
}
//-->
</SCRIPT>
</head>
<body>
<%@ include file="incoming/header.jsp"%>
<form name="searchForm" action="" method="post" onClick="fsubmit()">
<input type="radio" name="rcond" onclick="hideall()">所有图书<p>
<input type="radio" name="rcond" onclick="showpre()">精确搜索<p>
<table id=pre style="DISPLAY: none">
<tr>
<td>书名:</td>
<td><input type="text" name="title"></td>
</tr>
<tr>
<td>作者:</td>
<td><input type="text" name="author"></td>
</tr>
<tr>
<td>出版社:</td>
<td><input type="text" name="bookconcern"></td>
</tr>
</table><p>
<input type="radio" name="rcond" onclick="showkey()">模糊搜索<p>
<table id=key style="DISPLAY: none">
<tr>
<td>请输入关键字:</td>
<td><input type="text" name="keyword"></td>
</tr>
</table><p>
<input type="reset" value="重新输入">
<input type="submit" value="搜索">
</form>
<%@ include file="incoming/footer.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -