⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 information.jsp

📁 一个毕业设计网络招标系统实现了招标的业务逻辑内含了数据库sql server备份文件
💻 JSP
字号:
<%@ page language="java" import="java.util.*,C03.BO.*,C03.VO.*,java.util.Vector" pageEncoding="GB2312"%>

<%String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
			String xinxi = request.getParameter("action");

			%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'information.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><iframe  height=0></iframe>
		<TABLE align="center">
			<tr>
				<td ColSpan="4" align="center" valign="top">
					<%@include file="top.inc"%>
				</td>
			</tr>
			<TR>
				<td>
					<%@include file="love.inc"%>
				</td>
			</TR>
		</TABLE>
		<%if (xinxi == null || xinxi.equals("xiangmu")) {

				long page1 = 1;
				if (request.getParameter("page1") != null)
					page1 = Long
							.parseLong(request.getParameter("page1").trim());
				long pagemax = 3;
				long count;
				pageBO pg = new pageBO();
				//	basicBO basic = new basicBO();
				count = pg.getMakerListCount();

				Vector list = new Vector();
				list = pg.getProjectList(page1, pagemax);

				//Vector vc = new Vector();

				//projectBO bo = new projectBO();
				//vc = bo.returnProject();

				%>
		<table align="center" cellpadding="1" width="850">
			<tr align="center" bgcolor="E1D1B7">
				<td height="25" align="center" colspan="13" width="850">
					<b>项目列表</b>
				</td>
			</tr>
			<tr bgcolor="F6F2E6">
				<td width="25%" align="center">
					<font color="#FF0000"> 项目编号</font>
				</td>
				<td width="25%" align="center">
					<font color="#FF0000"> 项目名称</font>
				</td>
				<td width="25%" align="center">
					<font color="#FF0000"> 项目所属公司 </font>
				</td>
				<td width="25%" align="center">
					<font color="#FF0000"> 操作</font>
				</td>
			</tr>
			<%for (int i = 0; i < list.size(); i++) {
					projectBean vo = (projectBean) list.get(i);
					String id = vo.getProject_id();

					%>
			<tr bgcolor="F6F2E6">
				<td width="25%" align="center">
					<%=id%>
				</td>
				<td width="25%" align="center">
					<%=vo.getProject_name()%>
				</td>
				<td width="25%" align="center">
					<%=vo.getProject_company()%>
				</td>

				<td width="25%" align="center">

					<a href="Projectxiangxi.jsp?ID=<%=id%>" target="_blank">详细信息</a>
				</td>


			</tr>

			<%}

				%>
			<tr align="right">
				<td colspan="2" height="38">
					<a href="#" onClick="MM_openBrWindow('send_pop.shtml','','width=300,height=250')"><br> <br> </a>
				</td>
			</tr>
		</table>
		<form method="POST" action="information.jsp" name="pageform">
		<table width="850" border="0" cellspacing="0" cellpadding="0">
			
			<tr align="center" valign="top">
				<td height="20">
					<a href="information.jsp?action=xiangmu&page1=1">首 页</a>
					<%if (page1 >= 2) {%>
					<a href="information.jsp?action=xiangmu&page1=<%=page1-1%>">上一页<img src="images/aleft.gif" width="18" height="16" border="0" align="absbottom"></a>
					<%} else {%>
					上一页
					<img src="images/aleft.gif" width="18" height="16" border="0" align="absbottom">
					<%}%>
					<input type="text" name="page1" size="2" value="<%=page1%>" onkeydown="if(event.keyCode==13)this.form.submit()">
					<%if (page1 < count / pagemax + 1) {%>
					<a href="information.jsp?action=xiangmu&page1=<%=(page1+1)%>"> <img src="images/aright.gif" width="18" height="16" border="0" align="absbottom">下一页</a>
					<%} else {%>
					<img src="images/aright.gif" width="18" height="16" border="0" align="absbottom">
					下一页
					<%}%>
					<a href="information.jsp?action=xiangmu&page1=<%=count/pagemax+1%> ">最后一页</a>
				</td>
			</tr>
			
		</table>
		</form>
		<%}
			if (xinxi == null || xinxi.equals("changshang")) {
				long page1 = 1;
				if (request.getParameter("page1") != null)
					page1 = Long
							.parseLong(request.getParameter("page1").trim());
				long pagemax = 3;
				long count;
				pageBO pg = new pageBO();
				basicBO basic = new basicBO();
				count = pg.getMakerListCount();

				Vector list = new Vector();
				list = pg.getMakerList(page1, pagemax);

				%>

		<center>
			<table width="850" border="0" cellspacing="0" cellpadding="0" height="122">
				<tr>
					<td colspan="2" align="center" height="84">
						<table width="100%" border="0" cellspacing="0" cellpadding="1" align="center">
							<tr bgcolor="0092B8">
								<td>
									<table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#FFFFFF">
										<tr align="center">
											<td>
												<table width="850" border="0" cellspacing="1" cellpadding="0">
													<tr align="center" bgcolor="E1D1B7">
														<td height="25" align="center" colspan="7" width="850">
															<b>厂商信息</b>
														</td>
													</tr>
													<tr bgcolor="F6F2E6">

														<td height="25" align="center" width="126">
															<font color="#FF0000"> 投标厂商名称</font>
														</td>
														<td align="center" width="141">
															<font color="#FF0000">总部地址</font>
														</td>
														<td align="center" width="87">
															<font color="#FF0000">注册时间</font>
														</td>
														<td align="center" width="142">
															<font color="#FF0000">注册地址</font>
														</td>
														<td align="center" width="76">
															<font color="#FF0000">注册资金</font>
														</td>
														<td align="center" width="74">
															<font color="#FF0000">法人姓名</font>
														</td>
														<td align="center" width="88">
															<font color="#FF0000">详细信息</font>
														</td>
													</tr>
													<%if (list != null) {
					for (int i = 0; i < list.size(); i++) {
						makerBean mk = new makerBean();
						mk = (makerBean) list.elementAt(i);
%>
													<tr bgcolor="F6F2E6" align="center">
														<td height="25" width="126">
															<p>
																<a href="maker21.jsp?mkid=<%=mk.getMaker_id()%>"><%=mk.getMaker_name()%></a>
															</p>
														</td>
														<td width="141">
															<%if (mk.getMaker_address() != null)
							out.println(mk.getMaker_address());%>
														</td>
														<td width="87">
															<%=mk.getMaker_Cr_time()%>
														</td>
														<td width="142">
															<%=mk.getMaker_Cr_address()%>
														</td>
														<td width="76">
															<%=mk.getMaker_Cr_cost()%>
														</td>
														<td width="74">
															<%=mk.getMaker_Fr_name()%>
														</td>
														<td width="88">
															<a href="makerinfo.jsp?mkid=<%=mk.getMaker_id()%>" target="_blank">详细信息</a>
														</td>
													</tr>
													<%}
				}%>

												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr align="right">
					<td colspan="2" height="38">
						<a href="#" onClick="MM_openBrWindow('send_pop.shtml','','width=300,height=250')"><br> <br> </a>
					</td>
				</tr>
			</table>
			<form method="POST" action="information.jsp" name="pageform">
			<table width="850" border="0" cellspacing="0" cellpadding="0">
				
				<tr align="center" valign="top">
					<td height="20">
						<a href="information.jsp?action=changshang&page1=1">首 页</a>
						<%if (page1 >= 2) {%>
						<a href="information.jsp?action=changshang&page1=<%=page1-1%>">上一页<img src="images/aleft.gif" width="18" height="16" border="0" align="absbottom"></a>
						<%} else {%>
						上一页
						<img src="images/aleft.gif" width="18" height="16" border="0" align="absbottom">
						<%}%>
						<input type="text" name="page1" size="2" value="<%=page1%>" onkeydown="if(event.keyCode==13)this.form.submit()">
						<%if (page1 < count / pagemax + 1) {%>
						<a href="information.jsp?action=changshang&page1=<%=(page1+1)%>"> <img src="images/aright.gif" width="18" height="16" border="0" align="absbottom">下一页</a>
						<%} else {%>
						<img src="images/aright.gif" width="18" height="16" border="0" align="absbottom">
						下一页
						<%}%>
						<a href="information.jsp?action=changshang&page1=<%=count/pagemax+1%> ">最后一页</a>
					</td>
				</tr>
				
			</table>
			</form>
			<p>
				&nbsp;
			</p>
		</center>

		<%}
			if (xinxi.equals("chanpin")) {

				%>
		<%
	
		long page1 = 1;
				if (request.getParameter("page1") != null)
					page1 = Long
							.parseLong(request.getParameter("page1").trim());
				long pagemax = 3;
				long count;
				pageBO pg = new pageBO();
				//	basicBO basic = new basicBO();
				count = pg.getProductListCount();

				Vector list = new Vector();
				list = pg.getProductList(page1, pagemax);
				
		
		
		//Vector vc = new Vector();
				//productBO pb = new productBO();
				//vc = pb.returnproducte();

				%>
		<CENTER>
			<table width="850" align="center" border="0" bgcolor="">

				<TR bgcolor="E1D1B7">
					<TD align="center" colspan="4">
						<P align="center">
							<B>产品信息</B>
						</P>
					</TD>

				</TR>

				<tr bgcolor="F6F2E6">
					<td width="425" align="center">
						<font color="#FF0000"> 产品编号</font>
					</td>
					<td align="center" width="425">
						<font color="#FF0000"> 产品名称</font>
					</td>
					<td align="center" width="425">
						<font color="#FF0000"> 产品价格</font>
					</td>
					<td align="center" width="425">
						<font color="#FF0000"> 产品说明</font>
					</td>

				</tr>
				<%for (int i = 0; i < list.size(); i++) {
					productBean bean = new productBean();
					bean = (productBean) list.get(i);

					%>
				<tr bgcolor="F6F2E6">
					<td width="429" align="center">
						<%=bean.getProduct_id()%>
					</td>
					<td align="center">
						<%=bean.getProduct_name()%>
					</td>
					<td align="center">
						<%=bean.getProduct_price()%>
					</td>
					<td align="center">
						<%=bean.getProduct_content()%>
					</td>
				</tr>
				<%}%>




			</table>
			<form method="POST" action="information.jsp" name="pageform">
	<table width="850" border="0" cellspacing="0" cellpadding="0">
				
				<tr align="center" valign="top">
					<td height="20">
						<a href="information.jsp?action=chanpin&page1=1">首 页</a>
						<%if (page1 >= 2) {%>
						<a href="information.jsp?action=chanpin&page1=<%=page1-1%>">上一页<img src="images/aleft.gif" width="18" height="16" border="0" align="absbottom"></a>
						<%} else {%>
						上一页
						<img src="images/aleft.gif" width="18" height="16" border="0" align="absbottom">
						<%}%>
						<input type="text" name="page1" size="2" value="<%=page1%>" onkeydown="if(event.keyCode==13)this.form.submit()">
						<%if (page1 < count / pagemax + 1) {%>
						<a href="information.jsp?action=chanpin&page1=<%=(page1+1)%>"> <img src="images/aright.gif" width="18" height="16" border="0" align="absbottom">下一页</a>
						<%} else {%>
						<img src="images/aright.gif" width="18" height="16" border="0" align="absbottom">
						下一页
						<%}%>
						<a href="information.jsp?action=chanpin&page1=<%=count/pagemax+1%> ">最后一页</a>
					</td>
				</tr>
				
			</table>
			</form>
		</CENTER>

	
	<%}%>


	</body>
</html>

⌨️ 快捷键说明

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