serchsightspot.jsp

来自「旅游自助系统」· JSP 代码 · 共 43 行

JSP
43
字号
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="org.tshs.entity.*" %>

<%
	Vector sights = (Vector)request.getAttribute("sights");
	//test
	// sights.add(new String("haha"));sights.add(new String("xixi"));
%>

<table align="center" width="92%" cellspacing="3" border="0">
<%
	if(sights != null && sights.size() != 0){
%>
	<tr bgcolor="#6699CC">
		<th width="80%" align="center">
			<font size="2">景 点 名 称</font>
		</th>
		<th width="20%" align="center">
			<font size="2">操 作</font>
		</th>
	</tr>
<%
		for(int i = 0; i<sights.size(); i++){
			SightSpot sight = (SightSpot)sights.get(i);
%>
	<tr bgcolor="#6699CC">
		<td>
			<center><%= sight.getName() %></center>
		</td>
		<td align="center">
			<a href="<%= request.getContextPath() %>/display.do?type=sightspot&unique=<%= sight.getId() %>">
				<font size="2">查看景点信息</font>
			</a>
		</td>
	</tr>
<%
		}
	}else{
		out.println("<font size='2'>对不起,暂时没有景点信息。</font>");
	}
%>
</table>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?