serchtravcorp.jsp
来自「旅游自助系统」· JSP 代码 · 共 47 行
JSP
47 行
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="org.tshs.entity.*" %>
<%
Vector corps = (Vector)request.getAttribute("corps");
//test
// corps.add(new String("haha"));corps.add(new String("xixi"));
%>
<table align="center" width="92%" cellspacing="3" border="0">
<%
if(corps != null && corps.size() != 0){
%>
<tr bgcolor="#6699CC">
<th align="center">
<font size="2">公 司 名 称</font>
</th>
<th width="15%" align="center"> </th>
<th width="20%" align="center"> </th>
</tr>
<%
for(int i = 0; i<corps.size(); i++){
TravelCorp corp = (TravelCorp)corps.get(i);
%>
<tr bgcolor="#6699CC">
<td width="">
<center><%= corp.getName() %></center>
</td>
<td width="15%" align="center">
<a href="<%= request.getContextPath() %>/display.do?type=corp&unique=<%= corp.getId() %>">
<font size="2">查看公司信息</font>
</a>
</td>
<td width="20%" align="center">
<a href="<%= request.getContextPath() %>/showgroupsincorp.do?corpid=<%= corp.getId() %>">
<font size="2">查看该公司旅游团信息</font>
</a>
</td>
</tr>
<%
}
}else{
out.println("<font size='2'>对不起,暂时没有公司注册信息。</font>");
}
%>
</table>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?