首页 > 编程语言 >JavaWeb期中考试-2021年版(五)

JavaWeb期中考试-2021年版(五)

时间:2022-11-09 08:11:48浏览次数:44  
标签:Insert JavaWeb title 期中考试 ArrayList show 2021 活动

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="S.s"%>
     <%@ page import="java.util.ArrayList"%>
<%@ page import="Dao.dao"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<%
         
          dao d=new dao();
          ArrayList<s> r=new ArrayList<s>();
          r=d.show();
%>
    <table  border="1" width="100%">
        <tr>
            <td><a href="showxiangxi.jsp">活动主题</a></td>
            <th>活动类型</th>
            <th>活动时间</th>
            <th>活动对象</th>
        </tr>    
        <%
        for(int i=0;i<r.size();i++)
        {
            s in=r.get(i);
            String zhuti=in.Getzhuti();
            String leixing=in.Getleixing();
            String shijian=in.Getshijian();
            String duixiang=in.Getduixiang();
        %>
        <tr>
        <td><%=(zhuti) %></td>
        <td><%=(shijian) %></td>
        <td><%=(leixing) %></td>
        <td><%=(duixiang) %></td>
    </tr>
        <%     
        }
        %>
        </table>

    
    <input style="margin-left:230px;margin-top:90px;width:100px;height:60px" type = "button" value = "返回主菜单" onclick = "window.location.href = 'index.jsp'">
    

</body>
</html>

 

 

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="S.s"%>
     <%@ page import="java.util.ArrayList"%>
<%@ page import="Dao.dao"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<%
         
          dao d=new dao();
          ArrayList<s> r=new ArrayList<s>();
          r=d.show();
%>
    <table  border="1" width="100%">
        <tr>
            <th>活动主题</th>
            <th>活动目的</th>
            <th>活动类型</th>
            <th>活动时间</th>
            <th>活动地点</th>
            <th>活动对象</th>
            <th>活动安排</th>
            <th>活动日程安排</th>
        </tr>    
        <%
        for(int i=0;i<r.size();i++)
        {
            s in=r.get(i);
            String zhuti=in.Getzhuti();
            String mudi=in.Getmudi();
            String leixing=in.Getleixing();
            String shijian=in.Getshijian();
            String didian=in.Getdidian();
            String duixiang=in.Getduixiang();
            String neirong=in.Getneirong();
            String richeng=in.Getricheng();
        %>
        <tr>
        <td><%=(zhuti) %></td>
        <td><%=(mudi) %></td>
        <td><%=(leixing) %></td>
        <td><%=(shijian) %></td>
        <td><%=(didian) %></td>
        <td><%=(duixiang) %></td>
        <td><%=(neirong) %></td>
        <td><%=(richeng) %></td>
    </tr>
        <%     
        }
        %>
        </table>
    
    <input style="margin-left:230px;margin-top:90px;width:100px;height:60px" type = "button" value = "返回主菜单" onclick = "window.location.href = 'index.jsp'">
    

</body>
</html>

 

标签:Insert,JavaWeb,title,期中考试,ArrayList,show,2021,活动
From: https://www.cnblogs.com/Arkiya/p/16871961.html

相关文章