⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 authorsearch.jsp

📁 vb+java实现的图书管理系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*,com.bean.util.*" pageEncoding="UTF-8"%>
<%
String sql="select BookTypeId,BookTypeName from BookType";
DbConn conn=new DbConn();
String[][] booktypeinfo=conn.getData(sql);
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'authorSearch.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <script type="text/javascript">
		function check_null()
		{
			if(document.all.author.value=="")
			{
				alert("请输入作者/编著!");
				return false;
			}
		}
		
	</script>
  <body>
    <h2>书目检索</h2>
    <div style="padding-left:30px;padding-top:10px;">
    	<form name=frmAuthor action=AuthorSearch method=post>
    		<ul style="list-style:none">
    			<li>请选择图书类别:<select name="typeId">
					<option value=0>全部</option>
					<%
					if(booktypeinfo!=null){
						for(int i=0;i<booktypeinfo.length;i++)
						{
							out.print("<option value="+booktypeinfo[i][0]+">"+booktypeinfo[i][1]+"</option>");
						}
					}else{}
					%>
				</select></li><br><br>
				<li>请输入作者名称:<input id=author name=author type=text >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name=submit type=submit value=检索 onClick="return check_null();"></li>
    		</ul>
    	</form>
    </div>
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -