index.jsp:系统首页,包含大巴车和司机信息的查询和添加功能代码
时间: 2023-11-27 11:52:48 浏览: 30
以下是一个简单的 index.jsp 页面,包含了查询和添加大巴车和司机信息的功能代码:
```jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>系统首页</title>
</head>
<body>
<h1>大巴车和司机信息查询</h1>
<form action="search.jsp" method="post">
<p>请输入大巴车编号:<input type="text" name="busNumber"></p>
<p><input type="submit" value="查询"></p>
</form>
<form action="search.jsp" method="post">
<p>请输入司机姓名:<input type="text" name="driverName"></p>
<p><input type="submit" value="查询"></p>
</form>
<h1>大巴车和司机信息添加</h1>
<form action="add.jsp" method="post">
<p>请输入大巴车编号:<input type="text" name="busNumber"></p>
<p>请输入大巴车型号:<input type="text" name="busModel"></p>
<p>请输入司机姓名:<input type="text" name="driverName"></p>
<p>请输入司机手机号:<input type="text" name="driverPhone"></p>
<p><input type="submit" value="添加"></p>
</form>
</body>
</html>
```
该页面包含两个表单,分别用于查询和添加大巴车和司机信息。查询表单包含一个输入框和一个查询按钮,用户输入要查询的大巴车编号或司机姓名后,点击查询按钮即可跳转到 search.jsp 页面进行查询。添加表单包含四个输入框和一个添加按钮,用户输入要添加的大巴车编号、大巴车型号、司机姓名和司机手机号后,点击添加按钮即可跳转到 add.jsp 页面进行添加。