2023.12.2每日总结

<%@ page language="java" contentType="text/html; charset=UTF-8"
 pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<title>站点查询</title>
<style type="text/css">
   div {
    margin: 0 660px;
   }
   p {
    display: inline;
   }
   .xx{
    height: 1000px;
    width: 500;
    
   }
   .ys {
    color: red;
   }
 </style>
 <body>
<div class="xx">
<form action="zhandianim.jsp" method="get">
<h1>站点查询</h1>
<p class="ys">*</p>
<p>1.输入需要查询站点名称</p><br>
<input type="text" name="zhandian" /><br>
<input type="submit" value="查询    " /><br>
</form>
</div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>用户选择页面</title>
</head>
</head>
<style type="text/css">
   div {
    margin: 0 660px;
   }
   p {
    display: inline;
   }
   
   h2 {
    text-align: center;
    color: blue;
   }
   .xx{
    height: 1000px;
    width: 500;
    
   }
   .ys {
   Font-size:35px;
    color: red;
   }
 </style>
 
<body>
<div class="xx">
<table border="1" width="500" cellspacing="0">
           <caption>线路信息</caption>
     
    <% 
    String zhandian=null;
    try
    {zhandian=request.getParameter("zhandian");}
    catch(Exception e){}
    String[]arr=new String[20];
    arr[0]="1haoxian";
    arr[1]="erhaoxian";
    int i=0;

      while(arr[i]!=null)
      {
          %>
          <tr>
           <td><% out.print(arr[i]);%></td>
           </tr>
          <%
          i++;
      }
   %>
</table>
</div>
</body>
</html>

 

posted @ 2023-12-02 21:40  超爱彬宝同学  阅读(7)  评论(0)    收藏  举报