📄 tshs.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="org.tshs.entity.*"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%
Vector sights = (Vector) request.getAttribute("sights");
Vector corps = (Vector) request.getAttribute("corps");
%>
<table width="100%">
<tr height="224">
<td background="<%=request.getContextPath()%>/image/bg_center_1.gif">
<table width="100%" cellspacing="4">
<tr>
<td width="122" height="43">
<img src="<%=request.getContextPath()%>/image/nav_newline.gif" />
</td>
<td>
</td>
</tr>
<tr>
<td height="160">
<img src="<%=request.getContextPath()%>/image/yeshu.jpg"
alt="yeshu" width="100" height="129" align="middle" />
</td>
<td>
<%
if (sights != null && sights.size() != 0) {
out.print("<ul>");
for (int i = 0; i < sights.size() && i < 5; i++) {
SightSpot sight = (SightSpot) sights.get(i);
System.out.println(sight.getId());
%>
<a
href="<%=request.getContextPath()%>/display.do?type=sightspot&unique=<%=sight.getId()%>">
<li>
<font size='2'><%=sight.getName()%></font>
</li> </a>
<%
}
out.print("</ul>");
%>
<center>
<html:link action="/searchsight">
<img src="<%=request.getContextPath()%>/image/more.gif" />
</html:link>
</center>
<%
} else {
out.print("</p></p><font size='2'>暂无新的旅游景点</font>");
}
%>
</td>
</tr>
</table>
</td>
</tr>
<tr height="224">
<td background="<%=request.getContextPath()%>/image/bg_center_2.gif">
<table width="100%" cellspacing="4">
<tr>
<td width="122" height="43">
<img src="<%=request.getContextPath()%>/image/nav_zixun.gif" />
</td>
<td>
</td>
</tr>
<tr>
<td height="160">
<img src="<%=request.getContextPath()%>/image/yuchang.jpg"
alt="yuchang" width="100" height="129" align="middle" />
</td>
<td>
<%
if (corps != null && corps.size() != 0) {
out.print("<ul>");
for (int i = 0; i < corps.size() && i < 5; i++) {
TravelCorp corp = (TravelCorp)corps.get(i);
%>
<a
href="<%=request.getContextPath()%>/display.do?type=corp&unique=<%=corp.getId()%>">
<li>
<font size='2'><%=corp.getName()%></font>
</li> </a>
<%
}
out.print("</ul>");
%>
<center>
<html:link action="/searchcorp">
<img src="<%=request.getContextPath()%>/image/more.gif" />
</html:link>
</center>
<%
} else {
out.print("</p></p><font size='2'>暂无新的公司信息</font>");
}
%>
</td>
</tr>
</table>
</td>
</tr>
<tr height="224">
<td background="<%=request.getContextPath()%>/image/bg_center_1.gif">
<img src="<%=request.getContextPath()%>/image/river.gif" alt="river"
width="180" height="100" />
<img src="<%=request.getContextPath()%>/image/night.gif" alt="night"
width="180" height="100" />
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -