四月二十三日
今日所完成代码
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>在此处插入标题</title>
</head>
<body>
<form action="add1.jsp" method="get">
<table align="center" border="1" width="500">
<div id="dateTime"></div>
<tr>
<td>队名</td>
<td><input type="text" name="name" /></td>
</tr>
<tr>
<td>参赛人员</td>
<td><input type="text" name="people" /></td>
</tr>
<tr>
<td>参赛人数</td>
<td><input type="text" name="number" /></td>
</tr>
<tr>
<td>选题</td>
<td><input type="text" name="xuanti" /></td>
</tr>
<tr>
<td>教师评价</td>
<td><input type="text" name="jiaoshipingjia" /></td>
</tr>
<tr>
<td>小组评分</td>
<td><input type="text" name="xiaozupingfen" /></td>
</tr>
<tr>
<td>名次</td>
<td><input type="text" name="mingci" /></td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" value="提交" /></td>
</tr>
<input type="button" value="继续添加" onclick="location.href='add.jsp'" /></br>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@ page import="Dao.dao"%> <%@ page import="Dao.hanshu"%> <%@ page import="Dbutil.db"%> <html> <head> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>在此处插入标题</title> </head> <body> <% String name = request.getParameter("name"); String people = request.getParameter("people"); String number = request.getParameter("number"); String xuanti = request.getParameter("xuanti"); String jiaoshipingjia = request.getParameter("jiaoshipingjia"); String xiaozupingfen = request.getParameter("xiaozupingfen"); String mingci = request.getParameter("mingci"); hanshu.creat(name, people, number, xuanti, jiaoshipingjia, xiaozupingfen, mingci); %> <input type="button" value="返回继续添加" onclick="location.href='add.jsp'" /></br> </body> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>在此处插入标题</title>
</head>
<body>
<form action="update1.jsp" method="get">
<table align="center" border="1" width="500">
<tr>
<td>队名</td>
<td><input type="text" name="name" /></td>
</tr>
<tr>
<td>参赛人员</td>
<td><input type="text" name="people" /></td>
</tr>
<tr>
<td>参赛人数</td>
<td><input type="text" name="number" /></td>
</tr>
<tr>
<td>选题</td>
<td><input type="text" name="xuanti" /></td>
</tr>
<tr>
<td>教师评价</td>
<td><input type="text" name="jiaoshipingjia" /></td>
</tr>
<tr>
<td>小组评分</td>
<td><input type="text" name="xiaozupingfen" /></td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" value="提交" /></td>
</tr>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@page import="Dao.dao" %> <%@page import="Dao.hanshu" %> <html> <head> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>在此处插入标题</title> </head> <body> <% String name = request.getParameter("name"); String people = request.getParameter("people"); String number = request.getParameter("number"); String xuanti = request.getParameter("xuanti"); String jiaoshipingjia = request.getParameter("jiaoshipingjia"); String xiaozupingfen = request.getParameter("xiaozupingfen"); hanshu.update(people,number,xuanti,jiaoshipingjia,xiaozupingfen,name); %> <input type="button" value="返回" onclick="location.href='welcome.jsp'" /></br> </body> </html>
css对于美化页面来说很重要,以后可能会学一学css