groupinfor.jsp

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

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

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

<table align="center" width="92%" cellspacing="3" border="0">
	<%
	if (groups != null && groups.size() != 0) {
	%>
	<tr bgcolor="#6699CC">
		<td width="70%" align="center">
			<font size="2">开设的旅游团</font>
		</td>
		<td width="30%" align="center" colspan="3">
			<font size="2">操 作</font>
		</td>
	</tr>
	<%
	for (int i = 0; i < groups.size(); i++) {
	%>
	<tr bgcolor="#6699CC">
		<td width="70%">
			<center>
				<%=groups.get(i)%>
			</center>
		</td>
		<td width="10%" align="center">
			<a
				href="<%=request.getContextPath()%>/display/group?unique=<%=groups.get(i)%>">
				<font size="2">查 看</font> </a>
		</td>
		<td width="10%" align="center">
			<a
				href="<%=request.getContextPath()%>/modify/group?unique=<%=groups.get(i)%>">
				<font size="2">更 新</font> </a>
		</td>
		<td align="center">
			<a
				href="<%=request.getContextPath()%>/delete/group?unique=<%=groups.get(i)%>">
				<font size="2">删 除</font> </a>
		</td>
	</tr>
	<%
		}
		} else {
	%>
	<font size="2">对不起,贵公司暂时没有开设旅游团。<p /> 我公司现在要
		<a href="<%=request.getContextPath()%>/corp/groupregiste.jsp?corpid=<%=request.getAttribute("corpid")%>">
		开设旅游团</a>
	</font>
	<%
	}
	%>
</table>

⌨️ 快捷键说明

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