3月29日每日总结
由于在算法上实现不了突破,我们只能在界面上进行优化,今日优化了查询后的界面。
<%@ page import="bean.station" %>
<%@ page import="java.util.List" %>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<html>
<head>
<title>Title</title>
<style type="text/css">
.ziti {
font-size: 18px;
font-weight: 666;
font-family:"幼圆";/*设置字体*/
color:#494949;
}</style>
</head>
<body>
<jsp:useBean id="util" class="dao.dao"/>
<%
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
response.setContentType("text/html;charset=utf-8");
String id=(String)request.getParameter("number");
%>
<%if (id == null){%>
<img src="https://wx4.sinaimg.cn/mw2000/008aq7W6ly1h0ukeojflcj30oo0gdtgv.jpg" alt="">
<%}else{
List<station> list = util.readStation(id);
%>
<form action=" " method="get" id="form" onsubmit="return check()" >
<table border="0" style="width: 650px; height: 350px;">
<tr>
<td class ="ziti"> </td>
<td class ="ziti"> </td>
<td class ="ziti"> </td>
</tr>
<%for (station s : list) { %>
<tr>
<td class ="ziti"> 第<%=s.getId()%>站</td>
<td class ="ziti" name="sation1"><%=s.getStation()%></td>
</tr>
<%} %>
</table>
</form>
<%}%>
</body>
</html>